gopb

package
v0.0.0-...-b7b212d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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.

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

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetGetterName

func (x *Options) GetGetterName() string

func (*Options) GetJsonTag

func (x *Options) GetJsonTag() 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