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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_vippool.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 VipPoolRequest struct {
    30  	VipPools             []*VipPool       `protobuf:"bytes,1,rep,name=VipPools,proto3" json:"VipPools,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 *VipPoolRequest) Reset()         { *m = VipPoolRequest{} }
    38  func (m *VipPoolRequest) String() string { return proto.CompactTextString(m) }
    39  func (*VipPoolRequest) ProtoMessage()    {}
    40  func (*VipPoolRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_608cad7efbd0a4a0, []int{0}
    42  }
    43  
    44  func (m *VipPoolRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_VipPoolRequest.Unmarshal(m, b)
    46  }
    47  func (m *VipPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_VipPoolRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *VipPoolRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_VipPoolRequest.Merge(m, src)
    52  }
    53  func (m *VipPoolRequest) XXX_Size() int {
    54  	return xxx_messageInfo_VipPoolRequest.Size(m)
    55  }
    56  func (m *VipPoolRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_VipPoolRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_VipPoolRequest proto.InternalMessageInfo
    61  
    62  func (m *VipPoolRequest) GetVipPools() []*VipPool {
    63  	if m != nil {
    64  		return m.VipPools
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *VipPoolRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type VipPoolResponse struct {
    77  	VipPools             []*VipPool          `protobuf:"bytes,1,rep,name=VipPools,proto3" json:"VipPools,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 *VipPoolResponse) Reset()         { *m = VipPoolResponse{} }
    86  func (m *VipPoolResponse) String() string { return proto.CompactTextString(m) }
    87  func (*VipPoolResponse) ProtoMessage()    {}
    88  func (*VipPoolResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_608cad7efbd0a4a0, []int{1}
    90  }
    91  
    92  func (m *VipPoolResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_VipPoolResponse.Unmarshal(m, b)
    94  }
    95  func (m *VipPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_VipPoolResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *VipPoolResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_VipPoolResponse.Merge(m, src)
   100  }
   101  func (m *VipPoolResponse) XXX_Size() int {
   102  	return xxx_messageInfo_VipPoolResponse.Size(m)
   103  }
   104  func (m *VipPoolResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_VipPoolResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_VipPoolResponse proto.InternalMessageInfo
   109  
   110  func (m *VipPoolResponse) GetVipPools() []*VipPool {
   111  	if m != nil {
   112  		return m.VipPools
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *VipPoolResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *VipPoolResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type VipPool 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  	Cidr                 string         `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"`
   135  	Networkid            string         `protobuf:"bytes,4,opt,name=networkid,proto3" json:"networkid,omitempty"`
   136  	Nodefqdn             string         `protobuf:"bytes,5,opt,name=nodefqdn,proto3" json:"nodefqdn,omitempty"`
   137  	GroupName            string         `protobuf:"bytes,6,opt,name=groupName,proto3" json:"groupName,omitempty"`
   138  	LocationName         string         `protobuf:"bytes,7,opt,name=locationName,proto3" json:"locationName,omitempty"`
   139  	Status               *common.Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
   140  	Startip              string         `protobuf:"bytes,9,opt,name=startip,proto3" json:"startip,omitempty"`
   141  	Endip                string         `protobuf:"bytes,10,opt,name=endip,proto3" json:"endip,omitempty"`
   142  	Tags                 *common.Tags   `protobuf:"bytes,11,opt,name=tags,proto3" json:"tags,omitempty"`
   143  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   144  	XXX_unrecognized     []byte         `json:"-"`
   145  	XXX_sizecache        int32          `json:"-"`
   146  }
   147  
   148  func (m *VipPool) Reset()         { *m = VipPool{} }
   149  func (m *VipPool) String() string { return proto.CompactTextString(m) }
   150  func (*VipPool) ProtoMessage()    {}
   151  func (*VipPool) Descriptor() ([]byte, []int) {
   152  	return fileDescriptor_608cad7efbd0a4a0, []int{2}
   153  }
   154  
   155  func (m *VipPool) XXX_Unmarshal(b []byte) error {
   156  	return xxx_messageInfo_VipPool.Unmarshal(m, b)
   157  }
   158  func (m *VipPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   159  	return xxx_messageInfo_VipPool.Marshal(b, m, deterministic)
   160  }
   161  func (m *VipPool) XXX_Merge(src proto.Message) {
   162  	xxx_messageInfo_VipPool.Merge(m, src)
   163  }
   164  func (m *VipPool) XXX_Size() int {
   165  	return xxx_messageInfo_VipPool.Size(m)
   166  }
   167  func (m *VipPool) XXX_DiscardUnknown() {
   168  	xxx_messageInfo_VipPool.DiscardUnknown(m)
   169  }
   170  
   171  var xxx_messageInfo_VipPool proto.InternalMessageInfo
   172  
   173  func (m *VipPool) GetName() string {
   174  	if m != nil {
   175  		return m.Name
   176  	}
   177  	return ""
   178  }
   179  
   180  func (m *VipPool) GetId() string {
   181  	if m != nil {
   182  		return m.Id
   183  	}
   184  	return ""
   185  }
   186  
   187  func (m *VipPool) GetCidr() string {
   188  	if m != nil {
   189  		return m.Cidr
   190  	}
   191  	return ""
   192  }
   193  
   194  func (m *VipPool) GetNetworkid() string {
   195  	if m != nil {
   196  		return m.Networkid
   197  	}
   198  	return ""
   199  }
   200  
   201  func (m *VipPool) GetNodefqdn() string {
   202  	if m != nil {
   203  		return m.Nodefqdn
   204  	}
   205  	return ""
   206  }
   207  
   208  func (m *VipPool) GetGroupName() string {
   209  	if m != nil {
   210  		return m.GroupName
   211  	}
   212  	return ""
   213  }
   214  
   215  func (m *VipPool) GetLocationName() string {
   216  	if m != nil {
   217  		return m.LocationName
   218  	}
   219  	return ""
   220  }
   221  
   222  func (m *VipPool) GetStatus() *common.Status {
   223  	if m != nil {
   224  		return m.Status
   225  	}
   226  	return nil
   227  }
   228  
   229  func (m *VipPool) GetStartip() string {
   230  	if m != nil {
   231  		return m.Startip
   232  	}
   233  	return ""
   234  }
   235  
   236  func (m *VipPool) GetEndip() string {
   237  	if m != nil {
   238  		return m.Endip
   239  	}
   240  	return ""
   241  }
   242  
   243  func (m *VipPool) GetTags() *common.Tags {
   244  	if m != nil {
   245  		return m.Tags
   246  	}
   247  	return nil
   248  }
   249  
   250  func init() {
   251  	proto.RegisterType((*VipPoolRequest)(nil), "moc.cloudagent.network.VipPoolRequest")
   252  	proto.RegisterType((*VipPoolResponse)(nil), "moc.cloudagent.network.VipPoolResponse")
   253  	proto.RegisterType((*VipPool)(nil), "moc.cloudagent.network.VipPool")
   254  }
   255  
   256  func init() { proto.RegisterFile("moc_cloudagent_vippool.proto", fileDescriptor_608cad7efbd0a4a0) }
   257  
   258  var fileDescriptor_608cad7efbd0a4a0 = []byte{
   259  	// 473 bytes of a gzipped FileDescriptorProto
   260  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4d, 0x6f, 0xd4, 0x30,
   261  	0x10, 0x25, 0xdb, 0xfd, 0x9c, 0x2d, 0x8b, 0x64, 0x21, 0xb0, 0xa2, 0x52, 0x56, 0x41, 0x82, 0x3d,
   262  	0x25, 0x22, 0x70, 0xe3, 0xc4, 0x4a, 0x1c, 0xb8, 0x00, 0x0a, 0x55, 0x0f, 0x70, 0xa8, 0xb2, 0x89,
   263  	0x37, 0x58, 0x9b, 0x78, 0x5c, 0xdb, 0x69, 0xc5, 0x99, 0x0b, 0x3f, 0x81, 0x3f, 0xc2, 0x91, 0xff,
   264  	0x86, 0x32, 0xc9, 0x66, 0xa9, 0x84, 0xd4, 0x43, 0x4f, 0xb6, 0xdf, 0x7b, 0xf3, 0x66, 0xf4, 0x3c,
   265  	0x70, 0x52, 0x61, 0x76, 0x91, 0x95, 0x58, 0xe7, 0x69, 0x21, 0x94, 0xbb, 0xb8, 0x92, 0x5a, 0x23,
   266  	0x96, 0xa1, 0x36, 0xe8, 0x90, 0x3d, 0xaa, 0x30, 0x0b, 0x0f, 0x6c, 0xa8, 0x84, 0xbb, 0x46, 0xb3,
   267  	0xf3, 0x4f, 0x0b, 0xc4, 0xa2, 0x14, 0x11, 0xa9, 0x36, 0xf5, 0x36, 0xba, 0x36, 0xa9, 0xd6, 0xc2,
   268  	0xd8, 0xb6, 0xce, 0x7f, 0x4c, 0xae, 0x58, 0x55, 0xa8, 0xba, 0xa3, 0x25, 0x82, 0x1f, 0x1e, 0x2c,
   269  	0xce, 0xa5, 0xfe, 0x84, 0x58, 0x26, 0xe2, 0xb2, 0x16, 0xd6, 0xb1, 0x37, 0x30, 0xed, 0x10, 0xcb,
   270  	0xbd, 0xe5, 0xd1, 0x6a, 0x1e, 0x3f, 0x0d, 0xff, 0xdf, 0x36, 0xdc, 0x57, 0xf6, 0x05, 0xec, 0x35,
   271  	0xdc, 0xff, 0xa8, 0x85, 0x49, 0x9d, 0x44, 0x75, 0xf6, 0x5d, 0x0b, 0x3e, 0x58, 0x7a, 0xab, 0x45,
   272  	0xbc, 0x20, 0x87, 0x9e, 0x49, 0x6e, 0x8a, 0x82, 0x5f, 0x1e, 0x3c, 0xe8, 0xa7, 0xb0, 0x1a, 0x95,
   273  	0x15, 0x77, 0x1b, 0x23, 0x86, 0x71, 0x22, 0x6c, 0x5d, 0x3a, 0xea, 0x3f, 0x8f, 0xfd, 0xb0, 0x0d,
   274  	0x28, 0xdc, 0x07, 0x14, 0xae, 0x11, 0xcb, 0xf3, 0xb4, 0xac, 0x45, 0xd2, 0x29, 0xd9, 0x43, 0x18,
   275  	0xbd, 0x33, 0x06, 0x0d, 0x3f, 0x5a, 0x7a, 0xab, 0x59, 0xd2, 0x3e, 0x82, 0x3f, 0x03, 0x98, 0x74,
   276  	0xb6, 0x8c, 0xc1, 0x50, 0xa5, 0x95, 0xe0, 0x1e, 0x09, 0xe8, 0xce, 0x16, 0x30, 0x90, 0x39, 0x75,
   277  	0x99, 0x25, 0x03, 0x99, 0x37, 0x9a, 0x4c, 0xe6, 0x7b, 0x13, 0xba, 0xb3, 0x13, 0x98, 0x75, 0xa3,
   278  	0xca, 0x9c, 0x0f, 0x89, 0x38, 0x00, 0xcc, 0x87, 0xa9, 0xc2, 0x5c, 0x6c, 0x2f, 0x73, 0xc5, 0x47,
   279  	0x44, 0xf6, 0xef, 0xa6, 0xb2, 0x30, 0x58, 0xeb, 0x0f, 0x4d, 0xdb, 0x71, 0x5b, 0xd9, 0x03, 0x2c,
   280  	0x80, 0xe3, 0x12, 0x33, 0x8a, 0x91, 0x04, 0x13, 0x12, 0xdc, 0xc0, 0xd8, 0x33, 0x18, 0x5b, 0x97,
   281  	0xba, 0xda, 0xf2, 0x29, 0x25, 0x31, 0xa7, 0x10, 0x3f, 0x13, 0x94, 0x74, 0x14, 0x3b, 0x85, 0x89,
   282  	0x75, 0xa9, 0x71, 0x52, 0xf3, 0x59, 0xe3, 0xb1, 0x1e, 0xfe, 0xfc, 0xcd, 0xbd, 0x64, 0x0f, 0x32,
   283  	0x1f, 0x46, 0x42, 0xe5, 0x52, 0x73, 0xf8, 0x87, 0x6d, 0x21, 0xf6, 0x04, 0x86, 0x2e, 0x2d, 0x2c,
   284  	0x9f, 0x93, 0xfd, 0x8c, 0xec, 0xcf, 0xd2, 0xc2, 0x26, 0x04, 0xc7, 0x3b, 0x38, 0xee, 0xe2, 0x7b,
   285  	0xdb, 0xfc, 0x19, 0xfb, 0x0a, 0xe3, 0xf7, 0xea, 0x0a, 0x77, 0x82, 0x3d, 0xbf, 0xed, 0x3b, 0xdb,
   286  	0x7d, 0xf4, 0x5f, 0xdc, 0xaa, 0x6b, 0x37, 0x26, 0xb8, 0xb7, 0x7e, 0xf9, 0x25, 0x2a, 0xa4, 0xfb,
   287  	0x56, 0x6f, 0xc2, 0x0c, 0xab, 0xa8, 0x92, 0x99, 0x41, 0x8b, 0x5b, 0x17, 0x55, 0x98, 0x45, 0x46,
   288  	0x67, 0xd1, 0xc1, 0x24, 0xea, 0x4c, 0x36, 0x63, 0xda, 0x88, 0x57, 0x7f, 0x03, 0x00, 0x00, 0xff,
   289  	0xff, 0xa8, 0x63, 0x25, 0xeb, 0x78, 0x03, 0x00, 0x00,
   290  }
   291  
   292  // Reference imports to suppress errors if they are not otherwise used.
   293  var _ context.Context
   294  var _ grpc.ClientConn
   295  
   296  // This is a compile-time assertion to ensure that this generated file
   297  // is compatible with the grpc package it is being compiled against.
   298  const _ = grpc.SupportPackageIsVersion4
   299  
   300  // VipPoolAgentClient is the client API for VipPoolAgent service.
   301  //
   302  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   303  type VipPoolAgentClient interface {
   304  	Invoke(ctx context.Context, in *VipPoolRequest, opts ...grpc.CallOption) (*VipPoolResponse, error)
   305  }
   306  
   307  type vipPoolAgentClient struct {
   308  	cc *grpc.ClientConn
   309  }
   310  
   311  func NewVipPoolAgentClient(cc *grpc.ClientConn) VipPoolAgentClient {
   312  	return &vipPoolAgentClient{cc}
   313  }
   314  
   315  func (c *vipPoolAgentClient) Invoke(ctx context.Context, in *VipPoolRequest, opts ...grpc.CallOption) (*VipPoolResponse, error) {
   316  	out := new(VipPoolResponse)
   317  	err := c.cc.Invoke(ctx, "/moc.cloudagent.network.VipPoolAgent/Invoke", in, out, opts...)
   318  	if err != nil {
   319  		return nil, err
   320  	}
   321  	return out, nil
   322  }
   323  
   324  // VipPoolAgentServer is the server API for VipPoolAgent service.
   325  type VipPoolAgentServer interface {
   326  	Invoke(context.Context, *VipPoolRequest) (*VipPoolResponse, error)
   327  }
   328  
   329  // UnimplementedVipPoolAgentServer can be embedded to have forward compatible implementations.
   330  type UnimplementedVipPoolAgentServer struct {
   331  }
   332  
   333  func (*UnimplementedVipPoolAgentServer) Invoke(ctx context.Context, req *VipPoolRequest) (*VipPoolResponse, error) {
   334  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   335  }
   336  
   337  func RegisterVipPoolAgentServer(s *grpc.Server, srv VipPoolAgentServer) {
   338  	s.RegisterService(&_VipPoolAgent_serviceDesc, srv)
   339  }
   340  
   341  func _VipPoolAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   342  	in := new(VipPoolRequest)
   343  	if err := dec(in); err != nil {
   344  		return nil, err
   345  	}
   346  	if interceptor == nil {
   347  		return srv.(VipPoolAgentServer).Invoke(ctx, in)
   348  	}
   349  	info := &grpc.UnaryServerInfo{
   350  		Server:     srv,
   351  		FullMethod: "/moc.cloudagent.network.VipPoolAgent/Invoke",
   352  	}
   353  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   354  		return srv.(VipPoolAgentServer).Invoke(ctx, req.(*VipPoolRequest))
   355  	}
   356  	return interceptor(ctx, in, info, handler)
   357  }
   358  
   359  var _VipPoolAgent_serviceDesc = grpc.ServiceDesc{
   360  	ServiceName: "moc.cloudagent.network.VipPoolAgent",
   361  	HandlerType: (*VipPoolAgentServer)(nil),
   362  	Methods: []grpc.MethodDesc{
   363  		{
   364  			MethodName: "Invoke",
   365  			Handler:    _VipPoolAgent_Invoke_Handler,
   366  		},
   367  	},
   368  	Streams:  []grpc.StreamDesc{},
   369  	Metadata: "moc_cloudagent_vippool.proto",
   370  }