github.com/microsoft/moc@v0.17.1/rpc/nodeagent/storage/moc_nodeagent_container.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_nodeagent_container.proto 3 4 package storage 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 empty "github.com/golang/protobuf/ptypes/empty" 11 wrappers "github.com/golang/protobuf/ptypes/wrappers" 12 common "github.com/microsoft/moc/rpc/common" 13 grpc "google.golang.org/grpc" 14 codes "google.golang.org/grpc/codes" 15 status "google.golang.org/grpc/status" 16 math "math" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 30 type ContainerType int32 31 32 const ( 33 ContainerType_UNKNOWN ContainerType = 0 34 ContainerType_SAN ContainerType = 1 35 ContainerType_CSV ContainerType = 2 36 ContainerType_SMB ContainerType = 3 37 ContainerType_DAS ContainerType = 4 38 ) 39 40 var ContainerType_name = map[int32]string{ 41 0: "UNKNOWN", 42 1: "SAN", 43 2: "CSV", 44 3: "SMB", 45 4: "DAS", 46 } 47 48 var ContainerType_value = map[string]int32{ 49 "UNKNOWN": 0, 50 "SAN": 1, 51 "CSV": 2, 52 "SMB": 3, 53 "DAS": 4, 54 } 55 56 func (x ContainerType) String() string { 57 return proto.EnumName(ContainerType_name, int32(x)) 58 } 59 60 func (ContainerType) EnumDescriptor() ([]byte, []int) { 61 return fileDescriptor_ec66452e75cca9cc, []int{0} 62 } 63 64 type ContainerRequest struct { 65 Containers []*Container `protobuf:"bytes,1,rep,name=Containers,proto3" json:"Containers,omitempty"` 66 OperationType common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"` 67 XXX_NoUnkeyedLiteral struct{} `json:"-"` 68 XXX_unrecognized []byte `json:"-"` 69 XXX_sizecache int32 `json:"-"` 70 } 71 72 func (m *ContainerRequest) Reset() { *m = ContainerRequest{} } 73 func (m *ContainerRequest) String() string { return proto.CompactTextString(m) } 74 func (*ContainerRequest) ProtoMessage() {} 75 func (*ContainerRequest) Descriptor() ([]byte, []int) { 76 return fileDescriptor_ec66452e75cca9cc, []int{0} 77 } 78 79 func (m *ContainerRequest) XXX_Unmarshal(b []byte) error { 80 return xxx_messageInfo_ContainerRequest.Unmarshal(m, b) 81 } 82 func (m *ContainerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 83 return xxx_messageInfo_ContainerRequest.Marshal(b, m, deterministic) 84 } 85 func (m *ContainerRequest) XXX_Merge(src proto.Message) { 86 xxx_messageInfo_ContainerRequest.Merge(m, src) 87 } 88 func (m *ContainerRequest) XXX_Size() int { 89 return xxx_messageInfo_ContainerRequest.Size(m) 90 } 91 func (m *ContainerRequest) XXX_DiscardUnknown() { 92 xxx_messageInfo_ContainerRequest.DiscardUnknown(m) 93 } 94 95 var xxx_messageInfo_ContainerRequest proto.InternalMessageInfo 96 97 func (m *ContainerRequest) GetContainers() []*Container { 98 if m != nil { 99 return m.Containers 100 } 101 return nil 102 } 103 104 func (m *ContainerRequest) GetOperationType() common.Operation { 105 if m != nil { 106 return m.OperationType 107 } 108 return common.Operation_GET 109 } 110 111 type ContainerResponse struct { 112 Containers []*Container `protobuf:"bytes,1,rep,name=Containers,proto3" json:"Containers,omitempty"` 113 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 114 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 115 XXX_NoUnkeyedLiteral struct{} `json:"-"` 116 XXX_unrecognized []byte `json:"-"` 117 XXX_sizecache int32 `json:"-"` 118 } 119 120 func (m *ContainerResponse) Reset() { *m = ContainerResponse{} } 121 func (m *ContainerResponse) String() string { return proto.CompactTextString(m) } 122 func (*ContainerResponse) ProtoMessage() {} 123 func (*ContainerResponse) Descriptor() ([]byte, []int) { 124 return fileDescriptor_ec66452e75cca9cc, []int{1} 125 } 126 127 func (m *ContainerResponse) XXX_Unmarshal(b []byte) error { 128 return xxx_messageInfo_ContainerResponse.Unmarshal(m, b) 129 } 130 func (m *ContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 131 return xxx_messageInfo_ContainerResponse.Marshal(b, m, deterministic) 132 } 133 func (m *ContainerResponse) XXX_Merge(src proto.Message) { 134 xxx_messageInfo_ContainerResponse.Merge(m, src) 135 } 136 func (m *ContainerResponse) XXX_Size() int { 137 return xxx_messageInfo_ContainerResponse.Size(m) 138 } 139 func (m *ContainerResponse) XXX_DiscardUnknown() { 140 xxx_messageInfo_ContainerResponse.DiscardUnknown(m) 141 } 142 143 var xxx_messageInfo_ContainerResponse proto.InternalMessageInfo 144 145 func (m *ContainerResponse) GetContainers() []*Container { 146 if m != nil { 147 return m.Containers 148 } 149 return nil 150 } 151 152 func (m *ContainerResponse) GetResult() *wrappers.BoolValue { 153 if m != nil { 154 return m.Result 155 } 156 return nil 157 } 158 159 func (m *ContainerResponse) GetError() string { 160 if m != nil { 161 return m.Error 162 } 163 return "" 164 } 165 166 type Container struct { 167 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 168 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 169 Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` 170 Status *common.Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` 171 Entity *common.Entity `protobuf:"bytes,6,opt,name=entity,proto3" json:"entity,omitempty"` 172 Tags *common.Tags `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"` 173 Info *common.StorageContainerInfo `protobuf:"bytes,8,opt,name=info,proto3" json:"info,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_ec66452e75cca9cc, []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) GetEntity() *common.Entity { 233 if m != nil { 234 return m.Entity 235 } 236 return nil 237 } 238 239 func (m *Container) GetTags() *common.Tags { 240 if m != nil { 241 return m.Tags 242 } 243 return nil 244 } 245 246 func (m *Container) GetInfo() *common.StorageContainerInfo { 247 if m != nil { 248 return m.Info 249 } 250 return nil 251 } 252 253 func init() { 254 proto.RegisterEnum("moc.nodeagent.storage.ContainerType", ContainerType_name, ContainerType_value) 255 proto.RegisterType((*ContainerRequest)(nil), "moc.nodeagent.storage.ContainerRequest") 256 proto.RegisterType((*ContainerResponse)(nil), "moc.nodeagent.storage.ContainerResponse") 257 proto.RegisterType((*Container)(nil), "moc.nodeagent.storage.Container") 258 } 259 260 func init() { proto.RegisterFile("moc_nodeagent_container.proto", fileDescriptor_ec66452e75cca9cc) } 261 262 var fileDescriptor_ec66452e75cca9cc = []byte{ 263 // 540 bytes of a gzipped FileDescriptorProto 264 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xed, 0x8e, 0xd2, 0x40, 265 0x14, 0xdd, 0x42, 0x17, 0xe4, 0x92, 0x25, 0xdd, 0x89, 0x1f, 0x15, 0xc5, 0x10, 0xfc, 0x21, 0x31, 266 0xb1, 0x35, 0xe8, 0x03, 0x2c, 0x20, 0x89, 0x1b, 0x23, 0x9b, 0x0c, 0xeb, 0x9a, 0x98, 0x98, 0xcd, 267 0x50, 0x86, 0xd2, 0x2c, 0x9d, 0x5b, 0x67, 0xa6, 0x1a, 0xde, 0xc0, 0xf8, 0x12, 0x3e, 0x85, 0x3f, 268 0x7c, 0x1c, 0xdf, 0xc4, 0x74, 0xda, 0xed, 0xd6, 0x8f, 0x64, 0xff, 0xec, 0x2f, 0x86, 0x73, 0xce, 269 0x3d, 0x73, 0xe6, 0xde, 0x5b, 0xe8, 0xc5, 0x18, 0x9c, 0x0b, 0x5c, 0x71, 0x16, 0x72, 0xa1, 0xcf, 270 0x03, 0x14, 0x9a, 0x45, 0x82, 0x4b, 0x2f, 0x91, 0xa8, 0x91, 0xdc, 0x89, 0x31, 0xf0, 0x4a, 0xda, 271 0x53, 0x1a, 0x25, 0x0b, 0x79, 0xf7, 0x51, 0x88, 0x18, 0x6e, 0xb9, 0x6f, 0x44, 0xcb, 0x74, 0xed, 272 0x7f, 0x91, 0x2c, 0x49, 0xb8, 0x54, 0x79, 0x59, 0xf7, 0x5e, 0xe6, 0x1a, 0x60, 0x1c, 0xa3, 0x28, 273 0x7e, 0x0a, 0xe2, 0xc1, 0xdf, 0x85, 0x3c, 0x4e, 0xf4, 0xae, 0x20, 0x7b, 0x95, 0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93, 0xc0, 0x2f, 0xf3, 0xf8, 0x45, 0x9e, 0x65, 0xc3, 0xd8, 0xbf, 0xf8, 0x1d, 297 0x00, 0x00, 0xff, 0xff, 0xc3, 0xef, 0xb2, 0x6b, 0x14, 0x04, 0x00, 0x00, 298 } 299 300 // Reference imports to suppress errors if they are not otherwise used. 301 var _ context.Context 302 var _ grpc.ClientConn 303 304 // This is a compile-time assertion to ensure that this generated file 305 // is compatible with the grpc package it is being compiled against. 306 const _ = grpc.SupportPackageIsVersion4 307 308 // ContainerAgentClient is the client API for ContainerAgent service. 309 // 310 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 311 type ContainerAgentClient interface { 312 Invoke(ctx context.Context, in *ContainerRequest, opts ...grpc.CallOption) (*ContainerResponse, error) 313 CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) 314 } 315 316 type containerAgentClient struct { 317 cc *grpc.ClientConn 318 } 319 320 func NewContainerAgentClient(cc *grpc.ClientConn) ContainerAgentClient { 321 return &containerAgentClient{cc} 322 } 323 324 func (c *containerAgentClient) Invoke(ctx context.Context, in *ContainerRequest, opts ...grpc.CallOption) (*ContainerResponse, error) { 325 out := new(ContainerResponse) 326 err := c.cc.Invoke(ctx, "/moc.nodeagent.storage.ContainerAgent/Invoke", in, out, opts...) 327 if err != nil { 328 return nil, err 329 } 330 return out, nil 331 } 332 333 func (c *containerAgentClient) CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error) { 334 out := new(common.NotificationResponse) 335 err := c.cc.Invoke(ctx, "/moc.nodeagent.storage.ContainerAgent/CheckNotification", in, out, opts...) 336 if err != nil { 337 return nil, err 338 } 339 return out, nil 340 } 341 342 // ContainerAgentServer is the server API for ContainerAgent service. 343 type ContainerAgentServer interface { 344 Invoke(context.Context, *ContainerRequest) (*ContainerResponse, error) 345 CheckNotification(context.Context, *empty.Empty) (*common.NotificationResponse, error) 346 } 347 348 // UnimplementedContainerAgentServer can be embedded to have forward compatible implementations. 349 type UnimplementedContainerAgentServer struct { 350 } 351 352 func (*UnimplementedContainerAgentServer) Invoke(ctx context.Context, req *ContainerRequest) (*ContainerResponse, error) { 353 return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") 354 } 355 func (*UnimplementedContainerAgentServer) CheckNotification(ctx context.Context, req *empty.Empty) (*common.NotificationResponse, error) { 356 return nil, status.Errorf(codes.Unimplemented, "method CheckNotification not implemented") 357 } 358 359 func RegisterContainerAgentServer(s *grpc.Server, srv ContainerAgentServer) { 360 s.RegisterService(&_ContainerAgent_serviceDesc, srv) 361 } 362 363 func _ContainerAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 364 in := new(ContainerRequest) 365 if err := dec(in); err != nil { 366 return nil, err 367 } 368 if interceptor == nil { 369 return srv.(ContainerAgentServer).Invoke(ctx, in) 370 } 371 info := &grpc.UnaryServerInfo{ 372 Server: srv, 373 FullMethod: "/moc.nodeagent.storage.ContainerAgent/Invoke", 374 } 375 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 376 return srv.(ContainerAgentServer).Invoke(ctx, req.(*ContainerRequest)) 377 } 378 return interceptor(ctx, in, info, handler) 379 } 380 381 func _ContainerAgent_CheckNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 382 in := new(empty.Empty) 383 if err := dec(in); err != nil { 384 return nil, err 385 } 386 if interceptor == nil { 387 return srv.(ContainerAgentServer).CheckNotification(ctx, in) 388 } 389 info := &grpc.UnaryServerInfo{ 390 Server: srv, 391 FullMethod: "/moc.nodeagent.storage.ContainerAgent/CheckNotification", 392 } 393 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 394 return srv.(ContainerAgentServer).CheckNotification(ctx, req.(*empty.Empty)) 395 } 396 return interceptor(ctx, in, info, handler) 397 } 398 399 var _ContainerAgent_serviceDesc = grpc.ServiceDesc{ 400 ServiceName: "moc.nodeagent.storage.ContainerAgent", 401 HandlerType: (*ContainerAgentServer)(nil), 402 Methods: []grpc.MethodDesc{ 403 { 404 MethodName: "Invoke", 405 Handler: _ContainerAgent_Invoke_Handler, 406 }, 407 { 408 MethodName: "CheckNotification", 409 Handler: _ContainerAgent_CheckNotification_Handler, 410 }, 411 }, 412 Streams: []grpc.StreamDesc{}, 413 Metadata: "moc_nodeagent_container.proto", 414 }