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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_location.proto
     3  
     4  package cloud
     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 LocationRequest struct {
    30  	Locations            []*Location      `protobuf:"bytes,1,rep,name=Locations,proto3" json:"Locations,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 *LocationRequest) Reset()         { *m = LocationRequest{} }
    38  func (m *LocationRequest) String() string { return proto.CompactTextString(m) }
    39  func (*LocationRequest) ProtoMessage()    {}
    40  func (*LocationRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_72bccbe77ba9d752, []int{0}
    42  }
    43  
    44  func (m *LocationRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_LocationRequest.Unmarshal(m, b)
    46  }
    47  func (m *LocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_LocationRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *LocationRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_LocationRequest.Merge(m, src)
    52  }
    53  func (m *LocationRequest) XXX_Size() int {
    54  	return xxx_messageInfo_LocationRequest.Size(m)
    55  }
    56  func (m *LocationRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_LocationRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_LocationRequest proto.InternalMessageInfo
    61  
    62  func (m *LocationRequest) GetLocations() []*Location {
    63  	if m != nil {
    64  		return m.Locations
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *LocationRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type LocationResponse struct {
    77  	Locations            []*Location         `protobuf:"bytes,1,rep,name=Locations,proto3" json:"Locations,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 *LocationResponse) Reset()         { *m = LocationResponse{} }
    86  func (m *LocationResponse) String() string { return proto.CompactTextString(m) }
    87  func (*LocationResponse) ProtoMessage()    {}
    88  func (*LocationResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_72bccbe77ba9d752, []int{1}
    90  }
    91  
    92  func (m *LocationResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_LocationResponse.Unmarshal(m, b)
    94  }
    95  func (m *LocationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_LocationResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *LocationResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_LocationResponse.Merge(m, src)
   100  }
   101  func (m *LocationResponse) XXX_Size() int {
   102  	return xxx_messageInfo_LocationResponse.Size(m)
   103  }
   104  func (m *LocationResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_LocationResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_LocationResponse proto.InternalMessageInfo
   109  
   110  func (m *LocationResponse) GetLocations() []*Location {
   111  	if m != nil {
   112  		return m.Locations
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *LocationResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *LocationResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type Location 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  	Status               *common.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
   135  	Tags                 *common.Tags   `protobuf:"bytes,4,opt,name=tags,proto3" json:"tags,omitempty"`
   136  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   137  	XXX_unrecognized     []byte         `json:"-"`
   138  	XXX_sizecache        int32          `json:"-"`
   139  }
   140  
   141  func (m *Location) Reset()         { *m = Location{} }
   142  func (m *Location) String() string { return proto.CompactTextString(m) }
   143  func (*Location) ProtoMessage()    {}
   144  func (*Location) Descriptor() ([]byte, []int) {
   145  	return fileDescriptor_72bccbe77ba9d752, []int{2}
   146  }
   147  
   148  func (m *Location) XXX_Unmarshal(b []byte) error {
   149  	return xxx_messageInfo_Location.Unmarshal(m, b)
   150  }
   151  func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   152  	return xxx_messageInfo_Location.Marshal(b, m, deterministic)
   153  }
   154  func (m *Location) XXX_Merge(src proto.Message) {
   155  	xxx_messageInfo_Location.Merge(m, src)
   156  }
   157  func (m *Location) XXX_Size() int {
   158  	return xxx_messageInfo_Location.Size(m)
   159  }
   160  func (m *Location) XXX_DiscardUnknown() {
   161  	xxx_messageInfo_Location.DiscardUnknown(m)
   162  }
   163  
   164  var xxx_messageInfo_Location proto.InternalMessageInfo
   165  
   166  func (m *Location) GetName() string {
   167  	if m != nil {
   168  		return m.Name
   169  	}
   170  	return ""
   171  }
   172  
   173  func (m *Location) GetId() string {
   174  	if m != nil {
   175  		return m.Id
   176  	}
   177  	return ""
   178  }
   179  
   180  func (m *Location) GetStatus() *common.Status {
   181  	if m != nil {
   182  		return m.Status
   183  	}
   184  	return nil
   185  }
   186  
   187  func (m *Location) GetTags() *common.Tags {
   188  	if m != nil {
   189  		return m.Tags
   190  	}
   191  	return nil
   192  }
   193  
   194  func init() {
   195  	proto.RegisterType((*LocationRequest)(nil), "moc.cloudagent.location.LocationRequest")
   196  	proto.RegisterType((*LocationResponse)(nil), "moc.cloudagent.location.LocationResponse")
   197  	proto.RegisterType((*Location)(nil), "moc.cloudagent.location.Location")
   198  }
   199  
   200  func init() { proto.RegisterFile("moc_cloudagent_location.proto", fileDescriptor_72bccbe77ba9d752) }
   201  
   202  var fileDescriptor_72bccbe77ba9d752 = []byte{
   203  	// 371 bytes of a gzipped FileDescriptorProto
   204  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x51, 0x41, 0x6b, 0xdb, 0x30,
   205  	0x14, 0x9e, 0x93, 0xcc, 0xcc, 0x32, 0xc9, 0x86, 0x18, 0xc4, 0x18, 0x32, 0x32, 0xef, 0xe2, 0x1d,
   206  	0x26, 0x83, 0xb7, 0xfb, 0x68, 0xa0, 0x87, 0x42, 0xa1, 0xa0, 0x86, 0x1e, 0x7a, 0x09, 0x8a, 0xa2,
   207  	0xb8, 0xa6, 0x96, 0x9f, 0x2a, 0xc9, 0x2d, 0xfd, 0x07, 0xfd, 0x13, 0xfd, 0xaf, 0xa5, 0xb2, 0x1d,
   208  	0xd3, 0x43, 0x69, 0xa1, 0x27, 0xbf, 0xf7, 0xbe, 0xef, 0x7d, 0xef, 0xf3, 0x27, 0xb4, 0x90, 0xc0,
   209  	0x37, 0xbc, 0x82, 0x66, 0xc7, 0x0a, 0x51, 0xdb, 0x4d, 0x05, 0x9c, 0xd9, 0x12, 0x6a, 0xa2, 0x34,
   210  	0x58, 0xc0, 0x73, 0x09, 0x9c, 0x0c, 0x30, 0xe9, 0xe1, 0xf8, 0x47, 0x01, 0x50, 0x54, 0x22, 0x73,
   211  	0xb4, 0x6d, 0xb3, 0xcf, 0xee, 0x34, 0x53, 0x4a, 0x68, 0xd3, 0x2e, 0xc6, 0x73, 0xa7, 0x0b, 0x52,
   212  	0x42, 0xdd, 0x7d, 0x5a, 0x20, 0x79, 0xf0, 0xd0, 0xd7, 0xd3, 0x4e, 0x85, 0x8a, 0x9b, 0x46, 0x18,
   213  	0x8b, 0xff, 0xa3, 0xa0, 0x1f, 0x99, 0xc8, 0x5b, 0x8e, 0xd3, 0x30, 0xff, 0x49, 0x5e, 0xb9, 0x4c,
   214  	0x0e, 0xcb, 0xc3, 0x0e, 0xfe, 0x87, 0xa6, 0x67, 0x4a, 0x68, 0xd7, 0xad, 0xef, 0x95, 0x88, 0x46,
   215  	0x4b, 0x2f, 0x9d, 0xe5, 0x33, 0x27, 0x72, 0x40, 0xe8, 0x4b, 0x52, 0xf2, 0xe8, 0xa1, 0x6f, 0x83,
   216  	0x15, 0xa3, 0xa0, 0x36, 0xe2, 0xe3, 0x5e, 0x72, 0xe4, 0x53, 0x61, 0x9a, 0xca, 0x3a, 0x13, 0x61,
   217  	0x1e, 0x93, 0x36, 0x2a, 0xd2, 0x47, 0x45, 0x56, 0x00, 0xd5, 0x05, 0xab, 0x1a, 0x41, 0x3b, 0x26,
   218  	0xfe, 0x8e, 0x3e, 0x1f, 0x6b, 0x0d, 0x3a, 0x1a, 0x2f, 0xbd, 0x34, 0xa0, 0x6d, 0x93, 0x68, 0xf4,
   219  	0xa5, 0x97, 0xc5, 0x18, 0x4d, 0x6a, 0x26, 0x45, 0xe4, 0x39, 0x82, 0xab, 0xf1, 0x0c, 0x8d, 0xca,
   220  	0x9d, 0xbb, 0x12, 0xd0, 0x51, 0xb9, 0xc3, 0xbf, 0x90, 0x6f, 0x2c, 0xb3, 0x8d, 0x71, 0x32, 0x61,
   221  	0x1e, 0x3a, 0xdf, 0xe7, 0x6e, 0x44, 0x3b, 0x08, 0x2f, 0xd0, 0xc4, 0xb2, 0xc2, 0x44, 0x13, 0x47,
   222  	0x09, 0x1c, 0x65, 0xcd, 0x0a, 0x43, 0xdd, 0x38, 0x57, 0x68, 0xda, 0xdf, 0x3c, 0x7a, 0xfe, 0x57,
   223  	0xbc, 0x41, 0xfe, 0x49, 0x7d, 0x0b, 0xd7, 0x02, 0xa7, 0x6f, 0xc7, 0xd0, 0xbe, 0x67, 0xfc, 0xfb,
   224  	0x1d, 0xcc, 0x36, 0xee, 0xe4, 0xd3, 0x2a, 0xbb, 0xfc, 0x53, 0x94, 0xf6, 0xaa, 0xd9, 0x12, 0x0e,
   225  	0x32, 0x93, 0x25, 0xd7, 0x60, 0x60, 0x6f, 0x33, 0x09, 0x3c, 0xd3, 0x8a, 0x67, 0x83, 0x4c, 0x5b,
   226  	0x6e, 0x7d, 0x17, 0xe4, 0xdf, 0xa7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x88, 0x51, 0x01, 0xc6, 0xbb,
   227  	0x02, 0x00, 0x00,
   228  }
   229  
   230  // Reference imports to suppress errors if they are not otherwise used.
   231  var _ context.Context
   232  var _ grpc.ClientConn
   233  
   234  // This is a compile-time assertion to ensure that this generated file
   235  // is compatible with the grpc package it is being compiled against.
   236  const _ = grpc.SupportPackageIsVersion4
   237  
   238  // LocationAgentClient is the client API for LocationAgent service.
   239  //
   240  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   241  type LocationAgentClient interface {
   242  	Invoke(ctx context.Context, in *LocationRequest, opts ...grpc.CallOption) (*LocationResponse, error)
   243  }
   244  
   245  type locationAgentClient struct {
   246  	cc *grpc.ClientConn
   247  }
   248  
   249  func NewLocationAgentClient(cc *grpc.ClientConn) LocationAgentClient {
   250  	return &locationAgentClient{cc}
   251  }
   252  
   253  func (c *locationAgentClient) Invoke(ctx context.Context, in *LocationRequest, opts ...grpc.CallOption) (*LocationResponse, error) {
   254  	out := new(LocationResponse)
   255  	err := c.cc.Invoke(ctx, "/moc.cloudagent.location.LocationAgent/Invoke", in, out, opts...)
   256  	if err != nil {
   257  		return nil, err
   258  	}
   259  	return out, nil
   260  }
   261  
   262  // LocationAgentServer is the server API for LocationAgent service.
   263  type LocationAgentServer interface {
   264  	Invoke(context.Context, *LocationRequest) (*LocationResponse, error)
   265  }
   266  
   267  // UnimplementedLocationAgentServer can be embedded to have forward compatible implementations.
   268  type UnimplementedLocationAgentServer struct {
   269  }
   270  
   271  func (*UnimplementedLocationAgentServer) Invoke(ctx context.Context, req *LocationRequest) (*LocationResponse, error) {
   272  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   273  }
   274  
   275  func RegisterLocationAgentServer(s *grpc.Server, srv LocationAgentServer) {
   276  	s.RegisterService(&_LocationAgent_serviceDesc, srv)
   277  }
   278  
   279  func _LocationAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   280  	in := new(LocationRequest)
   281  	if err := dec(in); err != nil {
   282  		return nil, err
   283  	}
   284  	if interceptor == nil {
   285  		return srv.(LocationAgentServer).Invoke(ctx, in)
   286  	}
   287  	info := &grpc.UnaryServerInfo{
   288  		Server:     srv,
   289  		FullMethod: "/moc.cloudagent.location.LocationAgent/Invoke",
   290  	}
   291  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   292  		return srv.(LocationAgentServer).Invoke(ctx, req.(*LocationRequest))
   293  	}
   294  	return interceptor(ctx, in, info, handler)
   295  }
   296  
   297  var _LocationAgent_serviceDesc = grpc.ServiceDesc{
   298  	ServiceName: "moc.cloudagent.location.LocationAgent",
   299  	HandlerType: (*LocationAgentServer)(nil),
   300  	Methods: []grpc.MethodDesc{
   301  		{
   302  			MethodName: "Invoke",
   303  			Handler:    _LocationAgent_Invoke_Handler,
   304  		},
   305  	},
   306  	Streams:  []grpc.StreamDesc{},
   307  	Metadata: "moc_cloudagent_location.proto",
   308  }