opts

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_Field = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*Options)(nil),
	Field:         1035,
	Name:          "opts.field",
	Tag:           "bytes,1035,opt,name=field",
	Filename:      "opts.proto",
}
View Source
var E_FieldDefaults = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*Options)(nil),
	Field:         1035,
	Name:          "opts.field_defaults",
	Tag:           "bytes,1035,opt,name=field_defaults",
	Filename:      "opts.proto",
}

Functions

This section is empty.

Types

type Options

type Options struct {
	// Denotes that a field should not be considered optional.
	Required             *bool                      `protobuf:"varint,1,opt,name=required" json:"required,omitempty"`
	FieldBehavior        *annotations.FieldBehavior `protobuf:"varint,2,opt,name=field_behavior,json=fieldBehavior,enum=google.api.FieldBehavior" json:"field_behavior,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*Options) Descriptor

func (*Options) Descriptor() ([]byte, []int)

func (*Options) GetFieldBehavior

func (m *Options) GetFieldBehavior() annotations.FieldBehavior

func (*Options) GetRequired

func (m *Options) GetRequired() bool

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) Reset

func (m *Options) Reset()

func (*Options) String

func (m *Options) String() string

func (*Options) XXX_DiscardUnknown

func (m *Options) XXX_DiscardUnknown()

func (*Options) XXX_Marshal

func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Options) XXX_Merge

func (m *Options) XXX_Merge(src proto.Message)

func (*Options) XXX_Size

func (m *Options) XXX_Size() int

func (*Options) XXX_Unmarshal

func (m *Options) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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