...

Package annotations

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

Overview ▾

Variables

Enum value maps for AnnotationsTestEnum.

var (
    AnnotationsTestEnum_name = map[int32]string{
        0: "ANNOTATIONS_TEST_ENUM_VALUE",
    }
    AnnotationsTestEnum_value = map[string]int32{
        "ANNOTATIONS_TEST_ENUM_VALUE": 0,
    }
)
var File_cmd_protoc_gen_go_testdata_annotations_annotations_proto protoreflect.FileDescriptor

type AnnotationsTestEnum

type AnnotationsTestEnum int32
const (
    AnnotationsTestEnum_ANNOTATIONS_TEST_ENUM_VALUE AnnotationsTestEnum = 0
)

func (AnnotationsTestEnum) Descriptor

func (AnnotationsTestEnum) Descriptor() protoreflect.EnumDescriptor

func (AnnotationsTestEnum) Enum

func (x AnnotationsTestEnum) Enum() *AnnotationsTestEnum

func (AnnotationsTestEnum) EnumDescriptor

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

Deprecated: Use AnnotationsTestEnum.Descriptor instead.

func (AnnotationsTestEnum) Number

func (x AnnotationsTestEnum) Number() protoreflect.EnumNumber

func (AnnotationsTestEnum) String

func (x AnnotationsTestEnum) String() string

func (AnnotationsTestEnum) Type

func (AnnotationsTestEnum) Type() protoreflect.EnumType

func (*AnnotationsTestEnum) UnmarshalJSON

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

Deprecated: Do not use.

type AnnotationsTestMessage

type AnnotationsTestMessage struct {
    AnnotationsTestField *string  `protobuf:"bytes,1,opt,name=AnnotationsTestField" json:"AnnotationsTestField,omitempty"`
    XXX_weak_M           struct{} `protobuf:"bytes,2,opt,name=m,weak=fmt.M" json:"m,omitempty"`
    // contains filtered or unexported fields
}

func (*AnnotationsTestMessage) Descriptor

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

Deprecated: Use AnnotationsTestMessage.ProtoReflect.Descriptor instead.

func (*AnnotationsTestMessage) GetAnnotationsTestField

func (x *AnnotationsTestMessage) GetAnnotationsTestField() string

func (*AnnotationsTestMessage) GetM

func (x *AnnotationsTestMessage) GetM() proto.Message

func (*AnnotationsTestMessage) ProtoMessage

func (*AnnotationsTestMessage) ProtoMessage()

func (*AnnotationsTestMessage) ProtoReflect

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

func (*AnnotationsTestMessage) Reset

func (x *AnnotationsTestMessage) Reset()

func (*AnnotationsTestMessage) SetM

func (x *AnnotationsTestMessage) SetM(v proto.Message)

func (*AnnotationsTestMessage) String

func (x *AnnotationsTestMessage) String() string