knowledgev1beta1

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

View Source
const (
	IdentityKnowledgeAPI_IdentityKnowledge_FullMethodName = "/indykite.knowledge.v1beta1.IdentityKnowledgeAPI/IdentityKnowledge"
)

Variables ¶

View Source
var (
	Operation_name = map[int32]string{
		0: "OPERATION_INVALID",
		1: "OPERATION_READ",
	}
	Operation_value = map[string]int32{
		"OPERATION_INVALID": 0,
		"OPERATION_READ":    1,
	}
)

Enum value maps for Operation.

View Source
var File_indykite_knowledge_v1beta1_identity_knowledge_api_proto protoreflect.FileDescriptor
View Source
var File_indykite_knowledge_v1beta1_model_proto protoreflect.FileDescriptor
View Source
var IdentityKnowledgeAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "indykite.knowledge.v1beta1.IdentityKnowledgeAPI",
	HandlerType: (*IdentityKnowledgeAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IdentityKnowledge",
			Handler:    _IdentityKnowledgeAPI_IdentityKnowledge_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "indykite/knowledge/v1beta1/identity_knowledge_api.proto",
}

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

Functions ¶

func RegisterIdentityKnowledgeAPIServer ¶

func RegisterIdentityKnowledgeAPIServer(s grpc.ServiceRegistrar, srv IdentityKnowledgeAPIServer)

Types ¶

type IdentityKnowledgeAPIClient ¶

type IdentityKnowledgeAPIClient interface {
	IdentityKnowledge(ctx context.Context, in *IdentityKnowledgeRequest, opts ...grpc.CallOption) (*IdentityKnowledgeResponse, error)
}

IdentityKnowledgeAPIClient is the client API for IdentityKnowledgeAPI 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 IdentityKnowledgeAPIServer ¶

type IdentityKnowledgeAPIServer interface {
	IdentityKnowledge(context.Context, *IdentityKnowledgeRequest) (*IdentityKnowledgeResponse, error)
}

IdentityKnowledgeAPIServer is the server API for IdentityKnowledgeAPI service. All implementations should embed UnimplementedIdentityKnowledgeAPIServer for forward compatibility

type IdentityKnowledgeRequest ¶

type IdentityKnowledgeRequest struct {
	Operation   Operation              `protobuf:"varint,1,opt,name=operation,proto3,enum=indykite.knowledge.v1beta1.Operation" json:"operation,omitempty"`
	Path        string                 `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Conditions  string                 `protobuf:"bytes,3,opt,name=conditions,proto3" json:"conditions,omitempty"`
	InputParams map[string]*InputParam `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*IdentityKnowledgeRequest) Descriptor deprecated

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

Deprecated: Use IdentityKnowledgeRequest.ProtoReflect.Descriptor instead.

func (*IdentityKnowledgeRequest) GetConditions ¶

func (x *IdentityKnowledgeRequest) GetConditions() string

func (*IdentityKnowledgeRequest) GetInputParams ¶ added in v0.17.0

func (x *IdentityKnowledgeRequest) GetInputParams() map[string]*InputParam

func (*IdentityKnowledgeRequest) GetOperation ¶

func (x *IdentityKnowledgeRequest) GetOperation() Operation

func (*IdentityKnowledgeRequest) GetPath ¶

func (x *IdentityKnowledgeRequest) GetPath() string

func (*IdentityKnowledgeRequest) ProtoMessage ¶

func (*IdentityKnowledgeRequest) ProtoMessage()

func (*IdentityKnowledgeRequest) ProtoReflect ¶

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

func (*IdentityKnowledgeRequest) Reset ¶

func (x *IdentityKnowledgeRequest) Reset()

func (*IdentityKnowledgeRequest) String ¶

func (x *IdentityKnowledgeRequest) String() string

func (*IdentityKnowledgeRequest) Validate ¶

func (m *IdentityKnowledgeRequest) Validate() error

Validate checks the field values on IdentityKnowledgeRequest 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 (*IdentityKnowledgeRequest) ValidateAll ¶

func (m *IdentityKnowledgeRequest) ValidateAll() error

ValidateAll checks the field values on IdentityKnowledgeRequest 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 IdentityKnowledgeRequestMultiError, or nil if none found.

type IdentityKnowledgeRequestMultiError ¶

type IdentityKnowledgeRequestMultiError []error

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

func (IdentityKnowledgeRequestMultiError) AllErrors ¶

func (m IdentityKnowledgeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdentityKnowledgeRequestMultiError) Error ¶

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

type IdentityKnowledgeRequestValidationError ¶

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

IdentityKnowledgeRequestValidationError is the validation error returned by IdentityKnowledgeRequest.Validate if the designated constraints aren't met.

func (IdentityKnowledgeRequestValidationError) Cause ¶

Cause function returns cause value.

func (IdentityKnowledgeRequestValidationError) Error ¶

Error satisfies the builtin error interface

func (IdentityKnowledgeRequestValidationError) ErrorName ¶

ErrorName returns error name.

func (IdentityKnowledgeRequestValidationError) Field ¶

Field function returns field value.

func (IdentityKnowledgeRequestValidationError) Key ¶

Key function returns key value.

func (IdentityKnowledgeRequestValidationError) Reason ¶

Reason function returns reason value.

type IdentityKnowledgeResponse ¶

type IdentityKnowledgeResponse struct {
	Paths []*Path `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentityKnowledgeResponse) Descriptor deprecated

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

Deprecated: Use IdentityKnowledgeResponse.ProtoReflect.Descriptor instead.

func (*IdentityKnowledgeResponse) GetPaths ¶

func (x *IdentityKnowledgeResponse) GetPaths() []*Path

func (*IdentityKnowledgeResponse) ProtoMessage ¶

func (*IdentityKnowledgeResponse) ProtoMessage()

func (*IdentityKnowledgeResponse) ProtoReflect ¶

func (*IdentityKnowledgeResponse) Reset ¶

func (x *IdentityKnowledgeResponse) Reset()

func (*IdentityKnowledgeResponse) String ¶

func (x *IdentityKnowledgeResponse) String() string

func (*IdentityKnowledgeResponse) Validate ¶

func (m *IdentityKnowledgeResponse) Validate() error

Validate checks the field values on IdentityKnowledgeResponse 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 (*IdentityKnowledgeResponse) ValidateAll ¶

func (m *IdentityKnowledgeResponse) ValidateAll() error

ValidateAll checks the field values on IdentityKnowledgeResponse 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 IdentityKnowledgeResponseMultiError, or nil if none found.

type IdentityKnowledgeResponseMultiError ¶

type IdentityKnowledgeResponseMultiError []error

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

func (IdentityKnowledgeResponseMultiError) AllErrors ¶

AllErrors returns a list of validation violation errors.

func (IdentityKnowledgeResponseMultiError) Error ¶

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

type IdentityKnowledgeResponseValidationError ¶

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

IdentityKnowledgeResponseValidationError is the validation error returned by IdentityKnowledgeResponse.Validate if the designated constraints aren't met.

func (IdentityKnowledgeResponseValidationError) Cause ¶

Cause function returns cause value.

func (IdentityKnowledgeResponseValidationError) Error ¶

Error satisfies the builtin error interface

func (IdentityKnowledgeResponseValidationError) ErrorName ¶

ErrorName returns error name.

func (IdentityKnowledgeResponseValidationError) Field ¶

Field function returns field value.

func (IdentityKnowledgeResponseValidationError) Key ¶

Key function returns key value.

func (IdentityKnowledgeResponseValidationError) Reason ¶

Reason function returns reason value.

type InputParam ¶ added in v0.17.0

type InputParam struct {

	// Types that are assignable to Value:
	//
	//	*InputParam_StringValue
	//	*InputParam_BoolValue
	//	*InputParam_IntegerValue
	//	*InputParam_DoubleValue
	Value isInputParam_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*InputParam) Descriptor deprecated added in v0.17.0

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

Deprecated: Use InputParam.ProtoReflect.Descriptor instead.

func (*InputParam) GetBoolValue ¶ added in v0.17.0

func (x *InputParam) GetBoolValue() bool

func (*InputParam) GetDoubleValue ¶ added in v0.17.0

func (x *InputParam) GetDoubleValue() float64

func (*InputParam) GetIntegerValue ¶ added in v0.17.0

func (x *InputParam) GetIntegerValue() int64

func (*InputParam) GetStringValue ¶ added in v0.17.0

func (x *InputParam) GetStringValue() string

func (*InputParam) GetValue ¶ added in v0.17.0

func (m *InputParam) GetValue() isInputParam_Value

func (*InputParam) ProtoMessage ¶ added in v0.17.0

func (*InputParam) ProtoMessage()

func (*InputParam) ProtoReflect ¶ added in v0.17.0

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

func (*InputParam) Reset ¶ added in v0.17.0

func (x *InputParam) Reset()

func (*InputParam) String ¶ added in v0.17.0

func (x *InputParam) String() string

func (*InputParam) Validate ¶ added in v0.17.0

func (m *InputParam) Validate() error

Validate checks the field values on InputParam 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 (*InputParam) ValidateAll ¶ added in v0.17.0

func (m *InputParam) ValidateAll() error

ValidateAll checks the field values on InputParam 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 InputParamMultiError, or nil if none found.

type InputParamMultiError ¶ added in v0.17.0

type InputParamMultiError []error

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

func (InputParamMultiError) AllErrors ¶ added in v0.17.0

func (m InputParamMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InputParamMultiError) Error ¶ added in v0.17.0

func (m InputParamMultiError) Error() string

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

type InputParamValidationError ¶ added in v0.17.0

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

InputParamValidationError is the validation error returned by InputParam.Validate if the designated constraints aren't met.

func (InputParamValidationError) Cause ¶ added in v0.17.0

func (e InputParamValidationError) Cause() error

Cause function returns cause value.

func (InputParamValidationError) Error ¶ added in v0.17.0

Error satisfies the builtin error interface

func (InputParamValidationError) ErrorName ¶ added in v0.17.0

func (e InputParamValidationError) ErrorName() string

ErrorName returns error name.

func (InputParamValidationError) Field ¶ added in v0.17.0

Field function returns field value.

func (InputParamValidationError) Key ¶ added in v0.17.0

Key function returns key value.

func (InputParamValidationError) Reason ¶ added in v0.17.0

func (e InputParamValidationError) Reason() string

Reason function returns reason value.

type InputParam_BoolValue ¶ added in v0.17.0

type InputParam_BoolValue struct {
	BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type InputParam_DoubleValue ¶ added in v0.17.0

type InputParam_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type InputParam_IntegerValue ¶ added in v0.17.0

type InputParam_IntegerValue struct {
	IntegerValue int64 `protobuf:"varint,3,opt,name=integer_value,json=integerValue,proto3,oneof"`
}

type InputParam_StringValue ¶ added in v0.17.0

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

type Node ¶

type Node struct {
	Id         string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ExternalId string      `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	Type       string      `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Tags       []string    `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	Properties []*Property `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetExternalId ¶

func (x *Node) GetExternalId() string

func (*Node) GetId ¶

func (x *Node) GetId() string

func (*Node) GetProperties ¶

func (x *Node) GetProperties() []*Property

func (*Node) GetTags ¶

func (x *Node) GetTags() []string

func (*Node) GetType ¶

func (x *Node) GetType() string

func (*Node) ProtoMessage ¶

func (*Node) ProtoMessage()

func (*Node) ProtoReflect ¶

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

func (*Node) Reset ¶

func (x *Node) Reset()

func (*Node) String ¶

func (x *Node) String() string

func (*Node) Validate ¶

func (m *Node) Validate() error

Validate checks the field values on Node 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 (*Node) ValidateAll ¶

func (m *Node) ValidateAll() error

ValidateAll checks the field values on Node 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 NodeMultiError, or nil if none found.

type NodeMultiError ¶

type NodeMultiError []error

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

func (NodeMultiError) AllErrors ¶

func (m NodeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NodeMultiError) Error ¶

func (m NodeMultiError) Error() string

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

type NodeValidationError ¶

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

NodeValidationError is the validation error returned by Node.Validate if the designated constraints aren't met.

func (NodeValidationError) Cause ¶

func (e NodeValidationError) Cause() error

Cause function returns cause value.

func (NodeValidationError) Error ¶

func (e NodeValidationError) Error() string

Error satisfies the builtin error interface

func (NodeValidationError) ErrorName ¶

func (e NodeValidationError) ErrorName() string

ErrorName returns error name.

func (NodeValidationError) Field ¶

func (e NodeValidationError) Field() string

Field function returns field value.

func (NodeValidationError) Key ¶

func (e NodeValidationError) Key() bool

Key function returns key value.

func (NodeValidationError) Reason ¶

func (e NodeValidationError) Reason() string

Reason function returns reason value.

type Operation ¶

type Operation int32
const (
	Operation_OPERATION_INVALID Operation = 0
	Operation_OPERATION_READ    Operation = 1 // in the future we'll had UPSERT and DELETE as well
)

func (Operation) Descriptor ¶

func (Operation) Descriptor() protoreflect.EnumDescriptor

func (Operation) Enum ¶

func (x Operation) Enum() *Operation

func (Operation) EnumDescriptor deprecated

func (Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation.Descriptor instead.

func (Operation) Number ¶

func (x Operation) Number() protoreflect.EnumNumber

func (Operation) String ¶

func (x Operation) String() string

func (Operation) Type ¶

type Path ¶

type Path struct {
	Nodes         []*Node         `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Relationships []*Relationship `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"`
	// contains filtered or unexported fields
}

func (*Path) Descriptor deprecated

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

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetNodes ¶

func (x *Path) GetNodes() []*Node

func (*Path) GetRelationships ¶

func (x *Path) GetRelationships() []*Relationship

func (*Path) ProtoMessage ¶

func (*Path) ProtoMessage()

func (*Path) ProtoReflect ¶

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

func (*Path) Reset ¶

func (x *Path) Reset()

func (*Path) String ¶

func (x *Path) String() string

func (*Path) Validate ¶

func (m *Path) Validate() error

Validate checks the field values on Path 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 (*Path) ValidateAll ¶

func (m *Path) ValidateAll() error

ValidateAll checks the field values on Path 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 PathMultiError, or nil if none found.

type PathMultiError ¶

type PathMultiError []error

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

func (PathMultiError) AllErrors ¶

func (m PathMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PathMultiError) Error ¶

func (m PathMultiError) Error() string

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

type PathValidationError ¶

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

PathValidationError is the validation error returned by Path.Validate if the designated constraints aren't met.

func (PathValidationError) Cause ¶

func (e PathValidationError) Cause() error

Cause function returns cause value.

func (PathValidationError) Error ¶

func (e PathValidationError) Error() string

Error satisfies the builtin error interface

func (PathValidationError) ErrorName ¶

func (e PathValidationError) ErrorName() string

ErrorName returns error name.

func (PathValidationError) Field ¶

func (e PathValidationError) Field() string

Field function returns field value.

func (PathValidationError) Key ¶

func (e PathValidationError) Key() bool

Key function returns key value.

func (PathValidationError) Reason ¶

func (e PathValidationError) Reason() string

Reason function returns reason value.

type Property ¶

type Property struct {
	Key   string         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *v1beta1.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // todo: add metadata for properties
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetKey ¶

func (x *Property) GetKey() string

func (*Property) GetValue ¶

func (x *Property) GetValue() *v1beta1.Value

func (*Property) ProtoMessage ¶

func (*Property) ProtoMessage()

func (*Property) ProtoReflect ¶

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

func (*Property) Reset ¶

func (x *Property) Reset()

func (*Property) String ¶

func (x *Property) String() string

func (*Property) Validate ¶

func (m *Property) Validate() error

Validate checks the field values on Property 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 (*Property) ValidateAll ¶

func (m *Property) ValidateAll() error

ValidateAll checks the field values on Property 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 PropertyMultiError, or nil if none found.

type PropertyMultiError ¶

type PropertyMultiError []error

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

func (PropertyMultiError) AllErrors ¶

func (m PropertyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PropertyMultiError) Error ¶

func (m PropertyMultiError) Error() string

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

type PropertyValidationError ¶

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

PropertyValidationError is the validation error returned by Property.Validate if the designated constraints aren't met.

func (PropertyValidationError) Cause ¶

func (e PropertyValidationError) Cause() error

Cause function returns cause value.

func (PropertyValidationError) Error ¶

func (e PropertyValidationError) Error() string

Error satisfies the builtin error interface

func (PropertyValidationError) ErrorName ¶

func (e PropertyValidationError) ErrorName() string

ErrorName returns error name.

func (PropertyValidationError) Field ¶

func (e PropertyValidationError) Field() string

Field function returns field value.

func (PropertyValidationError) Key ¶

func (e PropertyValidationError) Key() bool

Key function returns key value.

func (PropertyValidationError) Reason ¶

func (e PropertyValidationError) Reason() string

Reason function returns reason value.

type Relationship ¶

type Relationship struct {
	Id         string                    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type       string                    `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Source     string                    `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	Target     string                    `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`
	Properties map[string]*v1beta1.Value `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Relationship) Descriptor deprecated

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

Deprecated: Use Relationship.ProtoReflect.Descriptor instead.

func (*Relationship) GetId ¶

func (x *Relationship) GetId() string

func (*Relationship) GetProperties ¶

func (x *Relationship) GetProperties() map[string]*v1beta1.Value

func (*Relationship) GetSource ¶

func (x *Relationship) GetSource() string

func (*Relationship) GetTarget ¶

func (x *Relationship) GetTarget() string

func (*Relationship) GetType ¶

func (x *Relationship) GetType() string

func (*Relationship) ProtoMessage ¶

func (*Relationship) ProtoMessage()

func (*Relationship) ProtoReflect ¶

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

func (*Relationship) Reset ¶

func (x *Relationship) Reset()

func (*Relationship) String ¶

func (x *Relationship) String() string

func (*Relationship) Validate ¶

func (m *Relationship) Validate() error

Validate checks the field values on Relationship 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 (*Relationship) ValidateAll ¶

func (m *Relationship) ValidateAll() error

ValidateAll checks the field values on Relationship 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 RelationshipMultiError, or nil if none found.

type RelationshipMultiError ¶

type RelationshipMultiError []error

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

func (RelationshipMultiError) AllErrors ¶

func (m RelationshipMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationshipMultiError) Error ¶

func (m RelationshipMultiError) Error() string

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

type RelationshipValidationError ¶

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

RelationshipValidationError is the validation error returned by Relationship.Validate if the designated constraints aren't met.

func (RelationshipValidationError) Cause ¶

Cause function returns cause value.

func (RelationshipValidationError) Error ¶

Error satisfies the builtin error interface

func (RelationshipValidationError) ErrorName ¶

func (e RelationshipValidationError) ErrorName() string

ErrorName returns error name.

func (RelationshipValidationError) Field ¶

Field function returns field value.

func (RelationshipValidationError) Key ¶

Key function returns key value.

func (RelationshipValidationError) Reason ¶

Reason function returns reason value.

type UnimplementedIdentityKnowledgeAPIServer ¶

type UnimplementedIdentityKnowledgeAPIServer struct {
}

UnimplementedIdentityKnowledgeAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedIdentityKnowledgeAPIServer) IdentityKnowledge ¶

type UnsafeIdentityKnowledgeAPIServer ¶

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

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

Jump to

Keyboard shortcuts

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