patch

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional go.Options enum = 7002;
	E_Enum = &file_tiga_protobuf_utils_patch_go_proto_extTypes[3]
	// optional string cn = 7003;
	E_Cn = &file_tiga_protobuf_utils_patch_go_proto_extTypes[4]
)

Extension fields to descriptorpb.EnumOptions.

View Source
var (
	// optional go.Options field = 7002;
	E_Field = &file_tiga_protobuf_utils_patch_go_proto_extTypes[1]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional go.FileOptions file = 7002;
	E_File = &file_tiga_protobuf_utils_patch_go_proto_extTypes[6]
)

Extension fields to descriptorpb.FileOptions.

View Source
var (
	// optional go.Options message = 7002;
	E_Message = &file_tiga_protobuf_utils_patch_go_proto_extTypes[0]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional go.Options oneof = 7001;
	E_Oneof = &file_tiga_protobuf_utils_patch_go_proto_extTypes[2]
)

Extension fields to descriptorpb.OneofOptions.

View Source
var (
	// optional go.Options value = 7002;
	E_Value = &file_tiga_protobuf_utils_patch_go_proto_extTypes[5]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var File_tiga_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) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetGetterName

func (x *Options) GetGetterName() string

func (*Options) GetName

func (x *Options) GetName() string

func (*Options) GetStringerName

func (x *Options) GetStringerName() string

func (*Options) GetTags

func (x *Options) GetTags() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) ProtoReflect

func (x *Options) ProtoReflect() protoreflect.Message

func (*Options) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL