...

Package proto3

import "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3"
Overview
Index

Overview ▾

Variables

Enum value maps for Enum.

var (
    Enum_name = map[int32]string{
        0: "ZERO",
    }
    Enum_value = map[string]int32{
        "ZERO": 0,
    }
)

Extension fields to descriptorpb.MessageOptions.

var (
    // optional bool extension_bool = 1001;
    E_ExtensionBool = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[0]
    // optional goproto.protoc.extension.proto3.Enum extension_enum = 1002;
    E_ExtensionEnum = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[1]
    // optional int32 extension_int32 = 1003;
    E_ExtensionInt32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[2]
    // optional sint32 extension_sint32 = 1004;
    E_ExtensionSint32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[3]
    // optional uint32 extension_uint32 = 1005;
    E_ExtensionUint32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[4]
    // optional int64 extension_int64 = 1006;
    E_ExtensionInt64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[5]
    // optional sint64 extension_sint64 = 1007;
    E_ExtensionSint64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[6]
    // optional uint64 extension_uint64 = 1008;
    E_ExtensionUint64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[7]
    // optional sfixed32 extension_sfixed32 = 1009;
    E_ExtensionSfixed32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[8]
    // optional fixed32 extension_fixed32 = 1010;
    E_ExtensionFixed32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[9]
    // optional float extension_float = 1011;
    E_ExtensionFloat = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[10]
    // optional sfixed64 extension_sfixed64 = 1012;
    E_ExtensionSfixed64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[11]
    // optional fixed64 extension_fixed64 = 1013;
    E_ExtensionFixed64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[12]
    // optional double extension_double = 1014;
    E_ExtensionDouble = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[13]
    // optional string extension_string = 1015;
    E_ExtensionString = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[14]
    // optional bytes extension_bytes = 1016;
    E_ExtensionBytes = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[15]
    // optional goproto.protoc.extension.proto3.Message extension_Message = 1017;
    E_Extension_Message = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[16]
    // repeated bool repeated_extension_bool = 2001;
    E_RepeatedExtensionBool = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[17]
    // repeated goproto.protoc.extension.proto3.Enum repeated_extension_enum = 2002;
    E_RepeatedExtensionEnum = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[18]
    // repeated int32 repeated_extension_int32 = 2003;
    E_RepeatedExtensionInt32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[19]
    // repeated sint32 repeated_extension_sint32 = 2004;
    E_RepeatedExtensionSint32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[20]
    // repeated uint32 repeated_extension_uint32 = 2005;
    E_RepeatedExtensionUint32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[21]
    // repeated int64 repeated_extension_int64 = 2006;
    E_RepeatedExtensionInt64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[22]
    // repeated sint64 repeated_extension_sint64 = 2007;
    E_RepeatedExtensionSint64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[23]
    // repeated uint64 repeated_extension_uint64 = 2008;
    E_RepeatedExtensionUint64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[24]
    // repeated sfixed32 repeated_extension_sfixed32 = 2009;
    E_RepeatedExtensionSfixed32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[25]
    // repeated fixed32 repeated_extension_fixed32 = 2010;
    E_RepeatedExtensionFixed32 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[26]
    // repeated float repeated_extension_float = 2011;
    E_RepeatedExtensionFloat = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[27]
    // repeated sfixed64 repeated_extension_sfixed64 = 2012;
    E_RepeatedExtensionSfixed64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[28]
    // repeated fixed64 repeated_extension_fixed64 = 2013;
    E_RepeatedExtensionFixed64 = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[29]
    // repeated double repeated_extension_double = 2014;
    E_RepeatedExtensionDouble = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[30]
    // repeated string repeated_extension_string = 2015;
    E_RepeatedExtensionString = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[31]
    // repeated bytes repeated_extension_bytes = 2016;
    E_RepeatedExtensionBytes = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[32]
    // repeated goproto.protoc.extension.proto3.Message repeated_extension_Message = 2017;
    E_RepeatedExtension_Message = &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_extTypes[33]
)
var File_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto protoreflect.FileDescriptor

type Enum

type Enum int32
const (
    Enum_ZERO Enum = 0
)

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor

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

Deprecated: Use Enum.Descriptor instead.

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

func (Enum) Type

func (Enum) Type() protoreflect.EnumType

type Message

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

func (*Message) Descriptor

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string