kiae

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_kiae_op_status_proto protoreflect.FileDescriptor
View Source
var File_kiae_request_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use IdRequest.ProtoReflect.Descriptor instead.

func (*IdRequest) GetId

func (x *IdRequest) GetId() string

func (*IdRequest) ProtoMessage

func (*IdRequest) ProtoMessage()

func (*IdRequest) ProtoReflect

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

func (*IdRequest) Reset

func (x *IdRequest) Reset()

func (*IdRequest) String

func (x *IdRequest) String() string

func (*IdRequest) Validate

func (m *IdRequest) Validate() error

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

func (m *IdRequest) ValidateAll() error

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

Key function returns key value.

func (IdRequestValidationError) Reason

func (e IdRequestValidationError) Reason() string

Reason function returns reason value.

type OpStatus

type OpStatus int32
const (
	OpStatus_OP_STATUS_DISABLED OpStatus = 0
	OpStatus_OP_STATUS_ENABLED  OpStatus = 1
)

func (OpStatus) Descriptor

func (OpStatus) Descriptor() protoreflect.EnumDescriptor

func (OpStatus) Enum

func (x OpStatus) Enum() *OpStatus

func (OpStatus) EnumDescriptor deprecated

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

Deprecated: Use OpStatus.Descriptor instead.

func (OpStatus) Number

func (x OpStatus) Number() protoreflect.EnumNumber

func (OpStatus) String

func (x OpStatus) String() string

func (OpStatus) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Trait.ProtoReflect.Descriptor instead.

func (*Trait) GetName

func (x *Trait) GetName() string

func (*Trait) GetProperties

func (x *Trait) GetProperties() map[string]*anypb.Any

func (*Trait) GetType

func (x *Trait) GetType() string

func (*Trait) ProtoMessage

func (*Trait) ProtoMessage()

func (*Trait) ProtoReflect

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

func (*Trait) Reset

func (x *Trait) Reset()

func (*Trait) String

func (x *Trait) String() string

func (*Trait) Validate

func (m *Trait) Validate() error

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

func (m *Trait) ValidateAll() error

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.

Jump to

Keyboard shortcuts

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