Documentation ¶
Index ¶
- Variables
- type IdRequest
- func (*IdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IdRequest) GetId() string
- func (*IdRequest) ProtoMessage()
- func (x *IdRequest) ProtoReflect() protoreflect.Message
- func (x *IdRequest) Reset()
- func (x *IdRequest) String() string
- func (m *IdRequest) Validate() error
- func (m *IdRequest) ValidateAll() error
- type IdRequestMultiError
- type IdRequestValidationError
- type OpStatus
- type Trait
- func (*Trait) Descriptor() ([]byte, []int)deprecated
- func (x *Trait) GetName() string
- func (x *Trait) GetProperties() map[string]*anypb.Any
- func (x *Trait) GetType() string
- func (*Trait) ProtoMessage()
- func (x *Trait) ProtoReflect() protoreflect.Message
- func (x *Trait) Reset()
- func (x *Trait) String() string
- func (m *Trait) Validate() error
- func (m *Trait) ValidateAll() error
- type TraitMultiError
- type TraitValidationError
Constants ¶
This section is empty.
Variables ¶
var ( OpStatus_name = map[int32]string{ 0: "OP_STATUS_DISABLED", 1: "OP_STATUS_ENABLED", } OpStatus_value = map[string]int32{ "OP_STATUS_DISABLED": 0, "OP_STATUS_ENABLED": 1, } )
Enum value maps for OpStatus.
var File_kiae_op_status_proto protoreflect.FileDescriptor
var File_kiae_request_proto protoreflect.FileDescriptor
var File_kiae_trait_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IdRequest ¶
type IdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdRequest) Descriptor
deprecated
func (*IdRequest) ProtoMessage ¶
func (*IdRequest) ProtoMessage()
func (*IdRequest) ProtoReflect ¶
func (x *IdRequest) ProtoReflect() protoreflect.Message
func (*IdRequest) Validate ¶
Validate checks the field values on IdRequest 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 (*IdRequest) ValidateAll ¶
ValidateAll checks the field values on IdRequest 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 IdRequestMultiError, or nil if none found.
type IdRequestMultiError ¶
type IdRequestMultiError []error
IdRequestMultiError is an error wrapping multiple validation errors returned by IdRequest.ValidateAll() if the designated constraints aren't met.
func (IdRequestMultiError) AllErrors ¶
func (m IdRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdRequestMultiError) Error ¶
func (m IdRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdRequestValidationError ¶
type IdRequestValidationError struct {
// contains filtered or unexported fields
}
IdRequestValidationError is the validation error returned by IdRequest.Validate if the designated constraints aren't met.
func (IdRequestValidationError) Cause ¶
func (e IdRequestValidationError) Cause() error
Cause function returns cause value.
func (IdRequestValidationError) Error ¶
func (e IdRequestValidationError) Error() string
Error satisfies the builtin error interface
func (IdRequestValidationError) ErrorName ¶
func (e IdRequestValidationError) ErrorName() string
ErrorName returns error name.
func (IdRequestValidationError) Field ¶
func (e IdRequestValidationError) Field() string
Field function returns field value.
func (IdRequestValidationError) Key ¶
func (e IdRequestValidationError) Key() bool
Key function returns key value.
func (IdRequestValidationError) Reason ¶
func (e IdRequestValidationError) Reason() string
Reason function returns reason value.
type OpStatus ¶
type OpStatus int32
func (OpStatus) Descriptor ¶
func (OpStatus) Descriptor() protoreflect.EnumDescriptor
func (OpStatus) EnumDescriptor
deprecated
func (OpStatus) Number ¶
func (x OpStatus) Number() protoreflect.EnumNumber
func (OpStatus) Type ¶
func (OpStatus) Type() protoreflect.EnumType
type Trait ¶
type Trait struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Properties map[string]*anypb.Any `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Trait) Descriptor
deprecated
func (*Trait) ProtoMessage ¶
func (*Trait) ProtoMessage()
func (*Trait) ProtoReflect ¶
func (x *Trait) ProtoReflect() protoreflect.Message
func (*Trait) Validate ¶
Validate checks the field values on Trait 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 (*Trait) ValidateAll ¶
ValidateAll checks the field values on Trait 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 TraitMultiError, or nil if none found.
type TraitMultiError ¶
type TraitMultiError []error
TraitMultiError is an error wrapping multiple validation errors returned by Trait.ValidateAll() if the designated constraints aren't met.
func (TraitMultiError) AllErrors ¶
func (m TraitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TraitMultiError) Error ¶
func (m TraitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TraitValidationError ¶
type TraitValidationError struct {
// contains filtered or unexported fields
}
TraitValidationError is the validation error returned by Trait.Validate if the designated constraints aren't met.
func (TraitValidationError) Cause ¶
func (e TraitValidationError) Cause() error
Cause function returns cause value.
func (TraitValidationError) Error ¶
func (e TraitValidationError) Error() string
Error satisfies the builtin error interface
func (TraitValidationError) ErrorName ¶
func (e TraitValidationError) ErrorName() string
ErrorName returns error name.
func (TraitValidationError) Field ¶
func (e TraitValidationError) Field() string
Field function returns field value.
func (TraitValidationError) Key ¶
func (e TraitValidationError) Key() bool
Key function returns key value.
func (TraitValidationError) Reason ¶
func (e TraitValidationError) Reason() string
Reason function returns reason value.