// Code generated by protoc-gen-go.
// source: grpclb_balancer_v1/balancer.proto
// DO NOT EDIT!

/*
Package grpclb_balancer_v1 is a generated protocol buffer package.

It is generated from these files:
	grpclb_balancer_v1/balancer.proto

It has these top-level messages:
	Server
	ServersRequest
	ServersResponse
*/
package grpclb_balancer_v1

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

import (
	context "golang.org/x/net/context"
	grpc "google.golang.org/grpc"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package

type Server struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Score   int64  `protobuf:"varint,2,opt,name=score" json:"score,omitempty"`
}

func (m *Server) Reset()                    { *m = Server{} }
func (m *Server) String() string            { return proto.CompactTextString(m) }
func (*Server) ProtoMessage()               {}
func (*Server) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

func (m *Server) GetAddress() string {
	if m != nil {
		return m.Address
	}
	return ""
}

func (m *Server) GetScore() int64 {
	if m != nil {
		return m.Score
	}
	return 0
}

type ServersRequest struct {
	Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
}

func (m *ServersRequest) Reset()                    { *m = ServersRequest{} }
func (m *ServersRequest) String() string            { return proto.CompactTextString(m) }
func (*ServersRequest) ProtoMessage()               {}
func (*ServersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }

func (m *ServersRequest) GetTarget() string {
	if m != nil {
		return m.Target
	}
	return ""
}

type ServersResponse struct {
	Servers []*Server `protobuf:"bytes,1,rep,name=servers" json:"servers,omitempty"`
}

func (m *ServersResponse) Reset()                    { *m = ServersResponse{} }
func (m *ServersResponse) String() string            { return proto.CompactTextString(m) }
func (*ServersResponse) ProtoMessage()               {}
func (*ServersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }

func (m *ServersResponse) GetServers() []*Server {
	if m != nil {
		return m.Servers
	}
	return nil
}

func init() {
	proto.RegisterType((*Server)(nil), "grpclb.balancer.v1.Server")
	proto.RegisterType((*ServersRequest)(nil), "grpclb.balancer.v1.ServersRequest")
	proto.RegisterType((*ServersResponse)(nil), "grpclb.balancer.v1.ServersResponse")
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// Client API for LoadBalancer service

type LoadBalancerClient interface {
	Servers(ctx context.Context, in *ServersRequest, opts ...grpc.CallOption) (*ServersResponse, error)
}

type loadBalancerClient struct {
	cc *grpc.ClientConn
}

func NewLoadBalancerClient(cc *grpc.ClientConn) LoadBalancerClient {
	return &loadBalancerClient{cc}
}

func (c *loadBalancerClient) Servers(ctx context.Context, in *ServersRequest, opts ...grpc.CallOption) (*ServersResponse, error) {
	out := new(ServersResponse)
	err := grpc.Invoke(ctx, "/grpclb.balancer.v1.LoadBalancer/Servers", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for LoadBalancer service

type LoadBalancerServer interface {
	Servers(context.Context, *ServersRequest) (*ServersResponse, error)
}

func RegisterLoadBalancerServer(s *grpc.Server, srv LoadBalancerServer) {
	s.RegisterService(&_LoadBalancer_serviceDesc, srv)
}

func _LoadBalancer_Servers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ServersRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(LoadBalancerServer).Servers(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/grpclb.balancer.v1.LoadBalancer/Servers",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(LoadBalancerServer).Servers(ctx, req.(*ServersRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _LoadBalancer_serviceDesc = grpc.ServiceDesc{
	ServiceName: "grpclb.balancer.v1.LoadBalancer",
	HandlerType: (*LoadBalancerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Servers",
			Handler:    _LoadBalancer_Servers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpclb_balancer_v1/balancer.proto",
}

func init() { proto.RegisterFile("grpclb_balancer_v1/balancer.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 207 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x90, 0x31, 0x4b, 0x04, 0x31,
	0x10, 0x85, 0x89, 0x87, 0xbb, 0x38, 0x8a, 0xc2, 0x20, 0x12, 0xae, 0x5a, 0x63, 0x93, 0x2a, 0x72,
	0xa7, 0x85, 0xb5, 0x8d, 0x8d, 0x55, 0xfc, 0x01, 0x47, 0xb2, 0x3b, 0x5c, 0x73, 0x5c, 0xd6, 0x99,
	0xb8, 0xbf, 0x5f, 0x30, 0xc9, 0x35, 0xa2, 0xdd, 0xbc, 0xc7, 0xf7, 0x1e, 0x8f, 0x81, 0xfb, 0x3d,
	0xcf, 0xe3, 0x21, 0xee, 0x62, 0x38, 0x84, 0xe3, 0x48, 0xbc, 0x5b, 0x36, 0x8f, 0xed, 0x76, 0x33,
	0xa7, 0x9c, 0x10, 0x0b, 0xe2, 0x4e, 0xf6, 0xb2, 0x31, 0x2f, 0xd0, 0x7d, 0x10, 0x2f, 0xc4, 0xa8,
	0xa1, 0x0f, 0xd3, 0xc4, 0x24, 0xa2, 0xd5, 0xa0, 0xec, 0x85, 0x6f, 0x12, 0x6f, 0xe1, 0x5c, 0xc6,
	0xc4, 0xa4, 0xcf, 0x06, 0x65, 0x57, 0xbe, 0x08, 0x63, 0xe1, 0xba, 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