...

Package comments

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

Overview ▾

Index ▾

Variables
type DeprecatedEnum
    func (DeprecatedEnum) Descriptor() protoreflect.EnumDescriptor
    func (x DeprecatedEnum) Enum() *DeprecatedEnum
    func (DeprecatedEnum) EnumDescriptor() ([]byte, []int)
    func (x DeprecatedEnum) Number() protoreflect.EnumNumber
    func (x DeprecatedEnum) String() string
    func (DeprecatedEnum) Type() protoreflect.EnumType
type DeprecatedMessage
    func (*DeprecatedMessage) Descriptor() ([]byte, []int)
    func (x *DeprecatedMessage) GetDeprecatedField() string
    func (*DeprecatedMessage) ProtoMessage()
    func (x *DeprecatedMessage) ProtoReflect() protoreflect.Message
    func (x *DeprecatedMessage) Reset()
    func (x *DeprecatedMessage) String() string
type Enum1
    func (Enum1) Descriptor() protoreflect.EnumDescriptor
    func (x Enum1) Enum() *Enum1
    func (Enum1) EnumDescriptor() ([]byte, []int)
    func (x Enum1) Number() protoreflect.EnumNumber
    func (x Enum1) String() string
    func (Enum1) Type() protoreflect.EnumType
    func (x *Enum1) UnmarshalJSON(b []byte) error
type Message1
    func (*Message1) Descriptor() ([]byte, []int)
    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
type Message1_Message1A
    func (*Message1_Message1A) Descriptor() ([]byte, []int)
    func (*Message1_Message1A) ProtoMessage()
    func (x *Message1_Message1A) ProtoReflect() protoreflect.Message
    func (x *Message1_Message1A) Reset()
    func (x *Message1_Message1A) String() string
type Message1_Message1B
    func (*Message1_Message1B) Descriptor() ([]byte, []int)
    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
type Message2
    func (*Message2) Descriptor() ([]byte, []int)
    func (*Message2) ProtoMessage()
    func (x *Message2) ProtoReflect() protoreflect.Message
    func (x *Message2) Reset()
    func (x *Message2) String() string
type Message2_Message2A
    func (*Message2_Message2A) Descriptor() ([]byte, []int)
    func (*Message2_Message2A) ProtoMessage()
    func (x *Message2_Message2A) ProtoReflect() protoreflect.Message
    func (x *Message2_Message2A) Reset()
    func (x *Message2_Message2A) String() string
type Message2_Message2B
    func (*Message2_Message2B) Descriptor() ([]byte, []int)
    func (*Message2_Message2B) ProtoMessage()
    func (x *Message2_Message2B) ProtoReflect() protoreflect.Message
    func (x *Message2_Message2B) Reset()
    func (x *Message2_Message2B) String() string

Package files

comments.pb.go deprecated.pb.go

Variables

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

type DeprecatedEnum

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

func (DeprecatedEnum) Descriptor() protoreflect.EnumDescriptor

func (DeprecatedEnum) Enum

func (x DeprecatedEnum) Enum() *DeprecatedEnum

func (DeprecatedEnum) EnumDescriptor

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

Deprecated: Use DeprecatedEnum.Descriptor instead.

func (DeprecatedEnum) Number

func (x DeprecatedEnum) Number() protoreflect.EnumNumber

func (DeprecatedEnum) String

func (x DeprecatedEnum) String() string

func (DeprecatedEnum) Type

func (DeprecatedEnum) Type() protoreflect.EnumType

type DeprecatedMessage

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

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

Deprecated: Use DeprecatedMessage.ProtoReflect.Descriptor instead.

func (*DeprecatedMessage) GetDeprecatedField

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 (*DeprecatedMessage) ProtoMessage()

func (*DeprecatedMessage) ProtoReflect

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

func (*DeprecatedMessage) Reset

func (x *DeprecatedMessage) Reset()

func (*DeprecatedMessage) String

func (x *DeprecatedMessage) String() string

type Enum1

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

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 Message1

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

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

Deprecated: Use Message1.ProtoReflect.Descriptor instead.

func (*Message1) GetField1A

func (x *Message1) GetField1A() string

func (*Message1) GetOneof1A

func (m *Message1) GetOneof1A() isMessage1_Oneof1A

func (*Message1) GetOneof1AField1

func (x *Message1) GetOneof1AField1() string

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 Message1_Message1A

COMMENT: Message1A.Leading

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

func (*Message1_Message1A) Descriptor

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

Deprecated: Use Message1_Message1A.ProtoReflect.Descriptor instead.

func (*Message1_Message1A) ProtoMessage

func (*Message1_Message1A) ProtoMessage()

func (*Message1_Message1A) ProtoReflect

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

func (*Message1_Message1A) Reset

func (x *Message1_Message1A) Reset()

func (*Message1_Message1A) String

func (x *Message1_Message1A) String() string

type Message1_Message1B

COMMENT: Message1B

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

func (*Message1_Message1B) Descriptor

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

Deprecated: Use Message1_Message1B.ProtoReflect.Descriptor instead.

func (*Message1_Message1B) ProtoMessage

func (*Message1_Message1B) ProtoMessage()

func (*Message1_Message1B) ProtoReflect

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

func (*Message1_Message1B) Reset

func (x *Message1_Message1B) Reset()

func (*Message1_Message1B) String

func (x *Message1_Message1B) String() string

type Message1_Oneof1AField1

type Message1_Oneof1AField1 struct {
    // COMMENT: Oneof1AField1.Leading
    Oneof1AField1 string `protobuf:"bytes,2,opt,name=Oneof1AField1,oneof"` // COMMENT: Oneof1AField1.Trailing
}

type Message2

COMMENT: 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 Message2_Message2A

COMMENT: Message2A

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

func (*Message2_Message2A) Descriptor

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

Deprecated: Use Message2_Message2A.ProtoReflect.Descriptor instead.

func (*Message2_Message2A) ProtoMessage

func (*Message2_Message2A) ProtoMessage()

func (*Message2_Message2A) ProtoReflect

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

func (*Message2_Message2A) Reset

func (x *Message2_Message2A) Reset()

func (*Message2_Message2A) String

func (x *Message2_Message2A) String() string

type Message2_Message2B

COMMENT: Message2B

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

func (*Message2_Message2B) Descriptor

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

Deprecated: Use Message2_Message2B.ProtoReflect.Descriptor instead.

func (*Message2_Message2B) ProtoMessage

func (*Message2_Message2B) ProtoMessage()

func (*Message2_Message2B) ProtoReflect

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

func (*Message2_Message2B) Reset

func (x *Message2_Message2B) Reset()

func (*Message2_Message2B) String

func (x *Message2_Message2B) String() string