github.com/microsoft/moc@v0.17.1/rpc/nodeagent/network/moc_nodeagent_loadbalancer.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_nodeagent_loadbalancer.proto
     3  
     4  package network
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	wrappers "github.com/golang/protobuf/ptypes/wrappers"
    11  	common "github.com/microsoft/moc/rpc/common"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type LoadBalancerRequest struct {
    30  	LoadBalancers        []*LoadBalancer  `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"`
    31  	OperationType        common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    33  	XXX_unrecognized     []byte           `json:"-"`
    34  	XXX_sizecache        int32            `json:"-"`
    35  }
    36  
    37  func (m *LoadBalancerRequest) Reset()         { *m = LoadBalancerRequest{} }
    38  func (m *LoadBalancerRequest) String() string { return proto.CompactTextString(m) }
    39  func (*LoadBalancerRequest) ProtoMessage()    {}
    40  func (*LoadBalancerRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_1af92a635c1766eb, []int{0}
    42  }
    43  
    44  func (m *LoadBalancerRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_LoadBalancerRequest.Unmarshal(m, b)
    46  }
    47  func (m *LoadBalancerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_LoadBalancerRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *LoadBalancerRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_LoadBalancerRequest.Merge(m, src)
    52  }
    53  func (m *LoadBalancerRequest) XXX_Size() int {
    54  	return xxx_messageInfo_LoadBalancerRequest.Size(m)
    55  }
    56  func (m *LoadBalancerRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_LoadBalancerRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_LoadBalancerRequest proto.InternalMessageInfo
    61  
    62  func (m *LoadBalancerRequest) GetLoadBalancers() []*LoadBalancer {
    63  	if m != nil {
    64  		return m.LoadBalancers
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *LoadBalancerRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type LoadBalancerResponse struct {
    77  	LoadBalancers        []*LoadBalancer     `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"`
    78  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
    79  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
    80  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    81  	XXX_unrecognized     []byte              `json:"-"`
    82  	XXX_sizecache        int32               `json:"-"`
    83  }
    84  
    85  func (m *LoadBalancerResponse) Reset()         { *m = LoadBalancerResponse{} }
    86  func (m *LoadBalancerResponse) String() string { return proto.CompactTextString(m) }
    87  func (*LoadBalancerResponse) ProtoMessage()    {}
    88  func (*LoadBalancerResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_1af92a635c1766eb, []int{1}
    90  }
    91  
    92  func (m *LoadBalancerResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_LoadBalancerResponse.Unmarshal(m, b)
    94  }
    95  func (m *LoadBalancerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_LoadBalancerResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *LoadBalancerResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_LoadBalancerResponse.Merge(m, src)
   100  }
   101  func (m *LoadBalancerResponse) XXX_Size() int {
   102  	return xxx_messageInfo_LoadBalancerResponse.Size(m)
   103  }
   104  func (m *LoadBalancerResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_LoadBalancerResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_LoadBalancerResponse proto.InternalMessageInfo
   109  
   110  func (m *LoadBalancerResponse) GetLoadBalancers() []*LoadBalancer {
   111  	if m != nil {
   112  		return m.LoadBalancers
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *LoadBalancerResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *LoadBalancerResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type LoadBalancer struct {
   132  	Name                 string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   133  	Id                   string         `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   134  	Frontendip           string         `protobuf:"bytes,4,opt,name=frontendip,proto3" json:"frontendip,omitempty"`
   135  	Backendpoolname      string         `protobuf:"bytes,5,opt,name=backendpoolname,proto3" json:"backendpoolname,omitempty"`
   136  	Networkid            string         `protobuf:"bytes,6,opt,name=networkid,proto3" json:"networkid,omitempty"`
   137  	Status               *common.Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
   138  	Entity               *common.Entity `protobuf:"bytes,9,opt,name=entity,proto3" json:"entity,omitempty"`
   139  	Tags                 *common.Tags   `protobuf:"bytes,10,opt,name=tags,proto3" json:"tags,omitempty"`
   140  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   141  	XXX_unrecognized     []byte         `json:"-"`
   142  	XXX_sizecache        int32          `json:"-"`
   143  }
   144  
   145  func (m *LoadBalancer) Reset()         { *m = LoadBalancer{} }
   146  func (m *LoadBalancer) String() string { return proto.CompactTextString(m) }
   147  func (*LoadBalancer) ProtoMessage()    {}
   148  func (*LoadBalancer) Descriptor() ([]byte, []int) {
   149  	return fileDescriptor_1af92a635c1766eb, []int{2}
   150  }
   151  
   152  func (m *LoadBalancer) XXX_Unmarshal(b []byte) error {
   153  	return xxx_messageInfo_LoadBalancer.Unmarshal(m, b)
   154  }
   155  func (m *LoadBalancer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   156  	return xxx_messageInfo_LoadBalancer.Marshal(b, m, deterministic)
   157  }
   158  func (m *LoadBalancer) XXX_Merge(src proto.Message) {
   159  	xxx_messageInfo_LoadBalancer.Merge(m, src)
   160  }
   161  func (m *LoadBalancer) XXX_Size() int {
   162  	return xxx_messageInfo_LoadBalancer.Size(m)
   163  }
   164  func (m *LoadBalancer) XXX_DiscardUnknown() {
   165  	xxx_messageInfo_LoadBalancer.DiscardUnknown(m)
   166  }
   167  
   168  var xxx_messageInfo_LoadBalancer proto.InternalMessageInfo
   169  
   170  func (m *LoadBalancer) GetName() string {
   171  	if m != nil {
   172  		return m.Name
   173  	}
   174  	return ""
   175  }
   176  
   177  func (m *LoadBalancer) GetId() string {
   178  	if m != nil {
   179  		return m.Id
   180  	}
   181  	return ""
   182  }
   183  
   184  func (m *LoadBalancer) GetFrontendip() string {
   185  	if m != nil {
   186  		return m.Frontendip
   187  	}
   188  	return ""
   189  }
   190  
   191  func (m *LoadBalancer) GetBackendpoolname() string {
   192  	if m != nil {
   193  		return m.Backendpoolname
   194  	}
   195  	return ""
   196  }
   197  
   198  func (m *LoadBalancer) GetNetworkid() string {
   199  	if m != nil {
   200  		return m.Networkid
   201  	}
   202  	return ""
   203  }
   204  
   205  func (m *LoadBalancer) GetStatus() *common.Status {
   206  	if m != nil {
   207  		return m.Status
   208  	}
   209  	return nil
   210  }
   211  
   212  func (m *LoadBalancer) GetEntity() *common.Entity {
   213  	if m != nil {
   214  		return m.Entity
   215  	}
   216  	return nil
   217  }
   218  
   219  func (m *LoadBalancer) GetTags() *common.Tags {
   220  	if m != nil {
   221  		return m.Tags
   222  	}
   223  	return nil
   224  }
   225  
   226  func init() {
   227  	proto.RegisterType((*LoadBalancerRequest)(nil), "moc.nodeagent.network.LoadBalancerRequest")
   228  	proto.RegisterType((*LoadBalancerResponse)(nil), "moc.nodeagent.network.LoadBalancerResponse")
   229  	proto.RegisterType((*LoadBalancer)(nil), "moc.nodeagent.network.LoadBalancer")
   230  }
   231  
   232  func init() { proto.RegisterFile("moc_nodeagent_loadbalancer.proto", fileDescriptor_1af92a635c1766eb) }
   233  
   234  var fileDescriptor_1af92a635c1766eb = []byte{
   235  	// 446 bytes of a gzipped FileDescriptorProto
   236  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xc1, 0x6e, 0xd3, 0x40,
   237  	0x10, 0x86, 0x71, 0x9a, 0x46, 0x78, 0x42, 0x83, 0x58, 0x8a, 0xb0, 0x22, 0xa8, 0xa2, 0xf4, 0x12,
   238  	0x81, 0xb4, 0x46, 0x86, 0x17, 0x20, 0x52, 0x0f, 0x95, 0x90, 0x90, 0x4c, 0xc5, 0x81, 0x4b, 0xb5,
   239  	0x5e, 0x4f, 0x8c, 0x15, 0x7b, 0xc7, 0xec, 0xae, 0x29, 0x3d, 0xf3, 0x0e, 0xbc, 0x04, 0x2f, 0x89,
   240  	0x32, 0x36, 0xc1, 0x41, 0x1c, 0x7a, 0xe0, 0x64, 0xef, 0x3f, 0xdf, 0xfe, 0x33, 0x3b, 0x33, 0xb0,
   241  	0xa8, 0x49, 0x5f, 0x1b, 0xca, 0x51, 0x15, 0x68, 0xfc, 0x75, 0x45, 0x2a, 0xcf, 0x54, 0xa5, 0x8c,
   242  	0x46, 0x2b, 0x1b, 0x4b, 0x9e, 0xc4, 0x93, 0x9a, 0xb4, 0xdc, 0x13, 0xd2, 0xa0, 0xbf, 0x21, 0xbb,
   243  	0x9d, 0x9f, 0x15, 0x44, 0x45, 0x85, 0x31, 0x43, 0x59, 0xbb, 0x89, 0x6f, 0xac, 0x6a, 0x1a, 0xb4,
   244  	0xae, 0xbb, 0x36, 0x7f, 0xba, 0x33, 0xd6, 0x54, 0xd7, 0x64, 0xfa, 0x4f, 0x17, 0x58, 0xfe, 0x08,
   245  	0xe0, 0xf1, 0x3b, 0x52, 0xf9, 0xba, 0x4f, 0x93, 0xe2, 0x97, 0x16, 0x9d, 0x17, 0x97, 0x70, 0x32,
   246  	0x94, 0x5d, 0x14, 0x2c, 0x8e, 0x56, 0xd3, 0xe4, 0x5c, 0xfe, 0x33, 0xbf, 0x3c, 0xb0, 0x38, 0xbc,
   247  	0x29, 0xde, 0xc0, 0xc9, 0xfb, 0x06, 0xad, 0xf2, 0x25, 0x99, 0xab, 0xdb, 0x06, 0xa3, 0xd1, 0x22,
   248  	0x58, 0xcd, 0x92, 0x19, 0x5b, 0xed, 0x23, 0xe9, 0x21, 0xb4, 0xfc, 0x19, 0xc0, 0xe9, 0x61, 0x61,
   249  	0xae, 0x21, 0xe3, 0xf0, 0x7f, 0x56, 0x96, 0xc0, 0x24, 0x45, 0xd7, 0x56, 0x9e, 0x4b, 0x9a, 0x26,
   250  	0x73, 0xd9, 0xb5, 0x51, 0xfe, 0x6e, 0xa3, 0x5c, 0x13, 0x55, 0x1f, 0x55, 0xd5, 0x62, 0xda, 0x93,
   251  	0xe2, 0x14, 0x8e, 0x2f, 0xac, 0x25, 0x1b, 0x1d, 0x2d, 0x82, 0x55, 0x98, 0x76, 0x87, 0xe5, 0xf7,
   252  	0x11, 0x3c, 0x18, 0x7a, 0x0b, 0x01, 0x63, 0xa3, 0x6a, 0x8c, 0x02, 0xa6, 0xf8, 0x5f, 0xcc, 0x60,
   253  	0x54, 0xe6, 0x9c, 0x2a, 0x4c, 0x47, 0x65, 0x2e, 0xce, 0x00, 0x36, 0x96, 0x8c, 0x47, 0x93, 0x97,
   254  	0x4d, 0x34, 0x66, 0x7d, 0xa0, 0x88, 0x15, 0x3c, 0xcc, 0x94, 0xde, 0xa2, 0xc9, 0x1b, 0xa2, 0x8a,
   255  	0xed, 0x8e, 0x19, 0xfa, 0x5b, 0x16, 0xcf, 0x20, 0xec, 0xdf, 0x5b, 0xe6, 0xd1, 0x84, 0x99, 0x3f,
   256  	0x82, 0x38, 0x87, 0x89, 0xf3, 0xca, 0xb7, 0x2e, 0xba, 0xcf, 0xcf, 0x9c, 0x72, 0xab, 0x3e, 0xb0,
   257  	0x94, 0xf6, 0xa1, 0x1d, 0x84, 0xc6, 0x97, 0xfe, 0x36, 0x0a, 0x07, 0xd0, 0x05, 0x4b, 0x69, 0x1f,
   258  	0x12, 0xcf, 0x61, 0xec, 0x55, 0xe1, 0x22, 0x60, 0x24, 0x64, 0xe4, 0x4a, 0x15, 0x2e, 0x65, 0x39,
   259  	0xf9, 0x06, 0x8f, 0x86, 0x4d, 0x78, 0xbb, 0x1b, 0x84, 0xd0, 0x30, 0xb9, 0x34, 0x5f, 0x69, 0x8b,
   260  	0xe2, 0xc5, 0x5d, 0x46, 0xd4, 0xed, 0xdf, 0xfc, 0xe5, 0x9d, 0xd8, 0x6e, 0x25, 0x96, 0xf7, 0xd6,
   261  	0xaf, 0x3e, 0xc9, 0xa2, 0xf4, 0x9f, 0xdb, 0x4c, 0x6a, 0xaa, 0xe3, 0xba, 0xd4, 0x96, 0x1c, 0x6d,
   262  	0x7c, 0x5c, 0x93, 0x8e, 0x6d, 0xa3, 0xe3, 0xbd, 0x51, 0xdc, 0x1b, 0x65, 0x13, 0x9e, 0xf1, 0xeb,
   263  	0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x09, 0x26, 0xa4, 0x73, 0x03, 0x00, 0x00,
   264  }
   265  
   266  // Reference imports to suppress errors if they are not otherwise used.
   267  var _ context.Context
   268  var _ grpc.ClientConn
   269  
   270  // This is a compile-time assertion to ensure that this generated file
   271  // is compatible with the grpc package it is being compiled against.
   272  const _ = grpc.SupportPackageIsVersion4
   273  
   274  // LoadBalancerAgentClient is the client API for LoadBalancerAgent service.
   275  //
   276  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   277  type LoadBalancerAgentClient interface {
   278  	Invoke(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error)
   279  }
   280  
   281  type loadBalancerAgentClient struct {
   282  	cc *grpc.ClientConn
   283  }
   284  
   285  func NewLoadBalancerAgentClient(cc *grpc.ClientConn) LoadBalancerAgentClient {
   286  	return &loadBalancerAgentClient{cc}
   287  }
   288  
   289  func (c *loadBalancerAgentClient) Invoke(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error) {
   290  	out := new(LoadBalancerResponse)
   291  	err := c.cc.Invoke(ctx, "/moc.nodeagent.network.LoadBalancerAgent/Invoke", in, out, opts...)
   292  	if err != nil {
   293  		return nil, err
   294  	}
   295  	return out, nil
   296  }
   297  
   298  // LoadBalancerAgentServer is the server API for LoadBalancerAgent service.
   299  type LoadBalancerAgentServer interface {
   300  	Invoke(context.Context, *LoadBalancerRequest) (*LoadBalancerResponse, error)
   301  }
   302  
   303  // UnimplementedLoadBalancerAgentServer can be embedded to have forward compatible implementations.
   304  type UnimplementedLoadBalancerAgentServer struct {
   305  }
   306  
   307  func (*UnimplementedLoadBalancerAgentServer) Invoke(ctx context.Context, req *LoadBalancerRequest) (*LoadBalancerResponse, error) {
   308  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   309  }
   310  
   311  func RegisterLoadBalancerAgentServer(s *grpc.Server, srv LoadBalancerAgentServer) {
   312  	s.RegisterService(&_LoadBalancerAgent_serviceDesc, srv)
   313  }
   314  
   315  func _LoadBalancerAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   316  	in := new(LoadBalancerRequest)
   317  	if err := dec(in); err != nil {
   318  		return nil, err
   319  	}
   320  	if interceptor == nil {
   321  		return srv.(LoadBalancerAgentServer).Invoke(ctx, in)
   322  	}
   323  	info := &grpc.UnaryServerInfo{
   324  		Server:     srv,
   325  		FullMethod: "/moc.nodeagent.network.LoadBalancerAgent/Invoke",
   326  	}
   327  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   328  		return srv.(LoadBalancerAgentServer).Invoke(ctx, req.(*LoadBalancerRequest))
   329  	}
   330  	return interceptor(ctx, in, info, handler)
   331  }
   332  
   333  var _LoadBalancerAgent_serviceDesc = grpc.ServiceDesc{
   334  	ServiceName: "moc.nodeagent.network.LoadBalancerAgent",
   335  	HandlerType: (*LoadBalancerAgentServer)(nil),
   336  	Methods: []grpc.MethodDesc{
   337  		{
   338  			MethodName: "Invoke",
   339  			Handler:    _LoadBalancerAgent_Invoke_Handler,
   340  		},
   341  	},
   342  	Streams:  []grpc.StreamDesc{},
   343  	Metadata: "moc_nodeagent_loadbalancer.proto",
   344  }