Documentation ¶
Index ¶
- Variables
- type FileOptions
- func (*FileOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FileOptions) GetNoEnumPrefix() bool
- func (x *FileOptions) GetNonOmitempty() bool
- func (*FileOptions) ProtoMessage()
- func (x *FileOptions) ProtoReflect() protoreflect.Message
- func (x *FileOptions) Reset()
- func (x *FileOptions) String() string
- type Options
- func (*Options) Descriptor() ([]byte, []int)deprecated
- func (x *Options) GetGetterName() 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 = 7002;
E_Enum = &file_cherry_protobuf_utils_patch_go_proto_extTypes[3]
)
Extension fields to descriptorpb.EnumOptions.
View Source
var (
// optional go.Options field = 7002;
E_Field = &file_cherry_protobuf_utils_patch_go_proto_extTypes[1]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var (
// optional go.FileOptions file = 7002;
E_File = &file_cherry_protobuf_utils_patch_go_proto_extTypes[5]
)
Extension fields to descriptorpb.FileOptions.
View Source
var (
// optional go.Options message = 7002;
E_Message = &file_cherry_protobuf_utils_patch_go_proto_extTypes[0]
)
Extension fields to descriptorpb.MessageOptions.
View Source
var (
// optional go.Options oneof = 7001;
E_Oneof = &file_cherry_protobuf_utils_patch_go_proto_extTypes[2]
)
Extension fields to descriptorpb.OneofOptions.
View Source
var (
// optional go.Options value = 7002;
E_Value = &file_cherry_protobuf_utils_patch_go_proto_extTypes[4]
)
Extension fields to descriptorpb.EnumValueOptions.
View Source
var File_cherry_protobuf_utils_patch_go_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileOptions ¶
type FileOptions struct { NonOmitempty *bool `protobuf:"varint,1,opt,name=non_omitempty,json=nonOmitempty" json:"non_omitempty,omitempty"` NoEnumPrefix *bool `protobuf:"varint,10,opt,name=no_enum_prefix,json=noEnumPrefix" json:"no_enum_prefix,omitempty"` // contains filtered or unexported fields }
func (*FileOptions) Descriptor
deprecated
func (*FileOptions) Descriptor() ([]byte, []int)
Deprecated: Use FileOptions.ProtoReflect.Descriptor instead.
func (*FileOptions) GetNoEnumPrefix ¶
func (x *FileOptions) GetNoEnumPrefix() bool
func (*FileOptions) GetNonOmitempty ¶
func (x *FileOptions) GetNonOmitempty() bool
func (*FileOptions) ProtoMessage ¶
func (*FileOptions) ProtoMessage()
func (*FileOptions) ProtoReflect ¶
func (x *FileOptions) ProtoReflect() protoreflect.Message
func (*FileOptions) Reset ¶
func (x *FileOptions) Reset()
func (*FileOptions) String ¶
func (x *FileOptions) String() string
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 // 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) 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.