Documentation ¶
Index ¶
- Variables
- type Options
- func (*Options) Descriptor() ([]byte, []int)deprecated
- func (x *Options) GetGetterName() string
- func (x *Options) GetJsonTag() string
- func (x *Options) GetName() string
- func (x *Options) GetStringerName() string
- func (x *Options) GetTags() string
- func (*Options) ProtoMessage()
- func (x *Options) ProtoReflect() protoreflect.Message
- func (x *Options) Reset()
- func (x *Options) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// optional go.Options enum = 7001;
E_Enum = &file_go_proto_extTypes[3]
)
Extension fields to descriptor.EnumOptions.
View Source
var (
// optional go.Options field = 7001;
E_Field = &file_go_proto_extTypes[1]
)
Extension fields to descriptor.FieldOptions.
View Source
var (
// optional go.Options message = 7001;
E_Message = &file_go_proto_extTypes[0]
)
Extension fields to descriptor.MessageOptions.
View Source
var (
// optional go.Options oneof = 7001;
E_Oneof = &file_go_proto_extTypes[2]
)
Extension fields to descriptor.OneofOptions.
View Source
var (
// optional go.Options value = 7001;
E_Value = &file_go_proto_extTypes[4]
)
Extension fields to descriptor.EnumValueOptions.
View Source
var File_go_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // The name option renames the generated Go identifier and related identifiers. // For a message, this renames the generated Go struct and nested messages or enums, if any. // For a message field, this renames the generated Go struct field and getter method. // For a oneof field, this renames the generated Go struct field, getter method, interface type, and wrapper types. // For an enum, this renames the generated Go type. // For an enum value, this renames the generated Go const. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // The getter_name option renames the generated getter method (default: Get<Field>) // so a custom getter can be implemented in its place. GetterName *string `protobuf:"bytes,10,opt,name=getter_name,json=getterName" json:"getter_name,omitempty"` // TODO: implement this // The tags option specifies additional struct tags which are appended a generated Go struct field. // This option may be specified on a message field or a oneof field. // The value should omit the enclosing backticks. Tags *string `protobuf:"bytes,20,opt,name=tags" json:"tags,omitempty"` // The stringer_name option renames a generated String() method (if any) // so a custom String() method can be implemented in its place. StringerName *string `protobuf:"bytes,30,opt,name=stringer_name,json=stringerName" json:"stringer_name,omitempty"` // TODO: implement for messages JsonTag *string `protobuf:"bytes,40,opt,name=json_tag,json=jsonTag" json:"json_tag,omitempty"` // contains filtered or unexported fields }
Options represent Go-specific options for Protobuf messages, fields, oneofs, enums, or enum values.
func (*Options) Descriptor
deprecated
func (*Options) GetGetterName ¶
func (*Options) GetJsonTag ¶
func (*Options) GetStringerName ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) ProtoReflect ¶
func (x *Options) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.