blob: 5ee5eece9755be5ebda57e9d2ac41f6b1e290587 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.0
// source: go/pkg/balancer/proto/grpcbalancer.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AffinityConfig_Command int32
const (
AffinityConfig_BOUND AffinityConfig_Command = 0
AffinityConfig_BIND AffinityConfig_Command = 1
AffinityConfig_UNBIND AffinityConfig_Command = 2
)
// Enum value maps for AffinityConfig_Command.
var (
AffinityConfig_Command_name = map[int32]string{
0: "BOUND",
1: "BIND",
2: "UNBIND",
}
AffinityConfig_Command_value = map[string]int32{
"BOUND": 0,
"BIND": 1,
"UNBIND": 2,
}
)
func (x AffinityConfig_Command) Enum() *AffinityConfig_Command {
p := new(AffinityConfig_Command)
*p = x
return p
}
func (x AffinityConfig_Command) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AffinityConfig_Command) Descriptor() protoreflect.EnumDescriptor {
return file_go_pkg_balancer_proto_grpcbalancer_proto_enumTypes[0].Descriptor()
}
func (AffinityConfig_Command) Type() protoreflect.EnumType {
return &file_go_pkg_balancer_proto_grpcbalancer_proto_enumTypes[0]
}
func (x AffinityConfig_Command) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AffinityConfig_Command.Descriptor instead.
func (AffinityConfig_Command) EnumDescriptor() ([]byte, []int) {
return file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescGZIP(), []int{3, 0}
}
type ApiConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ChannelPool *ChannelPoolConfig `protobuf:"bytes,2,opt,name=channel_pool,json=channelPool,proto3" json:"channel_pool,omitempty"`
Method []*MethodConfig `protobuf:"bytes,1001,rep,name=method,proto3" json:"method,omitempty"`
}
func (x *ApiConfig) Reset() {
*x = ApiConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ApiConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApiConfig) ProtoMessage() {}
func (x *ApiConfig) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApiConfig.ProtoReflect.Descriptor instead.
func (*ApiConfig) Descriptor() ([]byte, []int) {
return file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescGZIP(), []int{0}
}
func (x *ApiConfig) GetChannelPool() *ChannelPoolConfig {
if x != nil {
return x.ChannelPool
}
return nil
}
func (x *ApiConfig) GetMethod() []*MethodConfig {
if x != nil {
return x.Method
}
return nil
}
type ChannelPoolConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MaxSize uint32 `protobuf:"varint,1,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
IdleTimeout uint64 `protobuf:"varint,2,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
MaxConcurrentStreamsLowWatermark uint32 `protobuf:"varint,3,opt,name=max_concurrent_streams_low_watermark,json=maxConcurrentStreamsLowWatermark,proto3" json:"max_concurrent_streams_low_watermark,omitempty"`
}
func (x *ChannelPoolConfig) Reset() {
*x = ChannelPoolConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChannelPoolConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChannelPoolConfig) ProtoMessage() {}
func (x *ChannelPoolConfig) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChannelPoolConfig.ProtoReflect.Descriptor instead.
func (*ChannelPoolConfig) Descriptor() ([]byte, []int) {
return file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescGZIP(), []int{1}
}
func (x *ChannelPoolConfig) GetMaxSize() uint32 {
if x != nil {
return x.MaxSize
}
return 0
}
func (x *ChannelPoolConfig) GetIdleTimeout() uint64 {
if x != nil {
return x.IdleTimeout
}
return 0
}
func (x *ChannelPoolConfig) GetMaxConcurrentStreamsLowWatermark() uint32 {
if x != nil {
return x.MaxConcurrentStreamsLowWatermark
}
return 0
}
type MethodConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
Affinity *AffinityConfig `protobuf:"bytes,1001,opt,name=affinity,proto3" json:"affinity,omitempty"`
}
func (x *MethodConfig) Reset() {
*x = MethodConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MethodConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MethodConfig) ProtoMessage() {}
func (x *MethodConfig) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MethodConfig.ProtoReflect.Descriptor instead.
func (*MethodConfig) Descriptor() ([]byte, []int) {
return file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescGZIP(), []int{2}
}
func (x *MethodConfig) GetName() []string {
if x != nil {
return x.Name
}
return nil
}
func (x *MethodConfig) GetAffinity() *AffinityConfig {
if x != nil {
return x.Affinity
}
return nil
}
type AffinityConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Command AffinityConfig_Command `protobuf:"varint,2,opt,name=command,proto3,enum=grpcbalancer.AffinityConfig_Command" json:"command,omitempty"`
AffinityKey string `protobuf:"bytes,3,opt,name=affinity_key,json=affinityKey,proto3" json:"affinity_key,omitempty"`
}
func (x *AffinityConfig) Reset() {
*x = AffinityConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AffinityConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AffinityConfig) ProtoMessage() {}
func (x *AffinityConfig) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AffinityConfig.ProtoReflect.Descriptor instead.
func (*AffinityConfig) Descriptor() ([]byte, []int) {
return file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescGZIP(), []int{3}
}
func (x *AffinityConfig) GetCommand() AffinityConfig_Command {
if x != nil {
return x.Command
}
return AffinityConfig_BOUND
}
func (x *AffinityConfig) GetAffinityKey() string {
if x != nil {
return x.AffinityKey
}
return ""
}
var File_go_pkg_balancer_proto_grpcbalancer_proto protoreflect.FileDescriptor
var file_go_pkg_balancer_proto_grpcbalancer_proto_rawDesc = []byte{
0x0a, 0x28, 0x67, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65,
0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x61, 0x6c, 0x61,
0x6e, 0x63, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63,
0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x22, 0x84, 0x01, 0x0a, 0x09, 0x41, 0x70, 0x69,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65,
0x6c, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67,
0x72, 0x70, 0x63, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x61, 0x6e,
0x6e, 0x65, 0x6c, 0x50, 0x6f, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x63,
0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x33, 0x0a, 0x06, 0x6d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x18, 0xe9, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72,
0x70, 0x63, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22,
0xa1, 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x6f, 0x6f, 0x6c, 0x43,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65,
0x12, 0x21, 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x69, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65,
0x6f, 0x75, 0x74, 0x12, 0x4e, 0x0a, 0x24, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75,
0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x5f, 0x6c, 0x6f,
0x77, 0x5f, 0x77, 0x61, 0x74, 0x65, 0x72, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x20, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,
0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x4c, 0x6f, 0x77, 0x57, 0x61, 0x74, 0x65, 0x72, 0x6d,
0x61, 0x72, 0x6b, 0x22, 0x5d, 0x0a, 0x0c, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x61, 0x66, 0x66, 0x69, 0x6e,
0x69, 0x74, 0x79, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x70,
0x63, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x2e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69,
0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x61, 0x66, 0x66, 0x69, 0x6e, 0x69,
0x74, 0x79, 0x22, 0x9f, 0x01, 0x0a, 0x0e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x43,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x62, 0x61, 0x6c,
0x61, 0x6e, 0x63, 0x65, 0x72, 0x2e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x6f,
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x07, 0x63, 0x6f,
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74,
0x79, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x66, 0x66,
0x69, 0x6e, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x22, 0x2a, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d,
0x61, 0x6e, 0x64, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x08,
0x0a, 0x04, 0x42, 0x49, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x4e, 0x42, 0x49,
0x4e, 0x44, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescOnce sync.Once
file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescData = file_go_pkg_balancer_proto_grpcbalancer_proto_rawDesc
)
func file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescGZIP() []byte {
file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescOnce.Do(func() {
file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescData)
})
return file_go_pkg_balancer_proto_grpcbalancer_proto_rawDescData
}
var file_go_pkg_balancer_proto_grpcbalancer_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_go_pkg_balancer_proto_grpcbalancer_proto_goTypes = []interface{}{
(AffinityConfig_Command)(0), // 0: grpcbalancer.AffinityConfig.Command
(*ApiConfig)(nil), // 1: grpcbalancer.ApiConfig
(*ChannelPoolConfig)(nil), // 2: grpcbalancer.ChannelPoolConfig
(*MethodConfig)(nil), // 3: grpcbalancer.MethodConfig
(*AffinityConfig)(nil), // 4: grpcbalancer.AffinityConfig
}
var file_go_pkg_balancer_proto_grpcbalancer_proto_depIdxs = []int32{
2, // 0: grpcbalancer.ApiConfig.channel_pool:type_name -> grpcbalancer.ChannelPoolConfig
3, // 1: grpcbalancer.ApiConfig.method:type_name -> grpcbalancer.MethodConfig
4, // 2: grpcbalancer.MethodConfig.affinity:type_name -> grpcbalancer.AffinityConfig
0, // 3: grpcbalancer.AffinityConfig.command:type_name -> grpcbalancer.AffinityConfig.Command
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_go_pkg_balancer_proto_grpcbalancer_proto_init() }
func file_go_pkg_balancer_proto_grpcbalancer_proto_init() {
if File_go_pkg_balancer_proto_grpcbalancer_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ApiConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ChannelPoolConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MethodConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AffinityConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_go_pkg_balancer_proto_grpcbalancer_proto_rawDesc,
NumEnums: 1,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_go_pkg_balancer_proto_grpcbalancer_proto_goTypes,
DependencyIndexes: file_go_pkg_balancer_proto_grpcbalancer_proto_depIdxs,
EnumInfos: file_go_pkg_balancer_proto_grpcbalancer_proto_enumTypes,
MessageInfos: file_go_pkg_balancer_proto_grpcbalancer_proto_msgTypes,
}.Build()
File_go_pkg_balancer_proto_grpcbalancer_proto = out.File
file_go_pkg_balancer_proto_grpcbalancer_proto_rawDesc = nil
file_go_pkg_balancer_proto_grpcbalancer_proto_goTypes = nil
file_go_pkg_balancer_proto_grpcbalancer_proto_depIdxs = nil
}