internal

package
v0.0.0-...-0b2320d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package internal is used exclusively for descutil own tests.

Index

Constants

This section is empty.

Variables

View Source
var (
	E1_name = map[int32]string{
		0: "V0",
		1: "V1",
	}
	E1_value = map[string]int32{
		"V0": 0,
		"V1": 1,
	}
)

Enum value maps for E1.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_go_chromium_org_luci_common_proto_google_descutil_internal_util_proto protoreflect.FileDescriptor

Functions

func RegisterS1Server

func RegisterS1Server(s prpc.Registrar, srv S1Server)

func RegisterS2Server

func RegisterS2Server(s prpc.Registrar, srv S2Server)

Types

type E1

type E1 int32

Enum comment. next line.

const (
	// V0
	// next line.
	E1_V0 E1 = 0
	// V1
	// next line.
	E1_V1 E1 = 1
)

func (E1) Descriptor

func (E1) Descriptor() protoreflect.EnumDescriptor

func (E1) Enum

func (x E1) Enum() *E1

func (E1) EnumDescriptor deprecated

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 {

	// 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) Descriptor() ([]byte, []int)

Deprecated: Use M1.ProtoReflect.Descriptor instead.

func (*M1) GetF1

func (x *M1) GetF1() string

func (*M1) GetMeep

func (x *M1) GetMeep() []int64

func (*M1) GetOnlyJsonName

func (x *M1) GetOnlyJsonName() bool

func (*M1) GetRegularSnakeCase

func (x *M1) GetRegularSnakeCase() bool

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 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) Descriptor() ([]byte, []int)

Deprecated: Use M2.ProtoReflect.Descriptor instead.

func (*M2) GetF1

func (x *M2) GetF1() []*M1

func (*M2) GetF2

func (x *M2) GetF2() E1

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 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) Descriptor() ([]byte, []int)

Deprecated: Use M3.ProtoReflect.Descriptor instead.

func (*M3) GetF1

func (x *M3) GetF1() int32

func (*M3) GetF2

func (x *M3) GetF2() int32

func (*M3) GetF3

func (x *M3) GetF3() int32

func (*M3) GetF4

func (x *M3) GetF4() int32

func (*M3) GetF5

func (x *M3) GetF5() string

func (*M3) GetF6

func (x *M3) GetF6() int32

func (*M3) GetO1

func (m *M3) GetO1() isM3_O1

func (*M3) GetO2

func (m *M3) GetO2() isM3_O2

func (*M3) ProtoMessage

func (*M3) ProtoMessage()

func (*M3) ProtoReflect

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

func (*M3) Reset

func (x *M3) Reset()

func (*M3) String

func (x *M3) String() string

type M3_F1

type M3_F1 struct {
	// f1
	F1 int32 `protobuf:"varint,1,opt,name=f1,proto3,oneof"`
}

type M3_F2

type M3_F2 struct {
	// f2
	F2 int32 `protobuf:"varint,2,opt,name=f2,proto3,oneof"`
}

type M3_F3

type M3_F3 struct {
	// f3
	F3 int32 `protobuf:"varint,3,opt,name=f3,proto3,oneof"`
}

type M3_F4

type M3_F4 struct {
	// f4
	F4 int32 `protobuf:"varint,4,opt,name=f4,proto3,oneof"`
}

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) Enum

func (NestedMessageParent_NestedEnum) EnumDescriptor deprecated

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

Deprecated: Use NestedMessageParent_NestedEnum.Descriptor instead.

func (NestedMessageParent_NestedEnum) Number

func (NestedMessageParent_NestedEnum) String

func (NestedMessageParent_NestedEnum) Type

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 (*NestedMessageParent_NestedMessage) GetF2

func (*NestedMessageParent_NestedMessage) ProtoMessage

func (*NestedMessageParent_NestedMessage) ProtoMessage()

func (*NestedMessageParent_NestedMessage) ProtoReflect

func (*NestedMessageParent_NestedMessage) Reset

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

func NewS1PRPCClient(client *prpc.Client) S1Client

type S1Server

type S1Server interface {
	// R1
	R1(context.Context, *M1) (*M2, error)
}

S1Server is the server API for S1 service.

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

func NewS2PRPCClient(client *prpc.Client) S2Client

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) Descriptor() ([]byte, []int)

Deprecated: Use SuperExt.ProtoReflect.Descriptor instead.

func (*SuperExt) GetA

func (x *SuperExt) GetA() string

func (*SuperExt) GetB

func (x *SuperExt) GetB() string

func (*SuperExt) ProtoMessage

func (*SuperExt) ProtoMessage()

func (*SuperExt) ProtoReflect

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

func (*SuperExt) Reset

func (x *SuperExt) Reset()

func (*SuperExt) String

func (x *SuperExt) String() string

type UnimplementedS1Server

type UnimplementedS1Server struct {
}

UnimplementedS1Server can be embedded to have forward compatible implementations.

func (*UnimplementedS1Server) R1

type UnimplementedS2Server

type UnimplementedS2Server struct {
}

UnimplementedS2Server can be embedded to have forward compatible implementations.

func (*UnimplementedS2Server) R1

func (*UnimplementedS2Server) R2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL