...

Package test_a_1

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

Overview ▾

Variables

Enum value maps for E1.

var (
    E1_name = map[int32]string{
        0: "E1_ZERO",
    }
    E1_value = map[string]int32{
        "E1_ZERO": 0,
    }
)
var File_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto protoreflect.FileDescriptor

type E1

type E1 int32
const (
    E1_E1_ZERO E1 = 0
)

func (E1) Descriptor

func (E1) Descriptor() protoreflect.EnumDescriptor

func (E1) Enum

func (x E1) Enum() *E1

func (E1) EnumDescriptor

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

Deprecated: Use E1.Descriptor instead.

func (E1) Number

func (x E1) Number() protoreflect.EnumNumber

func (E1) String

func (x E1) String() string

func (E1) Type

func (E1) Type() protoreflect.EnumType

type M1

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

func (*M1) Descriptor

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

Deprecated: Use M1.ProtoReflect.Descriptor instead.

func (*M1) ProtoMessage

func (*M1) ProtoMessage()

func (*M1) ProtoReflect

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

func (*M1) Reset

func (x *M1) Reset()

func (*M1) String

func (x *M1) String() string

type M1_1

type M1_1 struct {
    M1 *M1 `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"`
    // contains filtered or unexported fields
}

func (*M1_1) Descriptor

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

Deprecated: Use M1_1.ProtoReflect.Descriptor instead.

func (*M1_1) GetM1

func (x *M1_1) GetM1() *M1

func (*M1_1) ProtoMessage

func (*M1_1) ProtoMessage()

func (*M1_1) ProtoReflect

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

func (*M1_1) Reset

func (x *M1_1) Reset()

func (*M1_1) String

func (x *M1_1) String() string

type M2

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

func (*M2) Descriptor

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

Deprecated: Use M2.ProtoReflect.Descriptor instead.

func (*M2) ProtoMessage

func (*M2) ProtoMessage()

func (*M2) ProtoReflect

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

func (*M2) Reset

func (x *M2) Reset()

func (*M2) String

func (x *M2) String() string