Documentation
¶
Index ¶
- Constants
- Variables
- type IP
- type IP_builder
- type OneOfObject
- func (x *OneOfObject) ClearBar()
- func (x *OneOfObject) ClearFoo()
- func (x *OneOfObject) ClearFooBar()
- func (x *OneOfObject) GetBar() int64
- func (x *OneOfObject) GetFoo() string
- func (x *OneOfObject) GetFooBar() isOneOfObject_FooBar
- func (x *OneOfObject) HasBar() bool
- func (x *OneOfObject) HasFoo() bool
- func (x *OneOfObject) HasFooBar() bool
- func (*OneOfObject) ProtoMessage()
- func (x *OneOfObject) ProtoReflect() protoreflect.Message
- func (x *OneOfObject) Reset()
- func (x *OneOfObject) SetBar(v int64)
- func (x *OneOfObject) SetFoo(v string)
- func (x *OneOfObject) String() string
- func (x *OneOfObject) WhichFooBar() case_OneOfObject_FooBar
- type OneOfObject_Bar
- type OneOfObject_Foo
- type OneOfObject_builder
- type Params
- type Params_builder
- type Record
- func (x *Record) ClearTestAny()
- func (x *Record) ClearTestEmpty()
- func (x *Record) GetId() string
- func (x *Record) GetTestAny() *anypb.Any
- func (x *Record) GetTestEmpty() *emptypb.Empty
- func (x *Record) HasTestAny() bool
- func (x *Record) HasTestEmpty() bool
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) SetId(v string)
- func (x *Record) SetTestAny(v *anypb.Any)
- func (x *Record) SetTestEmpty(v *emptypb.Empty)
- func (x *Record) String() string
- type Record_builder
- type URL
- func (x *URL) GetPort() int32
- func (x *URL) GetScheme() string
- func (x *URL) GetUrl() string
- func (*URL) ProtoMessage()
- func (x *URL) ProtoReflect() protoreflect.Message
- func (x *URL) Reset()
- func (x *URL) SetPort(v int32)
- func (x *URL) SetScheme(v string)
- func (x *URL) SetUrl(v string)
- func (x *URL) String() string
- type URL_builder
Constants ¶
View Source
const OneOfObject_Bar_case case_OneOfObject_FooBar = 2
View Source
const OneOfObject_FooBar_not_set_case case_OneOfObject_FooBar = 0
View Source
const OneOfObject_Foo_case case_OneOfObject_FooBar = 1
Variables ¶
View Source
var File_pb_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:"Address,omitempty"` // @gotags: valid:"ip" yaml:"ip" json:"overrided"
// contains filtered or unexported fields
}
func (*IP) ProtoReflect ¶
func (x *IP) ProtoReflect() protoreflect.Message
type IP_builder ¶
type IP_builder struct {
Address string
// contains filtered or unexported fields
}
func (IP_builder) Build ¶
func (b0 IP_builder) Build() *IP
type OneOfObject ¶
type OneOfObject struct {
// @gotags: tag:"foo_bar"
//
// Types that are valid to be assigned to FooBar:
//
// *OneOfObject_Foo
// *OneOfObject_Bar
FooBar isOneOfObject_FooBar `protobuf_oneof:"foo_bar"`
// contains filtered or unexported fields
}
func (*OneOfObject) ClearBar ¶
func (x *OneOfObject) ClearBar()
func (*OneOfObject) ClearFoo ¶
func (x *OneOfObject) ClearFoo()
func (*OneOfObject) ClearFooBar ¶
func (x *OneOfObject) ClearFooBar()
func (*OneOfObject) GetBar ¶
func (x *OneOfObject) GetBar() int64
func (*OneOfObject) GetFoo ¶
func (x *OneOfObject) GetFoo() string
func (*OneOfObject) GetFooBar ¶
func (x *OneOfObject) GetFooBar() isOneOfObject_FooBar
func (*OneOfObject) HasBar ¶
func (x *OneOfObject) HasBar() bool
func (*OneOfObject) HasFoo ¶
func (x *OneOfObject) HasFoo() bool
func (*OneOfObject) HasFooBar ¶
func (x *OneOfObject) HasFooBar() bool
func (*OneOfObject) ProtoMessage ¶
func (*OneOfObject) ProtoMessage()
func (*OneOfObject) ProtoReflect ¶
func (x *OneOfObject) ProtoReflect() protoreflect.Message
func (*OneOfObject) Reset ¶
func (x *OneOfObject) Reset()
func (*OneOfObject) SetBar ¶
func (x *OneOfObject) SetBar(v int64)
func (*OneOfObject) SetFoo ¶
func (x *OneOfObject) SetFoo(v string)
func (*OneOfObject) String ¶
func (x *OneOfObject) String() string
func (*OneOfObject) WhichFooBar ¶
func (x *OneOfObject) WhichFooBar() case_OneOfObject_FooBar
type OneOfObject_Bar ¶
type OneOfObject_Bar struct {
// @gotags: tag:"bar"
Bar int64 `protobuf:"varint,2,opt,name=bar,proto3,oneof"`
}
type OneOfObject_Foo ¶
type OneOfObject_Foo struct {
// @gotags: tag:"foo"
Foo string `protobuf:"bytes,1,opt,name=foo,proto3,oneof"`
}
type OneOfObject_builder ¶
type OneOfObject_builder struct {
// Fields of oneof FooBar:
// @gotags: tag:"foo"
Foo *string
// @gotags: tag:"bar"
Bar *int64
// contains filtered or unexported fields
}
func (OneOfObject_builder) Build ¶
func (b0 OneOfObject_builder) Build() *OneOfObject
type Params ¶
type Params struct {
// @gotags: validate:"omitempty"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type Params_builder ¶
type Params_builder struct {
// @gotags: validate:"omitempty"
Id string
// 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
// contains filtered or unexported fields
}
func (Params_builder) Build ¶
func (b0 Params_builder) Build() *Params
type Record ¶
type Record struct {
// @gotags: validate:"omitempty"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type Record_builder ¶
type Record_builder struct {
// @gotags: validate:"omitempty"
Id string
TestAny *anypb.Any
TestEmpty *emptypb.Empty
// contains filtered or unexported fields
}
func (Record_builder) Build ¶
func (b0 Record_builder) Build() *Record
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"` // @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"`
// contains filtered or unexported fields
}
func (*URL) ProtoReflect ¶
func (x *URL) ProtoReflect() protoreflect.Message
type URL_builder ¶
type URL_builder 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
Url string
// Test legacy field name.
// @inject_tags: valid:"nonzero"
Port int32
// contains filtered or unexported fields
}
func (URL_builder) Build ¶
func (b0 URL_builder) Build() *URL
Source Files
¶
- test.pb.go
Click to show internal directories.
Click to hide internal directories.