Back to godoc.org

Package registry

v1.25.0
Latest Go to latest
Published: Jun 22, 2020 | License: BSD-3-Clause | Module: google.golang.org/protobuf

Index

Package Files

Variables

var (
	Enum1_name = map[int32]string{
		1: "ONE",
	}
	Enum1_value = map[string]int32{
		"ONE": 1,
	}
)

Enum value maps for Enum1.

var (
	Enum2_name = map[int32]string{
		1: "UNO",
	}
	Enum2_value = map[string]int32{
		"UNO": 1,
	}
)

Enum value maps for Enum2.

var (
	Enum3_name = map[int32]string{
		1: "YI",
	}
	Enum3_value = map[string]int32{
		"YI": 1,
	}
)

Enum value maps for Enum3.

var (
	// optional string string_field = 11;
	E_StringField = &file_internal_testprotos_registry_test_proto_extTypes[0]
	// optional testprotos.Enum1 enum_field = 12;
	E_EnumField = &file_internal_testprotos_registry_test_proto_extTypes[1]
	// optional testprotos.Message2 message_field = 13;
	E_MessageField = &file_internal_testprotos_registry_test_proto_extTypes[2]
	// optional testprotos.Message2 message_field = 21;
	E_Message4_MessageField = &file_internal_testprotos_registry_test_proto_extTypes[3]
	// optional testprotos.Enum1 enum_field = 22;
	E_Message4_EnumField = &file_internal_testprotos_registry_test_proto_extTypes[4]
	// optional string string_field = 23;
	E_Message4_StringField = &file_internal_testprotos_registry_test_proto_extTypes[5]
)

Extension fields to Message1.

var File_internal_testprotos_registry_test_proto protoreflect.FileDescriptor

type Enum1

type Enum1 int32
const (
	Enum1_ONE Enum1 = 1
)

func (Enum1) Descriptor

func (Enum1) Descriptor() protoreflect.EnumDescriptor

func (Enum1) Enum

func (x Enum1) Enum() *Enum1

func (Enum1) EnumDescriptor

func (Enum1) EnumDescriptor() ([]byte, []int)

Deprecated: Use Enum1.Descriptor instead.

func (Enum1) Number

func (x Enum1) Number() protoreflect.EnumNumber

func (Enum1) String

func (x Enum1) String() string

func (Enum1) Type

func (Enum1) Type() protoreflect.EnumType

func (*Enum1) UnmarshalJSON

func (x *Enum1) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Enum2

type Enum2 int32
const (
	Enum2_UNO Enum2 = 1
)

func (Enum2) Descriptor

func (Enum2) Descriptor() protoreflect.EnumDescriptor

func (Enum2) Enum

func (x Enum2) Enum() *Enum2

func (Enum2) EnumDescriptor

func (Enum2) EnumDescriptor() ([]byte, []int)

Deprecated: Use Enum2.Descriptor instead.

func (Enum2) Number

func (x Enum2) Number() protoreflect.EnumNumber

func (Enum2) String

func (x Enum2) String() string

func (Enum2) Type

func (Enum2) Type() protoreflect.EnumType

func (*Enum2) UnmarshalJSON

func (x *Enum2) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Enum3

type Enum3 int32
const (
	Enum3_YI Enum3 = 1
)

func (Enum3) Descriptor

func (Enum3) Descriptor() protoreflect.EnumDescriptor

func (Enum3) Enum

func (x Enum3) Enum() *Enum3

func (Enum3) EnumDescriptor

func (Enum3) EnumDescriptor() ([]byte, []int)

Deprecated: Use Enum3.Descriptor instead.

func (Enum3) Number

func (x Enum3) Number() protoreflect.EnumNumber

func (Enum3) String

func (x Enum3) String() string

func (Enum3) Type

func (Enum3) Type() protoreflect.EnumType

func (*Enum3) UnmarshalJSON

func (x *Enum3) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Message1

type Message1 struct {
	// contains filtered or unexported fields
}

func (*Message1) Descriptor

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

Deprecated: Use Message1.ProtoReflect.Descriptor instead.

func (*Message1) ExtensionRangeArray

func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use Message1.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*Message1) ProtoMessage

func (*Message1) ProtoMessage()

func (*Message1) ProtoReflect

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

func (*Message1) Reset

func (x *Message1) Reset()

func (*Message1) String

func (x *Message1) String() string

type Message2

type Message2 struct {
	// contains filtered or unexported fields
}

func (*Message2) Descriptor

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

Deprecated: Use Message2.ProtoReflect.Descriptor instead.

func (*Message2) ProtoMessage

func (*Message2) ProtoMessage()

func (*Message2) ProtoReflect

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

func (*Message2) Reset

func (x *Message2) Reset()

func (*Message2) String

func (x *Message2) String() string

type Message3

type Message3 struct {
	// contains filtered or unexported fields
}

func (*Message3) Descriptor

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

Deprecated: Use Message3.ProtoReflect.Descriptor instead.

func (*Message3) ProtoMessage

func (*Message3) ProtoMessage()

func (*Message3) ProtoReflect

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

func (*Message3) Reset

func (x *Message3) Reset()

func (*Message3) String

func (x *Message3) String() string

type Message4

type Message4 struct {
	BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
	// contains filtered or unexported fields
}

func (*Message4) Descriptor

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

Deprecated: Use Message4.ProtoReflect.Descriptor instead.

func (*Message4) GetBoolField

func (x *Message4) GetBoolField() bool

func (*Message4) ProtoMessage

func (*Message4) ProtoMessage()

func (*Message4) ProtoReflect

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

func (*Message4) Reset

func (x *Message4) Reset()

func (*Message4) String

func (x *Message4) String() string
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier