Documentation ¶
Overview ¶
Package internal is used exclusively for descutil own tests.
Index ¶
- Variables
- func RegisterS1Server(s prpc.Registrar, srv S1Server)
- func RegisterS2Server(s prpc.Registrar, srv S2Server)
- type E1
- type M1
- func (*M1) Descriptor() ([]byte, []int)deprecated
- func (x *M1) GetF1() string
- func (x *M1) GetMeep() []int64
- func (x *M1) GetOnlyJsonName() bool
- func (x *M1) GetRegularSnakeCase() bool
- func (*M1) ProtoMessage()
- func (x *M1) ProtoReflect() protoreflect.Message
- func (x *M1) Reset()
- func (x *M1) String() string
- type M2deprecated
- type M3
- func (*M3) Descriptor() ([]byte, []int)deprecated
- func (x *M3) GetF1() int32
- func (x *M3) GetF2() int32
- func (x *M3) GetF3() int32
- func (x *M3) GetF4() int32
- func (x *M3) GetF5() string
- func (x *M3) GetF6() int32
- func (m *M3) GetO1() isM3_O1
- func (m *M3) GetO2() isM3_O2
- func (*M3) ProtoMessage()
- func (x *M3) ProtoReflect() protoreflect.Message
- func (x *M3) Reset()
- func (x *M3) String() string
- type M3_F1
- type M3_F2
- type M3_F3
- type M3_F4
- type NestedMessageParent
- type NestedMessageParent_NestedEnum
- func (NestedMessageParent_NestedEnum) Descriptor() protoreflect.EnumDescriptor
- func (x NestedMessageParent_NestedEnum) Enum() *NestedMessageParent_NestedEnum
- func (NestedMessageParent_NestedEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x NestedMessageParent_NestedEnum) Number() protoreflect.EnumNumber
- func (x NestedMessageParent_NestedEnum) String() string
- func (NestedMessageParent_NestedEnum) Type() protoreflect.EnumType
- type NestedMessageParent_NestedMessage
- func (*NestedMessageParent_NestedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *NestedMessageParent_NestedMessage) GetF1() int32
- func (x *NestedMessageParent_NestedMessage) GetF2() int32
- func (*NestedMessageParent_NestedMessage) ProtoMessage()
- func (x *NestedMessageParent_NestedMessage) ProtoReflect() protoreflect.Message
- func (x *NestedMessageParent_NestedMessage) Reset()
- func (x *NestedMessageParent_NestedMessage) String() string
- type ReservedRangeContainer
- type S1Client
- type S1Server
- type S2Client
- type S2Server
- type SuperExt
- type UnimplementedS1Server
- type UnimplementedS2Server
Constants ¶
This section is empty.
Variables ¶
var ( E1_name = map[int32]string{ 0: "V0", 1: "V1", } E1_value = map[string]int32{ "V0": 0, "V1": 1, } )
Enum value maps for E1.
var ( NestedMessageParent_NestedEnum_name = map[int32]string{ 0: "V0", 1: "V1", } NestedMessageParent_NestedEnum_value = map[string]int32{ "V0": 0, "V1": 1, } )
Enum value maps for NestedMessageParent_NestedEnum.
var ( // optional string ext = 50001; E_Ext = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[0] // optional descutil.SuperExt super_ext = 50002; E_SuperExt = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[1] )
Extension fields to descriptorpb.FieldOptions.
var ( // optional string msgExt = 50001; E_MsgExt = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[2] // optional descutil.SuperExt super_msg_ext = 50002; E_SuperMsgExt = &file_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto_extTypes[3] )
Extension fields to descriptorpb.MessageOptions.
var File_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto protoreflect.FileDescriptor
Functions ¶
func RegisterS1Server ¶
func RegisterS2Server ¶
Types ¶
type E1 ¶
type E1 int32
Enum comment. next line.
func (E1) Descriptor ¶
func (E1) Descriptor() protoreflect.EnumDescriptor
func (E1) EnumDescriptor
deprecated
func (E1) Number ¶
func (x E1) Number() protoreflect.EnumNumber
func (E1) Type ¶
func (E1) Type() protoreflect.EnumType
type M1 ¶
type M1 struct { // f1 // next line. F1 string `protobuf:"bytes,1,opt,name=f1,json=foof,proto3" json:"f1,omitempty"` Meep []int64 `protobuf:"varint,2,rep,name=meep,proto3" json:"meep,omitempty"` RegularSnakeCase bool `protobuf:"varint,3,opt,name=regular_snake_case,json=regularSnakeCase,proto3" json:"regular_snake_case,omitempty"` OnlyJsonName bool `protobuf:"varint,4,opt,name=only_json_name,json=cool,proto3" json:"only_json_name,omitempty"` // contains filtered or unexported fields }
M1 next line.
func (*M1) Descriptor
deprecated
func (*M1) GetOnlyJsonName ¶
func (*M1) GetRegularSnakeCase ¶
func (*M1) ProtoMessage ¶
func (*M1) ProtoMessage()
func (*M1) ProtoReflect ¶
func (x *M1) ProtoReflect() protoreflect.Message
type M2
deprecated
type M2 struct { // f1 // next line. F1 []*M1 `protobuf:"bytes,1,rep,name=f1,proto3" json:"f1,omitempty"` // f2 // next line. F2 E1 `protobuf:"varint,2,opt,name=f2,proto3,enum=descutil.E1" json:"f2,omitempty"` // contains filtered or unexported fields }
M2 next line.
Deprecated: Marked as deprecated in go.chromium.org/luci/common/proto/google/descutil/internal/util.proto.
func (*M2) Descriptor
deprecated
func (*M2) ProtoMessage ¶
func (*M2) ProtoMessage()
func (*M2) ProtoReflect ¶
func (x *M2) ProtoReflect() protoreflect.Message
type M3 ¶
type M3 struct { // O1 // // Types that are assignable to O1: // // *M3_F1 // *M3_F2 O1 isM3_O1 `protobuf_oneof:"O1"` // O2 // // Types that are assignable to O2: // // *M3_F3 // *M3_F4 O2 isM3_O2 `protobuf_oneof:"O2"` // f5 F5 string `protobuf:"bytes,5,opt,name=f5,proto3" json:"f5,omitempty"` // f6 F6 int32 `protobuf:"varint,6,opt,name=f6,proto3" json:"f6,omitempty"` // contains filtered or unexported fields }
M3
func (*M3) Descriptor
deprecated
func (*M3) ProtoMessage ¶
func (*M3) ProtoMessage()
func (*M3) ProtoReflect ¶
func (x *M3) ProtoReflect() protoreflect.Message
type NestedMessageParent ¶
type NestedMessageParent struct {
// contains filtered or unexported fields
}
func (*NestedMessageParent) Descriptor
deprecated
func (*NestedMessageParent) Descriptor() ([]byte, []int)
Deprecated: Use NestedMessageParent.ProtoReflect.Descriptor instead.
func (*NestedMessageParent) ProtoMessage ¶
func (*NestedMessageParent) ProtoMessage()
func (*NestedMessageParent) ProtoReflect ¶
func (x *NestedMessageParent) ProtoReflect() protoreflect.Message
func (*NestedMessageParent) Reset ¶
func (x *NestedMessageParent) Reset()
func (*NestedMessageParent) String ¶
func (x *NestedMessageParent) String() string
type NestedMessageParent_NestedEnum ¶
type NestedMessageParent_NestedEnum int32
const ( NestedMessageParent_V0 NestedMessageParent_NestedEnum = 0 NestedMessageParent_V1 NestedMessageParent_NestedEnum = 1 )
func (NestedMessageParent_NestedEnum) Descriptor ¶
func (NestedMessageParent_NestedEnum) Descriptor() protoreflect.EnumDescriptor
func (NestedMessageParent_NestedEnum) Enum ¶
func (x NestedMessageParent_NestedEnum) Enum() *NestedMessageParent_NestedEnum
func (NestedMessageParent_NestedEnum) EnumDescriptor
deprecated
func (NestedMessageParent_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use NestedMessageParent_NestedEnum.Descriptor instead.
func (NestedMessageParent_NestedEnum) Number ¶
func (x NestedMessageParent_NestedEnum) Number() protoreflect.EnumNumber
func (NestedMessageParent_NestedEnum) String ¶
func (x NestedMessageParent_NestedEnum) String() string
func (NestedMessageParent_NestedEnum) Type ¶
func (NestedMessageParent_NestedEnum) Type() protoreflect.EnumType
type NestedMessageParent_NestedMessage ¶
type NestedMessageParent_NestedMessage struct { F1 int32 `protobuf:"varint,1,opt,name=f1,proto3" json:"f1,omitempty"` F2 int32 `protobuf:"varint,2,opt,name=f2,proto3" json:"f2,omitempty"` // contains filtered or unexported fields }
func (*NestedMessageParent_NestedMessage) Descriptor
deprecated
func (*NestedMessageParent_NestedMessage) Descriptor() ([]byte, []int)
Deprecated: Use NestedMessageParent_NestedMessage.ProtoReflect.Descriptor instead.
func (*NestedMessageParent_NestedMessage) GetF1 ¶
func (x *NestedMessageParent_NestedMessage) GetF1() int32
func (*NestedMessageParent_NestedMessage) GetF2 ¶
func (x *NestedMessageParent_NestedMessage) GetF2() int32
func (*NestedMessageParent_NestedMessage) ProtoMessage ¶
func (*NestedMessageParent_NestedMessage) ProtoMessage()
func (*NestedMessageParent_NestedMessage) ProtoReflect ¶
func (x *NestedMessageParent_NestedMessage) ProtoReflect() protoreflect.Message
func (*NestedMessageParent_NestedMessage) Reset ¶
func (x *NestedMessageParent_NestedMessage) Reset()
func (*NestedMessageParent_NestedMessage) String ¶
func (x *NestedMessageParent_NestedMessage) String() string
type ReservedRangeContainer ¶
type ReservedRangeContainer struct {
// contains filtered or unexported fields
}
func (*ReservedRangeContainer) Descriptor
deprecated
func (*ReservedRangeContainer) Descriptor() ([]byte, []int)
Deprecated: Use ReservedRangeContainer.ProtoReflect.Descriptor instead.
func (*ReservedRangeContainer) ProtoMessage ¶
func (*ReservedRangeContainer) ProtoMessage()
func (*ReservedRangeContainer) ProtoReflect ¶
func (x *ReservedRangeContainer) ProtoReflect() protoreflect.Message
func (*ReservedRangeContainer) Reset ¶
func (x *ReservedRangeContainer) Reset()
func (*ReservedRangeContainer) String ¶
func (x *ReservedRangeContainer) String() string
type S1Client ¶
type S1Client interface { // R1 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) }
S1Client is the client API for S1 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewS1Client ¶
func NewS1Client(cc grpc.ClientConnInterface) S1Client
func NewS1PRPCClient ¶
type S2Client ¶
type S2Client interface { // R1 R1(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) // R2 R2(ctx context.Context, in *M1, opts ...grpc.CallOption) (*M2, error) }
S2Client is the client API for S2 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewS2Client ¶
func NewS2Client(cc grpc.ClientConnInterface) S2Client
func NewS2PRPCClient ¶
type S2Server ¶
type S2Server interface { // R1 R1(context.Context, *M1) (*M2, error) // R2 R2(context.Context, *M1) (*M2, error) }
S2Server is the server API for S2 service.
type SuperExt ¶
type SuperExt struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` B string `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*SuperExt) Descriptor
deprecated
func (*SuperExt) ProtoMessage ¶
func (*SuperExt) ProtoMessage()
func (*SuperExt) ProtoReflect ¶
func (x *SuperExt) ProtoReflect() protoreflect.Message
type UnimplementedS1Server ¶
type UnimplementedS1Server struct { }
UnimplementedS1Server can be embedded to have forward compatible implementations.
type UnimplementedS2Server ¶
type UnimplementedS2Server struct { }
UnimplementedS2Server can be embedded to have forward compatible implementations.