Documentation ¶
Overview ¶
Package validator_examples is a generated protocol buffer package.
It is generated from these files:
examples/nested.proto
It has these top-level messages:
InnerMessage OuterMessage
Package validator_examples is a generated protocol buffer package.
It is generated from these files:
examples/nested.proto
It has these top-level messages:
InnerMessage OuterMessage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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" json:"some_integer,omitempty"` }
func (*InnerMessage) Descriptor ¶
func (*InnerMessage) Descriptor() ([]byte, []int)
func (*InnerMessage) ProtoMessage ¶
func (*InnerMessage) ProtoMessage()
func (*InnerMessage) Reset ¶
func (m *InnerMessage) Reset()
func (*InnerMessage) String ¶
func (m *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" json:"important_string,omitempty"` // proto3 doesn't have `required`, the `msg_exist` enforces presence of InnerMessage. Inner *InnerMessage `protobuf:"bytes,2,opt,name=inner" json:"inner,omitempty"` }
func (*OuterMessage) Descriptor ¶
func (*OuterMessage) Descriptor() ([]byte, []int)
func (*OuterMessage) GetInner ¶
func (m *OuterMessage) GetInner() *InnerMessage
func (*OuterMessage) ProtoMessage ¶
func (*OuterMessage) ProtoMessage()
func (*OuterMessage) Reset ¶
func (m *OuterMessage) Reset()
func (*OuterMessage) String ¶
func (m *OuterMessage) String() string
func (*OuterMessage) Validate ¶
func (this *OuterMessage) Validate() error
Click to show internal directories.
Click to hide internal directories.