// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.30.0
// 	protoc        v3.20.2
// source: cmd/manager/protos/manager.proto

package manager

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 WatchBackendRequestV2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Token           string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	GatewayHostname string `protobuf:"bytes,2,opt,name=gateway_hostname,json=gatewayHostname,proto3" json:"gateway_hostname,omitempty"`
}

func (x *WatchBackendRequestV2) Reset() {
	*x = WatchBackendRequestV2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_cmd_manager_protos_manager_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *WatchBackendRequestV2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WatchBackendRequestV2) ProtoMessage() {}

func (x *WatchBackendRequestV2) ProtoReflect() protoreflect.Message {
	mi := &file_cmd_manager_protos_manager_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 WatchBackendRequestV2.ProtoReflect.Descriptor instead.
func (*WatchBackendRequestV2) Descriptor() ([]byte, []int) {
	return file_cmd_manager_protos_manager_proto_rawDescGZIP(), []int{0}
}

func (x *WatchBackendRequestV2) GetToken() string {
	if x != nil {
		return x.Token
	}
	return ""
}

func (x *WatchBackendRequestV2) GetGatewayHostname() string {
	if x != nil {
		return x.GatewayHostname
	}
	return ""
}

type BackendResponseV2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Backends []*Backend `protobuf:"bytes,1,rep,name=backends,proto3" json:"backends,omitempty"`
	TidbPool string     `protobuf:"bytes,2,opt,name=tidb_pool,json=tidbPool,proto3" json:"tidb_pool,omitempty"`
	Comment  string     `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
	// mod_revision is the latest modify revision of etcd endpoints or replicas kv.
	ModRevision int64 `protobuf:"varint,4,opt,name=mod_revision,json=modRevision,proto3" json:"mod_revision,omitempty"`
	Replicas    int32 `protobuf:"varint,5,opt,name=replicas,proto3" json:"replicas,omitempty"`
}

func (x *BackendResponseV2) Reset() {
	*x = BackendResponseV2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_cmd_manager_protos_manager_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *BackendResponseV2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BackendResponseV2) ProtoMessage() {}

func (x *BackendResponseV2) ProtoReflect() protoreflect.Message {
	mi := &file_cmd_manager_protos_manager_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 BackendResponseV2.ProtoReflect.Descriptor instead.
func (*BackendResponseV2) Descriptor() ([]byte, []int) {
	return file_cmd_manager_protos_manager_proto_rawDescGZIP(), []int{1}
}

func (x *BackendResponseV2) GetBackends() []*Backend {
	if x != nil {
		return x.Backends
	}
	return nil
}

func (x *BackendResponseV2) GetTidbPool() string {
	if x != nil {
		return x.TidbPool
	}
	return ""
}

func (x *BackendResponseV2) GetComment() string {
	if x != nil {
		return x.Comment
	}
	return ""
}

func (x *BackendResponseV2) GetModRevision() int64 {
	if x != nil {
		return x.ModRevision
	}
	return 0
}

func (x *BackendResponseV2) GetReplicas() int32 {
	if x != nil {
		return x.Replicas
	}
	return 0
}

type Backend struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Ip      string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	PodName string `protobuf:"bytes,2,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
}

func (x *Backend) Reset() {
	*x = Backend{}
	if protoimpl.UnsafeEnabled {
		mi := &file_cmd_manager_protos_manager_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Backend) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Backend) ProtoMessage() {}

func (x *Backend) ProtoReflect() protoreflect.Message {
	mi := &file_cmd_manager_protos_manager_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 Backend.ProtoReflect.Descriptor instead.
func (*Backend) Descriptor() ([]byte, []int) {
	return file_cmd_manager_protos_manager_proto_rawDescGZIP(), []int{2}
}

func (x *Backend) GetIp() string {
	if x != nil {
		return x.Ip
	}
	return ""
}

func (x *Backend) GetPodName() string {
	if x != nil {
		return x.PodName
	}
	return ""
}

type GetBackendRequestV2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Token           string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	GatewayHostname string `protobuf:"bytes,2,opt,name=gateway_hostname,json=gatewayHostname,proto3" json:"gateway_hostname,omitempty"`
}

func (x *GetBackendRequestV2) Reset() {
	*x = GetBackendRequestV2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_cmd_manager_protos_manager_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GetBackendRequestV2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetBackendRequestV2) ProtoMessage() {}

func (x *GetBackendRequestV2) ProtoReflect() protoreflect.Message {
	mi := &file_cmd_manager_protos_manager_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 GetBackendRequestV2.ProtoReflect.Descriptor instead.
func (*GetBackendRequestV2) Descriptor() ([]byte, []int) {
	return file_cmd_manager_protos_manager_proto_rawDescGZIP(), []int{3}
}

func (x *GetBackendRequestV2) GetToken() string {
	if x != nil {
		return x.Token
	}
	return ""
}

func (x *GetBackendRequestV2) GetGatewayHostname() string {
	if x != nil {
		return x.GatewayHostname
	}
	return ""
}

type GetBackendResponseV2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Responses []*BackendResponseV2 `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
}

func (x *GetBackendResponseV2) Reset() {
	*x = GetBackendResponseV2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_cmd_manager_protos_manager_proto_msgTypes[4]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GetBackendResponseV2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetBackendResponseV2) ProtoMessage() {}

func (x *GetBackendResponseV2) ProtoReflect() protoreflect.Message {
	mi := &file_cmd_manager_protos_manager_proto_msgTypes[4]
	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 GetBackendResponseV2.ProtoReflect.Descriptor instead.
func (*GetBackendResponseV2) Descriptor() ([]byte, []int) {
	return file_cmd_manager_protos_manager_proto_rawDescGZIP(), []int{4}
}

func (x *GetBackendResponseV2) GetResponses() []*BackendResponseV2 {
	if x != nil {
		return x.Responses
	}
	return nil
}

var File_cmd_manager_protos_manager_proto protoreflect.FileDescriptor

var file_cmd_manager_protos_manager_proto_rawDesc = []byte{
	0x0a, 0x20, 0x63, 0x6d, 0x64, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x22, 0x58, 0x0a, 0x15, 0x57, 0x61, 0x74, 0x63, 0x68, 0x42, 0x61, 0x63, 0x6b, 0x65,
	0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x32, 0x12, 0x14, 0x0a, 0x05, 0x74,
	0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
	0x6e, 0x12, 0x29, 0x0a, 0x10, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x68, 0x6f, 0x73,
	0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x67, 0x61, 0x74,
	0x65, 0x77, 0x61, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xaf, 0x01, 0x0a,
	0x11, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
	0x56, 0x32, 0x12, 0x24, 0x0a, 0x08, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x01,
	0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x08,
	0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, 0x64, 0x62,
	0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, 0x64,
	0x62, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12,
	0x21, 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18,
	0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x6f, 0x64, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69,
	0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x05,
	0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0x34,
	0x0a, 0x07, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18,
	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64,
	0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64,
	0x4e, 0x61, 0x6d, 0x65, 0x22, 0x56, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65,
	0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x32, 0x12, 0x14, 0x0a, 0x05, 0x74,
	0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65,
	0x6e, 0x12, 0x29, 0x0a, 0x10, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x68, 0x6f, 0x73,
	0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x67, 0x61, 0x74,
	0x65, 0x77, 0x61, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x48, 0x0a, 0x14,
	0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
	0x73, 0x65, 0x56, 0x32, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
	0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e,
	0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x32, 0x52, 0x09, 0x72, 0x65, 0x73,
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x32, 0x8a, 0x01, 0x0a, 0x0b, 0x54, 0x69, 0x64, 0x62, 0x42,
	0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x3e, 0x0a, 0x0e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x42,
	0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x56, 0x32, 0x12, 0x16, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68,
	0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x32,
	0x1a, 0x12, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
	0x73, 0x65, 0x56, 0x32, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63,
	0x6b, 0x65, 0x6e, 0x64, 0x56, 0x32, 0x12, 0x14, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b,
	0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x32, 0x1a, 0x15, 0x2e, 0x47,
	0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
	0x65, 0x56, 0x32, 0x42, 0x0f, 0x5a, 0x0d, 0x70, 0x62, 0x67, 0x65, 0x6e, 0x2f, 0x6d, 0x61, 0x6e,
	0x61, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_cmd_manager_protos_manager_proto_rawDescOnce sync.Once
	file_cmd_manager_protos_manager_proto_rawDescData = file_cmd_manager_protos_manager_proto_rawDesc
)

func file_cmd_manager_protos_manager_proto_rawDescGZIP() []byte {
	file_cmd_manager_protos_manager_proto_rawDescOnce.Do(func() {
		file_cmd_manager_protos_manager_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_manager_protos_manager_proto_rawDescData)
	})
	return file_cmd_manager_protos_manager_proto_rawDescData
}

var file_cmd_manager_protos_manager_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_cmd_manager_protos_manager_proto_goTypes = []interface{}{
	(*WatchBackendRequestV2)(nil), // 0: WatchBackendRequestV2
	(*BackendResponseV2)(nil),     // 1: BackendResponseV2
	(*Backend)(nil),               // 2: Backend
	(*GetBackendRequestV2)(nil),   // 3: GetBackendRequestV2
	(*GetBackendResponseV2)(nil),  // 4: GetBackendResponseV2
}
var file_cmd_manager_protos_manager_proto_depIdxs = []int32{
	2, // 0: BackendResponseV2.backends:type_name -> Backend
	1, // 1: GetBackendResponseV2.responses:type_name -> BackendResponseV2
	0, // 2: TidbBackend.WatchBackendV2:input_type -> WatchBackendRequestV2
	3, // 3: TidbBackend.GetBackendV2:input_type -> GetBackendRequestV2
	1, // 4: TidbBackend.WatchBackendV2:output_type -> BackendResponseV2
	4, // 5: TidbBackend.GetBackendV2:output_type -> GetBackendResponseV2
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_cmd_manager_protos_manager_proto_init() }
func file_cmd_manager_protos_manager_proto_init() {
	if File_cmd_manager_protos_manager_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_cmd_manager_protos_manager_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*WatchBackendRequestV2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_cmd_manager_protos_manager_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*BackendResponseV2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_cmd_manager_protos_manager_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Backend); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_cmd_manager_protos_manager_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GetBackendRequestV2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_cmd_manager_protos_manager_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GetBackendResponseV2); 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_cmd_manager_protos_manager_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_cmd_manager_protos_manager_proto_goTypes,
		DependencyIndexes: file_cmd_manager_protos_manager_proto_depIdxs,
		MessageInfos:      file_cmd_manager_protos_manager_proto_msgTypes,
	}.Build()
	File_cmd_manager_protos_manager_proto = out.File
	file_cmd_manager_protos_manager_proto_rawDesc = nil
	file_cmd_manager_protos_manager_proto_goTypes = nil
	file_cmd_manager_protos_manager_proto_depIdxs = nil
}
