Documentation ¶
Index ¶
- Variables
- type IP
- type OneOfObject
- func (*OneOfObject) Descriptor() ([]byte, []int)deprecated
- func (x *OneOfObject) GetBar() int64
- func (x *OneOfObject) GetFoo() string
- func (m *OneOfObject) GetFooBar() isOneOfObject_FooBar
- func (*OneOfObject) ProtoMessage()
- func (x *OneOfObject) ProtoReflect() protoreflect.Message
- func (x *OneOfObject) Reset()
- func (x *OneOfObject) String() string
- type OneOfObject_Bar
- type OneOfObject_Foo
- type Params
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetId() string
- func (x *Record) GetTestAny() *anypb.Any
- func (x *Record) GetTestEmpty() *emptypb.Empty
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type URL
- type V2GoTagExpr
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IP ¶
type IP struct { Address string `protobuf:"bytes,1,opt,name=Address,proto3" json:"overrided" valid:"ip" yaml:"ip"` // @gotags: valid:"ip" yaml:"ip" json:"overrided" // contains filtered or unexported fields }
func (*IP) Descriptor
deprecated
func (*IP) GetAddress ¶
func (*IP) ProtoMessage ¶
func (*IP) ProtoMessage()
func (*IP) ProtoReflect ¶
func (x *IP) ProtoReflect() protoreflect.Message
type OneOfObject ¶
type OneOfObject struct { // @gotags: tag:"foo_bar" // // Types that are assignable to FooBar: // // *OneOfObject_Foo // *OneOfObject_Bar FooBar isOneOfObject_FooBar `protobuf_oneof:"foo_bar" tag:"foo_bar"` // contains filtered or unexported fields }
func (*OneOfObject) Descriptor
deprecated
func (*OneOfObject) Descriptor() ([]byte, []int)
Deprecated: Use OneOfObject.ProtoReflect.Descriptor instead.
func (*OneOfObject) GetBar ¶
func (x *OneOfObject) GetBar() int64
func (*OneOfObject) GetFoo ¶
func (x *OneOfObject) GetFoo() string
func (*OneOfObject) GetFooBar ¶
func (m *OneOfObject) GetFooBar() isOneOfObject_FooBar
func (*OneOfObject) ProtoMessage ¶
func (*OneOfObject) ProtoMessage()
func (*OneOfObject) ProtoReflect ¶
func (x *OneOfObject) ProtoReflect() protoreflect.Message
func (*OneOfObject) Reset ¶
func (x *OneOfObject) Reset()
func (*OneOfObject) String ¶
func (x *OneOfObject) String() string
type OneOfObject_Bar ¶
type OneOfObject_Bar struct { // @gotags: tag:"bar" Bar int64 `protobuf:"varint,2,opt,name=bar,proto3,oneof" tag:"bar"` }
type OneOfObject_Foo ¶
type OneOfObject_Foo struct { // @gotags: tag:"foo" Foo string `protobuf:"bytes,1,opt,name=foo,proto3,oneof" tag:"foo"` }
type Params ¶
type Params struct { // @gotags: validate:"omitempty" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"omitempty"` // gets converted into XXX_Deprecated, for use with testing pre-v1.4.x protoc-gen-go // functionality that exposes unknown fields as public. XXX_Deprecated string `protobuf:"bytes,2,opt,name=XXX__deprecated,json=XXXDeprecated,proto3" json:"XXX__deprecated,omitempty"` // contains filtered or unexported fields }
func (*Params) Descriptor
deprecated
func (*Params) GetXXX_Deprecated ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type Record ¶
type Record struct { // @gotags: validate:"omitempty" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"omitempty"` TestAny *anypb.Any `protobuf:"bytes,2,opt,name=test_any,json=testAny,proto3" json:"test_any,omitempty"` TestEmpty *emptypb.Empty `protobuf:"bytes,3,opt,name=test_empty,json=testEmpty,proto3" json:"test_empty,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetTestAny ¶
func (*Record) GetTestEmpty ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type URL ¶
type URL struct { // below is an example where the line-specific comment should take precedence // over the "doc" comment, which is known to be more free-form. On the // resulting struct field, you should see `valid:"http|https"` added, not // `valid:"-"`. // // @gotags: valid:"-" Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty" valid:"-"` // @gotags: valid:"http|https" Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Test legacy field name. // @inject_tags: valid:"nonzero" Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty" valid:"nonzero"` // contains filtered or unexported fields }
func (*URL) Descriptor
deprecated
func (*URL) ProtoMessage ¶
func (*URL) ProtoMessage()
func (*URL) ProtoReflect ¶
func (x *URL) ProtoReflect() protoreflect.Message
type V2GoTagExpr ¶
type V2GoTagExpr struct { // @go_tags(`validate:"required"`) UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" validate:"required"` // 用户id // contains filtered or unexported fields }
func (*V2GoTagExpr) Descriptor
deprecated
func (*V2GoTagExpr) Descriptor() ([]byte, []int)
Deprecated: Use V2GoTagExpr.ProtoReflect.Descriptor instead.
func (*V2GoTagExpr) GetUserId ¶
func (x *V2GoTagExpr) GetUserId() int64
func (*V2GoTagExpr) ProtoMessage ¶
func (*V2GoTagExpr) ProtoMessage()
func (*V2GoTagExpr) ProtoReflect ¶
func (x *V2GoTagExpr) ProtoReflect() protoreflect.Message
func (*V2GoTagExpr) Reset ¶
func (x *V2GoTagExpr) Reset()
func (*V2GoTagExpr) String ¶
func (x *V2GoTagExpr) String() string
Click to show internal directories.
Click to hide internal directories.