resolverv1

package
v0.0.0-...-6929601 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package resolverv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ResolverAPI_GetObjectSchemas_FullMethodName = "/clutch.resolver.v1.ResolverAPI/GetObjectSchemas"
	ResolverAPI_Search_FullMethodName           = "/clutch.resolver.v1.ResolverAPI/Search"
	ResolverAPI_Resolve_FullMethodName          = "/clutch.resolver.v1.ResolverAPI/Resolve"
	ResolverAPI_Autocomplete_FullMethodName     = "/clutch.resolver.v1.ResolverAPI/Autocomplete"
)

Variables

View Source
var (
	// Use a random high number that won't conflict with annotations from other
	// libraries.
	//
	// optional clutch.resolver.v1.SchemaMetadata schema = 59901;
	E_Schema = &file_resolver_v1_annotations_proto_extTypes[0]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// Use a random high number that won't conflict with annotations from other
	// libraries.
	//
	// optional clutch.resolver.v1.FieldMetadata schema_field = 59901;
	E_SchemaField = &file_resolver_v1_annotations_proto_extTypes[1]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_resolver_v1_annotations_proto protoreflect.FileDescriptor
View Source
var File_resolver_v1_resolver_api_proto protoreflect.FileDescriptor
View Source
var File_resolver_v1_schema_proto protoreflect.FileDescriptor
View Source
var ResolverAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clutch.resolver.v1.ResolverAPI",
	HandlerType: (*ResolverAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetObjectSchemas",
			Handler:    _ResolverAPI_GetObjectSchemas_Handler,
		},
		{
			MethodName: "Search",
			Handler:    _ResolverAPI_Search_Handler,
		},
		{
			MethodName: "Resolve",
			Handler:    _ResolverAPI_Resolve_Handler,
		},
		{
			MethodName: "Autocomplete",
			Handler:    _ResolverAPI_Autocomplete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "resolver/v1/resolver_api.proto",
}

ResolverAPI_ServiceDesc is the grpc.ServiceDesc for ResolverAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterResolverAPIHandler

func RegisterResolverAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterResolverAPIHandler registers the http handlers for service ResolverAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterResolverAPIHandlerClient

func RegisterResolverAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResolverAPIClient) error

RegisterResolverAPIHandlerClient registers the http handlers for service ResolverAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResolverAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResolverAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ResolverAPIClient" to call the correct interceptors.

func RegisterResolverAPIHandlerFromEndpoint

func RegisterResolverAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterResolverAPIHandlerFromEndpoint is same as RegisterResolverAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterResolverAPIHandlerServer

func RegisterResolverAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResolverAPIServer) error

RegisterResolverAPIHandlerServer registers the http handlers for service ResolverAPI to "mux". UnaryRPC :call ResolverAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterResolverAPIHandlerFromEndpoint instead.

func RegisterResolverAPIServer

func RegisterResolverAPIServer(s grpc.ServiceRegistrar, srv ResolverAPIServer)

Types

type AutocompleteRequest

type AutocompleteRequest struct {

	// The type URL of the desired result.
	Want   string `protobuf:"bytes,1,opt,name=want,proto3" json:"want,omitempty"`
	Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"`
	Limit  uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// If true, the search will be case sensitive
	CaseSensitive bool `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
	// contains filtered or unexported fields
}

func (*AutocompleteRequest) Descriptor deprecated

func (*AutocompleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use AutocompleteRequest.ProtoReflect.Descriptor instead.

func (*AutocompleteRequest) GetCaseSensitive

func (x *AutocompleteRequest) GetCaseSensitive() bool

func (*AutocompleteRequest) GetLimit

func (x *AutocompleteRequest) GetLimit() uint64

func (*AutocompleteRequest) GetSearch

func (x *AutocompleteRequest) GetSearch() string

func (*AutocompleteRequest) GetWant

func (x *AutocompleteRequest) GetWant() string

func (*AutocompleteRequest) ProtoMessage

func (*AutocompleteRequest) ProtoMessage()

func (*AutocompleteRequest) ProtoReflect

func (x *AutocompleteRequest) ProtoReflect() protoreflect.Message

func (*AutocompleteRequest) Reset

func (x *AutocompleteRequest) Reset()

func (*AutocompleteRequest) String

func (x *AutocompleteRequest) String() string

func (*AutocompleteRequest) Validate

func (m *AutocompleteRequest) Validate() error

Validate checks the field values on AutocompleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AutocompleteRequest) ValidateAll

func (m *AutocompleteRequest) ValidateAll() error

ValidateAll checks the field values on AutocompleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AutocompleteRequestMultiError, or nil if none found.

type AutocompleteRequestMultiError

type AutocompleteRequestMultiError []error

AutocompleteRequestMultiError is an error wrapping multiple validation errors returned by AutocompleteRequest.ValidateAll() if the designated constraints aren't met.

func (AutocompleteRequestMultiError) AllErrors

func (m AutocompleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AutocompleteRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AutocompleteRequestValidationError

type AutocompleteRequestValidationError struct {
	// contains filtered or unexported fields
}

AutocompleteRequestValidationError is the validation error returned by AutocompleteRequest.Validate if the designated constraints aren't met.

func (AutocompleteRequestValidationError) Cause

Cause function returns cause value.

func (AutocompleteRequestValidationError) Error

Error satisfies the builtin error interface

func (AutocompleteRequestValidationError) ErrorName

ErrorName returns error name.

func (AutocompleteRequestValidationError) Field

Field function returns field value.

func (AutocompleteRequestValidationError) Key

Key function returns key value.

func (AutocompleteRequestValidationError) Reason

Reason function returns reason value.

type AutocompleteResponse

type AutocompleteResponse struct {
	Results []*AutocompleteResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*AutocompleteResponse) Descriptor deprecated

func (*AutocompleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use AutocompleteResponse.ProtoReflect.Descriptor instead.

func (*AutocompleteResponse) GetResults

func (x *AutocompleteResponse) GetResults() []*AutocompleteResult

func (*AutocompleteResponse) ProtoMessage

func (*AutocompleteResponse) ProtoMessage()

func (*AutocompleteResponse) ProtoReflect

func (x *AutocompleteResponse) ProtoReflect() protoreflect.Message

func (*AutocompleteResponse) Reset

func (x *AutocompleteResponse) Reset()

func (*AutocompleteResponse) String

func (x *AutocompleteResponse) String() string

func (*AutocompleteResponse) Validate

func (m *AutocompleteResponse) Validate() error

Validate checks the field values on AutocompleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AutocompleteResponse) ValidateAll

func (m *AutocompleteResponse) ValidateAll() error

ValidateAll checks the field values on AutocompleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AutocompleteResponseMultiError, or nil if none found.

type AutocompleteResponseMultiError

type AutocompleteResponseMultiError []error

AutocompleteResponseMultiError is an error wrapping multiple validation errors returned by AutocompleteResponse.ValidateAll() if the designated constraints aren't met.

func (AutocompleteResponseMultiError) AllErrors

func (m AutocompleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AutocompleteResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AutocompleteResponseValidationError

type AutocompleteResponseValidationError struct {
	// contains filtered or unexported fields
}

AutocompleteResponseValidationError is the validation error returned by AutocompleteResponse.Validate if the designated constraints aren't met.

func (AutocompleteResponseValidationError) Cause

Cause function returns cause value.

func (AutocompleteResponseValidationError) Error

Error satisfies the builtin error interface

func (AutocompleteResponseValidationError) ErrorName

ErrorName returns error name.

func (AutocompleteResponseValidationError) Field

Field function returns field value.

func (AutocompleteResponseValidationError) Key

Key function returns key value.

func (AutocompleteResponseValidationError) Reason

Reason function returns reason value.

type AutocompleteResult

type AutocompleteResult struct {

	// The primary identifer of the resource
	// This value is used when rendering the autocomplete results on the frontend
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The label can provide more detailed information about the result
	// This is dispalyed inline with the auto complete result
	// eg: what region an ec2 instance resides in
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*AutocompleteResult) Descriptor deprecated

func (*AutocompleteResult) Descriptor() ([]byte, []int)

Deprecated: Use AutocompleteResult.ProtoReflect.Descriptor instead.

func (*AutocompleteResult) GetId

func (x *AutocompleteResult) GetId() string

func (*AutocompleteResult) GetLabel

func (x *AutocompleteResult) GetLabel() string

func (*AutocompleteResult) ProtoMessage

func (*AutocompleteResult) ProtoMessage()

func (*AutocompleteResult) ProtoReflect

func (x *AutocompleteResult) ProtoReflect() protoreflect.Message

func (*AutocompleteResult) Reset

func (x *AutocompleteResult) Reset()

func (*AutocompleteResult) String

func (x *AutocompleteResult) String() string

func (*AutocompleteResult) Validate

func (m *AutocompleteResult) Validate() error

Validate checks the field values on AutocompleteResult with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AutocompleteResult) ValidateAll

func (m *AutocompleteResult) ValidateAll() error

ValidateAll checks the field values on AutocompleteResult with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AutocompleteResultMultiError, or nil if none found.

type AutocompleteResultMultiError

type AutocompleteResultMultiError []error

AutocompleteResultMultiError is an error wrapping multiple validation errors returned by AutocompleteResult.ValidateAll() if the designated constraints aren't met.

func (AutocompleteResultMultiError) AllErrors

func (m AutocompleteResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AutocompleteResultMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AutocompleteResultValidationError

type AutocompleteResultValidationError struct {
	// contains filtered or unexported fields
}

AutocompleteResultValidationError is the validation error returned by AutocompleteResult.Validate if the designated constraints aren't met.

func (AutocompleteResultValidationError) Cause

Cause function returns cause value.

func (AutocompleteResultValidationError) Error

Error satisfies the builtin error interface

func (AutocompleteResultValidationError) ErrorName

ErrorName returns error name.

func (AutocompleteResultValidationError) Field

Field function returns field value.

func (AutocompleteResultValidationError) Key

Key function returns key value.

func (AutocompleteResultValidationError) Reason

Reason function returns reason value.

type Field

type Field struct {
	Name     string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Metadata *FieldMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetMetadata

func (x *Field) GetMetadata() *FieldMetadata

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

func (x *Field) ProtoReflect() protoreflect.Message

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

func (*Field) Validate

func (m *Field) Validate() error

Validate checks the field values on Field with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Field) ValidateAll

func (m *Field) ValidateAll() error

ValidateAll checks the field values on Field with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FieldMultiError, or nil if none found.

type FieldMetadata

type FieldMetadata struct {
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Required    bool   `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"`
	// Types that are assignable to Type:
	//
	//	*FieldMetadata_StringField
	//	*FieldMetadata_OptionField
	Type isFieldMetadata_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*FieldMetadata) Descriptor deprecated

func (*FieldMetadata) Descriptor() ([]byte, []int)

Deprecated: Use FieldMetadata.ProtoReflect.Descriptor instead.

func (*FieldMetadata) GetDisplayName

func (x *FieldMetadata) GetDisplayName() string

func (*FieldMetadata) GetOptionField

func (x *FieldMetadata) GetOptionField() *OptionField

func (*FieldMetadata) GetRequired

func (x *FieldMetadata) GetRequired() bool

func (*FieldMetadata) GetStringField

func (x *FieldMetadata) GetStringField() *StringField

func (*FieldMetadata) GetType

func (m *FieldMetadata) GetType() isFieldMetadata_Type

func (*FieldMetadata) ProtoMessage

func (*FieldMetadata) ProtoMessage()

func (*FieldMetadata) ProtoReflect

func (x *FieldMetadata) ProtoReflect() protoreflect.Message

func (*FieldMetadata) Reset

func (x *FieldMetadata) Reset()

func (*FieldMetadata) String

func (x *FieldMetadata) String() string

func (*FieldMetadata) Validate

func (m *FieldMetadata) Validate() error

Validate checks the field values on FieldMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FieldMetadata) ValidateAll

func (m *FieldMetadata) ValidateAll() error

ValidateAll checks the field values on FieldMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FieldMetadataMultiError, or nil if none found.

type FieldMetadataMultiError

type FieldMetadataMultiError []error

FieldMetadataMultiError is an error wrapping multiple validation errors returned by FieldMetadata.ValidateAll() if the designated constraints aren't met.

func (FieldMetadataMultiError) AllErrors

func (m FieldMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FieldMetadataMultiError) Error

func (m FieldMetadataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FieldMetadataValidationError

type FieldMetadataValidationError struct {
	// contains filtered or unexported fields
}

FieldMetadataValidationError is the validation error returned by FieldMetadata.Validate if the designated constraints aren't met.

func (FieldMetadataValidationError) Cause

Cause function returns cause value.

func (FieldMetadataValidationError) Error

Error satisfies the builtin error interface

func (FieldMetadataValidationError) ErrorName

func (e FieldMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (FieldMetadataValidationError) Field

Field function returns field value.

func (FieldMetadataValidationError) Key

Key function returns key value.

func (FieldMetadataValidationError) Reason

Reason function returns reason value.

type FieldMetadata_OptionField

type FieldMetadata_OptionField struct {
	OptionField *OptionField `protobuf:"bytes,4,opt,name=option_field,json=optionField,proto3,oneof"`
}

type FieldMetadata_StringField

type FieldMetadata_StringField struct {
	StringField *StringField `protobuf:"bytes,3,opt,name=string_field,json=stringField,proto3,oneof"`
}

type FieldMultiError

type FieldMultiError []error

FieldMultiError is an error wrapping multiple validation errors returned by Field.ValidateAll() if the designated constraints aren't met.

func (FieldMultiError) AllErrors

func (m FieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FieldMultiError) Error

func (m FieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FieldValidationError

type FieldValidationError struct {
	// contains filtered or unexported fields
}

FieldValidationError is the validation error returned by Field.Validate if the designated constraints aren't met.

func (FieldValidationError) Cause

func (e FieldValidationError) Cause() error

Cause function returns cause value.

func (FieldValidationError) Error

func (e FieldValidationError) Error() string

Error satisfies the builtin error interface

func (FieldValidationError) ErrorName

func (e FieldValidationError) ErrorName() string

ErrorName returns error name.

func (FieldValidationError) Field

func (e FieldValidationError) Field() string

Field function returns field value.

func (FieldValidationError) Key

func (e FieldValidationError) Key() bool

Key function returns key value.

func (FieldValidationError) Reason

func (e FieldValidationError) Reason() string

Reason function returns reason value.

type GetObjectSchemasRequest

type GetObjectSchemasRequest struct {
	TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectSchemasRequest) Descriptor deprecated

func (*GetObjectSchemasRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetObjectSchemasRequest.ProtoReflect.Descriptor instead.

func (*GetObjectSchemasRequest) GetTypeUrl

func (x *GetObjectSchemasRequest) GetTypeUrl() string

func (*GetObjectSchemasRequest) ProtoMessage

func (*GetObjectSchemasRequest) ProtoMessage()

func (*GetObjectSchemasRequest) ProtoReflect

func (x *GetObjectSchemasRequest) ProtoReflect() protoreflect.Message

func (*GetObjectSchemasRequest) Reset

func (x *GetObjectSchemasRequest) Reset()

func (*GetObjectSchemasRequest) String

func (x *GetObjectSchemasRequest) String() string

func (*GetObjectSchemasRequest) Validate

func (m *GetObjectSchemasRequest) Validate() error

Validate checks the field values on GetObjectSchemasRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetObjectSchemasRequest) ValidateAll

func (m *GetObjectSchemasRequest) ValidateAll() error

ValidateAll checks the field values on GetObjectSchemasRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetObjectSchemasRequestMultiError, or nil if none found.

type GetObjectSchemasRequestMultiError

type GetObjectSchemasRequestMultiError []error

GetObjectSchemasRequestMultiError is an error wrapping multiple validation errors returned by GetObjectSchemasRequest.ValidateAll() if the designated constraints aren't met.

func (GetObjectSchemasRequestMultiError) AllErrors

func (m GetObjectSchemasRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetObjectSchemasRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetObjectSchemasRequestValidationError

type GetObjectSchemasRequestValidationError struct {
	// contains filtered or unexported fields
}

GetObjectSchemasRequestValidationError is the validation error returned by GetObjectSchemasRequest.Validate if the designated constraints aren't met.

func (GetObjectSchemasRequestValidationError) Cause

Cause function returns cause value.

func (GetObjectSchemasRequestValidationError) Error

Error satisfies the builtin error interface

func (GetObjectSchemasRequestValidationError) ErrorName

ErrorName returns error name.

func (GetObjectSchemasRequestValidationError) Field

Field function returns field value.

func (GetObjectSchemasRequestValidationError) Key

Key function returns key value.

func (GetObjectSchemasRequestValidationError) Reason

Reason function returns reason value.

type GetObjectSchemasResponse

type GetObjectSchemasResponse struct {
	TypeUrl string    `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	Schemas []*Schema `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectSchemasResponse) Descriptor deprecated

func (*GetObjectSchemasResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetObjectSchemasResponse.ProtoReflect.Descriptor instead.

func (*GetObjectSchemasResponse) GetSchemas

func (x *GetObjectSchemasResponse) GetSchemas() []*Schema

func (*GetObjectSchemasResponse) GetTypeUrl

func (x *GetObjectSchemasResponse) GetTypeUrl() string

func (*GetObjectSchemasResponse) ProtoMessage

func (*GetObjectSchemasResponse) ProtoMessage()

func (*GetObjectSchemasResponse) ProtoReflect

func (x *GetObjectSchemasResponse) ProtoReflect() protoreflect.Message

func (*GetObjectSchemasResponse) Reset

func (x *GetObjectSchemasResponse) Reset()

func (*GetObjectSchemasResponse) String

func (x *GetObjectSchemasResponse) String() string

func (*GetObjectSchemasResponse) Validate

func (m *GetObjectSchemasResponse) Validate() error

Validate checks the field values on GetObjectSchemasResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetObjectSchemasResponse) ValidateAll

func (m *GetObjectSchemasResponse) ValidateAll() error

ValidateAll checks the field values on GetObjectSchemasResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetObjectSchemasResponseMultiError, or nil if none found.

type GetObjectSchemasResponseMultiError

type GetObjectSchemasResponseMultiError []error

GetObjectSchemasResponseMultiError is an error wrapping multiple validation errors returned by GetObjectSchemasResponse.ValidateAll() if the designated constraints aren't met.

func (GetObjectSchemasResponseMultiError) AllErrors

func (m GetObjectSchemasResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetObjectSchemasResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetObjectSchemasResponseValidationError

type GetObjectSchemasResponseValidationError struct {
	// contains filtered or unexported fields
}

GetObjectSchemasResponseValidationError is the validation error returned by GetObjectSchemasResponse.Validate if the designated constraints aren't met.

func (GetObjectSchemasResponseValidationError) Cause

Cause function returns cause value.

func (GetObjectSchemasResponseValidationError) Error

Error satisfies the builtin error interface

func (GetObjectSchemasResponseValidationError) ErrorName

ErrorName returns error name.

func (GetObjectSchemasResponseValidationError) Field

Field function returns field value.

func (GetObjectSchemasResponseValidationError) Key

Key function returns key value.

func (GetObjectSchemasResponseValidationError) Reason

Reason function returns reason value.

type Option

type Option struct {
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Types that are assignable to Value:
	//
	//	*Option_StringValue
	Value isOption_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Option) Descriptor deprecated

func (*Option) Descriptor() ([]byte, []int)

Deprecated: Use Option.ProtoReflect.Descriptor instead.

func (*Option) GetDisplayName

func (x *Option) GetDisplayName() string

func (*Option) GetStringValue

func (x *Option) GetStringValue() string

func (*Option) GetValue

func (m *Option) GetValue() isOption_Value

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) ProtoReflect

func (x *Option) ProtoReflect() protoreflect.Message

func (*Option) Reset

func (x *Option) Reset()

func (*Option) String

func (x *Option) String() string

func (*Option) Validate

func (m *Option) Validate() error

Validate checks the field values on Option with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Option) ValidateAll

func (m *Option) ValidateAll() error

ValidateAll checks the field values on Option with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OptionMultiError, or nil if none found.

type OptionField

type OptionField struct {
	IncludeAllOption      bool      `protobuf:"varint,1,opt,name=include_all_option,json=includeAllOption,proto3" json:"include_all_option,omitempty"`
	IncludeDynamicOptions []string  `` /* 126-byte string literal not displayed */
	Options               []*Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*OptionField) Descriptor deprecated

func (*OptionField) Descriptor() ([]byte, []int)

Deprecated: Use OptionField.ProtoReflect.Descriptor instead.

func (*OptionField) GetIncludeAllOption

func (x *OptionField) GetIncludeAllOption() bool

func (*OptionField) GetIncludeDynamicOptions

func (x *OptionField) GetIncludeDynamicOptions() []string

func (*OptionField) GetOptions

func (x *OptionField) GetOptions() []*Option

func (*OptionField) ProtoMessage

func (*OptionField) ProtoMessage()

func (*OptionField) ProtoReflect

func (x *OptionField) ProtoReflect() protoreflect.Message

func (*OptionField) Reset

func (x *OptionField) Reset()

func (*OptionField) String

func (x *OptionField) String() string

func (*OptionField) Validate

func (m *OptionField) Validate() error

Validate checks the field values on OptionField with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OptionField) ValidateAll

func (m *OptionField) ValidateAll() error

ValidateAll checks the field values on OptionField with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OptionFieldMultiError, or nil if none found.

type OptionFieldMultiError

type OptionFieldMultiError []error

OptionFieldMultiError is an error wrapping multiple validation errors returned by OptionField.ValidateAll() if the designated constraints aren't met.

func (OptionFieldMultiError) AllErrors

func (m OptionFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OptionFieldMultiError) Error

func (m OptionFieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OptionFieldValidationError

type OptionFieldValidationError struct {
	// contains filtered or unexported fields
}

OptionFieldValidationError is the validation error returned by OptionField.Validate if the designated constraints aren't met.

func (OptionFieldValidationError) Cause

Cause function returns cause value.

func (OptionFieldValidationError) Error

Error satisfies the builtin error interface

func (OptionFieldValidationError) ErrorName

func (e OptionFieldValidationError) ErrorName() string

ErrorName returns error name.

func (OptionFieldValidationError) Field

Field function returns field value.

func (OptionFieldValidationError) Key

Key function returns key value.

func (OptionFieldValidationError) Reason

Reason function returns reason value.

type OptionMultiError

type OptionMultiError []error

OptionMultiError is an error wrapping multiple validation errors returned by Option.ValidateAll() if the designated constraints aren't met.

func (OptionMultiError) AllErrors

func (m OptionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OptionMultiError) Error

func (m OptionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OptionValidationError

type OptionValidationError struct {
	// contains filtered or unexported fields
}

OptionValidationError is the validation error returned by Option.Validate if the designated constraints aren't met.

func (OptionValidationError) Cause

func (e OptionValidationError) Cause() error

Cause function returns cause value.

func (OptionValidationError) Error

func (e OptionValidationError) Error() string

Error satisfies the builtin error interface

func (OptionValidationError) ErrorName

func (e OptionValidationError) ErrorName() string

ErrorName returns error name.

func (OptionValidationError) Field

func (e OptionValidationError) Field() string

Field function returns field value.

func (OptionValidationError) Key

func (e OptionValidationError) Key() bool

Key function returns key value.

func (OptionValidationError) Reason

func (e OptionValidationError) Reason() string

Reason function returns reason value.

type Option_StringValue

type Option_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type ResolveRequest

type ResolveRequest struct {

	// The type URL of the desired result.
	Want string `protobuf:"bytes,1,opt,name=want,proto3" json:"want,omitempty"`
	// Filled in object schemas.
	Have *anypb.Any `protobuf:"bytes,2,opt,name=have,proto3" json:"have,omitempty"`
	// The maximum number of results to return.
	Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveRequest) Descriptor deprecated

func (*ResolveRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.

func (*ResolveRequest) GetHave

func (x *ResolveRequest) GetHave() *anypb.Any

func (*ResolveRequest) GetLimit

func (x *ResolveRequest) GetLimit() uint32

func (*ResolveRequest) GetWant

func (x *ResolveRequest) GetWant() string

func (*ResolveRequest) ProtoMessage

func (*ResolveRequest) ProtoMessage()

func (*ResolveRequest) ProtoReflect

func (x *ResolveRequest) ProtoReflect() protoreflect.Message

func (*ResolveRequest) Reset

func (x *ResolveRequest) Reset()

func (*ResolveRequest) String

func (x *ResolveRequest) String() string

func (*ResolveRequest) Validate

func (m *ResolveRequest) Validate() error

Validate checks the field values on ResolveRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResolveRequest) ValidateAll

func (m *ResolveRequest) ValidateAll() error

ValidateAll checks the field values on ResolveRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResolveRequestMultiError, or nil if none found.

type ResolveRequestMultiError

type ResolveRequestMultiError []error

ResolveRequestMultiError is an error wrapping multiple validation errors returned by ResolveRequest.ValidateAll() if the designated constraints aren't met.

func (ResolveRequestMultiError) AllErrors

func (m ResolveRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResolveRequestMultiError) Error

func (m ResolveRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ResolveRequestValidationError

type ResolveRequestValidationError struct {
	// contains filtered or unexported fields
}

ResolveRequestValidationError is the validation error returned by ResolveRequest.Validate if the designated constraints aren't met.

func (ResolveRequestValidationError) Cause

Cause function returns cause value.

func (ResolveRequestValidationError) Error

Error satisfies the builtin error interface

func (ResolveRequestValidationError) ErrorName

func (e ResolveRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ResolveRequestValidationError) Field

Field function returns field value.

func (ResolveRequestValidationError) Key

Key function returns key value.

func (ResolveRequestValidationError) Reason

Reason function returns reason value.

type ResolveResponse

type ResolveResponse struct {
	Results         []*anypb.Any     `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveResponse) Descriptor deprecated

func (*ResolveResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.

func (*ResolveResponse) GetPartialFailures

func (x *ResolveResponse) GetPartialFailures() []*status.Status

func (*ResolveResponse) GetResults

func (x *ResolveResponse) GetResults() []*anypb.Any

func (*ResolveResponse) ProtoMessage

func (*ResolveResponse) ProtoMessage()

func (*ResolveResponse) ProtoReflect

func (x *ResolveResponse) ProtoReflect() protoreflect.Message

func (*ResolveResponse) Reset

func (x *ResolveResponse) Reset()

func (*ResolveResponse) String

func (x *ResolveResponse) String() string

func (*ResolveResponse) Validate

func (m *ResolveResponse) Validate() error

Validate checks the field values on ResolveResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResolveResponse) ValidateAll

func (m *ResolveResponse) ValidateAll() error

ValidateAll checks the field values on ResolveResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResolveResponseMultiError, or nil if none found.

type ResolveResponseMultiError

type ResolveResponseMultiError []error

ResolveResponseMultiError is an error wrapping multiple validation errors returned by ResolveResponse.ValidateAll() if the designated constraints aren't met.

func (ResolveResponseMultiError) AllErrors

func (m ResolveResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResolveResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResolveResponseValidationError

type ResolveResponseValidationError struct {
	// contains filtered or unexported fields
}

ResolveResponseValidationError is the validation error returned by ResolveResponse.Validate if the designated constraints aren't met.

func (ResolveResponseValidationError) Cause

Cause function returns cause value.

func (ResolveResponseValidationError) Error

Error satisfies the builtin error interface

func (ResolveResponseValidationError) ErrorName

func (e ResolveResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ResolveResponseValidationError) Field

Field function returns field value.

func (ResolveResponseValidationError) Key

Key function returns key value.

func (ResolveResponseValidationError) Reason

Reason function returns reason value.

type ResolverAPIClient

type ResolverAPIClient interface {
	GetObjectSchemas(ctx context.Context, in *GetObjectSchemasRequest, opts ...grpc.CallOption) (*GetObjectSchemasResponse, error)
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	Resolve(ctx context.Context, in *ResolveRequest, opts ...grpc.CallOption) (*ResolveResponse, error)
	Autocomplete(ctx context.Context, in *AutocompleteRequest, opts ...grpc.CallOption) (*AutocompleteResponse, error)
}

ResolverAPIClient is the client API for ResolverAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ResolverAPIServer

ResolverAPIServer is the server API for ResolverAPI service. All implementations should embed UnimplementedResolverAPIServer for forward compatibility

type Schema

type Schema struct {

	// The type URL of the object the schema was produced from, which becomes the 'have' type URL when submitting a
	// filled-in schema.
	TypeUrl  string          `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	Metadata *SchemaMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Fields   []*Field        `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
	// If the schema is broken, e.g. a required option field is missing options, an error will be returned here to be
	// displayed when that schema is selected.
	Error *status.Status `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Schema) Descriptor deprecated

func (*Schema) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetError

func (x *Schema) GetError() *status.Status

func (*Schema) GetFields

func (x *Schema) GetFields() []*Field

func (*Schema) GetMetadata

func (x *Schema) GetMetadata() *SchemaMetadata

func (*Schema) GetTypeUrl

func (x *Schema) GetTypeUrl() string

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

func (x *Schema) ProtoReflect() protoreflect.Message

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

func (*Schema) Validate

func (m *Schema) Validate() error

Validate checks the field values on Schema with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Schema) ValidateAll

func (m *Schema) ValidateAll() error

ValidateAll checks the field values on Schema with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemaMultiError, or nil if none found.

type SchemaMetadata

type SchemaMetadata struct {
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Searchable has been replaced by SearchMetadata.enabled and will be deprecated soon
	Searchable bool            `protobuf:"varint,2,opt,name=searchable,proto3" json:"searchable,omitempty"`
	Search     *SearchMetadata `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

func (*SchemaMetadata) Descriptor deprecated

func (*SchemaMetadata) Descriptor() ([]byte, []int)

Deprecated: Use SchemaMetadata.ProtoReflect.Descriptor instead.

func (*SchemaMetadata) GetDisplayName

func (x *SchemaMetadata) GetDisplayName() string

func (*SchemaMetadata) GetSearch

func (x *SchemaMetadata) GetSearch() *SearchMetadata

func (*SchemaMetadata) GetSearchable

func (x *SchemaMetadata) GetSearchable() bool

func (*SchemaMetadata) ProtoMessage

func (*SchemaMetadata) ProtoMessage()

func (*SchemaMetadata) ProtoReflect

func (x *SchemaMetadata) ProtoReflect() protoreflect.Message

func (*SchemaMetadata) Reset

func (x *SchemaMetadata) Reset()

func (*SchemaMetadata) String

func (x *SchemaMetadata) String() string

func (*SchemaMetadata) Validate

func (m *SchemaMetadata) Validate() error

Validate checks the field values on SchemaMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SchemaMetadata) ValidateAll

func (m *SchemaMetadata) ValidateAll() error

ValidateAll checks the field values on SchemaMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemaMetadataMultiError, or nil if none found.

type SchemaMetadataMultiError

type SchemaMetadataMultiError []error

SchemaMetadataMultiError is an error wrapping multiple validation errors returned by SchemaMetadata.ValidateAll() if the designated constraints aren't met.

func (SchemaMetadataMultiError) AllErrors

func (m SchemaMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SchemaMetadataMultiError) Error

func (m SchemaMetadataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SchemaMetadataValidationError

type SchemaMetadataValidationError struct {
	// contains filtered or unexported fields
}

SchemaMetadataValidationError is the validation error returned by SchemaMetadata.Validate if the designated constraints aren't met.

func (SchemaMetadataValidationError) Cause

Cause function returns cause value.

func (SchemaMetadataValidationError) Error

Error satisfies the builtin error interface

func (SchemaMetadataValidationError) ErrorName

func (e SchemaMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (SchemaMetadataValidationError) Field

Field function returns field value.

func (SchemaMetadataValidationError) Key

Key function returns key value.

func (SchemaMetadataValidationError) Reason

Reason function returns reason value.

type SchemaMultiError

type SchemaMultiError []error

SchemaMultiError is an error wrapping multiple validation errors returned by Schema.ValidateAll() if the designated constraints aren't met.

func (SchemaMultiError) AllErrors

func (m SchemaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SchemaMultiError) Error

func (m SchemaMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SchemaValidationError

type SchemaValidationError struct {
	// contains filtered or unexported fields
}

SchemaValidationError is the validation error returned by Schema.Validate if the designated constraints aren't met.

func (SchemaValidationError) Cause

func (e SchemaValidationError) Cause() error

Cause function returns cause value.

func (SchemaValidationError) Error

func (e SchemaValidationError) Error() string

Error satisfies the builtin error interface

func (SchemaValidationError) ErrorName

func (e SchemaValidationError) ErrorName() string

ErrorName returns error name.

func (SchemaValidationError) Field

func (e SchemaValidationError) Field() string

Field function returns field value.

func (SchemaValidationError) Key

func (e SchemaValidationError) Key() bool

Key function returns key value.

func (SchemaValidationError) Reason

func (e SchemaValidationError) Reason() string

Reason function returns reason value.

type SearchMetadata

type SearchMetadata struct {
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// This field is controlled by the backend resolver
	// Acting as a feature flag to the frontend which enables the autocomplete components
	AutocompleteEnabled bool `protobuf:"varint,2,opt,name=autocomplete_enabled,json=autocompleteEnabled,proto3" json:"autocomplete_enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchMetadata) Descriptor deprecated

func (*SearchMetadata) Descriptor() ([]byte, []int)

Deprecated: Use SearchMetadata.ProtoReflect.Descriptor instead.

func (*SearchMetadata) GetAutocompleteEnabled

func (x *SearchMetadata) GetAutocompleteEnabled() bool

func (*SearchMetadata) GetEnabled

func (x *SearchMetadata) GetEnabled() bool

func (*SearchMetadata) ProtoMessage

func (*SearchMetadata) ProtoMessage()

func (*SearchMetadata) ProtoReflect

func (x *SearchMetadata) ProtoReflect() protoreflect.Message

func (*SearchMetadata) Reset

func (x *SearchMetadata) Reset()

func (*SearchMetadata) String

func (x *SearchMetadata) String() string

func (*SearchMetadata) Validate

func (m *SearchMetadata) Validate() error

Validate checks the field values on SearchMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchMetadata) ValidateAll

func (m *SearchMetadata) ValidateAll() error

ValidateAll checks the field values on SearchMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchMetadataMultiError, or nil if none found.

type SearchMetadataMultiError

type SearchMetadataMultiError []error

SearchMetadataMultiError is an error wrapping multiple validation errors returned by SearchMetadata.ValidateAll() if the designated constraints aren't met.

func (SearchMetadataMultiError) AllErrors

func (m SearchMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchMetadataMultiError) Error

func (m SearchMetadataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SearchMetadataValidationError

type SearchMetadataValidationError struct {
	// contains filtered or unexported fields
}

SearchMetadataValidationError is the validation error returned by SearchMetadata.Validate if the designated constraints aren't met.

func (SearchMetadataValidationError) Cause

Cause function returns cause value.

func (SearchMetadataValidationError) Error

Error satisfies the builtin error interface

func (SearchMetadataValidationError) ErrorName

func (e SearchMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (SearchMetadataValidationError) Field

Field function returns field value.

func (SearchMetadataValidationError) Key

Key function returns key value.

func (SearchMetadataValidationError) Reason

Reason function returns reason value.

type SearchRequest

type SearchRequest struct {

	// The type URL of the desired result.
	Want string `protobuf:"bytes,1,opt,name=want,proto3" json:"want,omitempty"`
	// Free-form text query.
	Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	// The maximum number of results to return.
	Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

func (*SearchRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetLimit

func (x *SearchRequest) GetLimit() uint32

func (*SearchRequest) GetQuery

func (x *SearchRequest) GetQuery() string

func (*SearchRequest) GetWant

func (x *SearchRequest) GetWant() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

func (x *SearchRequest) ProtoReflect() protoreflect.Message

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

func (*SearchRequest) Validate

func (m *SearchRequest) Validate() error

Validate checks the field values on SearchRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchRequest) ValidateAll

func (m *SearchRequest) ValidateAll() error

ValidateAll checks the field values on SearchRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchRequestMultiError, or nil if none found.

type SearchRequestMultiError

type SearchRequestMultiError []error

SearchRequestMultiError is an error wrapping multiple validation errors returned by SearchRequest.ValidateAll() if the designated constraints aren't met.

func (SearchRequestMultiError) AllErrors

func (m SearchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchRequestMultiError) Error

func (m SearchRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SearchRequestValidationError

type SearchRequestValidationError struct {
	// contains filtered or unexported fields
}

SearchRequestValidationError is the validation error returned by SearchRequest.Validate if the designated constraints aren't met.

func (SearchRequestValidationError) Cause

Cause function returns cause value.

func (SearchRequestValidationError) Error

Error satisfies the builtin error interface

func (SearchRequestValidationError) ErrorName

func (e SearchRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SearchRequestValidationError) Field

Field function returns field value.

func (SearchRequestValidationError) Key

Key function returns key value.

func (SearchRequestValidationError) Reason

Reason function returns reason value.

type SearchResponse

type SearchResponse struct {
	Results         []*anypb.Any     `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	PartialFailures []*status.Status `protobuf:"bytes,2,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated

func (*SearchResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetPartialFailures

func (x *SearchResponse) GetPartialFailures() []*status.Status

func (*SearchResponse) GetResults

func (x *SearchResponse) GetResults() []*anypb.Any

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

func (x *SearchResponse) ProtoReflect() protoreflect.Message

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

func (*SearchResponse) Validate

func (m *SearchResponse) Validate() error

Validate checks the field values on SearchResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SearchResponse) ValidateAll

func (m *SearchResponse) ValidateAll() error

ValidateAll checks the field values on SearchResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchResponseMultiError, or nil if none found.

type SearchResponseMultiError

type SearchResponseMultiError []error

SearchResponseMultiError is an error wrapping multiple validation errors returned by SearchResponse.ValidateAll() if the designated constraints aren't met.

func (SearchResponseMultiError) AllErrors

func (m SearchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchResponseMultiError) Error

func (m SearchResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SearchResponseValidationError

type SearchResponseValidationError struct {
	// contains filtered or unexported fields
}

SearchResponseValidationError is the validation error returned by SearchResponse.Validate if the designated constraints aren't met.

func (SearchResponseValidationError) Cause

Cause function returns cause value.

func (SearchResponseValidationError) Error

Error satisfies the builtin error interface

func (SearchResponseValidationError) ErrorName

func (e SearchResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SearchResponseValidationError) Field

Field function returns field value.

func (SearchResponseValidationError) Key

Key function returns key value.

func (SearchResponseValidationError) Reason

Reason function returns reason value.

type StringField

type StringField struct {
	Placeholder  string `protobuf:"bytes,1,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	DefaultValue string `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	// contains filtered or unexported fields
}

func (*StringField) Descriptor deprecated

func (*StringField) Descriptor() ([]byte, []int)

Deprecated: Use StringField.ProtoReflect.Descriptor instead.

func (*StringField) GetDefaultValue

func (x *StringField) GetDefaultValue() string

func (*StringField) GetPlaceholder

func (x *StringField) GetPlaceholder() string

func (*StringField) ProtoMessage

func (*StringField) ProtoMessage()

func (*StringField) ProtoReflect

func (x *StringField) ProtoReflect() protoreflect.Message

func (*StringField) Reset

func (x *StringField) Reset()

func (*StringField) String

func (x *StringField) String() string

func (*StringField) Validate

func (m *StringField) Validate() error

Validate checks the field values on StringField with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StringField) ValidateAll

func (m *StringField) ValidateAll() error

ValidateAll checks the field values on StringField with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StringFieldMultiError, or nil if none found.

type StringFieldMultiError

type StringFieldMultiError []error

StringFieldMultiError is an error wrapping multiple validation errors returned by StringField.ValidateAll() if the designated constraints aren't met.

func (StringFieldMultiError) AllErrors

func (m StringFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StringFieldMultiError) Error

func (m StringFieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StringFieldValidationError

type StringFieldValidationError struct {
	// contains filtered or unexported fields
}

StringFieldValidationError is the validation error returned by StringField.Validate if the designated constraints aren't met.

func (StringFieldValidationError) Cause

Cause function returns cause value.

func (StringFieldValidationError) Error

Error satisfies the builtin error interface

func (StringFieldValidationError) ErrorName

func (e StringFieldValidationError) ErrorName() string

ErrorName returns error name.

func (StringFieldValidationError) Field

Field function returns field value.

func (StringFieldValidationError) Key

Key function returns key value.

func (StringFieldValidationError) Reason

Reason function returns reason value.

type UnimplementedResolverAPIServer

type UnimplementedResolverAPIServer struct {
}

UnimplementedResolverAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedResolverAPIServer) Autocomplete

func (UnimplementedResolverAPIServer) GetObjectSchemas

func (UnimplementedResolverAPIServer) Resolve

func (UnimplementedResolverAPIServer) Search

type UnsafeResolverAPIServer

type UnsafeResolverAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeResolverAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResolverAPIServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL