Documentation ¶
Index ¶
- Variables
- type Action
- type Foo
- type InnerMessage
- func (*InnerMessage) Descriptor() ([]byte, []int)deprecated
- func (x *InnerMessage) GetSomeInteger() int32
- func (*InnerMessage) ProtoMessage()
- func (x *InnerMessage) ProtoReflect() protoreflect.Message
- func (x *InnerMessage) Reset()
- func (x *InnerMessage) String() string
- func (this *InnerMessage) Validate() error
- type OuterMessage
- func (*OuterMessage) Descriptor() ([]byte, []int)deprecated
- func (x *OuterMessage) GetImportantString() string
- func (x *OuterMessage) GetInner() *InnerMessage
- func (*OuterMessage) ProtoMessage()
- func (x *OuterMessage) ProtoReflect() protoreflect.Message
- func (x *OuterMessage) Reset()
- func (x *OuterMessage) String() string
- func (this *OuterMessage) Validate() error
- type SomeMsg
- type UUIDMsg
- func (*UUIDMsg) Descriptor() ([]byte, []int)deprecated
- func (x *UUIDMsg) GetAbc() []string
- func (x *UUIDMsg) GetUserId() string
- func (x *UUIDMsg) GetXyz() []*v1.UUID
- func (*UUIDMsg) ProtoMessage()
- func (x *UUIDMsg) ProtoReflect() protoreflect.Message
- func (x *UUIDMsg) Reset()
- func (x *UUIDMsg) String() string
- func (this *UUIDMsg) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Action_name = map[int32]string{ 0: "ALLOW", 1: "DENY", 2: "CHILL", } Action_value = map[string]int32{ "ALLOW": 0, "DENY": 1, "CHILL": 2, } )
Enum value maps for Action.
View Source
var File_examples_enum_proto protoreflect.FileDescriptor
View Source
var File_examples_nested_proto protoreflect.FileDescriptor
View Source
var File_examples_uuid_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int32
func (Action) Descriptor ¶ added in v0.4.0
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
func (Action) Number ¶ added in v0.4.0
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶ added in v0.4.0
func (Action) Type() protoreflect.EnumType
type Foo ¶
type Foo struct {
// contains filtered or unexported fields
}
func (*Foo) Descriptor
deprecated
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) ProtoReflect ¶
func (x *Foo) ProtoReflect() protoreflect.Message
type InnerMessage ¶
type InnerMessage struct { // some_integer can only be in range (1, 100). SomeInteger int32 `protobuf:"varint,1,opt,name=some_integer,json=someInteger,proto3" json:"some_integer,omitempty"` // contains filtered or unexported fields }
func (*InnerMessage) Descriptor
deprecated
func (*InnerMessage) Descriptor() ([]byte, []int)
Deprecated: Use InnerMessage.ProtoReflect.Descriptor instead.
func (*InnerMessage) GetSomeInteger ¶
func (x *InnerMessage) GetSomeInteger() int32
func (*InnerMessage) ProtoMessage ¶
func (*InnerMessage) ProtoMessage()
func (*InnerMessage) ProtoReflect ¶ added in v0.4.0
func (x *InnerMessage) ProtoReflect() protoreflect.Message
func (*InnerMessage) Reset ¶
func (x *InnerMessage) Reset()
func (*InnerMessage) String ¶
func (x *InnerMessage) String() string
func (*InnerMessage) Validate ¶
func (this *InnerMessage) Validate() error
type OuterMessage ¶
type OuterMessage struct { // important_string must be a lowercase alpha-numeric of 5 to 30 characters (RE2 syntax). ImportantString string `protobuf:"bytes,1,opt,name=important_string,json=importantString,proto3" json:"important_string,omitempty"` // proto3 doesn't have `required`, the `msg_exist` enforces presence of InnerMessage. Inner *InnerMessage `protobuf:"bytes,2,opt,name=inner,proto3" json:"inner,omitempty"` // contains filtered or unexported fields }
func (*OuterMessage) Descriptor
deprecated
func (*OuterMessage) Descriptor() ([]byte, []int)
Deprecated: Use OuterMessage.ProtoReflect.Descriptor instead.
func (*OuterMessage) GetImportantString ¶
func (x *OuterMessage) GetImportantString() string
func (*OuterMessage) GetInner ¶
func (x *OuterMessage) GetInner() *InnerMessage
func (*OuterMessage) ProtoMessage ¶
func (*OuterMessage) ProtoMessage()
func (*OuterMessage) ProtoReflect ¶ added in v0.4.0
func (x *OuterMessage) ProtoReflect() protoreflect.Message
func (*OuterMessage) Reset ¶
func (x *OuterMessage) Reset()
func (*OuterMessage) String ¶
func (x *OuterMessage) String() string
func (*OuterMessage) Validate ¶
func (this *OuterMessage) Validate() error
type SomeMsg ¶
type SomeMsg struct { Do Action `protobuf:"varint,1,opt,name=do,proto3,enum=validator.examples.Action" json:"do,omitempty"` // contains filtered or unexported fields }
func (*SomeMsg) Descriptor
deprecated
func (*SomeMsg) ProtoMessage ¶
func (*SomeMsg) ProtoMessage()
func (*SomeMsg) ProtoReflect ¶ added in v0.4.0
func (x *SomeMsg) ProtoReflect() protoreflect.Message
type UUIDMsg ¶
type UUIDMsg struct { // user_id must be a valid version 4 UUID. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Xyz []*v1.UUID `protobuf:"bytes,2,rep,name=xyz,proto3" json:"xyz,omitempty"` Abc []string `protobuf:"bytes,3,rep,name=abc,proto3" json:"abc,omitempty"` // contains filtered or unexported fields }
func (*UUIDMsg) Descriptor
deprecated
func (*UUIDMsg) ProtoMessage ¶
func (*UUIDMsg) ProtoMessage()
func (*UUIDMsg) ProtoReflect ¶
func (x *UUIDMsg) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.