...

Package sub

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

Overview ▾

Index ▾

Constants
Variables
type E
    func (E) Descriptor() protoreflect.EnumDescriptor
    func (x E) Enum() *E
    func (E) EnumDescriptor() ([]byte, []int)
    func (x E) Number() protoreflect.EnumNumber
    func (x E) String() string
    func (E) Type() protoreflect.EnumType
    func (x *E) UnmarshalJSON(b []byte) error
type M
    func (*M) Descriptor() ([]byte, []int)
    func (x *M) GetB() []byte
    func (x *M) GetF() float64
    func (x *M) GetM2() *M2
    func (m *M) GetOneofField() isM_OneofField
    func (x *M) GetOneofInt32() int32
    func (x *M) GetOneofInt64() int64
    func (x *M) GetS() string
    func (*M) ProtoMessage()
    func (x *M) ProtoReflect() protoreflect.Message
    func (x *M) Reset()
    func (x *M) String() string
type M2
    func (*M2) Descriptor() ([]byte, []int)
    func (*M2) ProtoMessage()
    func (x *M2) ProtoReflect() protoreflect.Message
    func (x *M2) Reset()
    func (x *M2) String() string
type M_OneofInt32
type M_OneofInt64
type M_Subenum
    func (M_Subenum) Descriptor() protoreflect.EnumDescriptor
    func (x M_Subenum) Enum() *M_Subenum
    func (M_Subenum) EnumDescriptor() ([]byte, []int)
    func (x M_Subenum) Number() protoreflect.EnumNumber
    func (x M_Subenum) String() string
    func (M_Subenum) Type() protoreflect.EnumType
    func (x *M_Subenum) UnmarshalJSON(b []byte) error
type M_Submessage
    func (*M_Submessage) Descriptor() ([]byte, []int)
    func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField
    func (x *M_Submessage) GetSubmessageOneofInt32() int32
    func (x *M_Submessage) GetSubmessageOneofInt64() int64
    func (*M_Submessage) ProtoMessage()
    func (x *M_Submessage) ProtoReflect() protoreflect.Message
    func (x *M_Submessage) Reset()
    func (x *M_Submessage) String() string
type M_Submessage_SubmessageOneofInt32
type M_Submessage_SubmessageOneofInt64
type M_Submessage_Submessage_Subenum
    func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor
    func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum
    func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int)
    func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber
    func (x M_Submessage_Submessage_Subenum) String() string
    func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType
    func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(b []byte) error
type Sub2Message

Package files

a.pb.go b.pb.go

Constants

Default values for M fields.

const (
    Default_M_S = string("default")
)

Variables

Enum value maps for E.

var (
    E_name = map[int32]string{
        0: "ZERO",
    }
    E_value = map[string]int32{
        "ZERO": 0,
    }
)

Enum value maps for M_Subenum.

var (
    M_Subenum_name = map[int32]string{
        0: "M_ZERO",
    }
    M_Subenum_value = map[string]int32{
        "M_ZERO": 0,
    }
)

Enum value maps for M_Submessage_Submessage_Subenum.

var (
    M_Submessage_Submessage_Subenum_name = map[int32]string{
        0: "M_SUBMESSAGE_ZERO",
    }
    M_Submessage_Submessage_Subenum_value = map[string]int32{
        "M_SUBMESSAGE_ZERO": 0,
    }
)

Default values for M fields.

var (
    Default_M_B = []byte("default")
    Default_M_F = float64(math.NaN())
)

Extension fields to M.

var (
    // optional string extension_field = 100;
    E_ExtensionField = &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes[0]
)
var File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_import_public_sub_b_proto protoreflect.FileDescriptor

type E

type E int32
const (
    E_ZERO E = 0
)

func (E) Descriptor

func (E) Descriptor() protoreflect.EnumDescriptor

func (E) Enum

func (x E) Enum() *E

func (E) EnumDescriptor

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

Deprecated: Use E.Descriptor instead.

func (E) Number

func (x E) Number() protoreflect.EnumNumber

func (E) String

func (x E) String() string

func (E) Type

func (E) Type() protoreflect.EnumType

func (*E) UnmarshalJSON

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

Deprecated: Do not use.

type M

type M struct {

    // Field using a type in the same Go package, but a different source file.
    M2 *M2      `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
    S  *string  `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"`
    B  []byte   `protobuf:"bytes,5,opt,name=b,def=default" json:"b,omitempty"`
    F  *float64 `protobuf:"fixed64,6,opt,name=f,def=nan" json:"f,omitempty"`
    // Types that are assignable to OneofField:
    //
    //	*M_OneofInt32
    //	*M_OneofInt64
    OneofField isM_OneofField `protobuf_oneof:"oneof_field"`
    // contains filtered or unexported fields
}

func (*M) Descriptor

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

Deprecated: Use M.ProtoReflect.Descriptor instead.

func (*M) GetB

func (x *M) GetB() []byte

func (*M) GetF

func (x *M) GetF() float64

func (*M) GetM2

func (x *M) GetM2() *M2

func (*M) GetOneofField

func (m *M) GetOneofField() isM_OneofField

func (*M) GetOneofInt32

func (x *M) GetOneofInt32() int32

func (*M) GetOneofInt64

func (x *M) GetOneofInt64() int64

func (*M) GetS

func (x *M) GetS() string

func (*M) ProtoMessage

func (*M) ProtoMessage()

func (*M) ProtoReflect

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

func (*M) Reset

func (x *M) Reset()

func (*M) String

func (x *M) 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

type M_OneofInt32

type M_OneofInt32 struct {
    OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"`
}

type M_OneofInt64

type M_OneofInt64 struct {
    OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"`
}

type M_Subenum

type M_Subenum int32
const (
    M_M_ZERO M_Subenum = 0
)

func (M_Subenum) Descriptor

func (M_Subenum) Descriptor() protoreflect.EnumDescriptor

func (M_Subenum) Enum

func (x M_Subenum) Enum() *M_Subenum

func (M_Subenum) EnumDescriptor

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

Deprecated: Use M_Subenum.Descriptor instead.

func (M_Subenum) Number

func (x M_Subenum) Number() protoreflect.EnumNumber

func (M_Subenum) String

func (x M_Subenum) String() string

func (M_Subenum) Type

func (M_Subenum) Type() protoreflect.EnumType

func (*M_Subenum) UnmarshalJSON

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

Deprecated: Do not use.

type M_Submessage

type M_Submessage struct {

    // Types that are assignable to SubmessageOneofField:
    //
    //	*M_Submessage_SubmessageOneofInt32
    //	*M_Submessage_SubmessageOneofInt64
    SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"`
    // contains filtered or unexported fields
}

func (*M_Submessage) Descriptor

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

Deprecated: Use M_Submessage.ProtoReflect.Descriptor instead.

func (*M_Submessage) GetSubmessageOneofField

func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField

func (*M_Submessage) GetSubmessageOneofInt32

func (x *M_Submessage) GetSubmessageOneofInt32() int32

func (*M_Submessage) GetSubmessageOneofInt64

func (x *M_Submessage) GetSubmessageOneofInt64() int64

func (*M_Submessage) ProtoMessage

func (*M_Submessage) ProtoMessage()

func (*M_Submessage) ProtoReflect

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

func (*M_Submessage) Reset

func (x *M_Submessage) Reset()

func (*M_Submessage) String

func (x *M_Submessage) String() string

type M_Submessage_SubmessageOneofInt32

type M_Submessage_SubmessageOneofInt32 struct {
    SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"`
}

type M_Submessage_SubmessageOneofInt64

type M_Submessage_SubmessageOneofInt64 struct {
    SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"`
}

type M_Submessage_Submessage_Subenum

type M_Submessage_Submessage_Subenum int32
const (
    M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0
)

func (M_Submessage_Submessage_Subenum) Descriptor

func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor

func (M_Submessage_Submessage_Subenum) Enum

func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum

func (M_Submessage_Submessage_Subenum) EnumDescriptor

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

Deprecated: Use M_Submessage_Submessage_Subenum.Descriptor instead.

func (M_Submessage_Submessage_Subenum) Number

func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber

func (M_Submessage_Submessage_Subenum) String

func (x M_Submessage_Submessage_Subenum) String() string

func (M_Submessage_Submessage_Subenum) Type

func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType

func (*M_Submessage_Submessage_Subenum) UnmarshalJSON

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

Deprecated: Do not use.

type Sub2Message

type Sub2Message = sub2.Sub2Message