field_options_pb

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 6 Imported by: 0

README

field_options_pb

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional int32 int32_value = 50000;
	E_Int32Value = &file_field_options_proto_extTypes[0]
	// optional int32 int32_min_inclusive = 50001;
	E_Int32MinInclusive = &file_field_options_proto_extTypes[1]
	// optional int32 int32_min_exclusive = 50002;
	E_Int32MinExclusive = &file_field_options_proto_extTypes[2]
	// optional int32 int32_max_inclusive = 50003;
	E_Int32MaxInclusive = &file_field_options_proto_extTypes[3]
	// optional int32 int32_max_exclusive = 50004;
	E_Int32MaxExclusive = &file_field_options_proto_extTypes[4]
	// optional int32 list_elements = 50010;
	E_ListElements = &file_field_options_proto_extTypes[5]
	// optional int32 list_min_elements = 50011;
	E_ListMinElements = &file_field_options_proto_extTypes[6]
	// optional int32 list_max_elements = 50012;
	E_ListMaxElements = &file_field_options_proto_extTypes[7]
	// optional string string_value = 50020;
	E_StringValue = &file_field_options_proto_extTypes[8]
	// optional string string_regex = 50021;
	E_StringRegex = &file_field_options_proto_extTypes[9]
	// optional int32 string_length = 50022;
	E_StringLength = &file_field_options_proto_extTypes[10]
	// optional int32 string_min_length = 50023;
	E_StringMinLength = &file_field_options_proto_extTypes[11]
	// optional int32 string_max_length = 50024;
	E_StringMaxLength = &file_field_options_proto_extTypes[12]
)

Extension fields to descriptor.FieldOptions.

View Source
var File_field_options_proto protoreflect.FileDescriptor
View Source
var File_person_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Person

type Person struct {

	// Name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Age.
	Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
	// Parent names.
	ParentNames []string `protobuf:"bytes,3,rep,name=parent_names,json=parentNames,proto3" json:"parent_names,omitempty"`
	// contains filtered or unexported fields
}

Person.

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetAge

func (x *Person) GetAge() int32

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) GetParentNames

func (x *Person) GetParentNames() []string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

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

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

Jump to

Keyboard shortcuts

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