...

Package ext

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

Overview ▾

Index ▾

Variables
type Enum
    func (Enum) Descriptor() protoreflect.EnumDescriptor
    func (x Enum) Enum() *Enum
    func (Enum) EnumDescriptor() ([]byte, []int)
    func (x Enum) Number() protoreflect.EnumNumber
    func (x Enum) String() string
    func (Enum) Type() protoreflect.EnumType
    func (x *Enum) UnmarshalJSON(b []byte) error
type Extendable
    func (*Extendable) Descriptor() ([]byte, []int)
    func (*Extendable) ProtoMessage()
    func (x *Extendable) ProtoReflect() protoreflect.Message
    func (x *Extendable) Reset()
    func (x *Extendable) String() string
type ExtendingMessage
    func (*ExtendingMessage) Descriptor() ([]byte, []int)
    func (*ExtendingMessage) ProtoMessage()
    func (x *ExtendingMessage) ProtoReflect() protoreflect.Message
    func (x *ExtendingMessage) Reset()
    func (x *ExtendingMessage) String() string
type ExtendingMessage_ExtendingMessageSubmessage
    func (*ExtendingMessage_ExtendingMessageSubmessage) Descriptor() ([]byte, []int)
    func (*ExtendingMessage_ExtendingMessageSubmessage) ProtoMessage()
    func (x *ExtendingMessage_ExtendingMessageSubmessage) ProtoReflect() protoreflect.Message
    func (x *ExtendingMessage_ExtendingMessageSubmessage) Reset()
    func (x *ExtendingMessage_ExtendingMessageSubmessage) String() string
type ExtensionGroup
    func (*ExtensionGroup) Descriptor() ([]byte, []int)
    func (x *ExtensionGroup) GetExtensionGroup() string
    func (*ExtensionGroup) ProtoMessage()
    func (x *ExtensionGroup) ProtoReflect() protoreflect.Message
    func (x *ExtensionGroup) Reset()
    func (x *ExtensionGroup) String() string
type Message
    func (*Message) Descriptor() ([]byte, []int)
    func (x *Message) GetData() []byte
    func (*Message) ProtoMessage()
    func (x *Message) ProtoReflect() protoreflect.Message
    func (x *Message) Reset()
    func (x *Message) String() string
type MessageSetWireFormatExtension
    func (*MessageSetWireFormatExtension) Descriptor() ([]byte, []int)
    func (*MessageSetWireFormatExtension) ProtoMessage()
    func (x *MessageSetWireFormatExtension) ProtoReflect() protoreflect.Message
    func (x *MessageSetWireFormatExtension) Reset()
    func (x *MessageSetWireFormatExtension) String() string
type Message_M
    func (*Message_M) Descriptor() ([]byte, []int)
    func (*Message_M) ProtoMessage()
    func (x *Message_M) ProtoReflect() protoreflect.Message
    func (x *Message_M) Reset()
    func (x *Message_M) String() string
type RepeatedGroup
    func (*RepeatedGroup) Descriptor() ([]byte, []int)
    func (x *RepeatedGroup) GetRepeatedXGroup() []string
    func (*RepeatedGroup) ProtoMessage()
    func (x *RepeatedGroup) ProtoReflect() protoreflect.Message
    func (x *RepeatedGroup) Reset()
    func (x *RepeatedGroup) String() string

Package files

ext.pb.go

Variables

Enum value maps for Enum.

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

Extension fields to base.BaseMessage.

var (
    // optional bool extension_bool = 101;
    E_ExtensionBool = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[0]
    // optional goproto.protoc.extension.ext.Enum extension_enum = 102;
    E_ExtensionEnum = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[1]
    // optional int32 extension_int32 = 103;
    E_ExtensionInt32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[2]
    // optional sint32 extension_sint32 = 104;
    E_ExtensionSint32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[3]
    // optional uint32 extension_uint32 = 105;
    E_ExtensionUint32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[4]
    // optional int64 extension_int64 = 106;
    E_ExtensionInt64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[5]
    // optional sint64 extension_sint64 = 107;
    E_ExtensionSint64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[6]
    // optional uint64 extension_uint64 = 108;
    E_ExtensionUint64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[7]
    // optional sfixed32 extension_sfixed32 = 109;
    E_ExtensionSfixed32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[8]
    // optional fixed32 extension_fixed32 = 110;
    E_ExtensionFixed32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[9]
    // optional float extension_float = 111;
    E_ExtensionFloat = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[10]
    // optional sfixed64 extension_sfixed64 = 112;
    E_ExtensionSfixed64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[11]
    // optional fixed64 extension_fixed64 = 113;
    E_ExtensionFixed64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[12]
    // optional double extension_double = 114;
    E_ExtensionDouble = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[13]
    // optional string extension_string = 115;
    E_ExtensionString = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[14]
    // optional bytes extension_bytes = 116;
    E_ExtensionBytes = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[15]
    // optional goproto.protoc.extension.ext.Message extension_Message = 117;
    E_Extension_Message = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[16]
    // optional goproto.protoc.extension.ext.Message.M extension_MessageM = 118;
    E_Extension_MessageM = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[17]
    // optional goproto.protoc.extension.ext.ExtensionGroup extensiongroup = 119;
    E_Extensiongroup = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[18]
    // optional goproto.protoc.extension.extra.ExtraMessage extra_message = 9;
    E_ExtraMessage = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[19]
    // repeated bool repeated_x_bool = 301;
    E_RepeatedXBool = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[20]
    // repeated goproto.protoc.extension.ext.Enum repeated_x_enum = 302;
    E_RepeatedXEnum = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[21]
    // repeated int32 repeated_x_int32 = 303;
    E_RepeatedXInt32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[22]
    // repeated sint32 repeated_x_sint32 = 304;
    E_RepeatedXSint32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[23]
    // repeated uint32 repeated_x_uint32 = 305;
    E_RepeatedXUint32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[24]
    // repeated int64 repeated_x_int64 = 306;
    E_RepeatedXInt64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[25]
    // repeated sint64 repeated_x_sint64 = 307;
    E_RepeatedXSint64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[26]
    // repeated uint64 repeated_x_uint64 = 308;
    E_RepeatedXUint64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[27]
    // repeated sfixed32 repeated_x_sfixed32 = 309;
    E_RepeatedXSfixed32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[28]
    // repeated fixed32 repeated_x_fixed32 = 310;
    E_RepeatedXFixed32 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[29]
    // repeated float repeated_x_float = 311;
    E_RepeatedXFloat = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[30]
    // repeated sfixed64 repeated_x_sfixed64 = 312;
    E_RepeatedXSfixed64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[31]
    // repeated fixed64 repeated_x_fixed64 = 313;
    E_RepeatedXFixed64 = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[32]
    // repeated double repeated_x_double = 314;
    E_RepeatedXDouble = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[33]
    // repeated string repeated_x_string = 315;
    E_RepeatedXString = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[34]
    // repeated bytes repeated_x_bytes = 316;
    E_RepeatedXBytes = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[35]
    // repeated goproto.protoc.extension.ext.Message repeated_x_Message = 317;
    E_RepeatedX_Message = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[36]
    // repeated goproto.protoc.extension.ext.RepeatedGroup repeatedgroup = 318;
    E_Repeatedgroup = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[37]
    // optional goproto.protoc.extension.ext.Extendable extendable_field = 400;
    E_ExtendableField = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[38]
    // optional string extending_message_string = 200;
    E_ExtendingMessage_ExtendingMessageString = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[41]
    // optional goproto.protoc.extension.ext.ExtendingMessage.ExtendingMessageSubmessage extending_message_submessage = 201;
    E_ExtendingMessage_ExtendingMessageSubmessage = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[42]
)

Extension fields to base.MessageSetWireFormatMessage.

var (
    // optional goproto.protoc.extension.ext.MessageSetWireFormatExtension message_set_extension = 101;
    E_MessageSetExtension = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[40]
    // optional goproto.protoc.extension.ext.MessageSetWireFormatExtension message_set_extension = 100;
    E_MessageSetWireFormatExtension_MessageSetExtension = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[43]
)

Extension fields to Extendable.

var (
    // optional string extendable_string_field = 1;
    E_ExtendableStringField = &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_extTypes[39]
)
var File_cmd_protoc_gen_go_testdata_extensions_ext_ext_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

func (*Enum) UnmarshalJSON

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

Deprecated: Do not use.

type Extendable

An extension of an extension.

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

func (*Extendable) Descriptor

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

Deprecated: Use Extendable.ProtoReflect.Descriptor instead.

func (*Extendable) ProtoMessage

func (*Extendable) ProtoMessage()

func (*Extendable) ProtoReflect

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

func (*Extendable) Reset

func (x *Extendable) Reset()

func (*Extendable) String

func (x *Extendable) String() string

type ExtendingMessage

Extend in the scope of another type.

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

func (*ExtendingMessage) Descriptor

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

Deprecated: Use ExtendingMessage.ProtoReflect.Descriptor instead.

func (*ExtendingMessage) ProtoMessage

func (*ExtendingMessage) ProtoMessage()

func (*ExtendingMessage) ProtoReflect

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

func (*ExtendingMessage) Reset

func (x *ExtendingMessage) Reset()

func (*ExtendingMessage) String

func (x *ExtendingMessage) String() string

type ExtendingMessage_ExtendingMessageSubmessage

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

func (*ExtendingMessage_ExtendingMessageSubmessage) Descriptor

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

Deprecated: Use ExtendingMessage_ExtendingMessageSubmessage.ProtoReflect.Descriptor instead.

func (*ExtendingMessage_ExtendingMessageSubmessage) ProtoMessage

func (*ExtendingMessage_ExtendingMessageSubmessage) ProtoMessage()

func (*ExtendingMessage_ExtendingMessageSubmessage) ProtoReflect

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

func (*ExtendingMessage_ExtendingMessageSubmessage) Reset

func (x *ExtendingMessage_ExtendingMessageSubmessage) Reset()

func (*ExtendingMessage_ExtendingMessageSubmessage) String

func (x *ExtendingMessage_ExtendingMessageSubmessage) String() string

type ExtensionGroup

type ExtensionGroup struct {
    ExtensionGroup *string `protobuf:"bytes,120,opt,name=extension_group,json=extensionGroup" json:"extension_group,omitempty"`
    // contains filtered or unexported fields
}

func (*ExtensionGroup) Descriptor

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

Deprecated: Use ExtensionGroup.ProtoReflect.Descriptor instead.

func (*ExtensionGroup) GetExtensionGroup

func (x *ExtensionGroup) GetExtensionGroup() string

func (*ExtensionGroup) ProtoMessage

func (*ExtensionGroup) ProtoMessage()

func (*ExtensionGroup) ProtoReflect

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

func (*ExtensionGroup) Reset

func (x *ExtensionGroup) Reset()

func (*ExtensionGroup) String

func (x *ExtensionGroup) String() string

type Message

type Message struct {
    Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
    // contains filtered or unexported fields
}

func (*Message) Descriptor

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetData

func (x *Message) GetData() []byte

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

type MessageSetWireFormatExtension

Message set wire format.

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

func (*MessageSetWireFormatExtension) Descriptor

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

Deprecated: Use MessageSetWireFormatExtension.ProtoReflect.Descriptor instead.

func (*MessageSetWireFormatExtension) ProtoMessage

func (*MessageSetWireFormatExtension) ProtoMessage()

func (*MessageSetWireFormatExtension) ProtoReflect

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

func (*MessageSetWireFormatExtension) Reset

func (x *MessageSetWireFormatExtension) Reset()

func (*MessageSetWireFormatExtension) String

func (x *MessageSetWireFormatExtension) String() string

type Message_M

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

func (*Message_M) Descriptor

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

Deprecated: Use Message_M.ProtoReflect.Descriptor instead.

func (*Message_M) ProtoMessage

func (*Message_M) ProtoMessage()

func (*Message_M) ProtoReflect

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

func (*Message_M) Reset

func (x *Message_M) Reset()

func (*Message_M) String

func (x *Message_M) String() string

type RepeatedGroup

type RepeatedGroup struct {
    RepeatedXGroup []string `protobuf:"bytes,319,rep,name=repeated_x_group,json=repeatedXGroup" json:"repeated_x_group,omitempty"`
    // contains filtered or unexported fields
}

func (*RepeatedGroup) Descriptor

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

Deprecated: Use RepeatedGroup.ProtoReflect.Descriptor instead.

func (*RepeatedGroup) GetRepeatedXGroup

func (x *RepeatedGroup) GetRepeatedXGroup() []string

func (*RepeatedGroup) ProtoMessage

func (*RepeatedGroup) ProtoMessage()

func (*RepeatedGroup) ProtoReflect

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

func (*RepeatedGroup) Reset

func (x *RepeatedGroup) Reset()

func (*RepeatedGroup) String

func (x *RepeatedGroup) String() string