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

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