...

Package import_public

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

Overview ▾

Constants

const Default_M_S = sub.Default_M_S
const E_ZERO = sub.E_ZERO
const M_M_ZERO = sub.M_M_ZERO
const M_Submessage_M_SUBMESSAGE_ZERO = sub.M_Submessage_M_SUBMESSAGE_ZERO

Variables

var Default_M_B = sub.Default_M_B
var Default_M_F = sub.Default_M_F
var E_ExtensionField = sub.E_ExtensionField
var E_name = sub.E_name
var E_value = sub.E_value
var File_cmd_protoc_gen_go_testdata_import_public_a_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_import_public_b_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_import_public_c_proto protoreflect.FileDescriptor
var M_Subenum_name = sub.M_Subenum_name
var M_Subenum_value = sub.M_Subenum_value
var M_Submessage_Submessage_Subenum_name = sub.M_Submessage_Submessage_Subenum_name
var M_Submessage_Submessage_Subenum_value = sub.M_Submessage_Submessage_Subenum_value

type E

type E = sub.E

type Local

type Local struct {
    M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
    E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
    // contains filtered or unexported fields
}

func (*Local) Descriptor

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

Deprecated: Use Local.ProtoReflect.Descriptor instead.

func (*Local) GetE

func (x *Local) GetE() sub.E

func (*Local) GetM

func (x *Local) GetM() *sub.M

func (*Local) ProtoMessage

func (*Local) ProtoMessage()

func (*Local) ProtoReflect

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

func (*Local) Reset

func (x *Local) Reset()

func (*Local) String

func (x *Local) String() string

type M

type M = sub.M

type M_OneofInt32

type M_OneofInt32 = sub.M_OneofInt32

type M_OneofInt64

type M_OneofInt64 = sub.M_OneofInt64

type M_Subenum

type M_Subenum = sub.M_Subenum

type M_Submessage

type M_Submessage = sub.M_Submessage

type M_Submessage_SubmessageOneofInt32

type M_Submessage_SubmessageOneofInt32 = sub.M_Submessage_SubmessageOneofInt32

type M_Submessage_SubmessageOneofInt64

type M_Submessage_SubmessageOneofInt64 = sub.M_Submessage_SubmessageOneofInt64

type M_Submessage_Submessage_Subenum

type M_Submessage_Submessage_Subenum = sub.M_Submessage_Submessage_Subenum

type Public

type Public struct {
    M     *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
    E     *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
    Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"`
    // contains filtered or unexported fields
}

func (*Public) Descriptor

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

Deprecated: Use Public.ProtoReflect.Descriptor instead.

func (*Public) GetE

func (x *Public) GetE() sub.E

func (*Public) GetLocal

func (x *Public) GetLocal() *Local

func (*Public) GetM

func (x *Public) GetM() *sub.M

func (*Public) ProtoMessage

func (*Public) ProtoMessage()

func (*Public) ProtoReflect

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

func (*Public) Reset

func (x *Public) Reset()

func (*Public) String

func (x *Public) String() string

type UsingPublicImport

type UsingPublicImport struct {

    // Local is declared in b.proto, which is a public import of a.proto.
    Local *Local `protobuf:"bytes,1,opt,name=local" json:"local,omitempty"`
    // Sub2Message is declared in sub2/a.proto, which is a public import of
    // sub/a.proto, which is a public import of a.proto.
    Sub2 *sub2.Sub2Message `protobuf:"bytes,2,opt,name=sub2" json:"sub2,omitempty"` // declared in sub2/a.proto
    // contains filtered or unexported fields
}

func (*UsingPublicImport) Descriptor

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

Deprecated: Use UsingPublicImport.ProtoReflect.Descriptor instead.

func (*UsingPublicImport) GetLocal

func (x *UsingPublicImport) GetLocal() *Local

func (*UsingPublicImport) GetSub2

func (x *UsingPublicImport) GetSub2() *sub2.Sub2Message

func (*UsingPublicImport) ProtoMessage

func (*UsingPublicImport) ProtoMessage()

func (*UsingPublicImport) ProtoReflect

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

func (*UsingPublicImport) Reset

func (x *UsingPublicImport) Reset()

func (*UsingPublicImport) String

func (x *UsingPublicImport) String() string

Subdirectories

Name Synopsis
..
sub
sub2