opts

package
v0.0.0-...-8684f01 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional opts.Options field = 1035;
	E_Field = &file_opts_proto_extTypes[1]
)

Extension fields to descriptor.FieldOptions.

View Source
var (
	// optional opts.Options field_defaults = 1035;
	E_FieldDefaults = &file_opts_proto_extTypes[0]
)

Extension fields to descriptor.MessageOptions.

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"`
	// contains filtered or unexported fields
}

func (*Options) Descriptor deprecated

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

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetFieldBehavior

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

func (*Options) GetRequired

func (x *Options) GetRequired() bool

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