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

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