Enum value maps for Enum1.
var ( Enum1_name = map[int32]string{ 0: "FOO", 1: "BAR", } Enum1_value = map[string]int32{ "FOO": 0, "BAR": 1, } )
Enum value maps for DeprecatedEnum.
var ( DeprecatedEnum_name = map[int32]string{ 0: "DEPRECATED", } DeprecatedEnum_value = map[string]int32{ "DEPRECATED": 0, } )
Extension fields to Message1.
var ( // COMMENT: Extension.Leading // // optional goproto.protoc.comments.Message1 extension = 100; E_Extension = &file_cmd_protoc_gen_go_testdata_comments_comments_proto_extTypes[0] // COMMENT: Extension.Trailing )
var File_cmd_protoc_gen_go_testdata_comments_comments_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_comments_deprecated_proto protoreflect.FileDescriptor
Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
type DeprecatedEnum int32
const ( // Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated. DeprecatedEnum_DEPRECATED DeprecatedEnum = 0 )
func (DeprecatedEnum) Descriptor() protoreflect.EnumDescriptor
func (x DeprecatedEnum) Enum() *DeprecatedEnum
func (DeprecatedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeprecatedEnum.Descriptor instead.
func (x DeprecatedEnum) Number() protoreflect.EnumNumber
func (x DeprecatedEnum) String() string
func (DeprecatedEnum) Type() protoreflect.EnumType
Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
type DeprecatedMessage struct { // Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated. DeprecatedField string `protobuf:"bytes,1,opt,name=deprecated_field,json=deprecatedField,proto3" json:"deprecated_field,omitempty"` // contains filtered or unexported fields }
func (*DeprecatedMessage) Descriptor() ([]byte, []int)
Deprecated: Use DeprecatedMessage.ProtoReflect.Descriptor instead.
func (x *DeprecatedMessage) GetDeprecatedField() string
Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
func (*DeprecatedMessage) ProtoMessage()
func (x *DeprecatedMessage) ProtoReflect() protoreflect.Message
func (x *DeprecatedMessage) Reset()
func (x *DeprecatedMessage) String() string
COMMENT: Enum1.Leading
type Enum1 int32
const ( // COMMENT: FOO.Leading Enum1_FOO Enum1 = 0 // COMMENT: FOO.InlineTrailing // COMMENT: BAR.Leading Enum1_BAR Enum1 = 1 )
func (Enum1) Descriptor() protoreflect.EnumDescriptor
func (x Enum1) Enum() *Enum1
func (Enum1) EnumDescriptor() ([]byte, []int)
Deprecated: Use Enum1.Descriptor instead.
func (x Enum1) Number() protoreflect.EnumNumber
func (x Enum1) String() string
func (Enum1) Type() protoreflect.EnumType
func (x *Enum1) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
COMMENT: Message1.Leading
type Message1 struct { // COMMENT: Field1A.Leading Field1A *string `protobuf:"bytes,1,opt,name=Field1A" json:"Field1A,omitempty"` // COMMENT: Field1A.Trailing // COMMENT: Oneof1A.Leading // // Types that are assignable to Oneof1A: // // *Message1_Oneof1AField1 Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"` // contains filtered or unexported fields }
func (*Message1) Descriptor() ([]byte, []int)
Deprecated: Use Message1.ProtoReflect.Descriptor instead.
func (x *Message1) GetField1A() string
func (m *Message1) GetOneof1A() isMessage1_Oneof1A
func (x *Message1) GetOneof1AField1() string
func (*Message1) ProtoMessage()
func (x *Message1) ProtoReflect() protoreflect.Message
func (x *Message1) Reset()
func (x *Message1) String() string
COMMENT: Message1A.Leading
type Message1_Message1A struct {
// contains filtered or unexported fields
}
func (*Message1_Message1A) Descriptor() ([]byte, []int)
Deprecated: Use Message1_Message1A.ProtoReflect.Descriptor instead.
func (*Message1_Message1A) ProtoMessage()
func (x *Message1_Message1A) ProtoReflect() protoreflect.Message
func (x *Message1_Message1A) Reset()
func (x *Message1_Message1A) String() string
COMMENT: Message1B
type Message1_Message1B struct {
// contains filtered or unexported fields
}
func (*Message1_Message1B) Descriptor() ([]byte, []int)
Deprecated: Use Message1_Message1B.ProtoReflect.Descriptor instead.
func (*Message1_Message1B) ProtoMessage()
func (x *Message1_Message1B) ProtoReflect() protoreflect.Message
func (x *Message1_Message1B) Reset()
func (x *Message1_Message1B) String() string
type Message1_Oneof1AField1 struct { // COMMENT: Oneof1AField1.Leading Oneof1AField1 string `protobuf:"bytes,2,opt,name=Oneof1AField1,oneof"` // COMMENT: Oneof1AField1.Trailing }
COMMENT: Message2
type Message2 struct {
// contains filtered or unexported fields
}
func (*Message2) Descriptor() ([]byte, []int)
Deprecated: Use Message2.ProtoReflect.Descriptor instead.
func (*Message2) ProtoMessage()
func (x *Message2) ProtoReflect() protoreflect.Message
func (x *Message2) Reset()
func (x *Message2) String() string
COMMENT: Message2A
type Message2_Message2A struct {
// contains filtered or unexported fields
}
func (*Message2_Message2A) Descriptor() ([]byte, []int)
Deprecated: Use Message2_Message2A.ProtoReflect.Descriptor instead.
func (*Message2_Message2A) ProtoMessage()
func (x *Message2_Message2A) ProtoReflect() protoreflect.Message
func (x *Message2_Message2A) Reset()
func (x *Message2_Message2A) String() string
COMMENT: Message2B
type Message2_Message2B struct {
// contains filtered or unexported fields
}
func (*Message2_Message2B) Descriptor() ([]byte, []int)
Deprecated: Use Message2_Message2B.ProtoReflect.Descriptor instead.
func (*Message2_Message2B) ProtoMessage()
func (x *Message2_Message2B) ProtoReflect() protoreflect.Message
func (x *Message2_Message2B) Reset()
func (x *Message2_Message2B) String() string