From 327312d4e5880739355ec2782b6b5c9942b99ca8 Mon Sep 17 00:00:00 2001 From: Moshe Shahar Date: Wed, 10 Apr 2024 10:23:44 +0300 Subject: [PATCH] chore(storage): auto-generated proto Signed-off-by: Moshe Shahar --- storage/v1alpha1/autogen.md | 189 ++++ storage/v1alpha1/gen/go/backend_aio.pb.gw.go | 18 +- storage/v1alpha1/gen/go/backend_malloc.pb.go | 921 ++++++++++++++++++ .../v1alpha1/gen/go/backend_malloc.pb.gw.go | 746 ++++++++++++++ .../v1alpha1/gen/go/backend_malloc_grpc.pb.go | 312 ++++++ storage/v1alpha1/gen/go/backend_null.pb.gw.go | 18 +- storage/v1alpha1/gen/go/backend_nvme.pb.gw.go | 52 +- .../v1alpha1/gen/go/frontend_nvme.pb.gw.go | 58 +- .../gen/go/frontend_virtio_blk.pb.gw.go | 18 +- .../gen/go/frontend_virtio_scsi.pb.gw.go | 62 +- .../gen/go/middleend_encryption.pb.gw.go | 20 +- .../gen/go/middleend_qos_volume.pb.gw.go | 20 +- .../v1alpha1/gen/python/backend_malloc_pb2.py | 98 ++ .../gen/python/backend_malloc_pb2_grpc.py | 241 +++++ 14 files changed, 2584 insertions(+), 189 deletions(-) create mode 100644 storage/v1alpha1/gen/go/backend_malloc.pb.go create mode 100644 storage/v1alpha1/gen/go/backend_malloc.pb.gw.go create mode 100644 storage/v1alpha1/gen/go/backend_malloc_grpc.pb.go create mode 100644 storage/v1alpha1/gen/python/backend_malloc_pb2.py create mode 100644 storage/v1alpha1/gen/python/backend_malloc_pb2_grpc.py diff --git a/storage/v1alpha1/autogen.md b/storage/v1alpha1/autogen.md index 081cd396..91559b4b 100644 --- a/storage/v1alpha1/autogen.md +++ b/storage/v1alpha1/autogen.md @@ -17,6 +17,19 @@ - [AioVolumeService](#opi_api-storage-v1-AioVolumeService) - [backend_iscsi.proto](#backend_iscsi-proto) +- [backend_malloc.proto](#backend_malloc-proto) + - [CreateMallocVolumeRequest](#opi_api-storage-v1-CreateMallocVolumeRequest) + - [DeleteMallocVolumeRequest](#opi_api-storage-v1-DeleteMallocVolumeRequest) + - [GetMallocVolumeRequest](#opi_api-storage-v1-GetMallocVolumeRequest) + - [ListMallocVolumesRequest](#opi_api-storage-v1-ListMallocVolumesRequest) + - [ListMallocVolumesResponse](#opi_api-storage-v1-ListMallocVolumesResponse) + - [MallocVolume](#opi_api-storage-v1-MallocVolume) + - [StatsMallocVolumeRequest](#opi_api-storage-v1-StatsMallocVolumeRequest) + - [StatsMallocVolumeResponse](#opi_api-storage-v1-StatsMallocVolumeResponse) + - [UpdateMallocVolumeRequest](#opi_api-storage-v1-UpdateMallocVolumeRequest) + + - [MallocVolumeService](#opi_api-storage-v1-MallocVolumeService) + - [backend_null.proto](#backend_null-proto) - [CreateNullVolumeRequest](#opi_api-storage-v1-CreateNullVolumeRequest) - [DeleteNullVolumeRequest](#opi_api-storage-v1-DeleteNullVolumeRequest) @@ -379,6 +392,182 @@ Back End (network-facing) APIs. This service is for AIO generic kernel block dev + +

Top

+ +## backend_malloc.proto + + + + + +### CreateMallocVolumeRequest +Represents a request to create a Malloc Volume. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| malloc_volume | [MallocVolume](#opi_api-storage-v1-MallocVolume) | | The Malloc Volume to be created. | +| malloc_volume_id | [string](#string) | | An optional ID to assign to the Malloc Volume. If this is not provided the system will auto-generate it. | + + + + + + + + +### DeleteMallocVolumeRequest +Represents a request to delete a Malloc Volume. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | Object's unique identifier to delete | +| allow_missing | [bool](#bool) | | If set to true, and the resource is not found, the request will succeed but no action will be taken on the server | + + + + + + + + +### GetMallocVolumeRequest +Represents a request to get a Malloc Volume. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | Object's unique identifier to retrieve | + + + + + + + + +### ListMallocVolumesRequest +Represents a request to list all Malloc Volumes. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| page_size | [int32](#int32) | | page size of list request | +| page_token | [string](#string) | | page token of list request | + + + + + + + + +### ListMallocVolumesResponse +Represents a response to list all Malloc Volumes. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| malloc_volumes | [MallocVolume](#opi_api-storage-v1-MallocVolume) | repeated | List of Malloc volumes | +| next_page_token | [string](#string) | | Next page token of list response | + + + + + + + + +### MallocVolume +Malloc volume, volatile volume + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | name is an opaque object handle that is not user settable. name will be returned with created object user can only set {resource}_id on the Create request object | +| block_size | [int64](#int64) | | The block size of the MallocVolume. | +| blocks_count | [int64](#int64) | | The number of blocks in the MallocVolume. | +| metadata_size | [int64](#int64) | | The metadata size of the MallocVolume. | +| uuid | [string](#string) | | The UUID of the MallocVolume. | + + + + + + + + +### StatsMallocVolumeRequest +Represents a request to get a Malloc Volume statistics. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | Object's unique identifier to retrieve statistics | + + + + + + + + +### StatsMallocVolumeResponse +Represents a response to get a Malloc Volume statistics. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| stats | [VolumeStats](#opi_api-storage-v1-VolumeStats) | | Volume statistics | + + + + + + + + +### UpdateMallocVolumeRequest +Represents a request to update a Malloc Volume. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| malloc_volume | [MallocVolume](#opi_api-storage-v1-MallocVolume) | | The object's `name` field is used to identify the object to be updated. | +| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. | +| allow_missing | [bool](#bool) | | If set to true, and the object is not found, a new object will be created. In this situation, `update_mask` is ignored. | + + + + + + + + + + + + + + +### MallocVolumeService +Back End Malloc Volume APIs. This is debug interface for malloc block devices. + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| CreateMallocVolume | [CreateMallocVolumeRequest](#opi_api-storage-v1-CreateMallocVolumeRequest) | [MallocVolume](#opi_api-storage-v1-MallocVolume) | Create a Malloc Volume | +| DeleteMallocVolume | [DeleteMallocVolumeRequest](#opi_api-storage-v1-DeleteMallocVolumeRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete a Malloc Volume | +| UpdateMallocVolume | [UpdateMallocVolumeRequest](#opi_api-storage-v1-UpdateMallocVolumeRequest) | [MallocVolume](#opi_api-storage-v1-MallocVolume) | Update a Malloc Volume | +| ListMallocVolumes | [ListMallocVolumesRequest](#opi_api-storage-v1-ListMallocVolumesRequest) | [ListMallocVolumesResponse](#opi_api-storage-v1-ListMallocVolumesResponse) | List Malloc Volumes | +| GetMallocVolume | [GetMallocVolumeRequest](#opi_api-storage-v1-GetMallocVolumeRequest) | [MallocVolume](#opi_api-storage-v1-MallocVolume) | Get a Malloc Volume | +| StatsMallocVolume | [StatsMallocVolumeRequest](#opi_api-storage-v1-StatsMallocVolumeRequest) | [StatsMallocVolumeResponse](#opi_api-storage-v1-StatsMallocVolumeResponse) | Get a Malloc Volume statistics | + + + + +

Top

diff --git a/storage/v1alpha1/gen/go/backend_aio.pb.gw.go b/storage/v1alpha1/gen/go/backend_aio.pb.gw.go index 5660f0d7..cf745df1 100644 --- a/storage/v1alpha1/gen/go/backend_aio.pb.gw.go +++ b/storage/v1alpha1/gen/go/backend_aio.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_AioVolumeService_CreateAioVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"aio_volume": 0, "aioVolume": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_AioVolumeService_CreateAioVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"aio_volume": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_AioVolumeService_CreateAioVolume_0(ctx context.Context, marshaler runtime.Marshaler, client AioVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateAioVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.AioVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.AioVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_AioVolumeService_CreateAioVolume_0(ctx context.Context, marsh var protoReq CreateAioVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.AioVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.AioVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_AioVolumeService_CreateAioVolume_0(ctx context.Context, marsh } var ( - filter_AioVolumeService_DeleteAioVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_AioVolumeService_DeleteAioVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_AioVolumeService_DeleteAioVolume_0(ctx context.Context, marshaler runtime.Marshaler, client AioVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_AioVolumeService_DeleteAioVolume_0(ctx context.Context, marsh } var ( - filter_AioVolumeService_UpdateAioVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"aio_volume": 0, "aioVolume": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_AioVolumeService_UpdateAioVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"aio_volume": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_AioVolumeService_UpdateAioVolume_0(ctx context.Context, marshaler runtime.Marshaler, client AioVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/go/backend_malloc.pb.go b/storage/v1alpha1/gen/go/backend_malloc.pb.go new file mode 100644 index 00000000..a651e0da --- /dev/null +++ b/storage/v1alpha1/gen/go/backend_malloc.pb.go @@ -0,0 +1,921 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (c) 2022 Dell Inc, or its subsidiaries. +// Copyright (C) 2023 Intel Corporation +// Copyright (c) 2024 Xsight Labs Inc + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: backend_malloc.proto + +package _go + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Malloc volume, volatile volume +type MallocVolume struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // name is an opaque object handle that is not user settable. + // name will be returned with created object + // user can only set {resource}_id on the Create request object + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The block size of the MallocVolume. + BlockSize int64 `protobuf:"varint,2,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` + // The number of blocks in the MallocVolume. + BlocksCount int64 `protobuf:"varint,3,opt,name=blocks_count,json=blocksCount,proto3" json:"blocks_count,omitempty"` + // The metadata size of the MallocVolume. + MetadataSize int64 `protobuf:"varint,4,opt,name=metadata_size,json=metadataSize,proto3" json:"metadata_size,omitempty"` + // The UUID of the MallocVolume. + Uuid string `protobuf:"bytes,5,opt,name=uuid,proto3" json:"uuid,omitempty"` +} + +func (x *MallocVolume) Reset() { + *x = MallocVolume{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MallocVolume) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MallocVolume) ProtoMessage() {} + +func (x *MallocVolume) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MallocVolume.ProtoReflect.Descriptor instead. +func (*MallocVolume) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{0} +} + +func (x *MallocVolume) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *MallocVolume) GetBlockSize() int64 { + if x != nil { + return x.BlockSize + } + return 0 +} + +func (x *MallocVolume) GetBlocksCount() int64 { + if x != nil { + return x.BlocksCount + } + return 0 +} + +func (x *MallocVolume) GetMetadataSize() int64 { + if x != nil { + return x.MetadataSize + } + return 0 +} + +func (x *MallocVolume) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +// Represents a request to create a Malloc Volume. +type CreateMallocVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The Malloc Volume to be created. + MallocVolume *MallocVolume `protobuf:"bytes,1,opt,name=malloc_volume,json=mallocVolume,proto3" json:"malloc_volume,omitempty"` + // An optional ID to assign to the Malloc Volume. + // If this is not provided the system will auto-generate it. + MallocVolumeId string `protobuf:"bytes,2,opt,name=malloc_volume_id,json=mallocVolumeId,proto3" json:"malloc_volume_id,omitempty"` +} + +func (x *CreateMallocVolumeRequest) Reset() { + *x = CreateMallocVolumeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateMallocVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateMallocVolumeRequest) ProtoMessage() {} + +func (x *CreateMallocVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateMallocVolumeRequest.ProtoReflect.Descriptor instead. +func (*CreateMallocVolumeRequest) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateMallocVolumeRequest) GetMallocVolume() *MallocVolume { + if x != nil { + return x.MallocVolume + } + return nil +} + +func (x *CreateMallocVolumeRequest) GetMallocVolumeId() string { + if x != nil { + return x.MallocVolumeId + } + return "" +} + +// Represents a request to delete a Malloc Volume. +type DeleteMallocVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Object's unique identifier to delete + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // If set to true, and the resource is not found, the request will succeed + // but no action will be taken on the server + AllowMissing bool `protobuf:"varint,2,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` +} + +func (x *DeleteMallocVolumeRequest) Reset() { + *x = DeleteMallocVolumeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteMallocVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteMallocVolumeRequest) ProtoMessage() {} + +func (x *DeleteMallocVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteMallocVolumeRequest.ProtoReflect.Descriptor instead. +func (*DeleteMallocVolumeRequest) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{2} +} + +func (x *DeleteMallocVolumeRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *DeleteMallocVolumeRequest) GetAllowMissing() bool { + if x != nil { + return x.AllowMissing + } + return false +} + +// Represents a request to update a Malloc Volume. +type UpdateMallocVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The object's `name` field is used to identify the object to be updated. + MallocVolume *MallocVolume `protobuf:"bytes,1,opt,name=malloc_volume,json=mallocVolume,proto3" json:"malloc_volume,omitempty"` + // The list of fields to update. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // If set to true, and the object is not found, a new object will be created. + // In this situation, `update_mask` is ignored. + AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` +} + +func (x *UpdateMallocVolumeRequest) Reset() { + *x = UpdateMallocVolumeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateMallocVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateMallocVolumeRequest) ProtoMessage() {} + +func (x *UpdateMallocVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateMallocVolumeRequest.ProtoReflect.Descriptor instead. +func (*UpdateMallocVolumeRequest) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateMallocVolumeRequest) GetMallocVolume() *MallocVolume { + if x != nil { + return x.MallocVolume + } + return nil +} + +func (x *UpdateMallocVolumeRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +func (x *UpdateMallocVolumeRequest) GetAllowMissing() bool { + if x != nil { + return x.AllowMissing + } + return false +} + +// Represents a request to list all Malloc Volumes. +type ListMallocVolumesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page size of list request + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // page token of list request + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListMallocVolumesRequest) Reset() { + *x = ListMallocVolumesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMallocVolumesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMallocVolumesRequest) ProtoMessage() {} + +func (x *ListMallocVolumesRequest) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMallocVolumesRequest.ProtoReflect.Descriptor instead. +func (*ListMallocVolumesRequest) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{4} +} + +func (x *ListMallocVolumesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListMallocVolumesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +// Represents a response to list all Malloc Volumes. +type ListMallocVolumesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of Malloc volumes + MallocVolumes []*MallocVolume `protobuf:"bytes,1,rep,name=malloc_volumes,json=mallocVolumes,proto3" json:"malloc_volumes,omitempty"` + // Next page token of list response + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListMallocVolumesResponse) Reset() { + *x = ListMallocVolumesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMallocVolumesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMallocVolumesResponse) ProtoMessage() {} + +func (x *ListMallocVolumesResponse) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMallocVolumesResponse.ProtoReflect.Descriptor instead. +func (*ListMallocVolumesResponse) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{5} +} + +func (x *ListMallocVolumesResponse) GetMallocVolumes() []*MallocVolume { + if x != nil { + return x.MallocVolumes + } + return nil +} + +func (x *ListMallocVolumesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// Represents a request to get a Malloc Volume. +type GetMallocVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Object's unique identifier to retrieve + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetMallocVolumeRequest) Reset() { + *x = GetMallocVolumeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetMallocVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMallocVolumeRequest) ProtoMessage() {} + +func (x *GetMallocVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMallocVolumeRequest.ProtoReflect.Descriptor instead. +func (*GetMallocVolumeRequest) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{6} +} + +func (x *GetMallocVolumeRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Represents a request to get a Malloc Volume statistics. +type StatsMallocVolumeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Object's unique identifier to retrieve statistics + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *StatsMallocVolumeRequest) Reset() { + *x = StatsMallocVolumeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatsMallocVolumeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatsMallocVolumeRequest) ProtoMessage() {} + +func (x *StatsMallocVolumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StatsMallocVolumeRequest.ProtoReflect.Descriptor instead. +func (*StatsMallocVolumeRequest) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{7} +} + +func (x *StatsMallocVolumeRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Represents a response to get a Malloc Volume statistics. +type StatsMallocVolumeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Volume statistics + Stats *VolumeStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *StatsMallocVolumeResponse) Reset() { + *x = StatsMallocVolumeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_backend_malloc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatsMallocVolumeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatsMallocVolumeResponse) ProtoMessage() {} + +func (x *StatsMallocVolumeResponse) ProtoReflect() protoreflect.Message { + mi := &file_backend_malloc_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StatsMallocVolumeResponse.ProtoReflect.Descriptor instead. +func (*StatsMallocVolumeResponse) Descriptor() ([]byte, []int) { + return file_backend_malloc_proto_rawDescGZIP(), []int{8} +} + +func (x *StatsMallocVolumeResponse) GetStats() *VolumeStats { + if x != nil { + return x.Stats + } + return nil +} + +var File_backend_malloc_proto protoreflect.FileDescriptor + +var file_backend_malloc_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, + 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x6f, 0x70, + 0x69, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x02, + 0x0a, 0x0c, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x17, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x0c, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x17, 0x0a, + 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, + 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x3a, 0x59, 0xea, 0x41, 0x56, 0x0a, 0x1f, 0x6f, 0x70, 0x69, + 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2f, + 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x16, 0x6d, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x2f, 0x7b, 0x76, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x7d, 0x2a, 0x0d, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x73, 0x32, 0x0c, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x22, 0x96, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6c, 0x6c, + 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x4a, 0x0a, 0x0d, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x6c, + 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6d, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x10, 0x6d, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0e, 0x6d, 0x61, 0x6c, 0x6c, + 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x49, 0x64, 0x22, 0x82, 0x01, 0x0a, 0x19, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x76, 0x31, 0x2f, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, + 0x01, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, + 0xd3, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, + 0x0d, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6d, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x28, 0x0a, 0x0d, 0x61, + 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x60, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8c, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x0d, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x26, + 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x55, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2f, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, + 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x57, 0x0a, + 0x18, 0x53, 0x74, 0x61, 0x74, 0x73, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, + 0x1f, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x76, 0x31, 0x2f, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x19, 0x53, 0x74, 0x61, 0x74, 0x73, 0x4d, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x32, 0xd5, 0x07, 0x0a, 0x13, 0x4d, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0xb0, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2d, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x49, 0xda, 0x41, 0x1e, 0x6d, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2c, 0x6d, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x22, 0x3a, 0x0d, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x22, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x86, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2d, 0x2e, 0x6f, + 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x22, 0x29, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1c, 0x2a, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6d, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc2, + 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2d, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x5b, 0xda, 0x41, 0x19, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, + 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x0d, 0x6d, 0x61, 0x6c, 0x6c, + 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x32, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x6e, 0x61, + 0x6d, 0x65, 0x3d, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, + 0x2f, 0x2a, 0x7d, 0x12, 0x8b, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6c, 0x6c, + 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, + 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x20, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x22, 0x29, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6d, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa1, + 0x01, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x74, 0x73, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x4d, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x4d, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, + 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6d, 0x61, 0x6c, 0x6c, + 0x6f, 0x63, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x74, 0x61, + 0x74, 0x73, 0x42, 0x61, 0x0a, 0x12, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, + 0x64, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, 0x69, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_backend_malloc_proto_rawDescOnce sync.Once + file_backend_malloc_proto_rawDescData = file_backend_malloc_proto_rawDesc +) + +func file_backend_malloc_proto_rawDescGZIP() []byte { + file_backend_malloc_proto_rawDescOnce.Do(func() { + file_backend_malloc_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_malloc_proto_rawDescData) + }) + return file_backend_malloc_proto_rawDescData +} + +var file_backend_malloc_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_backend_malloc_proto_goTypes = []interface{}{ + (*MallocVolume)(nil), // 0: opi_api.storage.v1.MallocVolume + (*CreateMallocVolumeRequest)(nil), // 1: opi_api.storage.v1.CreateMallocVolumeRequest + (*DeleteMallocVolumeRequest)(nil), // 2: opi_api.storage.v1.DeleteMallocVolumeRequest + (*UpdateMallocVolumeRequest)(nil), // 3: opi_api.storage.v1.UpdateMallocVolumeRequest + (*ListMallocVolumesRequest)(nil), // 4: opi_api.storage.v1.ListMallocVolumesRequest + (*ListMallocVolumesResponse)(nil), // 5: opi_api.storage.v1.ListMallocVolumesResponse + (*GetMallocVolumeRequest)(nil), // 6: opi_api.storage.v1.GetMallocVolumeRequest + (*StatsMallocVolumeRequest)(nil), // 7: opi_api.storage.v1.StatsMallocVolumeRequest + (*StatsMallocVolumeResponse)(nil), // 8: opi_api.storage.v1.StatsMallocVolumeResponse + (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask + (*VolumeStats)(nil), // 10: opi_api.storage.v1.VolumeStats + (*emptypb.Empty)(nil), // 11: google.protobuf.Empty +} +var file_backend_malloc_proto_depIdxs = []int32{ + 0, // 0: opi_api.storage.v1.CreateMallocVolumeRequest.malloc_volume:type_name -> opi_api.storage.v1.MallocVolume + 0, // 1: opi_api.storage.v1.UpdateMallocVolumeRequest.malloc_volume:type_name -> opi_api.storage.v1.MallocVolume + 9, // 2: opi_api.storage.v1.UpdateMallocVolumeRequest.update_mask:type_name -> google.protobuf.FieldMask + 0, // 3: opi_api.storage.v1.ListMallocVolumesResponse.malloc_volumes:type_name -> opi_api.storage.v1.MallocVolume + 10, // 4: opi_api.storage.v1.StatsMallocVolumeResponse.stats:type_name -> opi_api.storage.v1.VolumeStats + 1, // 5: opi_api.storage.v1.MallocVolumeService.CreateMallocVolume:input_type -> opi_api.storage.v1.CreateMallocVolumeRequest + 2, // 6: opi_api.storage.v1.MallocVolumeService.DeleteMallocVolume:input_type -> opi_api.storage.v1.DeleteMallocVolumeRequest + 3, // 7: opi_api.storage.v1.MallocVolumeService.UpdateMallocVolume:input_type -> opi_api.storage.v1.UpdateMallocVolumeRequest + 4, // 8: opi_api.storage.v1.MallocVolumeService.ListMallocVolumes:input_type -> opi_api.storage.v1.ListMallocVolumesRequest + 6, // 9: opi_api.storage.v1.MallocVolumeService.GetMallocVolume:input_type -> opi_api.storage.v1.GetMallocVolumeRequest + 7, // 10: opi_api.storage.v1.MallocVolumeService.StatsMallocVolume:input_type -> opi_api.storage.v1.StatsMallocVolumeRequest + 0, // 11: opi_api.storage.v1.MallocVolumeService.CreateMallocVolume:output_type -> opi_api.storage.v1.MallocVolume + 11, // 12: opi_api.storage.v1.MallocVolumeService.DeleteMallocVolume:output_type -> google.protobuf.Empty + 0, // 13: opi_api.storage.v1.MallocVolumeService.UpdateMallocVolume:output_type -> opi_api.storage.v1.MallocVolume + 5, // 14: opi_api.storage.v1.MallocVolumeService.ListMallocVolumes:output_type -> opi_api.storage.v1.ListMallocVolumesResponse + 0, // 15: opi_api.storage.v1.MallocVolumeService.GetMallocVolume:output_type -> opi_api.storage.v1.MallocVolume + 8, // 16: opi_api.storage.v1.MallocVolumeService.StatsMallocVolume:output_type -> opi_api.storage.v1.StatsMallocVolumeResponse + 11, // [11:17] is the sub-list for method output_type + 5, // [5:11] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_backend_malloc_proto_init() } +func file_backend_malloc_proto_init() { + if File_backend_malloc_proto != nil { + return + } + file_opicommon_proto_init() + if !protoimpl.UnsafeEnabled { + file_backend_malloc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MallocVolume); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateMallocVolumeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteMallocVolumeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateMallocVolumeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMallocVolumesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMallocVolumesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMallocVolumeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatsMallocVolumeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backend_malloc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatsMallocVolumeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_backend_malloc_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_backend_malloc_proto_goTypes, + DependencyIndexes: file_backend_malloc_proto_depIdxs, + MessageInfos: file_backend_malloc_proto_msgTypes, + }.Build() + File_backend_malloc_proto = out.File + file_backend_malloc_proto_rawDesc = nil + file_backend_malloc_proto_goTypes = nil + file_backend_malloc_proto_depIdxs = nil +} diff --git a/storage/v1alpha1/gen/go/backend_malloc.pb.gw.go b/storage/v1alpha1/gen/go/backend_malloc.pb.gw.go new file mode 100644 index 00000000..dcdba509 --- /dev/null +++ b/storage/v1alpha1/gen/go/backend_malloc.pb.gw.go @@ -0,0 +1,746 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: backend_malloc.proto + +/* +Package _go is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package _go + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +var ( + filter_MallocVolumeService_CreateMallocVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"malloc_volume": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_MallocVolumeService_CreateMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MallocVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateMallocVolumeRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.MallocVolume); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_CreateMallocVolume_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateMallocVolume(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_MallocVolumeService_CreateMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, server MallocVolumeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateMallocVolumeRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.MallocVolume); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_CreateMallocVolume_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateMallocVolume(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_MallocVolumeService_DeleteMallocVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_MallocVolumeService_DeleteMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MallocVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteMallocVolumeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_DeleteMallocVolume_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteMallocVolume(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_MallocVolumeService_DeleteMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, server MallocVolumeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteMallocVolumeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_DeleteMallocVolume_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeleteMallocVolume(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_MallocVolumeService_UpdateMallocVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"malloc_volume": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} +) + +func request_MallocVolumeService_UpdateMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MallocVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateMallocVolumeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.MallocVolume); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.MallocVolume); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["malloc_volume.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "malloc_volume.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "malloc_volume.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "malloc_volume.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_UpdateMallocVolume_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdateMallocVolume(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_MallocVolumeService_UpdateMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, server MallocVolumeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateMallocVolumeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.MallocVolume); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.MallocVolume); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["malloc_volume.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "malloc_volume.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "malloc_volume.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "malloc_volume.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_UpdateMallocVolume_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdateMallocVolume(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_MallocVolumeService_ListMallocVolumes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_MallocVolumeService_ListMallocVolumes_0(ctx context.Context, marshaler runtime.Marshaler, client MallocVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListMallocVolumesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_ListMallocVolumes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListMallocVolumes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_MallocVolumeService_ListMallocVolumes_0(ctx context.Context, marshaler runtime.Marshaler, server MallocVolumeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListMallocVolumesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MallocVolumeService_ListMallocVolumes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListMallocVolumes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_MallocVolumeService_GetMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MallocVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetMallocVolumeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.GetMallocVolume(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_MallocVolumeService_GetMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, server MallocVolumeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetMallocVolumeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.GetMallocVolume(ctx, &protoReq) + return msg, metadata, err + +} + +func request_MallocVolumeService_StatsMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MallocVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq StatsMallocVolumeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.StatsMallocVolume(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_MallocVolumeService_StatsMallocVolume_0(ctx context.Context, marshaler runtime.Marshaler, server MallocVolumeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq StatsMallocVolumeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.StatsMallocVolume(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterMallocVolumeServiceHandlerServer registers the http handlers for service MallocVolumeService to "mux". +// UnaryRPC :call MallocVolumeServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMallocVolumeServiceHandlerFromEndpoint instead. +func RegisterMallocVolumeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MallocVolumeServiceServer) error { + + mux.Handle("POST", pattern_MallocVolumeService_CreateMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/CreateMallocVolume", runtime.WithHTTPPathPattern("/v1/mallocVolumes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_MallocVolumeService_CreateMallocVolume_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_CreateMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_MallocVolumeService_DeleteMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/DeleteMallocVolume", runtime.WithHTTPPathPattern("/v1/{name=mallocVolumes/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_MallocVolumeService_DeleteMallocVolume_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_DeleteMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_MallocVolumeService_UpdateMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/UpdateMallocVolume", runtime.WithHTTPPathPattern("/v1/{malloc_volume.name=mallocVolumes/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_MallocVolumeService_UpdateMallocVolume_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_UpdateMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_MallocVolumeService_ListMallocVolumes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/ListMallocVolumes", runtime.WithHTTPPathPattern("/v1/mallocVolumes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_MallocVolumeService_ListMallocVolumes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_ListMallocVolumes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_MallocVolumeService_GetMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/GetMallocVolume", runtime.WithHTTPPathPattern("/v1/{name=mallocVolumes/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_MallocVolumeService_GetMallocVolume_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_GetMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_MallocVolumeService_StatsMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/StatsMallocVolume", runtime.WithHTTPPathPattern("/v1/{name=mallocVolumes/*}:stats")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_MallocVolumeService_StatsMallocVolume_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_StatsMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterMallocVolumeServiceHandlerFromEndpoint is same as RegisterMallocVolumeServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterMallocVolumeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterMallocVolumeServiceHandler(ctx, mux, conn) +} + +// RegisterMallocVolumeServiceHandler registers the http handlers for service MallocVolumeService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterMallocVolumeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterMallocVolumeServiceHandlerClient(ctx, mux, NewMallocVolumeServiceClient(conn)) +} + +// RegisterMallocVolumeServiceHandlerClient registers the http handlers for service MallocVolumeService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MallocVolumeServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MallocVolumeServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "MallocVolumeServiceClient" to call the correct interceptors. +func RegisterMallocVolumeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MallocVolumeServiceClient) error { + + mux.Handle("POST", pattern_MallocVolumeService_CreateMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/CreateMallocVolume", runtime.WithHTTPPathPattern("/v1/mallocVolumes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_MallocVolumeService_CreateMallocVolume_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_CreateMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_MallocVolumeService_DeleteMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/DeleteMallocVolume", runtime.WithHTTPPathPattern("/v1/{name=mallocVolumes/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_MallocVolumeService_DeleteMallocVolume_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_DeleteMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_MallocVolumeService_UpdateMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/UpdateMallocVolume", runtime.WithHTTPPathPattern("/v1/{malloc_volume.name=mallocVolumes/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_MallocVolumeService_UpdateMallocVolume_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_UpdateMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_MallocVolumeService_ListMallocVolumes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/ListMallocVolumes", runtime.WithHTTPPathPattern("/v1/mallocVolumes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_MallocVolumeService_ListMallocVolumes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_ListMallocVolumes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_MallocVolumeService_GetMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/GetMallocVolume", runtime.WithHTTPPathPattern("/v1/{name=mallocVolumes/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_MallocVolumeService_GetMallocVolume_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_GetMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_MallocVolumeService_StatsMallocVolume_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.storage.v1.MallocVolumeService/StatsMallocVolume", runtime.WithHTTPPathPattern("/v1/{name=mallocVolumes/*}:stats")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_MallocVolumeService_StatsMallocVolume_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_MallocVolumeService_StatsMallocVolume_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_MallocVolumeService_CreateMallocVolume_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "mallocVolumes"}, "")) + + pattern_MallocVolumeService_DeleteMallocVolume_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "mallocVolumes", "name"}, "")) + + pattern_MallocVolumeService_UpdateMallocVolume_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "mallocVolumes", "malloc_volume.name"}, "")) + + pattern_MallocVolumeService_ListMallocVolumes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "mallocVolumes"}, "")) + + pattern_MallocVolumeService_GetMallocVolume_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "mallocVolumes", "name"}, "")) + + pattern_MallocVolumeService_StatsMallocVolume_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "mallocVolumes", "name"}, "stats")) +) + +var ( + forward_MallocVolumeService_CreateMallocVolume_0 = runtime.ForwardResponseMessage + + forward_MallocVolumeService_DeleteMallocVolume_0 = runtime.ForwardResponseMessage + + forward_MallocVolumeService_UpdateMallocVolume_0 = runtime.ForwardResponseMessage + + forward_MallocVolumeService_ListMallocVolumes_0 = runtime.ForwardResponseMessage + + forward_MallocVolumeService_GetMallocVolume_0 = runtime.ForwardResponseMessage + + forward_MallocVolumeService_StatsMallocVolume_0 = runtime.ForwardResponseMessage +) diff --git a/storage/v1alpha1/gen/go/backend_malloc_grpc.pb.go b/storage/v1alpha1/gen/go/backend_malloc_grpc.pb.go new file mode 100644 index 00000000..f53b325e --- /dev/null +++ b/storage/v1alpha1/gen/go/backend_malloc_grpc.pb.go @@ -0,0 +1,312 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (c) 2022 Dell Inc, or its subsidiaries. +// Copyright (C) 2023 Intel Corporation +// Copyright (c) 2024 Xsight Labs Inc + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: backend_malloc.proto + +package _go + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + MallocVolumeService_CreateMallocVolume_FullMethodName = "/opi_api.storage.v1.MallocVolumeService/CreateMallocVolume" + MallocVolumeService_DeleteMallocVolume_FullMethodName = "/opi_api.storage.v1.MallocVolumeService/DeleteMallocVolume" + MallocVolumeService_UpdateMallocVolume_FullMethodName = "/opi_api.storage.v1.MallocVolumeService/UpdateMallocVolume" + MallocVolumeService_ListMallocVolumes_FullMethodName = "/opi_api.storage.v1.MallocVolumeService/ListMallocVolumes" + MallocVolumeService_GetMallocVolume_FullMethodName = "/opi_api.storage.v1.MallocVolumeService/GetMallocVolume" + MallocVolumeService_StatsMallocVolume_FullMethodName = "/opi_api.storage.v1.MallocVolumeService/StatsMallocVolume" +) + +// MallocVolumeServiceClient is the client API for MallocVolumeService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MallocVolumeServiceClient interface { + // Create a Malloc Volume + CreateMallocVolume(ctx context.Context, in *CreateMallocVolumeRequest, opts ...grpc.CallOption) (*MallocVolume, error) + // Delete a Malloc Volume + DeleteMallocVolume(ctx context.Context, in *DeleteMallocVolumeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // Update a Malloc Volume + UpdateMallocVolume(ctx context.Context, in *UpdateMallocVolumeRequest, opts ...grpc.CallOption) (*MallocVolume, error) + // List Malloc Volumes + ListMallocVolumes(ctx context.Context, in *ListMallocVolumesRequest, opts ...grpc.CallOption) (*ListMallocVolumesResponse, error) + // Get a Malloc Volume + GetMallocVolume(ctx context.Context, in *GetMallocVolumeRequest, opts ...grpc.CallOption) (*MallocVolume, error) + // Get a Malloc Volume statistics + StatsMallocVolume(ctx context.Context, in *StatsMallocVolumeRequest, opts ...grpc.CallOption) (*StatsMallocVolumeResponse, error) +} + +type mallocVolumeServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewMallocVolumeServiceClient(cc grpc.ClientConnInterface) MallocVolumeServiceClient { + return &mallocVolumeServiceClient{cc} +} + +func (c *mallocVolumeServiceClient) CreateMallocVolume(ctx context.Context, in *CreateMallocVolumeRequest, opts ...grpc.CallOption) (*MallocVolume, error) { + out := new(MallocVolume) + err := c.cc.Invoke(ctx, MallocVolumeService_CreateMallocVolume_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mallocVolumeServiceClient) DeleteMallocVolume(ctx context.Context, in *DeleteMallocVolumeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, MallocVolumeService_DeleteMallocVolume_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mallocVolumeServiceClient) UpdateMallocVolume(ctx context.Context, in *UpdateMallocVolumeRequest, opts ...grpc.CallOption) (*MallocVolume, error) { + out := new(MallocVolume) + err := c.cc.Invoke(ctx, MallocVolumeService_UpdateMallocVolume_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mallocVolumeServiceClient) ListMallocVolumes(ctx context.Context, in *ListMallocVolumesRequest, opts ...grpc.CallOption) (*ListMallocVolumesResponse, error) { + out := new(ListMallocVolumesResponse) + err := c.cc.Invoke(ctx, MallocVolumeService_ListMallocVolumes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mallocVolumeServiceClient) GetMallocVolume(ctx context.Context, in *GetMallocVolumeRequest, opts ...grpc.CallOption) (*MallocVolume, error) { + out := new(MallocVolume) + err := c.cc.Invoke(ctx, MallocVolumeService_GetMallocVolume_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mallocVolumeServiceClient) StatsMallocVolume(ctx context.Context, in *StatsMallocVolumeRequest, opts ...grpc.CallOption) (*StatsMallocVolumeResponse, error) { + out := new(StatsMallocVolumeResponse) + err := c.cc.Invoke(ctx, MallocVolumeService_StatsMallocVolume_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MallocVolumeServiceServer is the server API for MallocVolumeService service. +// All implementations must embed UnimplementedMallocVolumeServiceServer +// for forward compatibility +type MallocVolumeServiceServer interface { + // Create a Malloc Volume + CreateMallocVolume(context.Context, *CreateMallocVolumeRequest) (*MallocVolume, error) + // Delete a Malloc Volume + DeleteMallocVolume(context.Context, *DeleteMallocVolumeRequest) (*emptypb.Empty, error) + // Update a Malloc Volume + UpdateMallocVolume(context.Context, *UpdateMallocVolumeRequest) (*MallocVolume, error) + // List Malloc Volumes + ListMallocVolumes(context.Context, *ListMallocVolumesRequest) (*ListMallocVolumesResponse, error) + // Get a Malloc Volume + GetMallocVolume(context.Context, *GetMallocVolumeRequest) (*MallocVolume, error) + // Get a Malloc Volume statistics + StatsMallocVolume(context.Context, *StatsMallocVolumeRequest) (*StatsMallocVolumeResponse, error) + mustEmbedUnimplementedMallocVolumeServiceServer() +} + +// UnimplementedMallocVolumeServiceServer must be embedded to have forward compatible implementations. +type UnimplementedMallocVolumeServiceServer struct { +} + +func (UnimplementedMallocVolumeServiceServer) CreateMallocVolume(context.Context, *CreateMallocVolumeRequest) (*MallocVolume, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateMallocVolume not implemented") +} +func (UnimplementedMallocVolumeServiceServer) DeleteMallocVolume(context.Context, *DeleteMallocVolumeRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteMallocVolume not implemented") +} +func (UnimplementedMallocVolumeServiceServer) UpdateMallocVolume(context.Context, *UpdateMallocVolumeRequest) (*MallocVolume, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMallocVolume not implemented") +} +func (UnimplementedMallocVolumeServiceServer) ListMallocVolumes(context.Context, *ListMallocVolumesRequest) (*ListMallocVolumesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMallocVolumes not implemented") +} +func (UnimplementedMallocVolumeServiceServer) GetMallocVolume(context.Context, *GetMallocVolumeRequest) (*MallocVolume, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMallocVolume not implemented") +} +func (UnimplementedMallocVolumeServiceServer) StatsMallocVolume(context.Context, *StatsMallocVolumeRequest) (*StatsMallocVolumeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StatsMallocVolume not implemented") +} +func (UnimplementedMallocVolumeServiceServer) mustEmbedUnimplementedMallocVolumeServiceServer() {} + +// UnsafeMallocVolumeServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MallocVolumeServiceServer will +// result in compilation errors. +type UnsafeMallocVolumeServiceServer interface { + mustEmbedUnimplementedMallocVolumeServiceServer() +} + +func RegisterMallocVolumeServiceServer(s grpc.ServiceRegistrar, srv MallocVolumeServiceServer) { + s.RegisterService(&MallocVolumeService_ServiceDesc, srv) +} + +func _MallocVolumeService_CreateMallocVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateMallocVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MallocVolumeServiceServer).CreateMallocVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MallocVolumeService_CreateMallocVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MallocVolumeServiceServer).CreateMallocVolume(ctx, req.(*CreateMallocVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MallocVolumeService_DeleteMallocVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteMallocVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MallocVolumeServiceServer).DeleteMallocVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MallocVolumeService_DeleteMallocVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MallocVolumeServiceServer).DeleteMallocVolume(ctx, req.(*DeleteMallocVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MallocVolumeService_UpdateMallocVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateMallocVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MallocVolumeServiceServer).UpdateMallocVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MallocVolumeService_UpdateMallocVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MallocVolumeServiceServer).UpdateMallocVolume(ctx, req.(*UpdateMallocVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MallocVolumeService_ListMallocVolumes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListMallocVolumesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MallocVolumeServiceServer).ListMallocVolumes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MallocVolumeService_ListMallocVolumes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MallocVolumeServiceServer).ListMallocVolumes(ctx, req.(*ListMallocVolumesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MallocVolumeService_GetMallocVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMallocVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MallocVolumeServiceServer).GetMallocVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MallocVolumeService_GetMallocVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MallocVolumeServiceServer).GetMallocVolume(ctx, req.(*GetMallocVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MallocVolumeService_StatsMallocVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatsMallocVolumeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MallocVolumeServiceServer).StatsMallocVolume(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: MallocVolumeService_StatsMallocVolume_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MallocVolumeServiceServer).StatsMallocVolume(ctx, req.(*StatsMallocVolumeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// MallocVolumeService_ServiceDesc is the grpc.ServiceDesc for MallocVolumeService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var MallocVolumeService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "opi_api.storage.v1.MallocVolumeService", + HandlerType: (*MallocVolumeServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateMallocVolume", + Handler: _MallocVolumeService_CreateMallocVolume_Handler, + }, + { + MethodName: "DeleteMallocVolume", + Handler: _MallocVolumeService_DeleteMallocVolume_Handler, + }, + { + MethodName: "UpdateMallocVolume", + Handler: _MallocVolumeService_UpdateMallocVolume_Handler, + }, + { + MethodName: "ListMallocVolumes", + Handler: _MallocVolumeService_ListMallocVolumes_Handler, + }, + { + MethodName: "GetMallocVolume", + Handler: _MallocVolumeService_GetMallocVolume_Handler, + }, + { + MethodName: "StatsMallocVolume", + Handler: _MallocVolumeService_StatsMallocVolume_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "backend_malloc.proto", +} diff --git a/storage/v1alpha1/gen/go/backend_null.pb.gw.go b/storage/v1alpha1/gen/go/backend_null.pb.gw.go index 5effc6da..387e5774 100644 --- a/storage/v1alpha1/gen/go/backend_null.pb.gw.go +++ b/storage/v1alpha1/gen/go/backend_null.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_NullVolumeService_CreateNullVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"null_volume": 0, "nullVolume": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_NullVolumeService_CreateNullVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"null_volume": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_NullVolumeService_CreateNullVolume_0(ctx context.Context, marshaler runtime.Marshaler, client NullVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateNullVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NullVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NullVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_NullVolumeService_CreateNullVolume_0(ctx context.Context, mar var protoReq CreateNullVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NullVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NullVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_NullVolumeService_CreateNullVolume_0(ctx context.Context, mar } var ( - filter_NullVolumeService_DeleteNullVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_NullVolumeService_DeleteNullVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_NullVolumeService_DeleteNullVolume_0(ctx context.Context, marshaler runtime.Marshaler, client NullVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_NullVolumeService_DeleteNullVolume_0(ctx context.Context, mar } var ( - filter_NullVolumeService_UpdateNullVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"null_volume": 0, "nullVolume": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_NullVolumeService_UpdateNullVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"null_volume": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_NullVolumeService_UpdateNullVolume_0(ctx context.Context, marshaler runtime.Marshaler, client NullVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/go/backend_nvme.pb.gw.go b/storage/v1alpha1/gen/go/backend_nvme.pb.gw.go index 22d4c0e0..496d5620 100644 --- a/storage/v1alpha1/gen/go/backend_nvme.pb.gw.go +++ b/storage/v1alpha1/gen/go/backend_nvme.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_NvmeRemoteControllerService_CreateNvmeRemoteController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_remote_controller": 0, "nvmeRemoteController": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_NvmeRemoteControllerService_CreateNvmeRemoteController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_remote_controller": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_NvmeRemoteControllerService_CreateNvmeRemoteController_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateNvmeRemoteControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeRemoteController); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeRemoteController); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_NvmeRemoteControllerService_CreateNvmeRemoteController_0(ctx var protoReq CreateNvmeRemoteControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeRemoteController); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeRemoteController); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_NvmeRemoteControllerService_CreateNvmeRemoteController_0(ctx } var ( - filter_NvmeRemoteControllerService_DeleteNvmeRemoteController_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_NvmeRemoteControllerService_DeleteNvmeRemoteController_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_NvmeRemoteControllerService_DeleteNvmeRemoteController_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_NvmeRemoteControllerService_DeleteNvmeRemoteController_0(ctx } var ( - filter_NvmeRemoteControllerService_UpdateNvmeRemoteController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_remote_controller": 0, "nvmeRemoteController": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_NvmeRemoteControllerService_UpdateNvmeRemoteController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_remote_controller": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_NvmeRemoteControllerService_UpdateNvmeRemoteController_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -345,11 +337,7 @@ func request_NvmeRemoteControllerService_ResetNvmeRemoteController_0(ctx context var protoReq ResetNvmeRemoteControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -379,11 +367,7 @@ func local_request_NvmeRemoteControllerService_ResetNvmeRemoteController_0(ctx c var protoReq ResetNvmeRemoteControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -462,7 +446,7 @@ func local_request_NvmeRemoteControllerService_StatsNvmeRemoteController_0(ctx c } var ( - filter_NvmeRemoteControllerService_ListNvmeRemoteNamespaces_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_NvmeRemoteControllerService_ListNvmeRemoteNamespaces_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_NvmeRemoteControllerService_ListNvmeRemoteNamespaces_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -584,18 +568,14 @@ func local_request_NvmeRemoteControllerService_GetNvmeRemoteNamespace_0(ctx cont } var ( - filter_NvmeRemoteControllerService_CreateNvmePath_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_path": 0, "nvmePath": 1, "parent": 2}, Base: []int{1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4, 4}} + filter_NvmeRemoteControllerService_CreateNvmePath_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_path": 0, "parent": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) func request_NvmeRemoteControllerService_CreateNvmePath_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateNvmePathRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmePath); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmePath); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -632,11 +612,7 @@ func local_request_NvmeRemoteControllerService_CreateNvmePath_0(ctx context.Cont var protoReq CreateNvmePathRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmePath); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmePath); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -670,7 +646,7 @@ func local_request_NvmeRemoteControllerService_CreateNvmePath_0(ctx context.Cont } var ( - filter_NvmeRemoteControllerService_DeleteNvmePath_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_NvmeRemoteControllerService_DeleteNvmePath_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_NvmeRemoteControllerService_DeleteNvmePath_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -740,7 +716,7 @@ func local_request_NvmeRemoteControllerService_DeleteNvmePath_0(ctx context.Cont } var ( - filter_NvmeRemoteControllerService_UpdateNvmePath_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_path": 0, "nvmePath": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_NvmeRemoteControllerService_UpdateNvmePath_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_path": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_NvmeRemoteControllerService_UpdateNvmePath_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -840,7 +816,7 @@ func local_request_NvmeRemoteControllerService_UpdateNvmePath_0(ctx context.Cont } var ( - filter_NvmeRemoteControllerService_ListNvmePaths_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_NvmeRemoteControllerService_ListNvmePaths_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_NvmeRemoteControllerService_ListNvmePaths_0(ctx context.Context, marshaler runtime.Marshaler, client NvmeRemoteControllerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/go/frontend_nvme.pb.gw.go b/storage/v1alpha1/gen/go/frontend_nvme.pb.gw.go index 823eb56c..23cff885 100644 --- a/storage/v1alpha1/gen/go/frontend_nvme.pb.gw.go +++ b/storage/v1alpha1/gen/go/frontend_nvme.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_FrontendNvmeService_CreateNvmeSubsystem_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_subsystem": 0, "nvmeSubsystem": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_FrontendNvmeService_CreateNvmeSubsystem_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_subsystem": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendNvmeService_CreateNvmeSubsystem_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateNvmeSubsystemRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeSubsystem); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeSubsystem); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_FrontendNvmeService_CreateNvmeSubsystem_0(ctx context.Context var protoReq CreateNvmeSubsystemRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeSubsystem); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeSubsystem); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_FrontendNvmeService_CreateNvmeSubsystem_0(ctx context.Context } var ( - filter_FrontendNvmeService_DeleteNvmeSubsystem_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendNvmeService_DeleteNvmeSubsystem_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendNvmeService_DeleteNvmeSubsystem_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_FrontendNvmeService_DeleteNvmeSubsystem_0(ctx context.Context } var ( - filter_FrontendNvmeService_UpdateNvmeSubsystem_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_subsystem": 0, "nvmeSubsystem": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_FrontendNvmeService_UpdateNvmeSubsystem_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_subsystem": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_FrontendNvmeService_UpdateNvmeSubsystem_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -394,18 +386,14 @@ func local_request_FrontendNvmeService_StatsNvmeSubsystem_0(ctx context.Context, } var ( - filter_FrontendNvmeService_CreateNvmeController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_controller": 0, "nvmeController": 1, "parent": 2}, Base: []int{1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4, 4}} + filter_FrontendNvmeService_CreateNvmeController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_controller": 0, "parent": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) func request_FrontendNvmeService_CreateNvmeController_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateNvmeControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeController); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeController); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -442,11 +430,7 @@ func local_request_FrontendNvmeService_CreateNvmeController_0(ctx context.Contex var protoReq CreateNvmeControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeController); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeController); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -480,7 +464,7 @@ func local_request_FrontendNvmeService_CreateNvmeController_0(ctx context.Contex } var ( - filter_FrontendNvmeService_DeleteNvmeController_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendNvmeService_DeleteNvmeController_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendNvmeService_DeleteNvmeController_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -550,7 +534,7 @@ func local_request_FrontendNvmeService_DeleteNvmeController_0(ctx context.Contex } var ( - filter_FrontendNvmeService_UpdateNvmeController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_controller": 0, "nvmeController": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_FrontendNvmeService_UpdateNvmeController_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_controller": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_FrontendNvmeService_UpdateNvmeController_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -650,7 +634,7 @@ func local_request_FrontendNvmeService_UpdateNvmeController_0(ctx context.Contex } var ( - filter_FrontendNvmeService_ListNvmeControllers_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendNvmeService_ListNvmeControllers_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendNvmeService_ListNvmeControllers_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -824,18 +808,14 @@ func local_request_FrontendNvmeService_StatsNvmeController_0(ctx context.Context } var ( - filter_FrontendNvmeService_CreateNvmeNamespace_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_namespace": 0, "nvmeNamespace": 1, "parent": 2}, Base: []int{1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4, 4}} + filter_FrontendNvmeService_CreateNvmeNamespace_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_namespace": 0, "parent": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) func request_FrontendNvmeService_CreateNvmeNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateNvmeNamespaceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeNamespace); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeNamespace); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -872,11 +852,7 @@ func local_request_FrontendNvmeService_CreateNvmeNamespace_0(ctx context.Context var protoReq CreateNvmeNamespaceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.NvmeNamespace); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.NvmeNamespace); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -910,7 +886,7 @@ func local_request_FrontendNvmeService_CreateNvmeNamespace_0(ctx context.Context } var ( - filter_FrontendNvmeService_DeleteNvmeNamespace_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendNvmeService_DeleteNvmeNamespace_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendNvmeService_DeleteNvmeNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -980,7 +956,7 @@ func local_request_FrontendNvmeService_DeleteNvmeNamespace_0(ctx context.Context } var ( - filter_FrontendNvmeService_UpdateNvmeNamespace_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_namespace": 0, "nvmeNamespace": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_FrontendNvmeService_UpdateNvmeNamespace_0 = &utilities.DoubleArray{Encoding: map[string]int{"nvme_namespace": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_FrontendNvmeService_UpdateNvmeNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1080,7 +1056,7 @@ func local_request_FrontendNvmeService_UpdateNvmeNamespace_0(ctx context.Context } var ( - filter_FrontendNvmeService_ListNvmeNamespaces_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendNvmeService_ListNvmeNamespaces_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendNvmeService_ListNvmeNamespaces_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendNvmeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/go/frontend_virtio_blk.pb.gw.go b/storage/v1alpha1/gen/go/frontend_virtio_blk.pb.gw.go index 595dc802..c5a2080e 100644 --- a/storage/v1alpha1/gen/go/frontend_virtio_blk.pb.gw.go +++ b/storage/v1alpha1/gen/go/frontend_virtio_blk.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_FrontendVirtioBlkService_CreateVirtioBlk_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_blk": 0, "virtioBlk": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_FrontendVirtioBlkService_CreateVirtioBlk_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_blk": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioBlkService_CreateVirtioBlk_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioBlkServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateVirtioBlkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioBlk); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioBlk); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_FrontendVirtioBlkService_CreateVirtioBlk_0(ctx context.Contex var protoReq CreateVirtioBlkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioBlk); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioBlk); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_FrontendVirtioBlkService_CreateVirtioBlk_0(ctx context.Contex } var ( - filter_FrontendVirtioBlkService_DeleteVirtioBlk_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioBlkService_DeleteVirtioBlk_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioBlkService_DeleteVirtioBlk_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioBlkServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_FrontendVirtioBlkService_DeleteVirtioBlk_0(ctx context.Contex } var ( - filter_FrontendVirtioBlkService_UpdateVirtioBlk_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_blk": 0, "virtioBlk": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_FrontendVirtioBlkService_UpdateVirtioBlk_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_blk": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_FrontendVirtioBlkService_UpdateVirtioBlk_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioBlkServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/go/frontend_virtio_scsi.pb.gw.go b/storage/v1alpha1/gen/go/frontend_virtio_scsi.pb.gw.go index e5ab1069..e68dfcef 100644 --- a/storage/v1alpha1/gen/go/frontend_virtio_scsi.pb.gw.go +++ b/storage/v1alpha1/gen/go/frontend_virtio_scsi.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_FrontendVirtioScsiService_CreateVirtioScsiTarget_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_target": 0, "virtioScsiTarget": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_FrontendVirtioScsiService_CreateVirtioScsiTarget_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_target": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_CreateVirtioScsiTarget_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateVirtioScsiTargetRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioScsiTarget); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioScsiTarget); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_FrontendVirtioScsiService_CreateVirtioScsiTarget_0(ctx contex var protoReq CreateVirtioScsiTargetRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioScsiTarget); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioScsiTarget); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_FrontendVirtioScsiService_CreateVirtioScsiTarget_0(ctx contex } var ( - filter_FrontendVirtioScsiService_DeleteVirtioScsiTarget_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioScsiService_DeleteVirtioScsiTarget_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_DeleteVirtioScsiTarget_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_FrontendVirtioScsiService_DeleteVirtioScsiTarget_0(ctx contex } var ( - filter_FrontendVirtioScsiService_UpdateVirtioScsiTarget_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_target": 0, "virtioScsiTarget": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_FrontendVirtioScsiService_UpdateVirtioScsiTarget_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_target": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_FrontendVirtioScsiService_UpdateVirtioScsiTarget_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -254,7 +246,7 @@ func local_request_FrontendVirtioScsiService_UpdateVirtioScsiTarget_0(ctx contex } var ( - filter_FrontendVirtioScsiService_ListVirtioScsiTargets_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioScsiService_ListVirtioScsiTargets_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_ListVirtioScsiTargets_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -428,18 +420,14 @@ func local_request_FrontendVirtioScsiService_StatsVirtioScsiTarget_0(ctx context } var ( - filter_FrontendVirtioScsiService_CreateVirtioScsiController_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_controller": 0, "virtioScsiController": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_FrontendVirtioScsiService_CreateVirtioScsiController_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_controller": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_CreateVirtioScsiController_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateVirtioScsiControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioScsiController); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioScsiController); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -459,11 +447,7 @@ func local_request_FrontendVirtioScsiService_CreateVirtioScsiController_0(ctx co var protoReq CreateVirtioScsiControllerRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioScsiController); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioScsiController); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -480,7 +464,7 @@ func local_request_FrontendVirtioScsiService_CreateVirtioScsiController_0(ctx co } var ( - filter_FrontendVirtioScsiService_DeleteVirtioScsiController_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioScsiService_DeleteVirtioScsiController_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_DeleteVirtioScsiController_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -550,7 +534,7 @@ func local_request_FrontendVirtioScsiService_DeleteVirtioScsiController_0(ctx co } var ( - filter_FrontendVirtioScsiService_UpdateVirtioScsiController_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_controller": 0, "virtioScsiController": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_FrontendVirtioScsiService_UpdateVirtioScsiController_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_controller": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_FrontendVirtioScsiService_UpdateVirtioScsiController_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -650,7 +634,7 @@ func local_request_FrontendVirtioScsiService_UpdateVirtioScsiController_0(ctx co } var ( - filter_FrontendVirtioScsiService_ListVirtioScsiControllers_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioScsiService_ListVirtioScsiControllers_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_ListVirtioScsiControllers_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -824,18 +808,14 @@ func local_request_FrontendVirtioScsiService_StatsVirtioScsiController_0(ctx con } var ( - filter_FrontendVirtioScsiService_CreateVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_lun": 0, "virtioScsiLun": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_FrontendVirtioScsiService_CreateVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_lun": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_CreateVirtioScsiLun_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateVirtioScsiLunRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioScsiLun); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioScsiLun); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -855,11 +835,7 @@ func local_request_FrontendVirtioScsiService_CreateVirtioScsiLun_0(ctx context.C var protoReq CreateVirtioScsiLunRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.VirtioScsiLun); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.VirtioScsiLun); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -876,7 +852,7 @@ func local_request_FrontendVirtioScsiService_CreateVirtioScsiLun_0(ctx context.C } var ( - filter_FrontendVirtioScsiService_DeleteVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioScsiService_DeleteVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_DeleteVirtioScsiLun_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -946,7 +922,7 @@ func local_request_FrontendVirtioScsiService_DeleteVirtioScsiLun_0(ctx context.C } var ( - filter_FrontendVirtioScsiService_UpdateVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_lun": 0, "virtioScsiLun": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_FrontendVirtioScsiService_UpdateVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"virtio_scsi_lun": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_FrontendVirtioScsiService_UpdateVirtioScsiLun_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1046,7 +1022,7 @@ func local_request_FrontendVirtioScsiService_UpdateVirtioScsiLun_0(ctx context.C } var ( - filter_FrontendVirtioScsiService_ListVirtioScsiLuns_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioScsiService_ListVirtioScsiLuns_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_ListVirtioScsiLuns_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1168,7 +1144,7 @@ func local_request_FrontendVirtioScsiService_GetVirtioScsiLun_0(ctx context.Cont } var ( - filter_FrontendVirtioScsiService_StatsVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_FrontendVirtioScsiService_StatsVirtioScsiLun_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_FrontendVirtioScsiService_StatsVirtioScsiLun_0(ctx context.Context, marshaler runtime.Marshaler, client FrontendVirtioScsiServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/go/middleend_encryption.pb.gw.go b/storage/v1alpha1/gen/go/middleend_encryption.pb.gw.go index b0547778..9f69501d 100644 --- a/storage/v1alpha1/gen/go/middleend_encryption.pb.gw.go +++ b/storage/v1alpha1/gen/go/middleend_encryption.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_MiddleendEncryptionService_CreateEncryptedVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"encrypted_volume": 0, "encryptedVolume": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_MiddleendEncryptionService_CreateEncryptedVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"encrypted_volume": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_MiddleendEncryptionService_CreateEncryptedVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendEncryptionServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateEncryptedVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.EncryptedVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.EncryptedVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_MiddleendEncryptionService_CreateEncryptedVolume_0(ctx contex var protoReq CreateEncryptedVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.EncryptedVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.EncryptedVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_MiddleendEncryptionService_CreateEncryptedVolume_0(ctx contex } var ( - filter_MiddleendEncryptionService_DeleteEncryptedVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_MiddleendEncryptionService_DeleteEncryptedVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_MiddleendEncryptionService_DeleteEncryptedVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendEncryptionServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_MiddleendEncryptionService_DeleteEncryptedVolume_0(ctx contex } var ( - filter_MiddleendEncryptionService_UpdateEncryptedVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"encrypted_volume": 0, "encryptedVolume": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_MiddleendEncryptionService_UpdateEncryptedVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"encrypted_volume": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_MiddleendEncryptionService_UpdateEncryptedVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendEncryptionServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -254,7 +246,7 @@ func local_request_MiddleendEncryptionService_UpdateEncryptedVolume_0(ctx contex } var ( - filter_MiddleendEncryptionService_ListEncryptedVolumes_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_MiddleendEncryptionService_ListEncryptedVolumes_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_MiddleendEncryptionService_ListEncryptedVolumes_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendEncryptionServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/go/middleend_qos_volume.pb.gw.go b/storage/v1alpha1/gen/go/middleend_qos_volume.pb.gw.go index a51eb36c..7c2d4c62 100644 --- a/storage/v1alpha1/gen/go/middleend_qos_volume.pb.gw.go +++ b/storage/v1alpha1/gen/go/middleend_qos_volume.pb.gw.go @@ -32,18 +32,14 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_MiddleendQosVolumeService_CreateQosVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"qos_volume": 0, "qosVolume": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_MiddleendQosVolumeService_CreateQosVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"qos_volume": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_MiddleendQosVolumeService_CreateQosVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendQosVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq CreateQosVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.QosVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.QosVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -63,11 +59,7 @@ func local_request_MiddleendQosVolumeService_CreateQosVolume_0(ctx context.Conte var protoReq CreateQosVolumeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.QosVolume); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.QosVolume); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -84,7 +76,7 @@ func local_request_MiddleendQosVolumeService_CreateQosVolume_0(ctx context.Conte } var ( - filter_MiddleendQosVolumeService_DeleteQosVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_MiddleendQosVolumeService_DeleteQosVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_MiddleendQosVolumeService_DeleteQosVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendQosVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -154,7 +146,7 @@ func local_request_MiddleendQosVolumeService_DeleteQosVolume_0(ctx context.Conte } var ( - filter_MiddleendQosVolumeService_UpdateQosVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"qos_volume": 0, "qosVolume": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} + filter_MiddleendQosVolumeService_UpdateQosVolume_0 = &utilities.DoubleArray{Encoding: map[string]int{"qos_volume": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} ) func request_MiddleendQosVolumeService_UpdateQosVolume_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendQosVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -254,7 +246,7 @@ func local_request_MiddleendQosVolumeService_UpdateQosVolume_0(ctx context.Conte } var ( - filter_MiddleendQosVolumeService_ListQosVolumes_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_MiddleendQosVolumeService_ListQosVolumes_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_MiddleendQosVolumeService_ListQosVolumes_0(ctx context.Context, marshaler runtime.Marshaler, client MiddleendQosVolumeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/storage/v1alpha1/gen/python/backend_malloc_pb2.py b/storage/v1alpha1/gen/python/backend_malloc_pb2.py new file mode 100644 index 00000000..bb07b652 --- /dev/null +++ b/storage/v1alpha1/gen/python/backend_malloc_pb2.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: backend_malloc.proto +# Protobuf Python Version: 4.25.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +import opicommon_pb2 as opicommon__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x62\x61\x63kend_malloc.proto\x12\x12opi_api.storage.v1\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x0fopicommon.proto\"\x96\x02\n\x0cMallocVolume\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12#\n\nblock_size\x18\x02 \x01(\x03\x42\x04\xe2\x41\x01\x02R\tblockSize\x12\'\n\x0c\x62locks_count\x18\x03 \x01(\x03\x42\x04\xe2\x41\x01\x02R\x0b\x62locksCount\x12)\n\rmetadata_size\x18\x04 \x01(\x03\x42\x04\xe2\x41\x01\x01R\x0cmetadataSize\x12\x18\n\x04uuid\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01R\x04uuid:Y\xea\x41V\n\x1fopi_api.storage.v1/MallocVolume\x12\x16mallocVolumes/{volume}*\rmallocVolumes2\x0cmallocVolume\"\x98\x01\n\x19\x43reateMallocVolumeRequest\x12K\n\rmalloc_volume\x18\x01 \x01(\x0b\x32 .opi_api.storage.v1.MallocVolumeB\x04\xe2\x41\x01\x02R\x0cmallocVolume\x12.\n\x10malloc_volume_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\x0emallocVolumeId\"\x84\x01\n\x19\x44\x65leteMallocVolumeRequest\x12<\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1fopi_api.storage.v1/MallocVolumeR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xd6\x01\n\x19UpdateMallocVolumeRequest\x12K\n\rmalloc_volume\x18\x01 \x01(\x0b\x32 .opi_api.storage.v1.MallocVolumeB\x04\xe2\x41\x01\x02R\x0cmallocVolume\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"b\n\x18ListMallocVolumesRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x8c\x01\n\x19ListMallocVolumesResponse\x12G\n\x0emalloc_volumes\x18\x01 \x03(\x0b\x32 .opi_api.storage.v1.MallocVolumeR\rmallocVolumes\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"V\n\x16GetMallocVolumeRequest\x12<\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1fopi_api.storage.v1/MallocVolumeR\x04name\"X\n\x18StatsMallocVolumeRequest\x12<\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1fopi_api.storage.v1/MallocVolumeR\x04name\"R\n\x19StatsMallocVolumeResponse\x12\x35\n\x05stats\x18\x01 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStatsR\x05stats2\xd5\x07\n\x13MallocVolumeService\x12\xb0\x01\n\x12\x43reateMallocVolume\x12-.opi_api.storage.v1.CreateMallocVolumeRequest\x1a .opi_api.storage.v1.MallocVolume\"I\xda\x41\x1emalloc_volume,malloc_volume_id\x82\xd3\xe4\x93\x02\"\"\x11/v1/mallocVolumes:\rmalloc_volume\x12\x86\x01\n\x12\x44\x65leteMallocVolume\x12-.opi_api.storage.v1.DeleteMallocVolumeRequest\x1a\x16.google.protobuf.Empty\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c*\x1a/v1/{name=mallocVolumes/*}\x12\xc2\x01\n\x12UpdateMallocVolume\x12-.opi_api.storage.v1.UpdateMallocVolumeRequest\x1a .opi_api.storage.v1.MallocVolume\"[\xda\x41\x19malloc_volume,update_mask\x82\xd3\xe4\x93\x02\x39\x32(/v1/{malloc_volume.name=mallocVolumes/*}:\rmalloc_volume\x12\x8b\x01\n\x11ListMallocVolumes\x12,.opi_api.storage.v1.ListMallocVolumesRequest\x1a-.opi_api.storage.v1.ListMallocVolumesResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/mallocVolumes\x12\x8a\x01\n\x0fGetMallocVolume\x12*.opi_api.storage.v1.GetMallocVolumeRequest\x1a .opi_api.storage.v1.MallocVolume\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1/{name=mallocVolumes/*}\x12\xa1\x01\n\x11StatsMallocVolume\x12,.opi_api.storage.v1.StatsMallocVolumeRequest\x1a-.opi_api.storage.v1.StatsMallocVolumeResponse\"/\xda\x41\x04name\x82\xd3\xe4\x93\x02\"\x12 /v1/{name=mallocVolumes/*}:statsBa\n\x12opi_api.storage.v1B\x12\x42\x61\x63kendMallocProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'backend_malloc_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\022opi_api.storage.v1B\022BackendMallocProtoP\001Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/go' + _globals['_MALLOCVOLUME'].fields_by_name['name']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['name']._serialized_options = b'\342A\001\010' + _globals['_MALLOCVOLUME'].fields_by_name['block_size']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['block_size']._serialized_options = b'\342A\001\002' + _globals['_MALLOCVOLUME'].fields_by_name['blocks_count']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['blocks_count']._serialized_options = b'\342A\001\002' + _globals['_MALLOCVOLUME'].fields_by_name['metadata_size']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['metadata_size']._serialized_options = b'\342A\001\001' + _globals['_MALLOCVOLUME'].fields_by_name['uuid']._options = None + _globals['_MALLOCVOLUME'].fields_by_name['uuid']._serialized_options = b'\342A\001\001' + _globals['_MALLOCVOLUME']._options = None + _globals['_MALLOCVOLUME']._serialized_options = b'\352AV\n\037opi_api.storage.v1/MallocVolume\022\026mallocVolumes/{volume}*\rmallocVolumes2\014mallocVolume' + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._options = None + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._serialized_options = b'\342A\001\002' + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume_id']._options = None + _globals['_CREATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume_id']._serialized_options = b'\342A\001\001' + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['name']._options = None + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A!\n\037opi_api.storage.v1/MallocVolume' + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_DELETEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._options = None + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['malloc_volume']._serialized_options = b'\342A\001\002' + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['update_mask']._options = None + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['update_mask']._serialized_options = b'\342A\001\001' + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_UPDATEMALLOCVOLUMEREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_size']._options = None + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_size']._serialized_options = b'\342A\001\001' + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_token']._options = None + _globals['_LISTMALLOCVOLUMESREQUEST'].fields_by_name['page_token']._serialized_options = b'\342A\001\001' + _globals['_GETMALLOCVOLUMEREQUEST'].fields_by_name['name']._options = None + _globals['_GETMALLOCVOLUMEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A!\n\037opi_api.storage.v1/MallocVolume' + _globals['_STATSMALLOCVOLUMEREQUEST'].fields_by_name['name']._options = None + _globals['_STATSMALLOCVOLUMEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A!\n\037opi_api.storage.v1/MallocVolume' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['CreateMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['CreateMallocVolume']._serialized_options = b'\332A\036malloc_volume,malloc_volume_id\202\323\344\223\002\"\"\021/v1/mallocVolumes:\rmalloc_volume' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['DeleteMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['DeleteMallocVolume']._serialized_options = b'\332A\004name\202\323\344\223\002\034*\032/v1/{name=mallocVolumes/*}' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['UpdateMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['UpdateMallocVolume']._serialized_options = b'\332A\031malloc_volume,update_mask\202\323\344\223\00292(/v1/{malloc_volume.name=mallocVolumes/*}:\rmalloc_volume' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['ListMallocVolumes']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['ListMallocVolumes']._serialized_options = b'\202\323\344\223\002\023\022\021/v1/mallocVolumes' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['GetMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['GetMallocVolume']._serialized_options = b'\332A\004name\202\323\344\223\002\034\022\032/v1/{name=mallocVolumes/*}' + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['StatsMallocVolume']._options = None + _globals['_MALLOCVOLUMESERVICE'].methods_by_name['StatsMallocVolume']._serialized_options = b'\332A\004name\202\323\344\223\002\"\022 /v1/{name=mallocVolumes/*}:stats' + _globals['_MALLOCVOLUME']._serialized_start=240 + _globals['_MALLOCVOLUME']._serialized_end=518 + _globals['_CREATEMALLOCVOLUMEREQUEST']._serialized_start=521 + _globals['_CREATEMALLOCVOLUMEREQUEST']._serialized_end=673 + _globals['_DELETEMALLOCVOLUMEREQUEST']._serialized_start=676 + _globals['_DELETEMALLOCVOLUMEREQUEST']._serialized_end=808 + _globals['_UPDATEMALLOCVOLUMEREQUEST']._serialized_start=811 + _globals['_UPDATEMALLOCVOLUMEREQUEST']._serialized_end=1025 + _globals['_LISTMALLOCVOLUMESREQUEST']._serialized_start=1027 + _globals['_LISTMALLOCVOLUMESREQUEST']._serialized_end=1125 + _globals['_LISTMALLOCVOLUMESRESPONSE']._serialized_start=1128 + _globals['_LISTMALLOCVOLUMESRESPONSE']._serialized_end=1268 + _globals['_GETMALLOCVOLUMEREQUEST']._serialized_start=1270 + _globals['_GETMALLOCVOLUMEREQUEST']._serialized_end=1356 + _globals['_STATSMALLOCVOLUMEREQUEST']._serialized_start=1358 + _globals['_STATSMALLOCVOLUMEREQUEST']._serialized_end=1446 + _globals['_STATSMALLOCVOLUMERESPONSE']._serialized_start=1448 + _globals['_STATSMALLOCVOLUMERESPONSE']._serialized_end=1530 + _globals['_MALLOCVOLUMESERVICE']._serialized_start=1533 + _globals['_MALLOCVOLUMESERVICE']._serialized_end=2514 +# @@protoc_insertion_point(module_scope) diff --git a/storage/v1alpha1/gen/python/backend_malloc_pb2_grpc.py b/storage/v1alpha1/gen/python/backend_malloc_pb2_grpc.py new file mode 100644 index 00000000..7bf607e0 --- /dev/null +++ b/storage/v1alpha1/gen/python/backend_malloc_pb2_grpc.py @@ -0,0 +1,241 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import backend_malloc_pb2 as backend__malloc__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 + + +class MallocVolumeServiceStub(object): + """Back End Malloc Volume APIs. This is debug interface for malloc block devices. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/CreateMallocVolume', + request_serializer=backend__malloc__pb2.CreateMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.MallocVolume.FromString, + ) + self.DeleteMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/DeleteMallocVolume', + request_serializer=backend__malloc__pb2.DeleteMallocVolumeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.UpdateMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/UpdateMallocVolume', + request_serializer=backend__malloc__pb2.UpdateMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.MallocVolume.FromString, + ) + self.ListMallocVolumes = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/ListMallocVolumes', + request_serializer=backend__malloc__pb2.ListMallocVolumesRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.ListMallocVolumesResponse.FromString, + ) + self.GetMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/GetMallocVolume', + request_serializer=backend__malloc__pb2.GetMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.MallocVolume.FromString, + ) + self.StatsMallocVolume = channel.unary_unary( + '/opi_api.storage.v1.MallocVolumeService/StatsMallocVolume', + request_serializer=backend__malloc__pb2.StatsMallocVolumeRequest.SerializeToString, + response_deserializer=backend__malloc__pb2.StatsMallocVolumeResponse.FromString, + ) + + +class MallocVolumeServiceServicer(object): + """Back End Malloc Volume APIs. This is debug interface for malloc block devices. + """ + + def CreateMallocVolume(self, request, context): + """Create a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteMallocVolume(self, request, context): + """Delete a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateMallocVolume(self, request, context): + """Update a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListMallocVolumes(self, request, context): + """List Malloc Volumes + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMallocVolume(self, request, context): + """Get a Malloc Volume + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StatsMallocVolume(self, request, context): + """Get a Malloc Volume statistics + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MallocVolumeServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.CreateMallocVolume, + request_deserializer=backend__malloc__pb2.CreateMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.MallocVolume.SerializeToString, + ), + 'DeleteMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.DeleteMallocVolume, + request_deserializer=backend__malloc__pb2.DeleteMallocVolumeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UpdateMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.UpdateMallocVolume, + request_deserializer=backend__malloc__pb2.UpdateMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.MallocVolume.SerializeToString, + ), + 'ListMallocVolumes': grpc.unary_unary_rpc_method_handler( + servicer.ListMallocVolumes, + request_deserializer=backend__malloc__pb2.ListMallocVolumesRequest.FromString, + response_serializer=backend__malloc__pb2.ListMallocVolumesResponse.SerializeToString, + ), + 'GetMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.GetMallocVolume, + request_deserializer=backend__malloc__pb2.GetMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.MallocVolume.SerializeToString, + ), + 'StatsMallocVolume': grpc.unary_unary_rpc_method_handler( + servicer.StatsMallocVolume, + request_deserializer=backend__malloc__pb2.StatsMallocVolumeRequest.FromString, + response_serializer=backend__malloc__pb2.StatsMallocVolumeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opi_api.storage.v1.MallocVolumeService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class MallocVolumeService(object): + """Back End Malloc Volume APIs. This is debug interface for malloc block devices. + """ + + @staticmethod + def CreateMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/CreateMallocVolume', + backend__malloc__pb2.CreateMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.MallocVolume.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/DeleteMallocVolume', + backend__malloc__pb2.DeleteMallocVolumeRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/UpdateMallocVolume', + backend__malloc__pb2.UpdateMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.MallocVolume.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListMallocVolumes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/ListMallocVolumes', + backend__malloc__pb2.ListMallocVolumesRequest.SerializeToString, + backend__malloc__pb2.ListMallocVolumesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/GetMallocVolume', + backend__malloc__pb2.GetMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.MallocVolume.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StatsMallocVolume(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.MallocVolumeService/StatsMallocVolume', + backend__malloc__pb2.StatsMallocVolumeRequest.SerializeToString, + backend__malloc__pb2.StatsMallocVolumeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata)