pbdefaults

package
v0.0.0-...-c713541 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional defaults.FieldOptions field = 64020;
	E_Field = &file_defaults_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional defaults.OneOfOptions oneof = 64021;
	E_Oneof = &file_defaults_proto_extTypes[1]
)

Extension fields to descriptorpb.OneofOptions.

View Source
var File_defaults_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FieldOptions

type FieldOptions struct {

	// Set default value for field that types includes:
	// string, enum, bool,
	// int32, int64, sint32, sint64, sfixed32, sfixed64,
	// uint32, uint64,fixed32, fixed64.
	Basic *string `protobuf:"bytes,101,opt,name=basic,proto3,oneof" json:"basic,omitempty"`
	// Set default value for field of types repeated.
	Array []string `protobuf:"bytes,102,rep,name=array,proto3" json:"array,omitempty"`
	// Set default value for field of types map.
	Map map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FieldOptions) Descriptor deprecated

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

Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.

func (*FieldOptions) GetArray

func (x *FieldOptions) GetArray() []string

func (*FieldOptions) GetBasic

func (x *FieldOptions) GetBasic() string

func (*FieldOptions) GetMap

func (x *FieldOptions) GetMap() map[string]string

func (*FieldOptions) ProtoMessage

func (*FieldOptions) ProtoMessage()

func (*FieldOptions) ProtoReflect

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

func (*FieldOptions) Reset

func (x *FieldOptions) Reset()

func (*FieldOptions) String

func (x *FieldOptions) String() string

type OneOfOptions

type OneOfOptions struct {

	// The field name that in oneof part.
	Field *string `protobuf:"bytes,1,opt,name=field,proto3,oneof" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*OneOfOptions) Descriptor deprecated

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

Deprecated: Use OneOfOptions.ProtoReflect.Descriptor instead.

func (*OneOfOptions) GetField

func (x *OneOfOptions) GetField() string

func (*OneOfOptions) ProtoMessage

func (*OneOfOptions) ProtoMessage()

func (*OneOfOptions) ProtoReflect

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

func (*OneOfOptions) Reset

func (x *OneOfOptions) Reset()

func (*OneOfOptions) String

func (x *OneOfOptions) String() string

Jump to

Keyboard shortcuts

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