From abf96b90f5aa33bcdfa005edd7fb925512d68200 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Mon, 30 Sep 2019 10:47:32 +0200 Subject: [PATCH 01/17] use resource_info instead of resource_id on CreatePublicShare --- .../v0alpha/publicshareprovider.proto | 2 +- docs/index.html | 4 +-- proto.lock | 28 +++++++++++++++++-- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/cs3/publicshareprovider/v0alpha/publicshareprovider.proto b/cs3/publicshareprovider/v0alpha/publicshareprovider.proto index 8ab7b2b9..77eec7bc 100644 --- a/cs3/publicshareprovider/v0alpha/publicshareprovider.proto +++ b/cs3/publicshareprovider/v0alpha/publicshareprovider.proto @@ -80,7 +80,7 @@ message CreatePublicShareRequest { cs3.types.Opaque opaque = 1; // REQUIRED. // The unique identifier for the shared storage resource. - cs3.storageproviderv0alpha.ResourceId resource_id = 2; + cs3.storageproviderv0alpha.ResourceInfo resource_info = 2; // REQUIRED. // The restrictions to apply to the share. Grant grant = 3; diff --git a/docs/index.html b/docs/index.html index a16ee4dd..85d1981a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5332,8 +5332,8 @@

CreatePublicSha - resource_id - cs3.storageproviderv0alpha.ResourceId + resource_info + cs3.storageproviderv0alpha.ResourceInfo

REQUIRED. The unique identifier for the shared storage resource.

diff --git a/proto.lock b/proto.lock index 5ca8be52..12d131b3 100644 --- a/proto.lock +++ b/proto.lock @@ -750,6 +750,12 @@ "id": 2, "name": "ref", "type": "cs3.storageproviderv0alpha.Reference" + }, + { + "id": 3, + "name": "arbitrary_metadata_keys", + "type": "string", + "is_repeated": true } ] }, @@ -785,6 +791,12 @@ "id": 2, "name": "ref", "type": "cs3.storageproviderv0alpha.Reference" + }, + { + "id": 3, + "name": "arbitrary_metadata_keys", + "type": "string", + "is_repeated": true } ] }, @@ -1088,6 +1100,12 @@ "id": 2, "name": "ref", "type": "cs3.storageproviderv0alpha.Reference" + }, + { + "id": 3, + "name": "arbitrary_metadata_keys", + "type": "string", + "is_repeated": true } ] }, @@ -2125,8 +2143,8 @@ }, { "id": 2, - "name": "resource_id", - "type": "cs3.storageproviderv0alpha.ResourceId" + "name": "resource_info", + "type": "cs3.storageproviderv0alpha.ResourceInfo" }, { "id": 3, @@ -3954,6 +3972,12 @@ "id": 2, "name": "ref", "type": "Reference" + }, + { + "id": 3, + "name": "arbitrary_metadata_keys", + "type": "string", + "is_repeated": true } ] }, From 410d62a03765807add92e4a0cccaa5534b17b1cd Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Fri, 19 Feb 2021 15:39:16 +0100 Subject: [PATCH 02/17] commit all --- go-cs3apis | 1 + prototool.yaml | 4 ++++ 2 files changed, 5 insertions(+) create mode 160000 go-cs3apis diff --git a/go-cs3apis b/go-cs3apis new file mode 160000 index 00000000..416ed6cf --- /dev/null +++ b/go-cs3apis @@ -0,0 +1 @@ +Subproject commit 416ed6cf8b00baa3b05dcfa6c08ebfe6557f020c diff --git a/prototool.yaml b/prototool.yaml index d4264dd1..4383af96 100644 --- a/prototool.yaml +++ b/prototool.yaml @@ -32,3 +32,7 @@ generate: type: go flags: plugins=grpc output: build/go-cs3apis + - name : micro + type: go + flags: plugins=grpc + output: build/go-cs3apis From 8a1de5809e25be7bf42f4d3041648b46e4ae98f5 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Fri, 19 Feb 2021 15:40:00 +0100 Subject: [PATCH 03/17] commit build --- .gitignore | 1 - .../app/provider/v1beta1/provider_api.pb.go | 506 ++ .../provider/v1beta1/provider_api.pb.micro.go | 100 + .../app/registry/v1beta1/registry_api.pb.go | 623 ++ .../registry/v1beta1/registry_api.pb.micro.go | 119 + .../cs3/app/registry/v1beta1/resources.pb.go | 223 + .../registry/v1beta1/resources.pb.micro.go | 22 + .../auth/provider/v1beta1/provider_api.pb.go | 385 + .../provider/v1beta1/provider_api.pb.micro.go | 98 + .../auth/registry/v1beta1/registry_api.pb.go | 616 ++ .../registry/v1beta1/registry_api.pb.micro.go | 120 + .../cs3/auth/registry/v1beta1/resources.pb.go | 228 + .../registry/v1beta1/resources.pb.micro.go | 22 + .../cs3/gateway/v1beta1/gateway_api.pb.go | 5018 +++++++++++++ .../gateway/v1beta1/gateway_api.pb.micro.go | 1679 +++++ .../cs3/gateway/v1beta1/resources.pb.go | 359 + .../cs3/gateway/v1beta1/resources.pb.micro.go | 24 + .../cs3/identity/user/v1beta1/resources.pb.go | 321 + .../user/v1beta1/resources.pb.micro.go | 22 + .../cs3/identity/user/v1beta1/user_api.pb.go | 1531 ++++ .../user/v1beta1/user_api.pb.micro.go | 194 + .../cs3/ocm/core/v1beta1/ocm_core_api.pb.go | 484 ++ .../ocm/core/v1beta1/ocm_core_api.pb.micro.go | 98 + .../cs3/ocm/core/v1beta1/resources.pb.go | 195 + .../ocm/core/v1beta1/resources.pb.micro.go | 22 + .../cs3/ocm/invite/v1beta1/invite_api.pb.go | 1080 +++ .../ocm/invite/v1beta1/invite_api.pb.micro.go | 156 + .../cs3/ocm/invite/v1beta1/resources.pb.go | 220 + .../ocm/invite/v1beta1/resources.pb.micro.go | 24 + .../ocm/provider/v1beta1/provider_api.pb.go | 829 +++ .../provider/v1beta1/provider_api.pb.micro.go | 139 + .../cs3/ocm/provider/v1beta1/resources.pb.go | 597 ++ .../provider/v1beta1/resources.pb.micro.go | 21 + .../preferences/v1beta1/preferences_api.pb.go | 542 ++ .../v1beta1/preferences_api.pb.micro.go | 117 + build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go | 367 + .../cs3/rpc/v1beta1/code.pb.micro.go | 21 + build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go | 221 + .../cs3/rpc/v1beta1/status.pb.micro.go | 21 + .../v1beta1/collaboration_api.pb.go | 2466 +++++++ .../v1beta1/collaboration_api.pb.micro.go | 254 + .../collaboration/v1beta1/resources.pb.go | 920 +++ .../v1beta1/resources.pb.micro.go | 24 + .../cs3/sharing/link/v1beta1/link_api.pb.go | 1963 ++++++ .../sharing/link/v1beta1/link_api.pb.micro.go | 214 + .../cs3/sharing/link/v1beta1/resources.pb.go | 700 ++ .../link/v1beta1/resources.pb.micro.go | 24 + .../cs3/sharing/ocm/v1beta1/ocm_api.pb.go | 2477 +++++++ .../sharing/ocm/v1beta1/ocm_api.pb.micro.go | 255 + .../cs3/sharing/ocm/v1beta1/resources.pb.go | 933 +++ .../sharing/ocm/v1beta1/resources.pb.micro.go | 24 + .../provider/v1beta1/provider_api.pb.go | 6205 +++++++++++++++++ .../provider/v1beta1/provider_api.pb.micro.go | 808 +++ .../storage/provider/v1beta1/resources.pb.go | 2025 ++++++ .../provider/v1beta1/resources.pb.micro.go | 23 + .../registry/v1beta1/registry_api.pb.go | 839 +++ .../registry/v1beta1/registry_api.pb.micro.go | 140 + .../storage/registry/v1beta1/resources.pb.go | 337 + .../registry/v1beta1/resources.pb.micro.go | 22 + .../go-cs3apis/cs3/tx/v1beta1/resources.pb.go | 455 ++ .../cs3/tx/v1beta1/resources.pb.micro.go | 24 + build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go | 865 +++ .../cs3/tx/v1beta1/tx_api.pb.micro.go | 138 + .../go-cs3apis/cs3/types/v1beta1/types.pb.go | 357 + .../cs3/types/v1beta1/types.pb.micro.go | 21 + 65 files changed, 39877 insertions(+), 1 deletion(-) create mode 100644 build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go create mode 100644 build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go create mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go create mode 100644 build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go create mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go create mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go create mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go create mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go create mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go create mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go create mode 100644 build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go create mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go create mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go create mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go create mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go create mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go create mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go create mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go create mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go create mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go create mode 100644 build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go create mode 100644 build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go create mode 100644 build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go create mode 100644 build/go-cs3apis/cs3/types/v1beta1/types.pb.go create mode 100644 build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go diff --git a/.gitignore b/.gitignore index 5204793d..bed0f101 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ prototool.yaml -build diff --git a/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go new file mode 100644 index 00000000..ef2c0848 --- /dev/null +++ b/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go @@ -0,0 +1,506 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/app/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + context "context" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// REQUIRED. +// View mode. +type OpenFileInAppProviderRequest_ViewMode int32 + +const ( + OpenFileInAppProviderRequest_VIEW_MODE_INVALID OpenFileInAppProviderRequest_ViewMode = 0 + // The file can be opened but not downloaded. + OpenFileInAppProviderRequest_VIEW_MODE_VIEW_ONLY OpenFileInAppProviderRequest_ViewMode = 1 + // The file can be downloaded. + OpenFileInAppProviderRequest_VIEW_MODE_READ_ONLY OpenFileInAppProviderRequest_ViewMode = 2 + // The file can be downloaded and updated. + OpenFileInAppProviderRequest_VIEW_MODE_READ_WRITE OpenFileInAppProviderRequest_ViewMode = 3 +) + +// Enum value maps for OpenFileInAppProviderRequest_ViewMode. +var ( + OpenFileInAppProviderRequest_ViewMode_name = map[int32]string{ + 0: "VIEW_MODE_INVALID", + 1: "VIEW_MODE_VIEW_ONLY", + 2: "VIEW_MODE_READ_ONLY", + 3: "VIEW_MODE_READ_WRITE", + } + OpenFileInAppProviderRequest_ViewMode_value = map[string]int32{ + "VIEW_MODE_INVALID": 0, + "VIEW_MODE_VIEW_ONLY": 1, + "VIEW_MODE_READ_ONLY": 2, + "VIEW_MODE_READ_WRITE": 3, + } +) + +func (x OpenFileInAppProviderRequest_ViewMode) Enum() *OpenFileInAppProviderRequest_ViewMode { + p := new(OpenFileInAppProviderRequest_ViewMode) + *p = x + return p +} + +func (x OpenFileInAppProviderRequest_ViewMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OpenFileInAppProviderRequest_ViewMode) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes[0].Descriptor() +} + +func (OpenFileInAppProviderRequest_ViewMode) Type() protoreflect.EnumType { + return &file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes[0] +} + +func (x OpenFileInAppProviderRequest_ViewMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OpenFileInAppProviderRequest_ViewMode.Descriptor instead. +func (OpenFileInAppProviderRequest_ViewMode) EnumDescriptor() ([]byte, []int) { + return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0, 0} +} + +type OpenFileInAppProviderRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The resourceInfo to be opened. The gateway grpc message has a ref instead. + ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` + ViewMode OpenFileInAppProviderRequest_ViewMode `protobuf:"varint,3,opt,name=view_mode,json=viewMode,proto3,enum=cs3.app.provider.v1beta1.OpenFileInAppProviderRequest_ViewMode" json:"view_mode,omitempty"` + // REQUIRED. + // The access token this application provider will use when contacting + // the storage provider to read and write. + // Service implementors MUST make sure that the access token only grants + // access to the requested resource. + // Service implementors should use a ResourceId rather than a filename to grant access, as + // ResourceIds MUST NOT change when a resource is renamed. + // The access token MUST be short-lived. + // TODO(labkode): investigate token derivation techniques. + AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` +} + +func (x *OpenFileInAppProviderRequest) Reset() { + *x = OpenFileInAppProviderRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenFileInAppProviderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenFileInAppProviderRequest) ProtoMessage() {} + +func (x *OpenFileInAppProviderRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_app_provider_v1beta1_provider_api_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 OpenFileInAppProviderRequest.ProtoReflect.Descriptor instead. +func (*OpenFileInAppProviderRequest) Descriptor() ([]byte, []int) { + return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} +} + +func (x *OpenFileInAppProviderRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *OpenFileInAppProviderRequest) GetResourceInfo() *v1beta11.ResourceInfo { + if x != nil { + return x.ResourceInfo + } + return nil +} + +func (x *OpenFileInAppProviderRequest) GetViewMode() OpenFileInAppProviderRequest_ViewMode { + if x != nil { + return x.ViewMode + } + return OpenFileInAppProviderRequest_VIEW_MODE_INVALID +} + +func (x *OpenFileInAppProviderRequest) GetAccessToken() string { + if x != nil { + return x.AccessToken + } + return "" +} + +type OpenFileInAppProviderResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The url that user agents will render to clients. + // Usually the rendering happens by using HTML iframes or in separate browser tabs. + AppProviderUrl string `protobuf:"bytes,3,opt,name=app_provider_url,json=appProviderUrl,proto3" json:"app_provider_url,omitempty"` +} + +func (x *OpenFileInAppProviderResponse) Reset() { + *x = OpenFileInAppProviderResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenFileInAppProviderResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenFileInAppProviderResponse) ProtoMessage() {} + +func (x *OpenFileInAppProviderResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_app_provider_v1beta1_provider_api_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 OpenFileInAppProviderResponse.ProtoReflect.Descriptor instead. +func (*OpenFileInAppProviderResponse) Descriptor() ([]byte, []int) { + return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} +} + +func (x *OpenFileInAppProviderResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *OpenFileInAppProviderResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *OpenFileInAppProviderResponse) GetAppProviderUrl() string { + if x != nil { + return x.AppProviderUrl + } + return "" +} + +var File_cs3_app_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor + +var file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, + 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x92, 0x03, 0x0a, 0x1c, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, + 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5c, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, + 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3f, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, + 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x76, 0x69, 0x65, + 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6d, 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, + 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x56, + 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4f, 0x4e, + 0x4c, 0x59, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, + 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x18, 0x0a, + 0x14, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, + 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x03, 0x22, 0xad, 0x01, 0x0a, 0x1d, 0x4f, 0x70, 0x65, 0x6e, + 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x28, 0x0a, + 0x10, 0x61, 0x70, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x75, 0x72, + 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x32, 0x98, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, + 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, + 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, + 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0x7f, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x42, 0x10, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa, 0x02, 0x18, + 0x43, 0x73, 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41, + 0x70, 0x70, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, + 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_app_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once + file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc +) + +func file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { + file_cs3_app_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { + file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData) + }) + return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData +} + +var file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cs3_app_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ + (OpenFileInAppProviderRequest_ViewMode)(0), // 0: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.ViewMode + (*OpenFileInAppProviderRequest)(nil), // 1: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest + (*OpenFileInAppProviderResponse)(nil), // 2: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse + (*v1beta1.Opaque)(nil), // 3: cs3.types.v1beta1.Opaque + (*v1beta11.ResourceInfo)(nil), // 4: cs3.storage.provider.v1beta1.ResourceInfo + (*v1beta12.Status)(nil), // 5: cs3.rpc.v1beta1.Status +} +var file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs = []int32{ + 3, // 0: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 4, // 1: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo + 0, // 2: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.view_mode:type_name -> cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.ViewMode + 5, // 3: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse.status:type_name -> cs3.rpc.v1beta1.Status + 3, // 4: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 1, // 5: cs3.app.provider.v1beta1.ProviderAPI.OpenFileInAppProvider:input_type -> cs3.app.provider.v1beta1.OpenFileInAppProviderRequest + 2, // 6: cs3.app.provider.v1beta1.ProviderAPI.OpenFileInAppProvider:output_type -> cs3.app.provider.v1beta1.OpenFileInAppProviderResponse + 6, // [6:7] is the sub-list for method output_type + 5, // [5:6] 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_cs3_app_provider_v1beta1_provider_api_proto_init() } +func file_cs3_app_provider_v1beta1_provider_api_proto_init() { + if File_cs3_app_provider_v1beta1_provider_api_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenFileInAppProviderRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenFileInAppProviderResponse); 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_cs3_app_provider_v1beta1_provider_api_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_app_provider_v1beta1_provider_api_proto_goTypes, + DependencyIndexes: file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs, + EnumInfos: file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes, + MessageInfos: file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes, + }.Build() + File_cs3_app_provider_v1beta1_provider_api_proto = out.File + file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc = nil + file_cs3_app_provider_v1beta1_provider_api_proto_goTypes = nil + file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ProviderAPIClient is the client API for ProviderAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ProviderAPIClient interface { + // Returns the App provider URL + // MUST return CODE_NOT_FOUND if the resource does not exist. + OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*OpenFileInAppProviderResponse, error) +} + +type providerAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { + return &providerAPIClient{cc} +} + +func (c *providerAPIClient) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*OpenFileInAppProviderResponse, error) { + out := new(OpenFileInAppProviderResponse) + err := c.cc.Invoke(ctx, "/cs3.app.provider.v1beta1.ProviderAPI/OpenFileInAppProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProviderAPIServer is the server API for ProviderAPI service. +type ProviderAPIServer interface { + // Returns the App provider URL + // MUST return CODE_NOT_FOUND if the resource does not exist. + OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*OpenFileInAppProviderResponse, error) +} + +// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. +type UnimplementedProviderAPIServer struct { +} + +func (*UnimplementedProviderAPIServer) OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*OpenFileInAppProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenFileInAppProvider not implemented") +} + +func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { + s.RegisterService(&_ProviderAPI_serviceDesc, srv) +} + +func _ProviderAPI_OpenFileInAppProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenFileInAppProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).OpenFileInAppProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.app.provider.v1beta1.ProviderAPI/OpenFileInAppProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).OpenFileInAppProvider(ctx, req.(*OpenFileInAppProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.app.provider.v1beta1.ProviderAPI", + HandlerType: (*ProviderAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "OpenFileInAppProvider", + Handler: _ProviderAPI_OpenFileInAppProvider_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/app/provider/v1beta1/provider_api.proto", +} diff --git a/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go new file mode 100644 index 00000000..2cf9cdd1 --- /dev/null +++ b/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go @@ -0,0 +1,100 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/app/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for ProviderAPI service + +func NewProviderAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for ProviderAPI service + +type ProviderAPIService interface { + // Returns the App provider URL + // MUST return CODE_NOT_FOUND if the resource does not exist. + OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*OpenFileInAppProviderResponse, error) +} + +type providerAPIService struct { + c client.Client + name string +} + +func NewProviderAPIService(name string, c client.Client) ProviderAPIService { + return &providerAPIService{ + c: c, + name: name, + } +} + +func (c *providerAPIService) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*OpenFileInAppProviderResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.OpenFileInAppProvider", in) + out := new(OpenFileInAppProviderResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for ProviderAPI service + +type ProviderAPIHandler interface { + // Returns the App provider URL + // MUST return CODE_NOT_FOUND if the resource does not exist. + OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest, *OpenFileInAppProviderResponse) error +} + +func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { + type providerAPI interface { + OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *OpenFileInAppProviderResponse) error + } + type ProviderAPI struct { + providerAPI + } + h := &providerAPIHandler{hdlr} + return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) +} + +type providerAPIHandler struct { + ProviderAPIHandler +} + +func (h *providerAPIHandler) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *OpenFileInAppProviderResponse) error { + return h.ProviderAPIHandler.OpenFileInAppProvider(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go b/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go new file mode 100644 index 00000000..56fb9e7b --- /dev/null +++ b/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go @@ -0,0 +1,623 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/app/registry/v1beta1/registry_api.proto + +package registryv1beta1 + +import ( + context "context" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GetAppProvidersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The resource information. + ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` +} + +func (x *GetAppProvidersRequest) Reset() { + *x = GetAppProvidersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAppProvidersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAppProvidersRequest) ProtoMessage() {} + +func (x *GetAppProvidersRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_app_registry_v1beta1_registry_api_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 GetAppProvidersRequest.ProtoReflect.Descriptor instead. +func (*GetAppProvidersRequest) Descriptor() ([]byte, []int) { + return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{0} +} + +func (x *GetAppProvidersRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetAppProvidersRequest) GetResourceInfo() *v1beta11.ResourceInfo { + if x != nil { + return x.ResourceInfo + } + return nil +} + +type GetAppProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The app providers available for the given resource info. + Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` +} + +func (x *GetAppProvidersResponse) Reset() { + *x = GetAppProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAppProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAppProvidersResponse) ProtoMessage() {} + +func (x *GetAppProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_app_registry_v1beta1_registry_api_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 GetAppProvidersResponse.ProtoReflect.Descriptor instead. +func (*GetAppProvidersResponse) Descriptor() ([]byte, []int) { + return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{1} +} + +func (x *GetAppProvidersResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetAppProvidersResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetAppProvidersResponse) GetProviders() []*ProviderInfo { + if x != nil { + return x.Providers + } + return nil +} + +type ListAppProvidersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter? +} + +func (x *ListAppProvidersRequest) Reset() { + *x = ListAppProvidersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAppProvidersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAppProvidersRequest) ProtoMessage() {} + +func (x *ListAppProvidersRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_app_registry_v1beta1_registry_api_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 ListAppProvidersRequest.ProtoReflect.Descriptor instead. +func (*ListAppProvidersRequest) Descriptor() ([]byte, []int) { + return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{2} +} + +func (x *ListAppProvidersRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListAppProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of app providers this registry knows about. + Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` +} + +func (x *ListAppProvidersResponse) Reset() { + *x = ListAppProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAppProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAppProvidersResponse) ProtoMessage() {} + +func (x *ListAppProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_app_registry_v1beta1_registry_api_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 ListAppProvidersResponse.ProtoReflect.Descriptor instead. +func (*ListAppProvidersResponse) Descriptor() ([]byte, []int) { + return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{3} +} + +func (x *ListAppProvidersResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListAppProvidersResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListAppProvidersResponse) GetProviders() []*ProviderInfo { + if x != nil { + return x.Providers + } + return nil +} + +var File_cs3_app_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor + +var file_cs3_app_registry_v1beta1_registry_api_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, + 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, + 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x01, 0x0a, + 0x16, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x17, + 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x22, 0x4c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, + 0xc4, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x12, 0x44, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, 0x80, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x41, 0x50, 0x49, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, + 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x7f, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, + 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, + 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_cs3_app_registry_v1beta1_registry_api_proto_rawDescOnce sync.Once + file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData = file_cs3_app_registry_v1beta1_registry_api_proto_rawDesc +) + +func file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP() []byte { + file_cs3_app_registry_v1beta1_registry_api_proto_rawDescOnce.Do(func() { + file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData) + }) + return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData +} + +var file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cs3_app_registry_v1beta1_registry_api_proto_goTypes = []interface{}{ + (*GetAppProvidersRequest)(nil), // 0: cs3.app.registry.v1beta1.GetAppProvidersRequest + (*GetAppProvidersResponse)(nil), // 1: cs3.app.registry.v1beta1.GetAppProvidersResponse + (*ListAppProvidersRequest)(nil), // 2: cs3.app.registry.v1beta1.ListAppProvidersRequest + (*ListAppProvidersResponse)(nil), // 3: cs3.app.registry.v1beta1.ListAppProvidersResponse + (*v1beta1.Opaque)(nil), // 4: cs3.types.v1beta1.Opaque + (*v1beta11.ResourceInfo)(nil), // 5: cs3.storage.provider.v1beta1.ResourceInfo + (*v1beta12.Status)(nil), // 6: cs3.rpc.v1beta1.Status + (*ProviderInfo)(nil), // 7: cs3.app.registry.v1beta1.ProviderInfo +} +var file_cs3_app_registry_v1beta1_registry_api_proto_depIdxs = []int32{ + 4, // 0: cs3.app.registry.v1beta1.GetAppProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 5, // 1: cs3.app.registry.v1beta1.GetAppProvidersRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo + 6, // 2: cs3.app.registry.v1beta1.GetAppProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status + 4, // 3: cs3.app.registry.v1beta1.GetAppProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 4: cs3.app.registry.v1beta1.GetAppProvidersResponse.providers:type_name -> cs3.app.registry.v1beta1.ProviderInfo + 4, // 5: cs3.app.registry.v1beta1.ListAppProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 6, // 6: cs3.app.registry.v1beta1.ListAppProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status + 4, // 7: cs3.app.registry.v1beta1.ListAppProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 8: cs3.app.registry.v1beta1.ListAppProvidersResponse.providers:type_name -> cs3.app.registry.v1beta1.ProviderInfo + 0, // 9: cs3.app.registry.v1beta1.RegistryAPI.GetAppProviders:input_type -> cs3.app.registry.v1beta1.GetAppProvidersRequest + 2, // 10: cs3.app.registry.v1beta1.RegistryAPI.ListAppProviders:input_type -> cs3.app.registry.v1beta1.ListAppProvidersRequest + 1, // 11: cs3.app.registry.v1beta1.RegistryAPI.GetAppProviders:output_type -> cs3.app.registry.v1beta1.GetAppProvidersResponse + 3, // 12: cs3.app.registry.v1beta1.RegistryAPI.ListAppProviders:output_type -> cs3.app.registry.v1beta1.ListAppProvidersResponse + 11, // [11:13] is the sub-list for method output_type + 9, // [9:11] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_cs3_app_registry_v1beta1_registry_api_proto_init() } +func file_cs3_app_registry_v1beta1_registry_api_proto_init() { + if File_cs3_app_registry_v1beta1_registry_api_proto != nil { + return + } + file_cs3_app_registry_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAppProvidersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAppProvidersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAppProvidersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAppProvidersResponse); 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_cs3_app_registry_v1beta1_registry_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_app_registry_v1beta1_registry_api_proto_goTypes, + DependencyIndexes: file_cs3_app_registry_v1beta1_registry_api_proto_depIdxs, + MessageInfos: file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes, + }.Build() + File_cs3_app_registry_v1beta1_registry_api_proto = out.File + file_cs3_app_registry_v1beta1_registry_api_proto_rawDesc = nil + file_cs3_app_registry_v1beta1_registry_api_proto_goTypes = nil + file_cs3_app_registry_v1beta1_registry_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// RegistryAPIClient is the client API for RegistryAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RegistryAPIClient interface { + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...grpc.CallOption) (*GetAppProvidersResponse, error) + // Returns a list of the available app providers known by this registry. + ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error) +} + +type registryAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient { + return ®istryAPIClient{cc} +} + +func (c *registryAPIClient) GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...grpc.CallOption) (*GetAppProvidersResponse, error) { + out := new(GetAppProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.app.registry.v1beta1.RegistryAPI/GetAppProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIClient) ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error) { + out := new(ListAppProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.app.registry.v1beta1.RegistryAPI/ListAppProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RegistryAPIServer is the server API for RegistryAPI service. +type RegistryAPIServer interface { + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error) + // Returns a list of the available app providers known by this registry. + ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error) +} + +// UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations. +type UnimplementedRegistryAPIServer struct { +} + +func (*UnimplementedRegistryAPIServer) GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAppProviders not implemented") +} +func (*UnimplementedRegistryAPIServer) ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAppProviders not implemented") +} + +func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer) { + s.RegisterService(&_RegistryAPI_serviceDesc, srv) +} + +func _RegistryAPI_GetAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAppProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryAPIServer).GetAppProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.app.registry.v1beta1.RegistryAPI/GetAppProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryAPIServer).GetAppProviders(ctx, req.(*GetAppProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegistryAPI_ListAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListAppProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryAPIServer).ListAppProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.app.registry.v1beta1.RegistryAPI/ListAppProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryAPIServer).ListAppProviders(ctx, req.(*ListAppProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RegistryAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.app.registry.v1beta1.RegistryAPI", + HandlerType: (*RegistryAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetAppProviders", + Handler: _RegistryAPI_GetAppProviders_Handler, + }, + { + MethodName: "ListAppProviders", + Handler: _RegistryAPI_ListAppProviders_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/app/registry/v1beta1/registry_api.proto", +} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go b/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go new file mode 100644 index 00000000..e75e750d --- /dev/null +++ b/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/app/registry/v1beta1/registry_api.proto + +package registryv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for RegistryAPI service + +func NewRegistryAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for RegistryAPI service + +type RegistryAPIService interface { + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...client.CallOption) (*GetAppProvidersResponse, error) + // Returns a list of the available app providers known by this registry. + ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...client.CallOption) (*ListAppProvidersResponse, error) +} + +type registryAPIService struct { + c client.Client + name string +} + +func NewRegistryAPIService(name string, c client.Client) RegistryAPIService { + return ®istryAPIService{ + c: c, + name: name, + } +} + +func (c *registryAPIService) GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...client.CallOption) (*GetAppProvidersResponse, error) { + req := c.c.NewRequest(c.name, "RegistryAPI.GetAppProviders", in) + out := new(GetAppProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIService) ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...client.CallOption) (*ListAppProvidersResponse, error) { + req := c.c.NewRequest(c.name, "RegistryAPI.ListAppProviders", in) + out := new(ListAppProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for RegistryAPI service + +type RegistryAPIHandler interface { + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(context.Context, *GetAppProvidersRequest, *GetAppProvidersResponse) error + // Returns a list of the available app providers known by this registry. + ListAppProviders(context.Context, *ListAppProvidersRequest, *ListAppProvidersResponse) error +} + +func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error { + type registryAPI interface { + GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, out *GetAppProvidersResponse) error + ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, out *ListAppProvidersResponse) error + } + type RegistryAPI struct { + registryAPI + } + h := ®istryAPIHandler{hdlr} + return s.Handle(s.NewHandler(&RegistryAPI{h}, opts...)) +} + +type registryAPIHandler struct { + RegistryAPIHandler +} + +func (h *registryAPIHandler) GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, out *GetAppProvidersResponse) error { + return h.RegistryAPIHandler.GetAppProviders(ctx, in, out) +} + +func (h *registryAPIHandler) ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, out *ListAppProvidersResponse) error { + return h.RegistryAPIHandler.ListAppProviders(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go new file mode 100644 index 00000000..c03ac45b --- /dev/null +++ b/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go @@ -0,0 +1,223 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/app/registry/v1beta1/resources.proto + +package registryv1beta1 + +import ( + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Represents the information of the app provider. +type ProviderInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The mimetypes handled by this provider. + MimeTypes []string `protobuf:"bytes,2,rep,name=mime_types,json=mimeTypes,proto3" json:"mime_types,omitempty"` + // REQUIRED. + // The address where the app provider can be reached. + // For example, tcp://localhost:1099. + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + // OPTIONAL. + // Information to describe the functionalities + // offered by the app provider. Meant to be read + // by humans. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *ProviderInfo) Reset() { + *x = ProviderInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_app_registry_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderInfo) ProtoMessage() {} + +func (x *ProviderInfo) ProtoReflect() protoreflect.Message { + mi := &file_cs3_app_registry_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. +func (*ProviderInfo) Descriptor() ([]byte, []int) { + return file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ProviderInfo) GetMimeTypes() []string { + if x != nil { + return x.MimeTypes + } + return nil +} + +func (x *ProviderInfo) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *ProviderInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +var File_cs3_app_registry_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_app_registry_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, + 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x01, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6d, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6d, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x7d, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, + 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x18, 0x43, 0x73, + 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70, + 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_app_registry_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_app_registry_v1beta1_resources_proto_rawDescData = file_cs3_app_registry_v1beta1_resources_proto_rawDesc +) + +func file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_app_registry_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_app_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_registry_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_app_registry_v1beta1_resources_proto_rawDescData +} + +var file_cs3_app_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_cs3_app_registry_v1beta1_resources_proto_goTypes = []interface{}{ + (*ProviderInfo)(nil), // 0: cs3.app.registry.v1beta1.ProviderInfo + (*v1beta1.Opaque)(nil), // 1: cs3.types.v1beta1.Opaque +} +var file_cs3_app_registry_v1beta1_resources_proto_depIdxs = []int32{ + 1, // 0: cs3.app.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_cs3_app_registry_v1beta1_resources_proto_init() } +func file_cs3_app_registry_v1beta1_resources_proto_init() { + if File_cs3_app_registry_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_app_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderInfo); 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_cs3_app_registry_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_app_registry_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_app_registry_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_app_registry_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_app_registry_v1beta1_resources_proto = out.File + file_cs3_app_registry_v1beta1_resources_proto_rawDesc = nil + file_cs3_app_registry_v1beta1_resources_proto_goTypes = nil + file_cs3_app_registry_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..5d296f9d --- /dev/null +++ b/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go @@ -0,0 +1,22 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/app/registry/v1beta1/resources.proto + +package registryv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go new file mode 100644 index 00000000..437e0bc9 --- /dev/null +++ b/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go @@ -0,0 +1,385 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/auth/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + context "context" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type AuthenticateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` +} + +func (x *AuthenticateRequest) Reset() { + *x = AuthenticateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthenticateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthenticateRequest) ProtoMessage() {} + +func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_auth_provider_v1beta1_provider_api_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 AuthenticateRequest.ProtoReflect.Descriptor instead. +func (*AuthenticateRequest) Descriptor() ([]byte, []int) { + return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} +} + +func (x *AuthenticateRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *AuthenticateRequest) GetClientId() string { + if x != nil { + return x.ClientId + } + return "" +} + +func (x *AuthenticateRequest) GetClientSecret() string { + if x != nil { + return x.ClientSecret + } + return "" +} + +type AuthenticateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + User *v1beta12.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *AuthenticateResponse) Reset() { + *x = AuthenticateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthenticateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthenticateResponse) ProtoMessage() {} + +func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_auth_provider_v1beta1_provider_api_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 AuthenticateResponse.ProtoReflect.Descriptor instead. +func (*AuthenticateResponse) Descriptor() ([]byte, []int) { + return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} +} + +func (x *AuthenticateResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *AuthenticateResponse) GetUser() *v1beta12.User { + if x != nil { + return x.User + } + return nil +} + +var File_cs3_auth_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor + +var file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, + 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x8a, 0x01, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x7c, + 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x7e, 0x0a, 0x0b, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x6f, 0x0a, 0x0c, 0x41, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x82, 0x01, 0x0a, + 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, + 0x41, 0x75, 0x74, 0x68, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, + 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, + 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once + file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc +) + +func file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { + file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { + file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData) + }) + return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData +} + +var file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ + (*AuthenticateRequest)(nil), // 0: cs3.auth.provider.v1beta1.AuthenticateRequest + (*AuthenticateResponse)(nil), // 1: cs3.auth.provider.v1beta1.AuthenticateResponse + (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque + (*v1beta11.Status)(nil), // 3: cs3.rpc.v1beta1.Status + (*v1beta12.User)(nil), // 4: cs3.identity.user.v1beta1.User +} +var file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs = []int32{ + 2, // 0: cs3.auth.provider.v1beta1.AuthenticateRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 3, // 1: cs3.auth.provider.v1beta1.AuthenticateResponse.status:type_name -> cs3.rpc.v1beta1.Status + 4, // 2: cs3.auth.provider.v1beta1.AuthenticateResponse.user:type_name -> cs3.identity.user.v1beta1.User + 0, // 3: cs3.auth.provider.v1beta1.ProviderAPI.Authenticate:input_type -> cs3.auth.provider.v1beta1.AuthenticateRequest + 1, // 4: cs3.auth.provider.v1beta1.ProviderAPI.Authenticate:output_type -> cs3.auth.provider.v1beta1.AuthenticateResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_cs3_auth_provider_v1beta1_provider_api_proto_init() } +func file_cs3_auth_provider_v1beta1_provider_api_proto_init() { + if File_cs3_auth_provider_v1beta1_provider_api_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AuthenticateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AuthenticateResponse); 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_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes, + DependencyIndexes: file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs, + MessageInfos: file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes, + }.Build() + File_cs3_auth_provider_v1beta1_provider_api_proto = out.File + file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc = nil + file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes = nil + file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ProviderAPIClient is the client API for ProviderAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ProviderAPIClient interface { + // Authenticate authenticates a client. + Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) +} + +type providerAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { + return &providerAPIClient{cc} +} + +func (c *providerAPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { + out := new(AuthenticateResponse) + err := c.cc.Invoke(ctx, "/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProviderAPIServer is the server API for ProviderAPI service. +type ProviderAPIServer interface { + // Authenticate authenticates a client. + Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) +} + +// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. +type UnimplementedProviderAPIServer struct { +} + +func (*UnimplementedProviderAPIServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented") +} + +func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { + s.RegisterService(&_ProviderAPI_serviceDesc, srv) +} + +func _ProviderAPI_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthenticateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).Authenticate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).Authenticate(ctx, req.(*AuthenticateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.auth.provider.v1beta1.ProviderAPI", + HandlerType: (*ProviderAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Authenticate", + Handler: _ProviderAPI_Authenticate_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/auth/provider/v1beta1/provider_api.proto", +} diff --git a/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go new file mode 100644 index 00000000..54017621 --- /dev/null +++ b/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go @@ -0,0 +1,98 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/auth/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for ProviderAPI service + +func NewProviderAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for ProviderAPI service + +type ProviderAPIService interface { + // Authenticate authenticates a client. + Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) +} + +type providerAPIService struct { + c client.Client + name string +} + +func NewProviderAPIService(name string, c client.Client) ProviderAPIService { + return &providerAPIService{ + c: c, + name: name, + } +} + +func (c *providerAPIService) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.Authenticate", in) + out := new(AuthenticateResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for ProviderAPI service + +type ProviderAPIHandler interface { + // Authenticate authenticates a client. + Authenticate(context.Context, *AuthenticateRequest, *AuthenticateResponse) error +} + +func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { + type providerAPI interface { + Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error + } + type ProviderAPI struct { + providerAPI + } + h := &providerAPIHandler{hdlr} + return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) +} + +type providerAPIHandler struct { + ProviderAPIHandler +} + +func (h *providerAPIHandler) Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error { + return h.ProviderAPIHandler.Authenticate(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go new file mode 100644 index 00000000..56c65a2f --- /dev/null +++ b/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go @@ -0,0 +1,616 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/auth/registry/v1beta1/registry_api.proto + +package registryv1beta1 + +import ( + context "context" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GetAuthProviderRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The type of authentication provider. + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *GetAuthProviderRequest) Reset() { + *x = GetAuthProviderRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAuthProviderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAuthProviderRequest) ProtoMessage() {} + +func (x *GetAuthProviderRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_auth_registry_v1beta1_registry_api_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 GetAuthProviderRequest.ProtoReflect.Descriptor instead. +func (*GetAuthProviderRequest) Descriptor() ([]byte, []int) { + return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{0} +} + +func (x *GetAuthProviderRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetAuthProviderRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +type GetAuthProviderResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The auth provider handling the requested auth call. + Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` +} + +func (x *GetAuthProviderResponse) Reset() { + *x = GetAuthProviderResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAuthProviderResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAuthProviderResponse) ProtoMessage() {} + +func (x *GetAuthProviderResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_auth_registry_v1beta1_registry_api_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 GetAuthProviderResponse.ProtoReflect.Descriptor instead. +func (*GetAuthProviderResponse) Descriptor() ([]byte, []int) { + return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{1} +} + +func (x *GetAuthProviderResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetAuthProviderResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetAuthProviderResponse) GetProvider() *ProviderInfo { + if x != nil { + return x.Provider + } + return nil +} + +type ListAuthProvidersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter? +} + +func (x *ListAuthProvidersRequest) Reset() { + *x = ListAuthProvidersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAuthProvidersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAuthProvidersRequest) ProtoMessage() {} + +func (x *ListAuthProvidersRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_auth_registry_v1beta1_registry_api_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 ListAuthProvidersRequest.ProtoReflect.Descriptor instead. +func (*ListAuthProvidersRequest) Descriptor() ([]byte, []int) { + return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{2} +} + +func (x *ListAuthProvidersRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListAuthProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of auth providers this registry knows about. + Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` +} + +func (x *ListAuthProvidersResponse) Reset() { + *x = ListAuthProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAuthProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAuthProvidersResponse) ProtoMessage() {} + +func (x *ListAuthProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_auth_registry_v1beta1_registry_api_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 ListAuthProvidersResponse.ProtoReflect.Descriptor instead. +func (*ListAuthProvidersResponse) Descriptor() ([]byte, []int) { + return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{3} +} + +func (x *ListAuthProvidersResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListAuthProvidersResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListAuthProvidersResponse) GetProviders() []*ProviderInfo { + if x != nil { + return x.Providers + } + return nil +} + +var File_cs3_auth_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor + +var file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, + 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61, + 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x5f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x43, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x4d, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, + 0x87, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x50, 0x49, 0x12, + 0x78, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x11, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x33, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x82, 0x01, 0x0a, 0x1d, 0x63, 0x6f, + 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, + 0x68, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, + 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescOnce sync.Once + file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData = file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc +) + +func file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP() []byte { + file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescOnce.Do(func() { + file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData) + }) + return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData +} + +var file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes = []interface{}{ + (*GetAuthProviderRequest)(nil), // 0: cs3.auth.registry.v1beta1.GetAuthProviderRequest + (*GetAuthProviderResponse)(nil), // 1: cs3.auth.registry.v1beta1.GetAuthProviderResponse + (*ListAuthProvidersRequest)(nil), // 2: cs3.auth.registry.v1beta1.ListAuthProvidersRequest + (*ListAuthProvidersResponse)(nil), // 3: cs3.auth.registry.v1beta1.ListAuthProvidersResponse + (*v1beta1.Opaque)(nil), // 4: cs3.types.v1beta1.Opaque + (*v1beta11.Status)(nil), // 5: cs3.rpc.v1beta1.Status + (*ProviderInfo)(nil), // 6: cs3.auth.registry.v1beta1.ProviderInfo +} +var file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs = []int32{ + 4, // 0: cs3.auth.registry.v1beta1.GetAuthProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 5, // 1: cs3.auth.registry.v1beta1.GetAuthProviderResponse.status:type_name -> cs3.rpc.v1beta1.Status + 4, // 2: cs3.auth.registry.v1beta1.GetAuthProviderResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 6, // 3: cs3.auth.registry.v1beta1.GetAuthProviderResponse.provider:type_name -> cs3.auth.registry.v1beta1.ProviderInfo + 4, // 4: cs3.auth.registry.v1beta1.ListAuthProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 5, // 5: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status + 4, // 6: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 6, // 7: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.providers:type_name -> cs3.auth.registry.v1beta1.ProviderInfo + 0, // 8: cs3.auth.registry.v1beta1.RegistryAPI.GetAuthProvider:input_type -> cs3.auth.registry.v1beta1.GetAuthProviderRequest + 2, // 9: cs3.auth.registry.v1beta1.RegistryAPI.ListAuthProviders:input_type -> cs3.auth.registry.v1beta1.ListAuthProvidersRequest + 1, // 10: cs3.auth.registry.v1beta1.RegistryAPI.GetAuthProvider:output_type -> cs3.auth.registry.v1beta1.GetAuthProviderResponse + 3, // 11: cs3.auth.registry.v1beta1.RegistryAPI.ListAuthProviders:output_type -> cs3.auth.registry.v1beta1.ListAuthProvidersResponse + 10, // [10:12] is the sub-list for method output_type + 8, // [8:10] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_cs3_auth_registry_v1beta1_registry_api_proto_init() } +func file_cs3_auth_registry_v1beta1_registry_api_proto_init() { + if File_cs3_auth_registry_v1beta1_registry_api_proto != nil { + return + } + file_cs3_auth_registry_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAuthProviderRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAuthProviderResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAuthProvidersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAuthProvidersResponse); 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_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes, + DependencyIndexes: file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs, + MessageInfos: file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes, + }.Build() + File_cs3_auth_registry_v1beta1_registry_api_proto = out.File + file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc = nil + file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes = nil + file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// RegistryAPIClient is the client API for RegistryAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RegistryAPIClient interface { + // Returns the auth provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...grpc.CallOption) (*GetAuthProviderResponse, error) + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) +} + +type registryAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient { + return ®istryAPIClient{cc} +} + +func (c *registryAPIClient) GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...grpc.CallOption) (*GetAuthProviderResponse, error) { + out := new(GetAuthProviderResponse) + err := c.cc.Invoke(ctx, "/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIClient) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) { + out := new(ListAuthProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.auth.registry.v1beta1.RegistryAPI/ListAuthProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RegistryAPIServer is the server API for RegistryAPI service. +type RegistryAPIServer interface { + // Returns the auth provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetAuthProvider(context.Context, *GetAuthProviderRequest) (*GetAuthProviderResponse, error) + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(context.Context, *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) +} + +// UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations. +type UnimplementedRegistryAPIServer struct { +} + +func (*UnimplementedRegistryAPIServer) GetAuthProvider(context.Context, *GetAuthProviderRequest) (*GetAuthProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAuthProvider not implemented") +} +func (*UnimplementedRegistryAPIServer) ListAuthProviders(context.Context, *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAuthProviders not implemented") +} + +func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer) { + s.RegisterService(&_RegistryAPI_serviceDesc, srv) +} + +func _RegistryAPI_GetAuthProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAuthProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryAPIServer).GetAuthProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryAPIServer).GetAuthProvider(ctx, req.(*GetAuthProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegistryAPI_ListAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListAuthProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryAPIServer).ListAuthProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.auth.registry.v1beta1.RegistryAPI/ListAuthProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryAPIServer).ListAuthProviders(ctx, req.(*ListAuthProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RegistryAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.auth.registry.v1beta1.RegistryAPI", + HandlerType: (*RegistryAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetAuthProvider", + Handler: _RegistryAPI_GetAuthProvider_Handler, + }, + { + MethodName: "ListAuthProviders", + Handler: _RegistryAPI_ListAuthProviders_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/auth/registry/v1beta1/registry_api.proto", +} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go new file mode 100644 index 00000000..03743598 --- /dev/null +++ b/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go @@ -0,0 +1,120 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/auth/registry/v1beta1/registry_api.proto + +package registryv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for RegistryAPI service + +func NewRegistryAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for RegistryAPI service + +type RegistryAPIService interface { + // Returns the auth provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...client.CallOption) (*GetAuthProviderResponse, error) + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) +} + +type registryAPIService struct { + c client.Client + name string +} + +func NewRegistryAPIService(name string, c client.Client) RegistryAPIService { + return ®istryAPIService{ + c: c, + name: name, + } +} + +func (c *registryAPIService) GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...client.CallOption) (*GetAuthProviderResponse, error) { + req := c.c.NewRequest(c.name, "RegistryAPI.GetAuthProvider", in) + out := new(GetAuthProviderResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIService) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) { + req := c.c.NewRequest(c.name, "RegistryAPI.ListAuthProviders", in) + out := new(ListAuthProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for RegistryAPI service + +type RegistryAPIHandler interface { + // Returns the auth provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetAuthProvider(context.Context, *GetAuthProviderRequest, *GetAuthProviderResponse) error + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(context.Context, *ListAuthProvidersRequest, *ListAuthProvidersResponse) error +} + +func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error { + type registryAPI interface { + GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, out *GetAuthProviderResponse) error + ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, out *ListAuthProvidersResponse) error + } + type RegistryAPI struct { + registryAPI + } + h := ®istryAPIHandler{hdlr} + return s.Handle(s.NewHandler(&RegistryAPI{h}, opts...)) +} + +type registryAPIHandler struct { + RegistryAPIHandler +} + +func (h *registryAPIHandler) GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, out *GetAuthProviderResponse) error { + return h.RegistryAPIHandler.GetAuthProvider(ctx, in, out) +} + +func (h *registryAPIHandler) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, out *ListAuthProvidersResponse) error { + return h.RegistryAPIHandler.ListAuthProviders(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go new file mode 100644 index 00000000..d38d71de --- /dev/null +++ b/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go @@ -0,0 +1,228 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/auth/registry/v1beta1/resources.proto + +package registryv1beta1 + +import ( + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// ProviderInfo provides the information about an authentication provider. +type ProviderInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information (containing storage-specific information). + // For example, additional metadata attached to the resource. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The storage provider id that will become part of the + // resource id. + // For example, if the provider_id is "home", resources obtained + // from this storage provider will have a resource id like "home:1234". + ProviderType string `protobuf:"bytes,2,opt,name=provider_type,json=providerType,proto3" json:"provider_type,omitempty"` + // REQUIRED. + // The address where the storage provider can be reached. + // For example, tcp://localhost:1099. + Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + // OPTIONAL. + // Information to describe the functionalities + // offered by the storage provider. Meant to be read + // by humans. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *ProviderInfo) Reset() { + *x = ProviderInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_auth_registry_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderInfo) ProtoMessage() {} + +func (x *ProviderInfo) ProtoReflect() protoreflect.Message { + mi := &file_cs3_auth_registry_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. +func (*ProviderInfo) Descriptor() ([]byte, []int) { + return file_cs3_auth_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ProviderInfo) GetProviderType() string { + if x != nil { + return x.ProviderType + } + return "" +} + +func (x *ProviderInfo) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *ProviderInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +var File_cs3_auth_registry_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_auth_registry_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33, + 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x01, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x80, 0x01, 0x0a, 0x1d, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, + 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, 0x68, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, + 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_auth_registry_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_auth_registry_v1beta1_resources_proto_rawDescData = file_cs3_auth_registry_v1beta1_resources_proto_rawDesc +) + +func file_cs3_auth_registry_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_auth_registry_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_auth_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_registry_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_auth_registry_v1beta1_resources_proto_rawDescData +} + +var file_cs3_auth_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_cs3_auth_registry_v1beta1_resources_proto_goTypes = []interface{}{ + (*ProviderInfo)(nil), // 0: cs3.auth.registry.v1beta1.ProviderInfo + (*v1beta1.Opaque)(nil), // 1: cs3.types.v1beta1.Opaque +} +var file_cs3_auth_registry_v1beta1_resources_proto_depIdxs = []int32{ + 1, // 0: cs3.auth.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_cs3_auth_registry_v1beta1_resources_proto_init() } +func file_cs3_auth_registry_v1beta1_resources_proto_init() { + if File_cs3_auth_registry_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_auth_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderInfo); 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_cs3_auth_registry_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_auth_registry_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_auth_registry_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_auth_registry_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_auth_registry_v1beta1_resources_proto = out.File + file_cs3_auth_registry_v1beta1_resources_proto_rawDesc = nil + file_cs3_auth_registry_v1beta1_resources_proto_goTypes = nil + file_cs3_auth_registry_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..fa238608 --- /dev/null +++ b/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go @@ -0,0 +1,22 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/auth/registry/v1beta1/resources.proto + +package registryv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go b/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go new file mode 100644 index 00000000..6d339a10 --- /dev/null +++ b/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go @@ -0,0 +1,5018 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/gateway/v1beta1/gateway_api.proto + +package gatewayv1beta1 + +import ( + context "context" + v1beta114 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/provider/v1beta1" + v1beta18 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/registry/v1beta1" + v1beta19 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/auth/registry/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta112 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/core/v1beta1" + v1beta110 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/invite/v1beta1" + v1beta111 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" + v1beta15 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/preferences/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta14 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/collaboration/v1beta1" + v1beta16 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/link/v1beta1" + v1beta17 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/ocm/v1beta1" + v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta113 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/tx/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// REQUIRED. +// View mode. +type OpenFileInAppProviderRequest_ViewMode int32 + +const ( + OpenFileInAppProviderRequest_VIEW_MODE_INVALID OpenFileInAppProviderRequest_ViewMode = 0 + // The file can be opened but not downloaded. + OpenFileInAppProviderRequest_VIEW_MODE_VIEW_ONLY OpenFileInAppProviderRequest_ViewMode = 1 + // The file can be downloaded. + OpenFileInAppProviderRequest_VIEW_MODE_READ_ONLY OpenFileInAppProviderRequest_ViewMode = 2 + // The file can be downloaded and updated. + OpenFileInAppProviderRequest_VIEW_MODE_READ_WRITE OpenFileInAppProviderRequest_ViewMode = 3 +) + +// Enum value maps for OpenFileInAppProviderRequest_ViewMode. +var ( + OpenFileInAppProviderRequest_ViewMode_name = map[int32]string{ + 0: "VIEW_MODE_INVALID", + 1: "VIEW_MODE_VIEW_ONLY", + 2: "VIEW_MODE_READ_ONLY", + 3: "VIEW_MODE_READ_WRITE", + } + OpenFileInAppProviderRequest_ViewMode_value = map[string]int32{ + "VIEW_MODE_INVALID": 0, + "VIEW_MODE_VIEW_ONLY": 1, + "VIEW_MODE_READ_ONLY": 2, + "VIEW_MODE_READ_WRITE": 3, + } +) + +func (x OpenFileInAppProviderRequest_ViewMode) Enum() *OpenFileInAppProviderRequest_ViewMode { + p := new(OpenFileInAppProviderRequest_ViewMode) + *p = x + return p +} + +func (x OpenFileInAppProviderRequest_ViewMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OpenFileInAppProviderRequest_ViewMode) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes[0].Descriptor() +} + +func (OpenFileInAppProviderRequest_ViewMode) Type() protoreflect.EnumType { + return &file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes[0] +} + +func (x OpenFileInAppProviderRequest_ViewMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OpenFileInAppProviderRequest_ViewMode.Descriptor instead. +func (OpenFileInAppProviderRequest_ViewMode) EnumDescriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{11, 0} +} + +type AuthenticateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The type of authentication to use. + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // OPTIONAL. + // The id of the client. + // For basic authentication with username and password + // both client_id and client_secret are expected to be filled. + // However, for example, for OIDC only a token is necessary. + ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // OPTIONAL. + // The secret of the client. + ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` +} + +func (x *AuthenticateRequest) Reset() { + *x = AuthenticateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthenticateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthenticateRequest) ProtoMessage() {} + +func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 AuthenticateRequest.ProtoReflect.Descriptor instead. +func (*AuthenticateRequest) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{0} +} + +func (x *AuthenticateRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *AuthenticateRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *AuthenticateRequest) GetClientId() string { + if x != nil { + return x.ClientId + } + return "" +} + +func (x *AuthenticateRequest) GetClientSecret() string { + if x != nil { + return x.ClientSecret + } + return "" +} + +type AuthenticateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The access token. + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // REQUIRED. + // The user. + User *v1beta12.User `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *AuthenticateResponse) Reset() { + *x = AuthenticateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthenticateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthenticateResponse) ProtoMessage() {} + +func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 AuthenticateResponse.ProtoReflect.Descriptor instead. +func (*AuthenticateResponse) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{1} +} + +func (x *AuthenticateResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *AuthenticateResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *AuthenticateResponse) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *AuthenticateResponse) GetUser() *v1beta12.User { + if x != nil { + return x.User + } + return nil +} + +type WhoAmIRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The access token. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *WhoAmIRequest) Reset() { + *x = WhoAmIRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WhoAmIRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WhoAmIRequest) ProtoMessage() {} + +func (x *WhoAmIRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 WhoAmIRequest.ProtoReflect.Descriptor instead. +func (*WhoAmIRequest) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{2} +} + +func (x *WhoAmIRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *WhoAmIRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type WhoAmIResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The user information. + User *v1beta12.User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *WhoAmIResponse) Reset() { + *x = WhoAmIResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WhoAmIResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WhoAmIResponse) ProtoMessage() {} + +func (x *WhoAmIResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 WhoAmIResponse.ProtoReflect.Descriptor instead. +func (*WhoAmIResponse) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{3} +} + +func (x *WhoAmIResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *WhoAmIResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *WhoAmIResponse) GetUser() *v1beta12.User { + if x != nil { + return x.User + } + return nil +} + +type GetQuotaRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *GetQuotaRequest) Reset() { + *x = GetQuotaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetQuotaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetQuotaRequest) ProtoMessage() {} + +func (x *GetQuotaRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 GetQuotaRequest.ProtoReflect.Descriptor instead. +func (*GetQuotaRequest) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{4} +} + +func (x *GetQuotaRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetQuotaRequest) GetRef() *v1beta13.Reference { + if x != nil { + return x.Ref + } + return nil +} + +type ListRecycleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The start time range to query for recycle items. + // The value is the Unix Epoch timestamp in seconds. + FromTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The end time range to query for recycle items. + // The value is Unix Epoch timestamp in seconds. + ToTs *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` +} + +func (x *ListRecycleRequest) Reset() { + *x = ListRecycleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRecycleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecycleRequest) ProtoMessage() {} + +func (x *ListRecycleRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 ListRecycleRequest.ProtoReflect.Descriptor instead. +func (*ListRecycleRequest) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{5} +} + +func (x *ListRecycleRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListRecycleRequest) GetRef() *v1beta13.Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *ListRecycleRequest) GetFromTs() *v1beta1.Timestamp { + if x != nil { + return x.FromTs + } + return nil +} + +func (x *ListRecycleRequest) GetToTs() *v1beta1.Timestamp { + if x != nil { + return x.ToTs + } + return nil +} + +type ListRecycleStreamRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The start time range to query for recycle items. + // The value is the Unix Epoch timestamp in seconds. + FromTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The end time range to query for recycle items. + // The value is Unix Epoch timestamp in seconds. + ToTs *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` +} + +func (x *ListRecycleStreamRequest) Reset() { + *x = ListRecycleStreamRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRecycleStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecycleStreamRequest) ProtoMessage() {} + +func (x *ListRecycleStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 ListRecycleStreamRequest.ProtoReflect.Descriptor instead. +func (*ListRecycleStreamRequest) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{6} +} + +func (x *ListRecycleStreamRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListRecycleStreamRequest) GetRef() *v1beta13.Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *ListRecycleStreamRequest) GetFromTs() *v1beta1.Timestamp { + if x != nil { + return x.FromTs + } + return nil +} + +func (x *ListRecycleStreamRequest) GetToTs() *v1beta1.Timestamp { + if x != nil { + return x.ToTs + } + return nil +} + +type PurgeRecycleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *PurgeRecycleRequest) Reset() { + *x = PurgeRecycleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PurgeRecycleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurgeRecycleRequest) ProtoMessage() {} + +func (x *PurgeRecycleRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 PurgeRecycleRequest.ProtoReflect.Descriptor instead. +func (*PurgeRecycleRequest) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{7} +} + +func (x *PurgeRecycleRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *PurgeRecycleRequest) GetRef() *v1beta13.Reference { + if x != nil { + return x.Ref + } + return nil +} + +type InitiateFileDownloadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocols through which data can be downloaded. + Protocols []*FileDownloadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` +} + +func (x *InitiateFileDownloadResponse) Reset() { + *x = InitiateFileDownloadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateFileDownloadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateFileDownloadResponse) ProtoMessage() {} + +func (x *InitiateFileDownloadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_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 InitiateFileDownloadResponse.ProtoReflect.Descriptor instead. +func (*InitiateFileDownloadResponse) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{8} +} + +func (x *InitiateFileDownloadResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *InitiateFileDownloadResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *InitiateFileDownloadResponse) GetProtocols() []*FileDownloadProtocol { + if x != nil { + return x.Protocols + } + return nil +} + +type InitiateFileUploadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocols through which data can be uploaded. + Protocols []*FileUploadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` +} + +func (x *InitiateFileUploadResponse) Reset() { + *x = InitiateFileUploadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateFileUploadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateFileUploadResponse) ProtoMessage() {} + +func (x *InitiateFileUploadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[9] + 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 InitiateFileUploadResponse.ProtoReflect.Descriptor instead. +func (*InitiateFileUploadResponse) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{9} +} + +func (x *InitiateFileUploadResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *InitiateFileUploadResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *InitiateFileUploadResponse) GetProtocols() []*FileUploadProtocol { + if x != nil { + return x.Protocols + } + return nil +} + +type ListAuthProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of auth types. + // TODO(labkode): maybe add description? + Types []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` +} + +func (x *ListAuthProvidersResponse) Reset() { + *x = ListAuthProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAuthProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAuthProvidersResponse) ProtoMessage() {} + +func (x *ListAuthProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[10] + 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 ListAuthProvidersResponse.ProtoReflect.Descriptor instead. +func (*ListAuthProvidersResponse) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{10} +} + +func (x *ListAuthProvidersResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListAuthProvidersResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListAuthProvidersResponse) GetTypes() []string { + if x != nil { + return x.Types + } + return nil +} + +type OpenFileInAppProviderRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The resource reference. If a path is given, it will be resolved via Stat() to a ResourceInfo + // when a call to the WOPI server is to be issued (cf. the provider grpc message) + Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + ViewMode OpenFileInAppProviderRequest_ViewMode `protobuf:"varint,3,opt,name=view_mode,json=viewMode,proto3,enum=cs3.gateway.v1beta1.OpenFileInAppProviderRequest_ViewMode" json:"view_mode,omitempty"` +} + +func (x *OpenFileInAppProviderRequest) Reset() { + *x = OpenFileInAppProviderRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenFileInAppProviderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenFileInAppProviderRequest) ProtoMessage() {} + +func (x *OpenFileInAppProviderRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[11] + 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 OpenFileInAppProviderRequest.ProtoReflect.Descriptor instead. +func (*OpenFileInAppProviderRequest) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{11} +} + +func (x *OpenFileInAppProviderRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *OpenFileInAppProviderRequest) GetRef() *v1beta13.Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *OpenFileInAppProviderRequest) GetViewMode() OpenFileInAppProviderRequest_ViewMode { + if x != nil { + return x.ViewMode + } + return OpenFileInAppProviderRequest_VIEW_MODE_INVALID +} + +var File_cs3_gateway_v1beta1_gateway_api_proto protoreflect.FileDescriptor + +var file_cs3_gateway_v1beta1_gateway_api_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, + 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x2b, 0x63, 0x73, + 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x61, + 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, + 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, + 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x63, + 0x73, 0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, + 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x39, 0x63, 0x73, 0x33, 0x2f, + 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, + 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, + 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x9e, 0x01, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, + 0x74, 0x22, 0xc5, 0x01, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x58, 0x0a, 0x0d, 0x57, 0x68, 0x6f, + 0x41, 0x6d, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, + 0x7f, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, + 0x22, 0xec, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, + 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x54, 0x73, 0x12, 0x31, 0x0a, 0x05, + 0x74, 0x6f, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x6f, 0x54, 0x73, 0x22, + 0xf2, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x07, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x54, + 0x73, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x6f, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, + 0x74, 0x6f, 0x54, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x13, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, 0x65, + 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xcb, 0x01, 0x0a, 0x1c, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x47, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, + 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x09, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x1a, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xd4, 0x02, 0x0a, 0x1c, 0x4f, + 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x57, 0x0a, 0x09, 0x76, 0x69, 0x65, + 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4d, 0x6f, + 0x64, 0x65, 0x22, 0x6d, 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x15, + 0x0a, 0x11, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, + 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, + 0x44, 0x45, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x17, + 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, + 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x49, 0x45, 0x57, 0x5f, + 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, + 0x03, 0x32, 0x9b, 0x3f, 0x0a, 0x0a, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x50, 0x49, + 0x12, 0x63, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, 0x12, + 0x22, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x34, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, + 0x07, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, + 0x61, 0x12, 0x24, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, + 0x12, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, + 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, + 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, + 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8c, + 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x78, 0x0a, + 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x32, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, + 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x11, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x12, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, + 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x0b, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 0x65, 0x12, 0x29, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x76, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0c, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, + 0x79, 0x63, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, + 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, + 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, + 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, + 0x12, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, + 0x74, 0x65, 0x6d, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, + 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x29, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, + 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x8d, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, + 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x93, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, + 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, + 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, + 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, + 0x6f, 0x6d, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, 0x46, + 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, + 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, + 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, + 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, + 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x3c, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, + 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, + 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x94, 0x01, 0x0a, 0x13, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x3e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x59, 0x0a, 0x06, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x47, 0x65, + 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, + 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x73, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, + 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, + 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x68, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x4c, 0x69, + 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, + 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, + 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, + 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x33, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, + 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, + 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x47, 0x65, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x30, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x72, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x09, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, + 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x49, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, + 0x09, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x78, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x07, 0x47, 0x65, + 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, + 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, + 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, + 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, + 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, + 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x69, 0x0a, 0x0c, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, + 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, + 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, + 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x49, 0x73, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, 0x32, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, + 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x12, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, + 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, + 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, + 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x12, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x6e, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x47, 0x61, 0x74, 0x65, + 0x77, 0x61, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0e, 0x67, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x43, 0x47, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x73, 0x33, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x13, 0x43, 0x73, 0x33, 0x5c, + 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_gateway_v1beta1_gateway_api_proto_rawDescOnce sync.Once + file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData = file_cs3_gateway_v1beta1_gateway_api_proto_rawDesc +) + +func file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP() []byte { + file_cs3_gateway_v1beta1_gateway_api_proto_rawDescOnce.Do(func() { + file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData) + }) + return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData +} + +var file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_cs3_gateway_v1beta1_gateway_api_proto_goTypes = []interface{}{ + (OpenFileInAppProviderRequest_ViewMode)(0), // 0: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.ViewMode + (*AuthenticateRequest)(nil), // 1: cs3.gateway.v1beta1.AuthenticateRequest + (*AuthenticateResponse)(nil), // 2: cs3.gateway.v1beta1.AuthenticateResponse + (*WhoAmIRequest)(nil), // 3: cs3.gateway.v1beta1.WhoAmIRequest + (*WhoAmIResponse)(nil), // 4: cs3.gateway.v1beta1.WhoAmIResponse + (*GetQuotaRequest)(nil), // 5: cs3.gateway.v1beta1.GetQuotaRequest + (*ListRecycleRequest)(nil), // 6: cs3.gateway.v1beta1.ListRecycleRequest + (*ListRecycleStreamRequest)(nil), // 7: cs3.gateway.v1beta1.ListRecycleStreamRequest + (*PurgeRecycleRequest)(nil), // 8: cs3.gateway.v1beta1.PurgeRecycleRequest + (*InitiateFileDownloadResponse)(nil), // 9: cs3.gateway.v1beta1.InitiateFileDownloadResponse + (*InitiateFileUploadResponse)(nil), // 10: cs3.gateway.v1beta1.InitiateFileUploadResponse + (*ListAuthProvidersResponse)(nil), // 11: cs3.gateway.v1beta1.ListAuthProvidersResponse + (*OpenFileInAppProviderRequest)(nil), // 12: cs3.gateway.v1beta1.OpenFileInAppProviderRequest + (*v1beta1.Opaque)(nil), // 13: cs3.types.v1beta1.Opaque + (*v1beta11.Status)(nil), // 14: cs3.rpc.v1beta1.Status + (*v1beta12.User)(nil), // 15: cs3.identity.user.v1beta1.User + (*v1beta13.Reference)(nil), // 16: cs3.storage.provider.v1beta1.Reference + (*v1beta1.Timestamp)(nil), // 17: cs3.types.v1beta1.Timestamp + (*FileDownloadProtocol)(nil), // 18: cs3.gateway.v1beta1.FileDownloadProtocol + (*FileUploadProtocol)(nil), // 19: cs3.gateway.v1beta1.FileUploadProtocol + (*v1beta13.CreateContainerRequest)(nil), // 20: cs3.storage.provider.v1beta1.CreateContainerRequest + (*v1beta13.DeleteRequest)(nil), // 21: cs3.storage.provider.v1beta1.DeleteRequest + (*v1beta13.GetPathRequest)(nil), // 22: cs3.storage.provider.v1beta1.GetPathRequest + (*v1beta13.InitiateFileDownloadRequest)(nil), // 23: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest + (*v1beta13.InitiateFileUploadRequest)(nil), // 24: cs3.storage.provider.v1beta1.InitiateFileUploadRequest + (*v1beta13.ListContainerStreamRequest)(nil), // 25: cs3.storage.provider.v1beta1.ListContainerStreamRequest + (*v1beta13.ListContainerRequest)(nil), // 26: cs3.storage.provider.v1beta1.ListContainerRequest + (*v1beta13.ListFileVersionsRequest)(nil), // 27: cs3.storage.provider.v1beta1.ListFileVersionsRequest + (*v1beta13.MoveRequest)(nil), // 28: cs3.storage.provider.v1beta1.MoveRequest + (*v1beta13.RestoreFileVersionRequest)(nil), // 29: cs3.storage.provider.v1beta1.RestoreFileVersionRequest + (*v1beta13.RestoreRecycleItemRequest)(nil), // 30: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest + (*v1beta13.StatRequest)(nil), // 31: cs3.storage.provider.v1beta1.StatRequest + (*v1beta13.CreateSymlinkRequest)(nil), // 32: cs3.storage.provider.v1beta1.CreateSymlinkRequest + (*v1beta13.SetArbitraryMetadataRequest)(nil), // 33: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest + (*v1beta13.UnsetArbitraryMetadataRequest)(nil), // 34: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest + (*v1beta13.CreateHomeRequest)(nil), // 35: cs3.storage.provider.v1beta1.CreateHomeRequest + (*v1beta14.CreateShareRequest)(nil), // 36: cs3.sharing.collaboration.v1beta1.CreateShareRequest + (*v1beta14.RemoveShareRequest)(nil), // 37: cs3.sharing.collaboration.v1beta1.RemoveShareRequest + (*v1beta14.GetShareRequest)(nil), // 38: cs3.sharing.collaboration.v1beta1.GetShareRequest + (*v1beta14.ListSharesRequest)(nil), // 39: cs3.sharing.collaboration.v1beta1.ListSharesRequest + (*v1beta14.UpdateShareRequest)(nil), // 40: cs3.sharing.collaboration.v1beta1.UpdateShareRequest + (*v1beta14.ListReceivedSharesRequest)(nil), // 41: cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest + (*v1beta14.UpdateReceivedShareRequest)(nil), // 42: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest + (*v1beta14.GetReceivedShareRequest)(nil), // 43: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest + (*v1beta15.SetKeyRequest)(nil), // 44: cs3.preferences.v1beta1.SetKeyRequest + (*v1beta15.GetKeyRequest)(nil), // 45: cs3.preferences.v1beta1.GetKeyRequest + (*v1beta16.CreatePublicShareRequest)(nil), // 46: cs3.sharing.link.v1beta1.CreatePublicShareRequest + (*v1beta16.RemovePublicShareRequest)(nil), // 47: cs3.sharing.link.v1beta1.RemovePublicShareRequest + (*v1beta16.GetPublicShareRequest)(nil), // 48: cs3.sharing.link.v1beta1.GetPublicShareRequest + (*v1beta16.GetPublicShareByTokenRequest)(nil), // 49: cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest + (*v1beta16.ListPublicSharesRequest)(nil), // 50: cs3.sharing.link.v1beta1.ListPublicSharesRequest + (*v1beta16.UpdatePublicShareRequest)(nil), // 51: cs3.sharing.link.v1beta1.UpdatePublicShareRequest + (*v1beta17.CreateOCMShareRequest)(nil), // 52: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest + (*v1beta17.RemoveOCMShareRequest)(nil), // 53: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest + (*v1beta17.GetOCMShareRequest)(nil), // 54: cs3.sharing.ocm.v1beta1.GetOCMShareRequest + (*v1beta17.ListOCMSharesRequest)(nil), // 55: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest + (*v1beta17.UpdateOCMShareRequest)(nil), // 56: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest + (*v1beta17.ListReceivedOCMSharesRequest)(nil), // 57: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest + (*v1beta17.UpdateReceivedOCMShareRequest)(nil), // 58: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest + (*v1beta17.GetReceivedOCMShareRequest)(nil), // 59: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest + (*v1beta18.GetAppProvidersRequest)(nil), // 60: cs3.app.registry.v1beta1.GetAppProvidersRequest + (*v1beta18.ListAppProvidersRequest)(nil), // 61: cs3.app.registry.v1beta1.ListAppProvidersRequest + (*v1beta12.GetUserRequest)(nil), // 62: cs3.identity.user.v1beta1.GetUserRequest + (*v1beta12.GetUserByClaimRequest)(nil), // 63: cs3.identity.user.v1beta1.GetUserByClaimRequest + (*v1beta12.GetUserGroupsRequest)(nil), // 64: cs3.identity.user.v1beta1.GetUserGroupsRequest + (*v1beta12.IsInGroupRequest)(nil), // 65: cs3.identity.user.v1beta1.IsInGroupRequest + (*v1beta12.FindUsersRequest)(nil), // 66: cs3.identity.user.v1beta1.FindUsersRequest + (*v1beta12.FindGroupsRequest)(nil), // 67: cs3.identity.user.v1beta1.FindGroupsRequest + (*v1beta19.ListAuthProvidersRequest)(nil), // 68: cs3.auth.registry.v1beta1.ListAuthProvidersRequest + (*v1beta13.GetHomeRequest)(nil), // 69: cs3.storage.provider.v1beta1.GetHomeRequest + (*v1beta110.GenerateInviteTokenRequest)(nil), // 70: cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest + (*v1beta110.ForwardInviteRequest)(nil), // 71: cs3.ocm.invite.v1beta1.ForwardInviteRequest + (*v1beta110.AcceptInviteRequest)(nil), // 72: cs3.ocm.invite.v1beta1.AcceptInviteRequest + (*v1beta110.GetRemoteUserRequest)(nil), // 73: cs3.ocm.invite.v1beta1.GetRemoteUserRequest + (*v1beta111.IsProviderAllowedRequest)(nil), // 74: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest + (*v1beta111.GetInfoByDomainRequest)(nil), // 75: cs3.ocm.provider.v1beta1.GetInfoByDomainRequest + (*v1beta111.ListAllProvidersRequest)(nil), // 76: cs3.ocm.provider.v1beta1.ListAllProvidersRequest + (*v1beta112.CreateOCMCoreShareRequest)(nil), // 77: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest + (*v1beta113.CreateTransferRequest)(nil), // 78: cs3.tx.v1beta1.CreateTransferRequest + (*v1beta113.GetTransferStatusRequest)(nil), // 79: cs3.tx.v1beta1.GetTransferStatusRequest + (*v1beta113.CancelTransferRequest)(nil), // 80: cs3.tx.v1beta1.CancelTransferRequest + (*v1beta13.CreateContainerResponse)(nil), // 81: cs3.storage.provider.v1beta1.CreateContainerResponse + (*v1beta13.DeleteResponse)(nil), // 82: cs3.storage.provider.v1beta1.DeleteResponse + (*v1beta13.GetPathResponse)(nil), // 83: cs3.storage.provider.v1beta1.GetPathResponse + (*v1beta13.GetQuotaResponse)(nil), // 84: cs3.storage.provider.v1beta1.GetQuotaResponse + (*v1beta13.ListContainerStreamResponse)(nil), // 85: cs3.storage.provider.v1beta1.ListContainerStreamResponse + (*v1beta13.ListContainerResponse)(nil), // 86: cs3.storage.provider.v1beta1.ListContainerResponse + (*v1beta13.ListFileVersionsResponse)(nil), // 87: cs3.storage.provider.v1beta1.ListFileVersionsResponse + (*v1beta13.ListRecycleStreamResponse)(nil), // 88: cs3.storage.provider.v1beta1.ListRecycleStreamResponse + (*v1beta13.ListRecycleResponse)(nil), // 89: cs3.storage.provider.v1beta1.ListRecycleResponse + (*v1beta13.MoveResponse)(nil), // 90: cs3.storage.provider.v1beta1.MoveResponse + (*v1beta13.PurgeRecycleResponse)(nil), // 91: cs3.storage.provider.v1beta1.PurgeRecycleResponse + (*v1beta13.RestoreFileVersionResponse)(nil), // 92: cs3.storage.provider.v1beta1.RestoreFileVersionResponse + (*v1beta13.RestoreRecycleItemResponse)(nil), // 93: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse + (*v1beta13.StatResponse)(nil), // 94: cs3.storage.provider.v1beta1.StatResponse + (*v1beta13.CreateSymlinkResponse)(nil), // 95: cs3.storage.provider.v1beta1.CreateSymlinkResponse + (*v1beta13.SetArbitraryMetadataResponse)(nil), // 96: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse + (*v1beta13.UnsetArbitraryMetadataResponse)(nil), // 97: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse + (*v1beta13.CreateHomeResponse)(nil), // 98: cs3.storage.provider.v1beta1.CreateHomeResponse + (*v1beta114.OpenFileInAppProviderResponse)(nil), // 99: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse + (*v1beta14.CreateShareResponse)(nil), // 100: cs3.sharing.collaboration.v1beta1.CreateShareResponse + (*v1beta14.RemoveShareResponse)(nil), // 101: cs3.sharing.collaboration.v1beta1.RemoveShareResponse + (*v1beta14.GetShareResponse)(nil), // 102: cs3.sharing.collaboration.v1beta1.GetShareResponse + (*v1beta14.ListSharesResponse)(nil), // 103: cs3.sharing.collaboration.v1beta1.ListSharesResponse + (*v1beta14.UpdateShareResponse)(nil), // 104: cs3.sharing.collaboration.v1beta1.UpdateShareResponse + (*v1beta14.ListReceivedSharesResponse)(nil), // 105: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse + (*v1beta14.UpdateReceivedShareResponse)(nil), // 106: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse + (*v1beta14.GetReceivedShareResponse)(nil), // 107: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse + (*v1beta15.SetKeyResponse)(nil), // 108: cs3.preferences.v1beta1.SetKeyResponse + (*v1beta15.GetKeyResponse)(nil), // 109: cs3.preferences.v1beta1.GetKeyResponse + (*v1beta16.CreatePublicShareResponse)(nil), // 110: cs3.sharing.link.v1beta1.CreatePublicShareResponse + (*v1beta16.RemovePublicShareResponse)(nil), // 111: cs3.sharing.link.v1beta1.RemovePublicShareResponse + (*v1beta16.GetPublicShareResponse)(nil), // 112: cs3.sharing.link.v1beta1.GetPublicShareResponse + (*v1beta16.GetPublicShareByTokenResponse)(nil), // 113: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse + (*v1beta16.ListPublicSharesResponse)(nil), // 114: cs3.sharing.link.v1beta1.ListPublicSharesResponse + (*v1beta16.UpdatePublicShareResponse)(nil), // 115: cs3.sharing.link.v1beta1.UpdatePublicShareResponse + (*v1beta17.CreateOCMShareResponse)(nil), // 116: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse + (*v1beta17.RemoveOCMShareResponse)(nil), // 117: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse + (*v1beta17.GetOCMShareResponse)(nil), // 118: cs3.sharing.ocm.v1beta1.GetOCMShareResponse + (*v1beta17.ListOCMSharesResponse)(nil), // 119: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse + (*v1beta17.UpdateOCMShareResponse)(nil), // 120: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse + (*v1beta17.ListReceivedOCMSharesResponse)(nil), // 121: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse + (*v1beta17.UpdateReceivedOCMShareResponse)(nil), // 122: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse + (*v1beta17.GetReceivedOCMShareResponse)(nil), // 123: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse + (*v1beta18.GetAppProvidersResponse)(nil), // 124: cs3.app.registry.v1beta1.GetAppProvidersResponse + (*v1beta18.ListAppProvidersResponse)(nil), // 125: cs3.app.registry.v1beta1.ListAppProvidersResponse + (*v1beta12.GetUserResponse)(nil), // 126: cs3.identity.user.v1beta1.GetUserResponse + (*v1beta12.GetUserByClaimResponse)(nil), // 127: cs3.identity.user.v1beta1.GetUserByClaimResponse + (*v1beta12.GetUserGroupsResponse)(nil), // 128: cs3.identity.user.v1beta1.GetUserGroupsResponse + (*v1beta12.IsInGroupResponse)(nil), // 129: cs3.identity.user.v1beta1.IsInGroupResponse + (*v1beta12.FindUsersResponse)(nil), // 130: cs3.identity.user.v1beta1.FindUsersResponse + (*v1beta12.FindGroupsResponse)(nil), // 131: cs3.identity.user.v1beta1.FindGroupsResponse + (*v1beta13.GetHomeResponse)(nil), // 132: cs3.storage.provider.v1beta1.GetHomeResponse + (*v1beta110.GenerateInviteTokenResponse)(nil), // 133: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse + (*v1beta110.ForwardInviteResponse)(nil), // 134: cs3.ocm.invite.v1beta1.ForwardInviteResponse + (*v1beta110.AcceptInviteResponse)(nil), // 135: cs3.ocm.invite.v1beta1.AcceptInviteResponse + (*v1beta110.GetRemoteUserResponse)(nil), // 136: cs3.ocm.invite.v1beta1.GetRemoteUserResponse + (*v1beta111.IsProviderAllowedResponse)(nil), // 137: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse + (*v1beta111.GetInfoByDomainResponse)(nil), // 138: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse + (*v1beta111.ListAllProvidersResponse)(nil), // 139: cs3.ocm.provider.v1beta1.ListAllProvidersResponse + (*v1beta112.CreateOCMCoreShareResponse)(nil), // 140: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse + (*v1beta113.CreateTransferResponse)(nil), // 141: cs3.tx.v1beta1.CreateTransferResponse + (*v1beta113.GetTransferStatusResponse)(nil), // 142: cs3.tx.v1beta1.GetTransferStatusResponse + (*v1beta113.CancelTransferResponse)(nil), // 143: cs3.tx.v1beta1.CancelTransferResponse +} +var file_cs3_gateway_v1beta1_gateway_api_proto_depIdxs = []int32{ + 13, // 0: cs3.gateway.v1beta1.AuthenticateRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 14, // 1: cs3.gateway.v1beta1.AuthenticateResponse.status:type_name -> cs3.rpc.v1beta1.Status + 13, // 2: cs3.gateway.v1beta1.AuthenticateResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 15, // 3: cs3.gateway.v1beta1.AuthenticateResponse.user:type_name -> cs3.identity.user.v1beta1.User + 13, // 4: cs3.gateway.v1beta1.WhoAmIRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 14, // 5: cs3.gateway.v1beta1.WhoAmIResponse.status:type_name -> cs3.rpc.v1beta1.Status + 13, // 6: cs3.gateway.v1beta1.WhoAmIResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 15, // 7: cs3.gateway.v1beta1.WhoAmIResponse.user:type_name -> cs3.identity.user.v1beta1.User + 13, // 8: cs3.gateway.v1beta1.GetQuotaRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 16, // 9: cs3.gateway.v1beta1.GetQuotaRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 13, // 10: cs3.gateway.v1beta1.ListRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 16, // 11: cs3.gateway.v1beta1.ListRecycleRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 17, // 12: cs3.gateway.v1beta1.ListRecycleRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp + 17, // 13: cs3.gateway.v1beta1.ListRecycleRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp + 13, // 14: cs3.gateway.v1beta1.ListRecycleStreamRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 16, // 15: cs3.gateway.v1beta1.ListRecycleStreamRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 17, // 16: cs3.gateway.v1beta1.ListRecycleStreamRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp + 17, // 17: cs3.gateway.v1beta1.ListRecycleStreamRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp + 13, // 18: cs3.gateway.v1beta1.PurgeRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 16, // 19: cs3.gateway.v1beta1.PurgeRecycleRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 14, // 20: cs3.gateway.v1beta1.InitiateFileDownloadResponse.status:type_name -> cs3.rpc.v1beta1.Status + 13, // 21: cs3.gateway.v1beta1.InitiateFileDownloadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 18, // 22: cs3.gateway.v1beta1.InitiateFileDownloadResponse.protocols:type_name -> cs3.gateway.v1beta1.FileDownloadProtocol + 14, // 23: cs3.gateway.v1beta1.InitiateFileUploadResponse.status:type_name -> cs3.rpc.v1beta1.Status + 13, // 24: cs3.gateway.v1beta1.InitiateFileUploadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 19, // 25: cs3.gateway.v1beta1.InitiateFileUploadResponse.protocols:type_name -> cs3.gateway.v1beta1.FileUploadProtocol + 14, // 26: cs3.gateway.v1beta1.ListAuthProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status + 13, // 27: cs3.gateway.v1beta1.ListAuthProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 13, // 28: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 16, // 29: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 0, // 30: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.view_mode:type_name -> cs3.gateway.v1beta1.OpenFileInAppProviderRequest.ViewMode + 1, // 31: cs3.gateway.v1beta1.GatewayAPI.Authenticate:input_type -> cs3.gateway.v1beta1.AuthenticateRequest + 3, // 32: cs3.gateway.v1beta1.GatewayAPI.WhoAmI:input_type -> cs3.gateway.v1beta1.WhoAmIRequest + 20, // 33: cs3.gateway.v1beta1.GatewayAPI.CreateContainer:input_type -> cs3.storage.provider.v1beta1.CreateContainerRequest + 21, // 34: cs3.gateway.v1beta1.GatewayAPI.Delete:input_type -> cs3.storage.provider.v1beta1.DeleteRequest + 22, // 35: cs3.gateway.v1beta1.GatewayAPI.GetPath:input_type -> cs3.storage.provider.v1beta1.GetPathRequest + 5, // 36: cs3.gateway.v1beta1.GatewayAPI.GetQuota:input_type -> cs3.gateway.v1beta1.GetQuotaRequest + 23, // 37: cs3.gateway.v1beta1.GatewayAPI.InitiateFileDownload:input_type -> cs3.storage.provider.v1beta1.InitiateFileDownloadRequest + 24, // 38: cs3.gateway.v1beta1.GatewayAPI.InitiateFileUpload:input_type -> cs3.storage.provider.v1beta1.InitiateFileUploadRequest + 25, // 39: cs3.gateway.v1beta1.GatewayAPI.ListContainerStream:input_type -> cs3.storage.provider.v1beta1.ListContainerStreamRequest + 26, // 40: cs3.gateway.v1beta1.GatewayAPI.ListContainer:input_type -> cs3.storage.provider.v1beta1.ListContainerRequest + 27, // 41: cs3.gateway.v1beta1.GatewayAPI.ListFileVersions:input_type -> cs3.storage.provider.v1beta1.ListFileVersionsRequest + 7, // 42: cs3.gateway.v1beta1.GatewayAPI.ListRecycleStream:input_type -> cs3.gateway.v1beta1.ListRecycleStreamRequest + 6, // 43: cs3.gateway.v1beta1.GatewayAPI.ListRecycle:input_type -> cs3.gateway.v1beta1.ListRecycleRequest + 28, // 44: cs3.gateway.v1beta1.GatewayAPI.Move:input_type -> cs3.storage.provider.v1beta1.MoveRequest + 8, // 45: cs3.gateway.v1beta1.GatewayAPI.PurgeRecycle:input_type -> cs3.gateway.v1beta1.PurgeRecycleRequest + 29, // 46: cs3.gateway.v1beta1.GatewayAPI.RestoreFileVersion:input_type -> cs3.storage.provider.v1beta1.RestoreFileVersionRequest + 30, // 47: cs3.gateway.v1beta1.GatewayAPI.RestoreRecycleItem:input_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemRequest + 31, // 48: cs3.gateway.v1beta1.GatewayAPI.Stat:input_type -> cs3.storage.provider.v1beta1.StatRequest + 32, // 49: cs3.gateway.v1beta1.GatewayAPI.CreateSymlink:input_type -> cs3.storage.provider.v1beta1.CreateSymlinkRequest + 33, // 50: cs3.gateway.v1beta1.GatewayAPI.SetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest + 34, // 51: cs3.gateway.v1beta1.GatewayAPI.UnsetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest + 35, // 52: cs3.gateway.v1beta1.GatewayAPI.CreateHome:input_type -> cs3.storage.provider.v1beta1.CreateHomeRequest + 12, // 53: cs3.gateway.v1beta1.GatewayAPI.OpenFileInAppProvider:input_type -> cs3.gateway.v1beta1.OpenFileInAppProviderRequest + 36, // 54: cs3.gateway.v1beta1.GatewayAPI.CreateShare:input_type -> cs3.sharing.collaboration.v1beta1.CreateShareRequest + 37, // 55: cs3.gateway.v1beta1.GatewayAPI.RemoveShare:input_type -> cs3.sharing.collaboration.v1beta1.RemoveShareRequest + 38, // 56: cs3.gateway.v1beta1.GatewayAPI.GetShare:input_type -> cs3.sharing.collaboration.v1beta1.GetShareRequest + 39, // 57: cs3.gateway.v1beta1.GatewayAPI.ListShares:input_type -> cs3.sharing.collaboration.v1beta1.ListSharesRequest + 40, // 58: cs3.gateway.v1beta1.GatewayAPI.UpdateShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateShareRequest + 41, // 59: cs3.gateway.v1beta1.GatewayAPI.ListReceivedShares:input_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest + 42, // 60: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest + 43, // 61: cs3.gateway.v1beta1.GatewayAPI.GetReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest + 44, // 62: cs3.gateway.v1beta1.GatewayAPI.SetKey:input_type -> cs3.preferences.v1beta1.SetKeyRequest + 45, // 63: cs3.gateway.v1beta1.GatewayAPI.GetKey:input_type -> cs3.preferences.v1beta1.GetKeyRequest + 46, // 64: cs3.gateway.v1beta1.GatewayAPI.CreatePublicShare:input_type -> cs3.sharing.link.v1beta1.CreatePublicShareRequest + 47, // 65: cs3.gateway.v1beta1.GatewayAPI.RemovePublicShare:input_type -> cs3.sharing.link.v1beta1.RemovePublicShareRequest + 48, // 66: cs3.gateway.v1beta1.GatewayAPI.GetPublicShare:input_type -> cs3.sharing.link.v1beta1.GetPublicShareRequest + 49, // 67: cs3.gateway.v1beta1.GatewayAPI.GetPublicShareByToken:input_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest + 50, // 68: cs3.gateway.v1beta1.GatewayAPI.ListPublicShares:input_type -> cs3.sharing.link.v1beta1.ListPublicSharesRequest + 51, // 69: cs3.gateway.v1beta1.GatewayAPI.UpdatePublicShare:input_type -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest + 52, // 70: cs3.gateway.v1beta1.GatewayAPI.CreateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareRequest + 53, // 71: cs3.gateway.v1beta1.GatewayAPI.RemoveOCMShare:input_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest + 54, // 72: cs3.gateway.v1beta1.GatewayAPI.GetOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetOCMShareRequest + 55, // 73: cs3.gateway.v1beta1.GatewayAPI.ListOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest + 56, // 74: cs3.gateway.v1beta1.GatewayAPI.UpdateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest + 57, // 75: cs3.gateway.v1beta1.GatewayAPI.ListReceivedOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest + 58, // 76: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest + 59, // 77: cs3.gateway.v1beta1.GatewayAPI.GetReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest + 60, // 78: cs3.gateway.v1beta1.GatewayAPI.GetAppProviders:input_type -> cs3.app.registry.v1beta1.GetAppProvidersRequest + 61, // 79: cs3.gateway.v1beta1.GatewayAPI.ListAppProviders:input_type -> cs3.app.registry.v1beta1.ListAppProvidersRequest + 62, // 80: cs3.gateway.v1beta1.GatewayAPI.GetUser:input_type -> cs3.identity.user.v1beta1.GetUserRequest + 63, // 81: cs3.gateway.v1beta1.GatewayAPI.GetUserByClaim:input_type -> cs3.identity.user.v1beta1.GetUserByClaimRequest + 64, // 82: cs3.gateway.v1beta1.GatewayAPI.GetUserGroups:input_type -> cs3.identity.user.v1beta1.GetUserGroupsRequest + 65, // 83: cs3.gateway.v1beta1.GatewayAPI.IsInGroup:input_type -> cs3.identity.user.v1beta1.IsInGroupRequest + 66, // 84: cs3.gateway.v1beta1.GatewayAPI.FindUsers:input_type -> cs3.identity.user.v1beta1.FindUsersRequest + 67, // 85: cs3.gateway.v1beta1.GatewayAPI.FindGroups:input_type -> cs3.identity.user.v1beta1.FindGroupsRequest + 68, // 86: cs3.gateway.v1beta1.GatewayAPI.ListAuthProviders:input_type -> cs3.auth.registry.v1beta1.ListAuthProvidersRequest + 69, // 87: cs3.gateway.v1beta1.GatewayAPI.GetHome:input_type -> cs3.storage.provider.v1beta1.GetHomeRequest + 70, // 88: cs3.gateway.v1beta1.GatewayAPI.GenerateInviteToken:input_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest + 71, // 89: cs3.gateway.v1beta1.GatewayAPI.ForwardInvite:input_type -> cs3.ocm.invite.v1beta1.ForwardInviteRequest + 72, // 90: cs3.gateway.v1beta1.GatewayAPI.AcceptInvite:input_type -> cs3.ocm.invite.v1beta1.AcceptInviteRequest + 73, // 91: cs3.gateway.v1beta1.GatewayAPI.GetRemoteUser:input_type -> cs3.ocm.invite.v1beta1.GetRemoteUserRequest + 74, // 92: cs3.gateway.v1beta1.GatewayAPI.IsProviderAllowed:input_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedRequest + 75, // 93: cs3.gateway.v1beta1.GatewayAPI.GetInfoByDomain:input_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainRequest + 76, // 94: cs3.gateway.v1beta1.GatewayAPI.ListAllProviders:input_type -> cs3.ocm.provider.v1beta1.ListAllProvidersRequest + 77, // 95: cs3.gateway.v1beta1.GatewayAPI.CreateOCMCoreShare:input_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest + 78, // 96: cs3.gateway.v1beta1.GatewayAPI.CreateTransfer:input_type -> cs3.tx.v1beta1.CreateTransferRequest + 79, // 97: cs3.gateway.v1beta1.GatewayAPI.GetTransferStatus:input_type -> cs3.tx.v1beta1.GetTransferStatusRequest + 80, // 98: cs3.gateway.v1beta1.GatewayAPI.CancelTransfer:input_type -> cs3.tx.v1beta1.CancelTransferRequest + 2, // 99: cs3.gateway.v1beta1.GatewayAPI.Authenticate:output_type -> cs3.gateway.v1beta1.AuthenticateResponse + 4, // 100: cs3.gateway.v1beta1.GatewayAPI.WhoAmI:output_type -> cs3.gateway.v1beta1.WhoAmIResponse + 81, // 101: cs3.gateway.v1beta1.GatewayAPI.CreateContainer:output_type -> cs3.storage.provider.v1beta1.CreateContainerResponse + 82, // 102: cs3.gateway.v1beta1.GatewayAPI.Delete:output_type -> cs3.storage.provider.v1beta1.DeleteResponse + 83, // 103: cs3.gateway.v1beta1.GatewayAPI.GetPath:output_type -> cs3.storage.provider.v1beta1.GetPathResponse + 84, // 104: cs3.gateway.v1beta1.GatewayAPI.GetQuota:output_type -> cs3.storage.provider.v1beta1.GetQuotaResponse + 9, // 105: cs3.gateway.v1beta1.GatewayAPI.InitiateFileDownload:output_type -> cs3.gateway.v1beta1.InitiateFileDownloadResponse + 10, // 106: cs3.gateway.v1beta1.GatewayAPI.InitiateFileUpload:output_type -> cs3.gateway.v1beta1.InitiateFileUploadResponse + 85, // 107: cs3.gateway.v1beta1.GatewayAPI.ListContainerStream:output_type -> cs3.storage.provider.v1beta1.ListContainerStreamResponse + 86, // 108: cs3.gateway.v1beta1.GatewayAPI.ListContainer:output_type -> cs3.storage.provider.v1beta1.ListContainerResponse + 87, // 109: cs3.gateway.v1beta1.GatewayAPI.ListFileVersions:output_type -> cs3.storage.provider.v1beta1.ListFileVersionsResponse + 88, // 110: cs3.gateway.v1beta1.GatewayAPI.ListRecycleStream:output_type -> cs3.storage.provider.v1beta1.ListRecycleStreamResponse + 89, // 111: cs3.gateway.v1beta1.GatewayAPI.ListRecycle:output_type -> cs3.storage.provider.v1beta1.ListRecycleResponse + 90, // 112: cs3.gateway.v1beta1.GatewayAPI.Move:output_type -> cs3.storage.provider.v1beta1.MoveResponse + 91, // 113: cs3.gateway.v1beta1.GatewayAPI.PurgeRecycle:output_type -> cs3.storage.provider.v1beta1.PurgeRecycleResponse + 92, // 114: cs3.gateway.v1beta1.GatewayAPI.RestoreFileVersion:output_type -> cs3.storage.provider.v1beta1.RestoreFileVersionResponse + 93, // 115: cs3.gateway.v1beta1.GatewayAPI.RestoreRecycleItem:output_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemResponse + 94, // 116: cs3.gateway.v1beta1.GatewayAPI.Stat:output_type -> cs3.storage.provider.v1beta1.StatResponse + 95, // 117: cs3.gateway.v1beta1.GatewayAPI.CreateSymlink:output_type -> cs3.storage.provider.v1beta1.CreateSymlinkResponse + 96, // 118: cs3.gateway.v1beta1.GatewayAPI.SetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse + 97, // 119: cs3.gateway.v1beta1.GatewayAPI.UnsetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse + 98, // 120: cs3.gateway.v1beta1.GatewayAPI.CreateHome:output_type -> cs3.storage.provider.v1beta1.CreateHomeResponse + 99, // 121: cs3.gateway.v1beta1.GatewayAPI.OpenFileInAppProvider:output_type -> cs3.app.provider.v1beta1.OpenFileInAppProviderResponse + 100, // 122: cs3.gateway.v1beta1.GatewayAPI.CreateShare:output_type -> cs3.sharing.collaboration.v1beta1.CreateShareResponse + 101, // 123: cs3.gateway.v1beta1.GatewayAPI.RemoveShare:output_type -> cs3.sharing.collaboration.v1beta1.RemoveShareResponse + 102, // 124: cs3.gateway.v1beta1.GatewayAPI.GetShare:output_type -> cs3.sharing.collaboration.v1beta1.GetShareResponse + 103, // 125: cs3.gateway.v1beta1.GatewayAPI.ListShares:output_type -> cs3.sharing.collaboration.v1beta1.ListSharesResponse + 104, // 126: cs3.gateway.v1beta1.GatewayAPI.UpdateShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateShareResponse + 105, // 127: cs3.gateway.v1beta1.GatewayAPI.ListReceivedShares:output_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse + 106, // 128: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse + 107, // 129: cs3.gateway.v1beta1.GatewayAPI.GetReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse + 108, // 130: cs3.gateway.v1beta1.GatewayAPI.SetKey:output_type -> cs3.preferences.v1beta1.SetKeyResponse + 109, // 131: cs3.gateway.v1beta1.GatewayAPI.GetKey:output_type -> cs3.preferences.v1beta1.GetKeyResponse + 110, // 132: cs3.gateway.v1beta1.GatewayAPI.CreatePublicShare:output_type -> cs3.sharing.link.v1beta1.CreatePublicShareResponse + 111, // 133: cs3.gateway.v1beta1.GatewayAPI.RemovePublicShare:output_type -> cs3.sharing.link.v1beta1.RemovePublicShareResponse + 112, // 134: cs3.gateway.v1beta1.GatewayAPI.GetPublicShare:output_type -> cs3.sharing.link.v1beta1.GetPublicShareResponse + 113, // 135: cs3.gateway.v1beta1.GatewayAPI.GetPublicShareByToken:output_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse + 114, // 136: cs3.gateway.v1beta1.GatewayAPI.ListPublicShares:output_type -> cs3.sharing.link.v1beta1.ListPublicSharesResponse + 115, // 137: cs3.gateway.v1beta1.GatewayAPI.UpdatePublicShare:output_type -> cs3.sharing.link.v1beta1.UpdatePublicShareResponse + 116, // 138: cs3.gateway.v1beta1.GatewayAPI.CreateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareResponse + 117, // 139: cs3.gateway.v1beta1.GatewayAPI.RemoveOCMShare:output_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse + 118, // 140: cs3.gateway.v1beta1.GatewayAPI.GetOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetOCMShareResponse + 119, // 141: cs3.gateway.v1beta1.GatewayAPI.ListOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesResponse + 120, // 142: cs3.gateway.v1beta1.GatewayAPI.UpdateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse + 121, // 143: cs3.gateway.v1beta1.GatewayAPI.ListReceivedOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse + 122, // 144: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse + 123, // 145: cs3.gateway.v1beta1.GatewayAPI.GetReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse + 124, // 146: cs3.gateway.v1beta1.GatewayAPI.GetAppProviders:output_type -> cs3.app.registry.v1beta1.GetAppProvidersResponse + 125, // 147: cs3.gateway.v1beta1.GatewayAPI.ListAppProviders:output_type -> cs3.app.registry.v1beta1.ListAppProvidersResponse + 126, // 148: cs3.gateway.v1beta1.GatewayAPI.GetUser:output_type -> cs3.identity.user.v1beta1.GetUserResponse + 127, // 149: cs3.gateway.v1beta1.GatewayAPI.GetUserByClaim:output_type -> cs3.identity.user.v1beta1.GetUserByClaimResponse + 128, // 150: cs3.gateway.v1beta1.GatewayAPI.GetUserGroups:output_type -> cs3.identity.user.v1beta1.GetUserGroupsResponse + 129, // 151: cs3.gateway.v1beta1.GatewayAPI.IsInGroup:output_type -> cs3.identity.user.v1beta1.IsInGroupResponse + 130, // 152: cs3.gateway.v1beta1.GatewayAPI.FindUsers:output_type -> cs3.identity.user.v1beta1.FindUsersResponse + 131, // 153: cs3.gateway.v1beta1.GatewayAPI.FindGroups:output_type -> cs3.identity.user.v1beta1.FindGroupsResponse + 11, // 154: cs3.gateway.v1beta1.GatewayAPI.ListAuthProviders:output_type -> cs3.gateway.v1beta1.ListAuthProvidersResponse + 132, // 155: cs3.gateway.v1beta1.GatewayAPI.GetHome:output_type -> cs3.storage.provider.v1beta1.GetHomeResponse + 133, // 156: cs3.gateway.v1beta1.GatewayAPI.GenerateInviteToken:output_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse + 134, // 157: cs3.gateway.v1beta1.GatewayAPI.ForwardInvite:output_type -> cs3.ocm.invite.v1beta1.ForwardInviteResponse + 135, // 158: cs3.gateway.v1beta1.GatewayAPI.AcceptInvite:output_type -> cs3.ocm.invite.v1beta1.AcceptInviteResponse + 136, // 159: cs3.gateway.v1beta1.GatewayAPI.GetRemoteUser:output_type -> cs3.ocm.invite.v1beta1.GetRemoteUserResponse + 137, // 160: cs3.gateway.v1beta1.GatewayAPI.IsProviderAllowed:output_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedResponse + 138, // 161: cs3.gateway.v1beta1.GatewayAPI.GetInfoByDomain:output_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainResponse + 139, // 162: cs3.gateway.v1beta1.GatewayAPI.ListAllProviders:output_type -> cs3.ocm.provider.v1beta1.ListAllProvidersResponse + 140, // 163: cs3.gateway.v1beta1.GatewayAPI.CreateOCMCoreShare:output_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse + 141, // 164: cs3.gateway.v1beta1.GatewayAPI.CreateTransfer:output_type -> cs3.tx.v1beta1.CreateTransferResponse + 142, // 165: cs3.gateway.v1beta1.GatewayAPI.GetTransferStatus:output_type -> cs3.tx.v1beta1.GetTransferStatusResponse + 143, // 166: cs3.gateway.v1beta1.GatewayAPI.CancelTransfer:output_type -> cs3.tx.v1beta1.CancelTransferResponse + 99, // [99:167] is the sub-list for method output_type + 31, // [31:99] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name +} + +func init() { file_cs3_gateway_v1beta1_gateway_api_proto_init() } +func file_cs3_gateway_v1beta1_gateway_api_proto_init() { + if File_cs3_gateway_v1beta1_gateway_api_proto != nil { + return + } + file_cs3_gateway_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AuthenticateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AuthenticateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WhoAmIRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WhoAmIResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetQuotaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRecycleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRecycleStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PurgeRecycleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateFileDownloadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateFileUploadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAuthProvidersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenFileInAppProviderRequest); 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_cs3_gateway_v1beta1_gateway_api_proto_rawDesc, + NumEnums: 1, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_gateway_v1beta1_gateway_api_proto_goTypes, + DependencyIndexes: file_cs3_gateway_v1beta1_gateway_api_proto_depIdxs, + EnumInfos: file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes, + MessageInfos: file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes, + }.Build() + File_cs3_gateway_v1beta1_gateway_api_proto = out.File + file_cs3_gateway_v1beta1_gateway_api_proto_rawDesc = nil + file_cs3_gateway_v1beta1_gateway_api_proto_goTypes = nil + file_cs3_gateway_v1beta1_gateway_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// GatewayAPIClient is the client API for GatewayAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type GatewayAPIClient interface { + // Authenticates a user. + Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) + // WhoAmI returns the information for a user. + WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(ctx context.Context, in *v1beta13.CreateContainerRequest, opts ...grpc.CallOption) (*v1beta13.CreateContainerResponse, error) + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(ctx context.Context, in *v1beta13.DeleteRequest, opts ...grpc.CallOption) (*v1beta13.DeleteResponse, error) + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(ctx context.Context, in *v1beta13.GetPathRequest, opts ...grpc.CallOption) (*v1beta13.GetPathResponse, error) + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*v1beta13.GetQuotaResponse, error) + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(ctx context.Context, in *v1beta13.InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(ctx context.Context, in *v1beta13.InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(ctx context.Context, in *v1beta13.ListContainerStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListContainerStreamClient, error) + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(ctx context.Context, in *v1beta13.ListContainerRequest, opts ...grpc.CallOption) (*v1beta13.ListContainerResponse, error) + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(ctx context.Context, in *v1beta13.ListFileVersionsRequest, opts ...grpc.CallOption) (*v1beta13.ListFileVersionsResponse, error) + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListRecycleStreamClient, error) + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*v1beta13.ListRecycleResponse, error) + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(ctx context.Context, in *v1beta13.MoveRequest, opts ...grpc.CallOption) (*v1beta13.MoveResponse, error) + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*v1beta13.PurgeRecycleResponse, error) + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(ctx context.Context, in *v1beta13.RestoreFileVersionRequest, opts ...grpc.CallOption) (*v1beta13.RestoreFileVersionResponse, error) + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(ctx context.Context, in *v1beta13.RestoreRecycleItemRequest, opts ...grpc.CallOption) (*v1beta13.RestoreRecycleItemResponse, error) + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(ctx context.Context, in *v1beta13.StatRequest, opts ...grpc.CallOption) (*v1beta13.StatResponse, error) + // Creates a symlink to another resource. + CreateSymlink(ctx context.Context, in *v1beta13.CreateSymlinkRequest, opts ...grpc.CallOption) (*v1beta13.CreateSymlinkResponse, error) + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + SetArbitraryMetadata(ctx context.Context, in *v1beta13.SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.SetArbitraryMetadataResponse, error) + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(ctx context.Context, in *v1beta13.UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.UnsetArbitraryMetadataResponse, error) + // Creates the home directory for a user. + CreateHome(ctx context.Context, in *v1beta13.CreateHomeRequest, opts ...grpc.CallOption) (*v1beta13.CreateHomeResponse, error) + // Returns the App provider URL, which lets the user open a file in the correct online document editor. + OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*v1beta114.OpenFileInAppProviderResponse, error) + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(ctx context.Context, in *v1beta14.CreateShareRequest, opts ...grpc.CallOption) (*v1beta14.CreateShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(ctx context.Context, in *v1beta14.RemoveShareRequest, opts ...grpc.CallOption) (*v1beta14.RemoveShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(ctx context.Context, in *v1beta14.GetShareRequest, opts ...grpc.CallOption) (*v1beta14.GetShareResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(ctx context.Context, in *v1beta14.ListSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(ctx context.Context, in *v1beta14.UpdateShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateShareResponse, error) + // List all shares the authproviderenticated principal has received. + ListReceivedShares(ctx context.Context, in *v1beta14.ListReceivedSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListReceivedSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(ctx context.Context, in *v1beta14.UpdateReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateReceivedShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(ctx context.Context, in *v1beta14.GetReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.GetReceivedShareResponse, error) + // Maps the key-value pair. + SetKey(ctx context.Context, in *v1beta15.SetKeyRequest, opts ...grpc.CallOption) (*v1beta15.SetKeyResponse, error) + // Returns the value associated with the + // requested key. + GetKey(ctx context.Context, in *v1beta15.GetKeyRequest, opts ...grpc.CallOption) (*v1beta15.GetKeyResponse, error) + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(ctx context.Context, in *v1beta16.CreatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.CreatePublicShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(ctx context.Context, in *v1beta16.RemovePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.RemovePublicShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(ctx context.Context, in *v1beta16.GetPublicShareRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareResponse, error) + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(ctx context.Context, in *v1beta16.GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareByTokenResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(ctx context.Context, in *v1beta16.ListPublicSharesRequest, opts ...grpc.CallOption) (*v1beta16.ListPublicSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(ctx context.Context, in *v1beta16.UpdatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.UpdatePublicShareResponse, error) + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(ctx context.Context, in *v1beta17.CreateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.CreateOCMShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(ctx context.Context, in *v1beta17.RemoveOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.RemoveOCMShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(ctx context.Context, in *v1beta17.GetOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetOCMShareResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(ctx context.Context, in *v1beta17.ListOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListOCMSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(ctx context.Context, in *v1beta17.UpdateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateOCMShareResponse, error) + // List all shares the authproviderenticated principal has received. + ListReceivedOCMShares(ctx context.Context, in *v1beta17.ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListReceivedOCMSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(ctx context.Context, in *v1beta17.UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateReceivedOCMShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(ctx context.Context, in *v1beta17.GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetReceivedOCMShareResponse, error) + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(ctx context.Context, in *v1beta18.GetAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.GetAppProvidersResponse, error) + // Returns a list of the available app providers known by this registry. + ListAppProviders(ctx context.Context, in *v1beta18.ListAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.ListAppProvidersResponse, error) + // Gets the information about a user by the user id. + GetUser(ctx context.Context, in *v1beta12.GetUserRequest, opts ...grpc.CallOption) (*v1beta12.GetUserResponse, error) + // Gets the information about a user based on a specified claim. + GetUserByClaim(ctx context.Context, in *v1beta12.GetUserByClaimRequest, opts ...grpc.CallOption) (*v1beta12.GetUserByClaimResponse, error) + // Gets the groups of a user. + GetUserGroups(ctx context.Context, in *v1beta12.GetUserGroupsRequest, opts ...grpc.CallOption) (*v1beta12.GetUserGroupsResponse, error) + // Tells if the user is in a certain group. + IsInGroup(ctx context.Context, in *v1beta12.IsInGroupRequest, opts ...grpc.CallOption) (*v1beta12.IsInGroupResponse, error) + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(ctx context.Context, in *v1beta12.FindUsersRequest, opts ...grpc.CallOption) (*v1beta12.FindUsersResponse, error) + // Finds groups whose names match the specified filter. + FindGroups(ctx context.Context, in *v1beta12.FindGroupsRequest, opts ...grpc.CallOption) (*v1beta12.FindGroupsResponse, error) + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(ctx context.Context, in *v1beta19.ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) + // Returns the home path for the given authenticated user. + // When a user has access to multiple storage providers, one of them is the home. + GetHome(ctx context.Context, in *v1beta13.GetHomeRequest, opts ...grpc.CallOption) (*v1beta13.GetHomeResponse, error) + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(ctx context.Context, in *v1beta110.GenerateInviteTokenRequest, opts ...grpc.CallOption) (*v1beta110.GenerateInviteTokenResponse, error) + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(ctx context.Context, in *v1beta110.ForwardInviteRequest, opts ...grpc.CallOption) (*v1beta110.ForwardInviteResponse, error) + // Completes an invitation acceptance. + AcceptInvite(ctx context.Context, in *v1beta110.AcceptInviteRequest, opts ...grpc.CallOption) (*v1beta110.AcceptInviteResponse, error) + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(ctx context.Context, in *v1beta110.GetRemoteUserRequest, opts ...grpc.CallOption) (*v1beta110.GetRemoteUserResponse, error) + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(ctx context.Context, in *v1beta111.IsProviderAllowedRequest, opts ...grpc.CallOption) (*v1beta111.IsProviderAllowedResponse, error) + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(ctx context.Context, in *v1beta111.GetInfoByDomainRequest, opts ...grpc.CallOption) (*v1beta111.GetInfoByDomainResponse, error) + // Get the information of all the providers registered in the mesh. + ListAllProviders(ctx context.Context, in *v1beta111.ListAllProvidersRequest, opts ...grpc.CallOption) (*v1beta111.ListAllProvidersResponse, error) + // Creates a new ocm share. + CreateOCMCoreShare(ctx context.Context, in *v1beta112.CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*v1beta112.CreateOCMCoreShareResponse, error) + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(ctx context.Context, in *v1beta113.CreateTransferRequest, opts ...grpc.CallOption) (*v1beta113.CreateTransferResponse, error) + // Requests a transfer status. + GetTransferStatus(ctx context.Context, in *v1beta113.GetTransferStatusRequest, opts ...grpc.CallOption) (*v1beta113.GetTransferStatusResponse, error) + // Requests to cancel a transfer. + CancelTransfer(ctx context.Context, in *v1beta113.CancelTransferRequest, opts ...grpc.CallOption) (*v1beta113.CancelTransferResponse, error) +} + +type gatewayAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewGatewayAPIClient(cc grpc.ClientConnInterface) GatewayAPIClient { + return &gatewayAPIClient{cc} +} + +func (c *gatewayAPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { + out := new(AuthenticateResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Authenticate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) { + out := new(WhoAmIResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/WhoAmI", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreateContainer(ctx context.Context, in *v1beta13.CreateContainerRequest, opts ...grpc.CallOption) (*v1beta13.CreateContainerResponse, error) { + out := new(v1beta13.CreateContainerResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateContainer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) Delete(ctx context.Context, in *v1beta13.DeleteRequest, opts ...grpc.CallOption) (*v1beta13.DeleteResponse, error) { + out := new(v1beta13.DeleteResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetPath(ctx context.Context, in *v1beta13.GetPathRequest, opts ...grpc.CallOption) (*v1beta13.GetPathResponse, error) { + out := new(v1beta13.GetPathResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetPath", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*v1beta13.GetQuotaResponse, error) { + out := new(v1beta13.GetQuotaResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetQuota", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) InitiateFileDownload(ctx context.Context, in *v1beta13.InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) { + out := new(InitiateFileDownloadResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileDownload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) InitiateFileUpload(ctx context.Context, in *v1beta13.InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) { + out := new(InitiateFileUploadResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileUpload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListContainerStream(ctx context.Context, in *v1beta13.ListContainerStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListContainerStreamClient, error) { + stream, err := c.cc.NewStream(ctx, &_GatewayAPI_serviceDesc.Streams[0], "/cs3.gateway.v1beta1.GatewayAPI/ListContainerStream", opts...) + if err != nil { + return nil, err + } + x := &gatewayAPIListContainerStreamClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type GatewayAPI_ListContainerStreamClient interface { + Recv() (*v1beta13.ListContainerStreamResponse, error) + grpc.ClientStream +} + +type gatewayAPIListContainerStreamClient struct { + grpc.ClientStream +} + +func (x *gatewayAPIListContainerStreamClient) Recv() (*v1beta13.ListContainerStreamResponse, error) { + m := new(v1beta13.ListContainerStreamResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *gatewayAPIClient) ListContainer(ctx context.Context, in *v1beta13.ListContainerRequest, opts ...grpc.CallOption) (*v1beta13.ListContainerResponse, error) { + out := new(v1beta13.ListContainerResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListContainer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListFileVersions(ctx context.Context, in *v1beta13.ListFileVersionsRequest, opts ...grpc.CallOption) (*v1beta13.ListFileVersionsResponse, error) { + out := new(v1beta13.ListFileVersionsResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListFileVersions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListRecycleStreamClient, error) { + stream, err := c.cc.NewStream(ctx, &_GatewayAPI_serviceDesc.Streams[1], "/cs3.gateway.v1beta1.GatewayAPI/ListRecycleStream", opts...) + if err != nil { + return nil, err + } + x := &gatewayAPIListRecycleStreamClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type GatewayAPI_ListRecycleStreamClient interface { + Recv() (*v1beta13.ListRecycleStreamResponse, error) + grpc.ClientStream +} + +type gatewayAPIListRecycleStreamClient struct { + grpc.ClientStream +} + +func (x *gatewayAPIListRecycleStreamClient) Recv() (*v1beta13.ListRecycleStreamResponse, error) { + m := new(v1beta13.ListRecycleStreamResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *gatewayAPIClient) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*v1beta13.ListRecycleResponse, error) { + out := new(v1beta13.ListRecycleResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListRecycle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) Move(ctx context.Context, in *v1beta13.MoveRequest, opts ...grpc.CallOption) (*v1beta13.MoveResponse, error) { + out := new(v1beta13.MoveResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Move", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*v1beta13.PurgeRecycleResponse, error) { + out := new(v1beta13.PurgeRecycleResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/PurgeRecycle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) RestoreFileVersion(ctx context.Context, in *v1beta13.RestoreFileVersionRequest, opts ...grpc.CallOption) (*v1beta13.RestoreFileVersionResponse, error) { + out := new(v1beta13.RestoreFileVersionResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RestoreFileVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) RestoreRecycleItem(ctx context.Context, in *v1beta13.RestoreRecycleItemRequest, opts ...grpc.CallOption) (*v1beta13.RestoreRecycleItemResponse, error) { + out := new(v1beta13.RestoreRecycleItemResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RestoreRecycleItem", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) Stat(ctx context.Context, in *v1beta13.StatRequest, opts ...grpc.CallOption) (*v1beta13.StatResponse, error) { + out := new(v1beta13.StatResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Stat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreateSymlink(ctx context.Context, in *v1beta13.CreateSymlinkRequest, opts ...grpc.CallOption) (*v1beta13.CreateSymlinkResponse, error) { + out := new(v1beta13.CreateSymlinkResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateSymlink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) SetArbitraryMetadata(ctx context.Context, in *v1beta13.SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.SetArbitraryMetadataResponse, error) { + out := new(v1beta13.SetArbitraryMetadataResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/SetArbitraryMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) UnsetArbitraryMetadata(ctx context.Context, in *v1beta13.UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.UnsetArbitraryMetadataResponse, error) { + out := new(v1beta13.UnsetArbitraryMetadataResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UnsetArbitraryMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreateHome(ctx context.Context, in *v1beta13.CreateHomeRequest, opts ...grpc.CallOption) (*v1beta13.CreateHomeResponse, error) { + out := new(v1beta13.CreateHomeResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateHome", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*v1beta114.OpenFileInAppProviderResponse, error) { + out := new(v1beta114.OpenFileInAppProviderResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/OpenFileInAppProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreateShare(ctx context.Context, in *v1beta14.CreateShareRequest, opts ...grpc.CallOption) (*v1beta14.CreateShareResponse, error) { + out := new(v1beta14.CreateShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) RemoveShare(ctx context.Context, in *v1beta14.RemoveShareRequest, opts ...grpc.CallOption) (*v1beta14.RemoveShareResponse, error) { + out := new(v1beta14.RemoveShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RemoveShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetShare(ctx context.Context, in *v1beta14.GetShareRequest, opts ...grpc.CallOption) (*v1beta14.GetShareResponse, error) { + out := new(v1beta14.GetShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListShares(ctx context.Context, in *v1beta14.ListSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListSharesResponse, error) { + out := new(v1beta14.ListSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) UpdateShare(ctx context.Context, in *v1beta14.UpdateShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateShareResponse, error) { + out := new(v1beta14.UpdateShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListReceivedShares(ctx context.Context, in *v1beta14.ListReceivedSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListReceivedSharesResponse, error) { + out := new(v1beta14.ListReceivedSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) UpdateReceivedShare(ctx context.Context, in *v1beta14.UpdateReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateReceivedShareResponse, error) { + out := new(v1beta14.UpdateReceivedShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetReceivedShare(ctx context.Context, in *v1beta14.GetReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.GetReceivedShareResponse, error) { + out := new(v1beta14.GetReceivedShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) SetKey(ctx context.Context, in *v1beta15.SetKeyRequest, opts ...grpc.CallOption) (*v1beta15.SetKeyResponse, error) { + out := new(v1beta15.SetKeyResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/SetKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetKey(ctx context.Context, in *v1beta15.GetKeyRequest, opts ...grpc.CallOption) (*v1beta15.GetKeyResponse, error) { + out := new(v1beta15.GetKeyResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreatePublicShare(ctx context.Context, in *v1beta16.CreatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.CreatePublicShareResponse, error) { + out := new(v1beta16.CreatePublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreatePublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) RemovePublicShare(ctx context.Context, in *v1beta16.RemovePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.RemovePublicShareResponse, error) { + out := new(v1beta16.RemovePublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RemovePublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetPublicShare(ctx context.Context, in *v1beta16.GetPublicShareRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareResponse, error) { + out := new(v1beta16.GetPublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetPublicShareByToken(ctx context.Context, in *v1beta16.GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareByTokenResponse, error) { + out := new(v1beta16.GetPublicShareByTokenResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShareByToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListPublicShares(ctx context.Context, in *v1beta16.ListPublicSharesRequest, opts ...grpc.CallOption) (*v1beta16.ListPublicSharesResponse, error) { + out := new(v1beta16.ListPublicSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListPublicShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) UpdatePublicShare(ctx context.Context, in *v1beta16.UpdatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.UpdatePublicShareResponse, error) { + out := new(v1beta16.UpdatePublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdatePublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreateOCMShare(ctx context.Context, in *v1beta17.CreateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.CreateOCMShareResponse, error) { + out := new(v1beta17.CreateOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) RemoveOCMShare(ctx context.Context, in *v1beta17.RemoveOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.RemoveOCMShareResponse, error) { + out := new(v1beta17.RemoveOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RemoveOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetOCMShare(ctx context.Context, in *v1beta17.GetOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetOCMShareResponse, error) { + out := new(v1beta17.GetOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListOCMShares(ctx context.Context, in *v1beta17.ListOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListOCMSharesResponse, error) { + out := new(v1beta17.ListOCMSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListOCMShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) UpdateOCMShare(ctx context.Context, in *v1beta17.UpdateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateOCMShareResponse, error) { + out := new(v1beta17.UpdateOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListReceivedOCMShares(ctx context.Context, in *v1beta17.ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListReceivedOCMSharesResponse, error) { + out := new(v1beta17.ListReceivedOCMSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) UpdateReceivedOCMShare(ctx context.Context, in *v1beta17.UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateReceivedOCMShareResponse, error) { + out := new(v1beta17.UpdateReceivedOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetReceivedOCMShare(ctx context.Context, in *v1beta17.GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetReceivedOCMShareResponse, error) { + out := new(v1beta17.GetReceivedOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetAppProviders(ctx context.Context, in *v1beta18.GetAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.GetAppProvidersResponse, error) { + out := new(v1beta18.GetAppProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetAppProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListAppProviders(ctx context.Context, in *v1beta18.ListAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.ListAppProvidersResponse, error) { + out := new(v1beta18.ListAppProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListAppProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetUser(ctx context.Context, in *v1beta12.GetUserRequest, opts ...grpc.CallOption) (*v1beta12.GetUserResponse, error) { + out := new(v1beta12.GetUserResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetUserByClaim(ctx context.Context, in *v1beta12.GetUserByClaimRequest, opts ...grpc.CallOption) (*v1beta12.GetUserByClaimResponse, error) { + out := new(v1beta12.GetUserByClaimResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetUserByClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetUserGroups(ctx context.Context, in *v1beta12.GetUserGroupsRequest, opts ...grpc.CallOption) (*v1beta12.GetUserGroupsResponse, error) { + out := new(v1beta12.GetUserGroupsResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetUserGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) IsInGroup(ctx context.Context, in *v1beta12.IsInGroupRequest, opts ...grpc.CallOption) (*v1beta12.IsInGroupResponse, error) { + out := new(v1beta12.IsInGroupResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/IsInGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) FindUsers(ctx context.Context, in *v1beta12.FindUsersRequest, opts ...grpc.CallOption) (*v1beta12.FindUsersResponse, error) { + out := new(v1beta12.FindUsersResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/FindUsers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) FindGroups(ctx context.Context, in *v1beta12.FindGroupsRequest, opts ...grpc.CallOption) (*v1beta12.FindGroupsResponse, error) { + out := new(v1beta12.FindGroupsResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/FindGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListAuthProviders(ctx context.Context, in *v1beta19.ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) { + out := new(ListAuthProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListAuthProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetHome(ctx context.Context, in *v1beta13.GetHomeRequest, opts ...grpc.CallOption) (*v1beta13.GetHomeResponse, error) { + out := new(v1beta13.GetHomeResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetHome", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GenerateInviteToken(ctx context.Context, in *v1beta110.GenerateInviteTokenRequest, opts ...grpc.CallOption) (*v1beta110.GenerateInviteTokenResponse, error) { + out := new(v1beta110.GenerateInviteTokenResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GenerateInviteToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ForwardInvite(ctx context.Context, in *v1beta110.ForwardInviteRequest, opts ...grpc.CallOption) (*v1beta110.ForwardInviteResponse, error) { + out := new(v1beta110.ForwardInviteResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ForwardInvite", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) AcceptInvite(ctx context.Context, in *v1beta110.AcceptInviteRequest, opts ...grpc.CallOption) (*v1beta110.AcceptInviteResponse, error) { + out := new(v1beta110.AcceptInviteResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/AcceptInvite", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetRemoteUser(ctx context.Context, in *v1beta110.GetRemoteUserRequest, opts ...grpc.CallOption) (*v1beta110.GetRemoteUserResponse, error) { + out := new(v1beta110.GetRemoteUserResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetRemoteUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) IsProviderAllowed(ctx context.Context, in *v1beta111.IsProviderAllowedRequest, opts ...grpc.CallOption) (*v1beta111.IsProviderAllowedResponse, error) { + out := new(v1beta111.IsProviderAllowedResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/IsProviderAllowed", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetInfoByDomain(ctx context.Context, in *v1beta111.GetInfoByDomainRequest, opts ...grpc.CallOption) (*v1beta111.GetInfoByDomainResponse, error) { + out := new(v1beta111.GetInfoByDomainResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetInfoByDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListAllProviders(ctx context.Context, in *v1beta111.ListAllProvidersRequest, opts ...grpc.CallOption) (*v1beta111.ListAllProvidersResponse, error) { + out := new(v1beta111.ListAllProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListAllProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreateOCMCoreShare(ctx context.Context, in *v1beta112.CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*v1beta112.CreateOCMCoreShareResponse, error) { + out := new(v1beta112.CreateOCMCoreShareResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMCoreShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CreateTransfer(ctx context.Context, in *v1beta113.CreateTransferRequest, opts ...grpc.CallOption) (*v1beta113.CreateTransferResponse, error) { + out := new(v1beta113.CreateTransferResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateTransfer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) GetTransferStatus(ctx context.Context, in *v1beta113.GetTransferStatusRequest, opts ...grpc.CallOption) (*v1beta113.GetTransferStatusResponse, error) { + out := new(v1beta113.GetTransferStatusResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetTransferStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) CancelTransfer(ctx context.Context, in *v1beta113.CancelTransferRequest, opts ...grpc.CallOption) (*v1beta113.CancelTransferResponse, error) { + out := new(v1beta113.CancelTransferResponse) + err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CancelTransfer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// GatewayAPIServer is the server API for GatewayAPI service. +type GatewayAPIServer interface { + // Authenticates a user. + Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) + // WhoAmI returns the information for a user. + WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(context.Context, *v1beta13.CreateContainerRequest) (*v1beta13.CreateContainerResponse, error) + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(context.Context, *v1beta13.DeleteRequest) (*v1beta13.DeleteResponse, error) + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(context.Context, *v1beta13.GetPathRequest) (*v1beta13.GetPathResponse, error) + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(context.Context, *GetQuotaRequest) (*v1beta13.GetQuotaResponse, error) + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(context.Context, *v1beta13.InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(context.Context, *v1beta13.InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(*v1beta13.ListContainerStreamRequest, GatewayAPI_ListContainerStreamServer) error + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(context.Context, *v1beta13.ListContainerRequest) (*v1beta13.ListContainerResponse, error) + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(context.Context, *v1beta13.ListFileVersionsRequest) (*v1beta13.ListFileVersionsResponse, error) + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(*ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamServer) error + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(context.Context, *ListRecycleRequest) (*v1beta13.ListRecycleResponse, error) + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(context.Context, *v1beta13.MoveRequest) (*v1beta13.MoveResponse, error) + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(context.Context, *PurgeRecycleRequest) (*v1beta13.PurgeRecycleResponse, error) + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(context.Context, *v1beta13.RestoreFileVersionRequest) (*v1beta13.RestoreFileVersionResponse, error) + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(context.Context, *v1beta13.RestoreRecycleItemRequest) (*v1beta13.RestoreRecycleItemResponse, error) + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(context.Context, *v1beta13.StatRequest) (*v1beta13.StatResponse, error) + // Creates a symlink to another resource. + CreateSymlink(context.Context, *v1beta13.CreateSymlinkRequest) (*v1beta13.CreateSymlinkResponse, error) + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + SetArbitraryMetadata(context.Context, *v1beta13.SetArbitraryMetadataRequest) (*v1beta13.SetArbitraryMetadataResponse, error) + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(context.Context, *v1beta13.UnsetArbitraryMetadataRequest) (*v1beta13.UnsetArbitraryMetadataResponse, error) + // Creates the home directory for a user. + CreateHome(context.Context, *v1beta13.CreateHomeRequest) (*v1beta13.CreateHomeResponse, error) + // Returns the App provider URL, which lets the user open a file in the correct online document editor. + OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*v1beta114.OpenFileInAppProviderResponse, error) + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(context.Context, *v1beta14.CreateShareRequest) (*v1beta14.CreateShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(context.Context, *v1beta14.RemoveShareRequest) (*v1beta14.RemoveShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(context.Context, *v1beta14.GetShareRequest) (*v1beta14.GetShareResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(context.Context, *v1beta14.ListSharesRequest) (*v1beta14.ListSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(context.Context, *v1beta14.UpdateShareRequest) (*v1beta14.UpdateShareResponse, error) + // List all shares the authproviderenticated principal has received. + ListReceivedShares(context.Context, *v1beta14.ListReceivedSharesRequest) (*v1beta14.ListReceivedSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(context.Context, *v1beta14.UpdateReceivedShareRequest) (*v1beta14.UpdateReceivedShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(context.Context, *v1beta14.GetReceivedShareRequest) (*v1beta14.GetReceivedShareResponse, error) + // Maps the key-value pair. + SetKey(context.Context, *v1beta15.SetKeyRequest) (*v1beta15.SetKeyResponse, error) + // Returns the value associated with the + // requested key. + GetKey(context.Context, *v1beta15.GetKeyRequest) (*v1beta15.GetKeyResponse, error) + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(context.Context, *v1beta16.CreatePublicShareRequest) (*v1beta16.CreatePublicShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(context.Context, *v1beta16.RemovePublicShareRequest) (*v1beta16.RemovePublicShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(context.Context, *v1beta16.GetPublicShareRequest) (*v1beta16.GetPublicShareResponse, error) + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(context.Context, *v1beta16.GetPublicShareByTokenRequest) (*v1beta16.GetPublicShareByTokenResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(context.Context, *v1beta16.ListPublicSharesRequest) (*v1beta16.ListPublicSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(context.Context, *v1beta16.UpdatePublicShareRequest) (*v1beta16.UpdatePublicShareResponse, error) + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(context.Context, *v1beta17.CreateOCMShareRequest) (*v1beta17.CreateOCMShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(context.Context, *v1beta17.RemoveOCMShareRequest) (*v1beta17.RemoveOCMShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(context.Context, *v1beta17.GetOCMShareRequest) (*v1beta17.GetOCMShareResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(context.Context, *v1beta17.ListOCMSharesRequest) (*v1beta17.ListOCMSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(context.Context, *v1beta17.UpdateOCMShareRequest) (*v1beta17.UpdateOCMShareResponse, error) + // List all shares the authproviderenticated principal has received. + ListReceivedOCMShares(context.Context, *v1beta17.ListReceivedOCMSharesRequest) (*v1beta17.ListReceivedOCMSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(context.Context, *v1beta17.UpdateReceivedOCMShareRequest) (*v1beta17.UpdateReceivedOCMShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(context.Context, *v1beta17.GetReceivedOCMShareRequest) (*v1beta17.GetReceivedOCMShareResponse, error) + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(context.Context, *v1beta18.GetAppProvidersRequest) (*v1beta18.GetAppProvidersResponse, error) + // Returns a list of the available app providers known by this registry. + ListAppProviders(context.Context, *v1beta18.ListAppProvidersRequest) (*v1beta18.ListAppProvidersResponse, error) + // Gets the information about a user by the user id. + GetUser(context.Context, *v1beta12.GetUserRequest) (*v1beta12.GetUserResponse, error) + // Gets the information about a user based on a specified claim. + GetUserByClaim(context.Context, *v1beta12.GetUserByClaimRequest) (*v1beta12.GetUserByClaimResponse, error) + // Gets the groups of a user. + GetUserGroups(context.Context, *v1beta12.GetUserGroupsRequest) (*v1beta12.GetUserGroupsResponse, error) + // Tells if the user is in a certain group. + IsInGroup(context.Context, *v1beta12.IsInGroupRequest) (*v1beta12.IsInGroupResponse, error) + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(context.Context, *v1beta12.FindUsersRequest) (*v1beta12.FindUsersResponse, error) + // Finds groups whose names match the specified filter. + FindGroups(context.Context, *v1beta12.FindGroupsRequest) (*v1beta12.FindGroupsResponse, error) + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(context.Context, *v1beta19.ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) + // Returns the home path for the given authenticated user. + // When a user has access to multiple storage providers, one of them is the home. + GetHome(context.Context, *v1beta13.GetHomeRequest) (*v1beta13.GetHomeResponse, error) + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(context.Context, *v1beta110.GenerateInviteTokenRequest) (*v1beta110.GenerateInviteTokenResponse, error) + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(context.Context, *v1beta110.ForwardInviteRequest) (*v1beta110.ForwardInviteResponse, error) + // Completes an invitation acceptance. + AcceptInvite(context.Context, *v1beta110.AcceptInviteRequest) (*v1beta110.AcceptInviteResponse, error) + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(context.Context, *v1beta110.GetRemoteUserRequest) (*v1beta110.GetRemoteUserResponse, error) + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(context.Context, *v1beta111.IsProviderAllowedRequest) (*v1beta111.IsProviderAllowedResponse, error) + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(context.Context, *v1beta111.GetInfoByDomainRequest) (*v1beta111.GetInfoByDomainResponse, error) + // Get the information of all the providers registered in the mesh. + ListAllProviders(context.Context, *v1beta111.ListAllProvidersRequest) (*v1beta111.ListAllProvidersResponse, error) + // Creates a new ocm share. + CreateOCMCoreShare(context.Context, *v1beta112.CreateOCMCoreShareRequest) (*v1beta112.CreateOCMCoreShareResponse, error) + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(context.Context, *v1beta113.CreateTransferRequest) (*v1beta113.CreateTransferResponse, error) + // Requests a transfer status. + GetTransferStatus(context.Context, *v1beta113.GetTransferStatusRequest) (*v1beta113.GetTransferStatusResponse, error) + // Requests to cancel a transfer. + CancelTransfer(context.Context, *v1beta113.CancelTransferRequest) (*v1beta113.CancelTransferResponse, error) +} + +// UnimplementedGatewayAPIServer can be embedded to have forward compatible implementations. +type UnimplementedGatewayAPIServer struct { +} + +func (*UnimplementedGatewayAPIServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented") +} +func (*UnimplementedGatewayAPIServer) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WhoAmI not implemented") +} +func (*UnimplementedGatewayAPIServer) CreateContainer(context.Context, *v1beta13.CreateContainerRequest) (*v1beta13.CreateContainerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateContainer not implemented") +} +func (*UnimplementedGatewayAPIServer) Delete(context.Context, *v1beta13.DeleteRequest) (*v1beta13.DeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedGatewayAPIServer) GetPath(context.Context, *v1beta13.GetPathRequest) (*v1beta13.GetPathResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPath not implemented") +} +func (*UnimplementedGatewayAPIServer) GetQuota(context.Context, *GetQuotaRequest) (*v1beta13.GetQuotaResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetQuota not implemented") +} +func (*UnimplementedGatewayAPIServer) InitiateFileDownload(context.Context, *v1beta13.InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InitiateFileDownload not implemented") +} +func (*UnimplementedGatewayAPIServer) InitiateFileUpload(context.Context, *v1beta13.InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InitiateFileUpload not implemented") +} +func (*UnimplementedGatewayAPIServer) ListContainerStream(*v1beta13.ListContainerStreamRequest, GatewayAPI_ListContainerStreamServer) error { + return status.Errorf(codes.Unimplemented, "method ListContainerStream not implemented") +} +func (*UnimplementedGatewayAPIServer) ListContainer(context.Context, *v1beta13.ListContainerRequest) (*v1beta13.ListContainerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListContainer not implemented") +} +func (*UnimplementedGatewayAPIServer) ListFileVersions(context.Context, *v1beta13.ListFileVersionsRequest) (*v1beta13.ListFileVersionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListFileVersions not implemented") +} +func (*UnimplementedGatewayAPIServer) ListRecycleStream(*ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamServer) error { + return status.Errorf(codes.Unimplemented, "method ListRecycleStream not implemented") +} +func (*UnimplementedGatewayAPIServer) ListRecycle(context.Context, *ListRecycleRequest) (*v1beta13.ListRecycleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListRecycle not implemented") +} +func (*UnimplementedGatewayAPIServer) Move(context.Context, *v1beta13.MoveRequest) (*v1beta13.MoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") +} +func (*UnimplementedGatewayAPIServer) PurgeRecycle(context.Context, *PurgeRecycleRequest) (*v1beta13.PurgeRecycleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeRecycle not implemented") +} +func (*UnimplementedGatewayAPIServer) RestoreFileVersion(context.Context, *v1beta13.RestoreFileVersionRequest) (*v1beta13.RestoreFileVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestoreFileVersion not implemented") +} +func (*UnimplementedGatewayAPIServer) RestoreRecycleItem(context.Context, *v1beta13.RestoreRecycleItemRequest) (*v1beta13.RestoreRecycleItemResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestoreRecycleItem not implemented") +} +func (*UnimplementedGatewayAPIServer) Stat(context.Context, *v1beta13.StatRequest) (*v1beta13.StatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") +} +func (*UnimplementedGatewayAPIServer) CreateSymlink(context.Context, *v1beta13.CreateSymlinkRequest) (*v1beta13.CreateSymlinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSymlink not implemented") +} +func (*UnimplementedGatewayAPIServer) SetArbitraryMetadata(context.Context, *v1beta13.SetArbitraryMetadataRequest) (*v1beta13.SetArbitraryMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetArbitraryMetadata not implemented") +} +func (*UnimplementedGatewayAPIServer) UnsetArbitraryMetadata(context.Context, *v1beta13.UnsetArbitraryMetadataRequest) (*v1beta13.UnsetArbitraryMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnsetArbitraryMetadata not implemented") +} +func (*UnimplementedGatewayAPIServer) CreateHome(context.Context, *v1beta13.CreateHomeRequest) (*v1beta13.CreateHomeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateHome not implemented") +} +func (*UnimplementedGatewayAPIServer) OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*v1beta114.OpenFileInAppProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenFileInAppProvider not implemented") +} +func (*UnimplementedGatewayAPIServer) CreateShare(context.Context, *v1beta14.CreateShareRequest) (*v1beta14.CreateShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateShare not implemented") +} +func (*UnimplementedGatewayAPIServer) RemoveShare(context.Context, *v1beta14.RemoveShareRequest) (*v1beta14.RemoveShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveShare not implemented") +} +func (*UnimplementedGatewayAPIServer) GetShare(context.Context, *v1beta14.GetShareRequest) (*v1beta14.GetShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetShare not implemented") +} +func (*UnimplementedGatewayAPIServer) ListShares(context.Context, *v1beta14.ListSharesRequest) (*v1beta14.ListSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListShares not implemented") +} +func (*UnimplementedGatewayAPIServer) UpdateShare(context.Context, *v1beta14.UpdateShareRequest) (*v1beta14.UpdateShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateShare not implemented") +} +func (*UnimplementedGatewayAPIServer) ListReceivedShares(context.Context, *v1beta14.ListReceivedSharesRequest) (*v1beta14.ListReceivedSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListReceivedShares not implemented") +} +func (*UnimplementedGatewayAPIServer) UpdateReceivedShare(context.Context, *v1beta14.UpdateReceivedShareRequest) (*v1beta14.UpdateReceivedShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedShare not implemented") +} +func (*UnimplementedGatewayAPIServer) GetReceivedShare(context.Context, *v1beta14.GetReceivedShareRequest) (*v1beta14.GetReceivedShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetReceivedShare not implemented") +} +func (*UnimplementedGatewayAPIServer) SetKey(context.Context, *v1beta15.SetKeyRequest) (*v1beta15.SetKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetKey not implemented") +} +func (*UnimplementedGatewayAPIServer) GetKey(context.Context, *v1beta15.GetKeyRequest) (*v1beta15.GetKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented") +} +func (*UnimplementedGatewayAPIServer) CreatePublicShare(context.Context, *v1beta16.CreatePublicShareRequest) (*v1beta16.CreatePublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePublicShare not implemented") +} +func (*UnimplementedGatewayAPIServer) RemovePublicShare(context.Context, *v1beta16.RemovePublicShareRequest) (*v1beta16.RemovePublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemovePublicShare not implemented") +} +func (*UnimplementedGatewayAPIServer) GetPublicShare(context.Context, *v1beta16.GetPublicShareRequest) (*v1beta16.GetPublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPublicShare not implemented") +} +func (*UnimplementedGatewayAPIServer) GetPublicShareByToken(context.Context, *v1beta16.GetPublicShareByTokenRequest) (*v1beta16.GetPublicShareByTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPublicShareByToken not implemented") +} +func (*UnimplementedGatewayAPIServer) ListPublicShares(context.Context, *v1beta16.ListPublicSharesRequest) (*v1beta16.ListPublicSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPublicShares not implemented") +} +func (*UnimplementedGatewayAPIServer) UpdatePublicShare(context.Context, *v1beta16.UpdatePublicShareRequest) (*v1beta16.UpdatePublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePublicShare not implemented") +} +func (*UnimplementedGatewayAPIServer) CreateOCMShare(context.Context, *v1beta17.CreateOCMShareRequest) (*v1beta17.CreateOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOCMShare not implemented") +} +func (*UnimplementedGatewayAPIServer) RemoveOCMShare(context.Context, *v1beta17.RemoveOCMShareRequest) (*v1beta17.RemoveOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveOCMShare not implemented") +} +func (*UnimplementedGatewayAPIServer) GetOCMShare(context.Context, *v1beta17.GetOCMShareRequest) (*v1beta17.GetOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOCMShare not implemented") +} +func (*UnimplementedGatewayAPIServer) ListOCMShares(context.Context, *v1beta17.ListOCMSharesRequest) (*v1beta17.ListOCMSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOCMShares not implemented") +} +func (*UnimplementedGatewayAPIServer) UpdateOCMShare(context.Context, *v1beta17.UpdateOCMShareRequest) (*v1beta17.UpdateOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOCMShare not implemented") +} +func (*UnimplementedGatewayAPIServer) ListReceivedOCMShares(context.Context, *v1beta17.ListReceivedOCMSharesRequest) (*v1beta17.ListReceivedOCMSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListReceivedOCMShares not implemented") +} +func (*UnimplementedGatewayAPIServer) UpdateReceivedOCMShare(context.Context, *v1beta17.UpdateReceivedOCMShareRequest) (*v1beta17.UpdateReceivedOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedOCMShare not implemented") +} +func (*UnimplementedGatewayAPIServer) GetReceivedOCMShare(context.Context, *v1beta17.GetReceivedOCMShareRequest) (*v1beta17.GetReceivedOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetReceivedOCMShare not implemented") +} +func (*UnimplementedGatewayAPIServer) GetAppProviders(context.Context, *v1beta18.GetAppProvidersRequest) (*v1beta18.GetAppProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAppProviders not implemented") +} +func (*UnimplementedGatewayAPIServer) ListAppProviders(context.Context, *v1beta18.ListAppProvidersRequest) (*v1beta18.ListAppProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAppProviders not implemented") +} +func (*UnimplementedGatewayAPIServer) GetUser(context.Context, *v1beta12.GetUserRequest) (*v1beta12.GetUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") +} +func (*UnimplementedGatewayAPIServer) GetUserByClaim(context.Context, *v1beta12.GetUserByClaimRequest) (*v1beta12.GetUserByClaimResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserByClaim not implemented") +} +func (*UnimplementedGatewayAPIServer) GetUserGroups(context.Context, *v1beta12.GetUserGroupsRequest) (*v1beta12.GetUserGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented") +} +func (*UnimplementedGatewayAPIServer) IsInGroup(context.Context, *v1beta12.IsInGroupRequest) (*v1beta12.IsInGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsInGroup not implemented") +} +func (*UnimplementedGatewayAPIServer) FindUsers(context.Context, *v1beta12.FindUsersRequest) (*v1beta12.FindUsersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindUsers not implemented") +} +func (*UnimplementedGatewayAPIServer) FindGroups(context.Context, *v1beta12.FindGroupsRequest) (*v1beta12.FindGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindGroups not implemented") +} +func (*UnimplementedGatewayAPIServer) ListAuthProviders(context.Context, *v1beta19.ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAuthProviders not implemented") +} +func (*UnimplementedGatewayAPIServer) GetHome(context.Context, *v1beta13.GetHomeRequest) (*v1beta13.GetHomeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented") +} +func (*UnimplementedGatewayAPIServer) GenerateInviteToken(context.Context, *v1beta110.GenerateInviteTokenRequest) (*v1beta110.GenerateInviteTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateInviteToken not implemented") +} +func (*UnimplementedGatewayAPIServer) ForwardInvite(context.Context, *v1beta110.ForwardInviteRequest) (*v1beta110.ForwardInviteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ForwardInvite not implemented") +} +func (*UnimplementedGatewayAPIServer) AcceptInvite(context.Context, *v1beta110.AcceptInviteRequest) (*v1beta110.AcceptInviteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AcceptInvite not implemented") +} +func (*UnimplementedGatewayAPIServer) GetRemoteUser(context.Context, *v1beta110.GetRemoteUserRequest) (*v1beta110.GetRemoteUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRemoteUser not implemented") +} +func (*UnimplementedGatewayAPIServer) IsProviderAllowed(context.Context, *v1beta111.IsProviderAllowedRequest) (*v1beta111.IsProviderAllowedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsProviderAllowed not implemented") +} +func (*UnimplementedGatewayAPIServer) GetInfoByDomain(context.Context, *v1beta111.GetInfoByDomainRequest) (*v1beta111.GetInfoByDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetInfoByDomain not implemented") +} +func (*UnimplementedGatewayAPIServer) ListAllProviders(context.Context, *v1beta111.ListAllProvidersRequest) (*v1beta111.ListAllProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAllProviders not implemented") +} +func (*UnimplementedGatewayAPIServer) CreateOCMCoreShare(context.Context, *v1beta112.CreateOCMCoreShareRequest) (*v1beta112.CreateOCMCoreShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOCMCoreShare not implemented") +} +func (*UnimplementedGatewayAPIServer) CreateTransfer(context.Context, *v1beta113.CreateTransferRequest) (*v1beta113.CreateTransferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTransfer not implemented") +} +func (*UnimplementedGatewayAPIServer) GetTransferStatus(context.Context, *v1beta113.GetTransferStatusRequest) (*v1beta113.GetTransferStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTransferStatus not implemented") +} +func (*UnimplementedGatewayAPIServer) CancelTransfer(context.Context, *v1beta113.CancelTransferRequest) (*v1beta113.CancelTransferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelTransfer not implemented") +} + +func RegisterGatewayAPIServer(s *grpc.Server, srv GatewayAPIServer) { + s.RegisterService(&_GatewayAPI_serviceDesc, srv) +} + +func _GatewayAPI_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthenticateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).Authenticate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Authenticate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).Authenticate(ctx, req.(*AuthenticateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_WhoAmI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WhoAmIRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).WhoAmI(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/WhoAmI", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).WhoAmI(ctx, req.(*WhoAmIRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.CreateContainerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreateContainer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateContainer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreateContainer(ctx, req.(*v1beta13.CreateContainerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.DeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).Delete(ctx, req.(*v1beta13.DeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.GetPathRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetPath(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetPath", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetPath(ctx, req.(*v1beta13.GetPathRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetQuotaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetQuota(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetQuota", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetQuota(ctx, req.(*GetQuotaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_InitiateFileDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.InitiateFileDownloadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).InitiateFileDownload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileDownload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).InitiateFileDownload(ctx, req.(*v1beta13.InitiateFileDownloadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_InitiateFileUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.InitiateFileUploadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).InitiateFileUpload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileUpload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).InitiateFileUpload(ctx, req.(*v1beta13.InitiateFileUploadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListContainerStream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(v1beta13.ListContainerStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(GatewayAPIServer).ListContainerStream(m, &gatewayAPIListContainerStreamServer{stream}) +} + +type GatewayAPI_ListContainerStreamServer interface { + Send(*v1beta13.ListContainerStreamResponse) error + grpc.ServerStream +} + +type gatewayAPIListContainerStreamServer struct { + grpc.ServerStream +} + +func (x *gatewayAPIListContainerStreamServer) Send(m *v1beta13.ListContainerStreamResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _GatewayAPI_ListContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.ListContainerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListContainer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListContainer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListContainer(ctx, req.(*v1beta13.ListContainerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListFileVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.ListFileVersionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListFileVersions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListFileVersions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListFileVersions(ctx, req.(*v1beta13.ListFileVersionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListRecycleStream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListRecycleStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(GatewayAPIServer).ListRecycleStream(m, &gatewayAPIListRecycleStreamServer{stream}) +} + +type GatewayAPI_ListRecycleStreamServer interface { + Send(*v1beta13.ListRecycleStreamResponse) error + grpc.ServerStream +} + +type gatewayAPIListRecycleStreamServer struct { + grpc.ServerStream +} + +func (x *gatewayAPIListRecycleStreamServer) Send(m *v1beta13.ListRecycleStreamResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _GatewayAPI_ListRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRecycleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListRecycle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListRecycle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListRecycle(ctx, req.(*ListRecycleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.MoveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).Move(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Move", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).Move(ctx, req.(*v1beta13.MoveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_PurgeRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PurgeRecycleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).PurgeRecycle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/PurgeRecycle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).PurgeRecycle(ctx, req.(*PurgeRecycleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_RestoreFileVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.RestoreFileVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).RestoreFileVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RestoreFileVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).RestoreFileVersion(ctx, req.(*v1beta13.RestoreFileVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_RestoreRecycleItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.RestoreRecycleItemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).RestoreRecycleItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RestoreRecycleItem", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).RestoreRecycleItem(ctx, req.(*v1beta13.RestoreRecycleItemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.StatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Stat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).Stat(ctx, req.(*v1beta13.StatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreateSymlink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.CreateSymlinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreateSymlink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateSymlink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreateSymlink(ctx, req.(*v1beta13.CreateSymlinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_SetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.SetArbitraryMetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).SetArbitraryMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/SetArbitraryMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).SetArbitraryMetadata(ctx, req.(*v1beta13.SetArbitraryMetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_UnsetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.UnsetArbitraryMetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).UnsetArbitraryMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UnsetArbitraryMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).UnsetArbitraryMetadata(ctx, req.(*v1beta13.UnsetArbitraryMetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreateHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.CreateHomeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreateHome(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateHome", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreateHome(ctx, req.(*v1beta13.CreateHomeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_OpenFileInAppProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenFileInAppProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).OpenFileInAppProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/OpenFileInAppProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).OpenFileInAppProvider(ctx, req.(*OpenFileInAppProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.CreateShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreateShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreateShare(ctx, req.(*v1beta14.CreateShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_RemoveShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.RemoveShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).RemoveShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RemoveShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).RemoveShare(ctx, req.(*v1beta14.RemoveShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.GetShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetShare(ctx, req.(*v1beta14.GetShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.ListSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListShares(ctx, req.(*v1beta14.ListSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_UpdateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.UpdateShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).UpdateShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).UpdateShare(ctx, req.(*v1beta14.UpdateShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListReceivedShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.ListReceivedSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListReceivedShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListReceivedShares(ctx, req.(*v1beta14.ListReceivedSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_UpdateReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.UpdateReceivedShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).UpdateReceivedShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).UpdateReceivedShare(ctx, req.(*v1beta14.UpdateReceivedShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta14.GetReceivedShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetReceivedShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetReceivedShare(ctx, req.(*v1beta14.GetReceivedShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_SetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta15.SetKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).SetKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/SetKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).SetKey(ctx, req.(*v1beta15.SetKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta15.GetKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetKey(ctx, req.(*v1beta15.GetKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta16.CreatePublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreatePublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreatePublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreatePublicShare(ctx, req.(*v1beta16.CreatePublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_RemovePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta16.RemovePublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).RemovePublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RemovePublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).RemovePublicShare(ctx, req.(*v1beta16.RemovePublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetPublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta16.GetPublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetPublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetPublicShare(ctx, req.(*v1beta16.GetPublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetPublicShareByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta16.GetPublicShareByTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetPublicShareByToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShareByToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetPublicShareByToken(ctx, req.(*v1beta16.GetPublicShareByTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListPublicShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta16.ListPublicSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListPublicShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListPublicShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListPublicShares(ctx, req.(*v1beta16.ListPublicSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_UpdatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta16.UpdatePublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).UpdatePublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdatePublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).UpdatePublicShare(ctx, req.(*v1beta16.UpdatePublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.CreateOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreateOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreateOCMShare(ctx, req.(*v1beta17.CreateOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_RemoveOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.RemoveOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).RemoveOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RemoveOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).RemoveOCMShare(ctx, req.(*v1beta17.RemoveOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.GetOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetOCMShare(ctx, req.(*v1beta17.GetOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.ListOCMSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListOCMShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListOCMShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListOCMShares(ctx, req.(*v1beta17.ListOCMSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_UpdateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.UpdateOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).UpdateOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).UpdateOCMShare(ctx, req.(*v1beta17.UpdateOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListReceivedOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.ListReceivedOCMSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListReceivedOCMShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListReceivedOCMShares(ctx, req.(*v1beta17.ListReceivedOCMSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_UpdateReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.UpdateReceivedOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).UpdateReceivedOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).UpdateReceivedOCMShare(ctx, req.(*v1beta17.UpdateReceivedOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta17.GetReceivedOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetReceivedOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetReceivedOCMShare(ctx, req.(*v1beta17.GetReceivedOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta18.GetAppProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetAppProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetAppProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetAppProviders(ctx, req.(*v1beta18.GetAppProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta18.ListAppProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListAppProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListAppProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListAppProviders(ctx, req.(*v1beta18.ListAppProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta12.GetUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetUser(ctx, req.(*v1beta12.GetUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetUserByClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta12.GetUserByClaimRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetUserByClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetUserByClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetUserByClaim(ctx, req.(*v1beta12.GetUserByClaimRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetUserGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta12.GetUserGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetUserGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetUserGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetUserGroups(ctx, req.(*v1beta12.GetUserGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_IsInGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta12.IsInGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).IsInGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/IsInGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).IsInGroup(ctx, req.(*v1beta12.IsInGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_FindUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta12.FindUsersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).FindUsers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/FindUsers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).FindUsers(ctx, req.(*v1beta12.FindUsersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_FindGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta12.FindGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).FindGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/FindGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).FindGroups(ctx, req.(*v1beta12.FindGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta19.ListAuthProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListAuthProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListAuthProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListAuthProviders(ctx, req.(*v1beta19.ListAuthProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta13.GetHomeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetHome(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetHome", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetHome(ctx, req.(*v1beta13.GetHomeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GenerateInviteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta110.GenerateInviteTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GenerateInviteToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GenerateInviteToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GenerateInviteToken(ctx, req.(*v1beta110.GenerateInviteTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ForwardInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta110.ForwardInviteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ForwardInvite(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ForwardInvite", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ForwardInvite(ctx, req.(*v1beta110.ForwardInviteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_AcceptInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta110.AcceptInviteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).AcceptInvite(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/AcceptInvite", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).AcceptInvite(ctx, req.(*v1beta110.AcceptInviteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetRemoteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta110.GetRemoteUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetRemoteUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetRemoteUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetRemoteUser(ctx, req.(*v1beta110.GetRemoteUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_IsProviderAllowed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta111.IsProviderAllowedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).IsProviderAllowed(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/IsProviderAllowed", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).IsProviderAllowed(ctx, req.(*v1beta111.IsProviderAllowedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetInfoByDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta111.GetInfoByDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetInfoByDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetInfoByDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetInfoByDomain(ctx, req.(*v1beta111.GetInfoByDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListAllProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta111.ListAllProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListAllProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListAllProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListAllProviders(ctx, req.(*v1beta111.ListAllProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreateOCMCoreShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta112.CreateOCMCoreShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreateOCMCoreShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMCoreShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreateOCMCoreShare(ctx, req.(*v1beta112.CreateOCMCoreShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CreateTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta113.CreateTransferRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CreateTransfer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateTransfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CreateTransfer(ctx, req.(*v1beta113.CreateTransferRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_GetTransferStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta113.GetTransferStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetTransferStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetTransferStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetTransferStatus(ctx, req.(*v1beta113.GetTransferStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_CancelTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(v1beta113.CancelTransferRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).CancelTransfer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CancelTransfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).CancelTransfer(ctx, req.(*v1beta113.CancelTransferRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _GatewayAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.gateway.v1beta1.GatewayAPI", + HandlerType: (*GatewayAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Authenticate", + Handler: _GatewayAPI_Authenticate_Handler, + }, + { + MethodName: "WhoAmI", + Handler: _GatewayAPI_WhoAmI_Handler, + }, + { + MethodName: "CreateContainer", + Handler: _GatewayAPI_CreateContainer_Handler, + }, + { + MethodName: "Delete", + Handler: _GatewayAPI_Delete_Handler, + }, + { + MethodName: "GetPath", + Handler: _GatewayAPI_GetPath_Handler, + }, + { + MethodName: "GetQuota", + Handler: _GatewayAPI_GetQuota_Handler, + }, + { + MethodName: "InitiateFileDownload", + Handler: _GatewayAPI_InitiateFileDownload_Handler, + }, + { + MethodName: "InitiateFileUpload", + Handler: _GatewayAPI_InitiateFileUpload_Handler, + }, + { + MethodName: "ListContainer", + Handler: _GatewayAPI_ListContainer_Handler, + }, + { + MethodName: "ListFileVersions", + Handler: _GatewayAPI_ListFileVersions_Handler, + }, + { + MethodName: "ListRecycle", + Handler: _GatewayAPI_ListRecycle_Handler, + }, + { + MethodName: "Move", + Handler: _GatewayAPI_Move_Handler, + }, + { + MethodName: "PurgeRecycle", + Handler: _GatewayAPI_PurgeRecycle_Handler, + }, + { + MethodName: "RestoreFileVersion", + Handler: _GatewayAPI_RestoreFileVersion_Handler, + }, + { + MethodName: "RestoreRecycleItem", + Handler: _GatewayAPI_RestoreRecycleItem_Handler, + }, + { + MethodName: "Stat", + Handler: _GatewayAPI_Stat_Handler, + }, + { + MethodName: "CreateSymlink", + Handler: _GatewayAPI_CreateSymlink_Handler, + }, + { + MethodName: "SetArbitraryMetadata", + Handler: _GatewayAPI_SetArbitraryMetadata_Handler, + }, + { + MethodName: "UnsetArbitraryMetadata", + Handler: _GatewayAPI_UnsetArbitraryMetadata_Handler, + }, + { + MethodName: "CreateHome", + Handler: _GatewayAPI_CreateHome_Handler, + }, + { + MethodName: "OpenFileInAppProvider", + Handler: _GatewayAPI_OpenFileInAppProvider_Handler, + }, + { + MethodName: "CreateShare", + Handler: _GatewayAPI_CreateShare_Handler, + }, + { + MethodName: "RemoveShare", + Handler: _GatewayAPI_RemoveShare_Handler, + }, + { + MethodName: "GetShare", + Handler: _GatewayAPI_GetShare_Handler, + }, + { + MethodName: "ListShares", + Handler: _GatewayAPI_ListShares_Handler, + }, + { + MethodName: "UpdateShare", + Handler: _GatewayAPI_UpdateShare_Handler, + }, + { + MethodName: "ListReceivedShares", + Handler: _GatewayAPI_ListReceivedShares_Handler, + }, + { + MethodName: "UpdateReceivedShare", + Handler: _GatewayAPI_UpdateReceivedShare_Handler, + }, + { + MethodName: "GetReceivedShare", + Handler: _GatewayAPI_GetReceivedShare_Handler, + }, + { + MethodName: "SetKey", + Handler: _GatewayAPI_SetKey_Handler, + }, + { + MethodName: "GetKey", + Handler: _GatewayAPI_GetKey_Handler, + }, + { + MethodName: "CreatePublicShare", + Handler: _GatewayAPI_CreatePublicShare_Handler, + }, + { + MethodName: "RemovePublicShare", + Handler: _GatewayAPI_RemovePublicShare_Handler, + }, + { + MethodName: "GetPublicShare", + Handler: _GatewayAPI_GetPublicShare_Handler, + }, + { + MethodName: "GetPublicShareByToken", + Handler: _GatewayAPI_GetPublicShareByToken_Handler, + }, + { + MethodName: "ListPublicShares", + Handler: _GatewayAPI_ListPublicShares_Handler, + }, + { + MethodName: "UpdatePublicShare", + Handler: _GatewayAPI_UpdatePublicShare_Handler, + }, + { + MethodName: "CreateOCMShare", + Handler: _GatewayAPI_CreateOCMShare_Handler, + }, + { + MethodName: "RemoveOCMShare", + Handler: _GatewayAPI_RemoveOCMShare_Handler, + }, + { + MethodName: "GetOCMShare", + Handler: _GatewayAPI_GetOCMShare_Handler, + }, + { + MethodName: "ListOCMShares", + Handler: _GatewayAPI_ListOCMShares_Handler, + }, + { + MethodName: "UpdateOCMShare", + Handler: _GatewayAPI_UpdateOCMShare_Handler, + }, + { + MethodName: "ListReceivedOCMShares", + Handler: _GatewayAPI_ListReceivedOCMShares_Handler, + }, + { + MethodName: "UpdateReceivedOCMShare", + Handler: _GatewayAPI_UpdateReceivedOCMShare_Handler, + }, + { + MethodName: "GetReceivedOCMShare", + Handler: _GatewayAPI_GetReceivedOCMShare_Handler, + }, + { + MethodName: "GetAppProviders", + Handler: _GatewayAPI_GetAppProviders_Handler, + }, + { + MethodName: "ListAppProviders", + Handler: _GatewayAPI_ListAppProviders_Handler, + }, + { + MethodName: "GetUser", + Handler: _GatewayAPI_GetUser_Handler, + }, + { + MethodName: "GetUserByClaim", + Handler: _GatewayAPI_GetUserByClaim_Handler, + }, + { + MethodName: "GetUserGroups", + Handler: _GatewayAPI_GetUserGroups_Handler, + }, + { + MethodName: "IsInGroup", + Handler: _GatewayAPI_IsInGroup_Handler, + }, + { + MethodName: "FindUsers", + Handler: _GatewayAPI_FindUsers_Handler, + }, + { + MethodName: "FindGroups", + Handler: _GatewayAPI_FindGroups_Handler, + }, + { + MethodName: "ListAuthProviders", + Handler: _GatewayAPI_ListAuthProviders_Handler, + }, + { + MethodName: "GetHome", + Handler: _GatewayAPI_GetHome_Handler, + }, + { + MethodName: "GenerateInviteToken", + Handler: _GatewayAPI_GenerateInviteToken_Handler, + }, + { + MethodName: "ForwardInvite", + Handler: _GatewayAPI_ForwardInvite_Handler, + }, + { + MethodName: "AcceptInvite", + Handler: _GatewayAPI_AcceptInvite_Handler, + }, + { + MethodName: "GetRemoteUser", + Handler: _GatewayAPI_GetRemoteUser_Handler, + }, + { + MethodName: "IsProviderAllowed", + Handler: _GatewayAPI_IsProviderAllowed_Handler, + }, + { + MethodName: "GetInfoByDomain", + Handler: _GatewayAPI_GetInfoByDomain_Handler, + }, + { + MethodName: "ListAllProviders", + Handler: _GatewayAPI_ListAllProviders_Handler, + }, + { + MethodName: "CreateOCMCoreShare", + Handler: _GatewayAPI_CreateOCMCoreShare_Handler, + }, + { + MethodName: "CreateTransfer", + Handler: _GatewayAPI_CreateTransfer_Handler, + }, + { + MethodName: "GetTransferStatus", + Handler: _GatewayAPI_GetTransferStatus_Handler, + }, + { + MethodName: "CancelTransfer", + Handler: _GatewayAPI_CancelTransfer_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ListContainerStream", + Handler: _GatewayAPI_ListContainerStream_Handler, + ServerStreams: true, + }, + { + StreamName: "ListRecycleStream", + Handler: _GatewayAPI_ListRecycleStream_Handler, + ServerStreams: true, + }, + }, + Metadata: "cs3/gateway/v1beta1/gateway_api.proto", +} diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go b/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go new file mode 100644 index 00000000..aa73efdd --- /dev/null +++ b/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go @@ -0,0 +1,1679 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/gateway/v1beta1/gateway_api.proto + +package gatewayv1beta1 + +import ( + fmt "fmt" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/provider/v1beta1" + v1beta16 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/registry/v1beta1" + v1beta18 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/auth/registry/v1beta1" + v1beta17 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta111 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/core/v1beta1" + v1beta19 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/invite/v1beta1" + v1beta110 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" + v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/preferences/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/collaboration/v1beta1" + v1beta14 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/link/v1beta1" + v1beta15 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/ocm/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta112 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/tx/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for GatewayAPI service + +func NewGatewayAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for GatewayAPI service + +type GatewayAPIService interface { + // Authenticates a user. + Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) + // WhoAmI returns the information for a user. + WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...client.CallOption) (*WhoAmIResponse, error) + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, opts ...client.CallOption) (*v1beta1.CreateContainerResponse, error) + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(ctx context.Context, in *v1beta1.DeleteRequest, opts ...client.CallOption) (*v1beta1.DeleteResponse, error) + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(ctx context.Context, in *v1beta1.GetPathRequest, opts ...client.CallOption) (*v1beta1.GetPathResponse, error) + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*v1beta1.GetQuotaResponse, error) + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(ctx context.Context, in *v1beta1.ListContainerStreamRequest, opts ...client.CallOption) (GatewayAPI_ListContainerStreamService, error) + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, opts ...client.CallOption) (*v1beta1.ListContainerResponse, error) + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, opts ...client.CallOption) (*v1beta1.ListFileVersionsResponse, error) + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (GatewayAPI_ListRecycleStreamService, error) + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*v1beta1.ListRecycleResponse, error) + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(ctx context.Context, in *v1beta1.MoveRequest, opts ...client.CallOption) (*v1beta1.MoveResponse, error) + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*v1beta1.PurgeRecycleResponse, error) + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, opts ...client.CallOption) (*v1beta1.RestoreFileVersionResponse, error) + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, opts ...client.CallOption) (*v1beta1.RestoreRecycleItemResponse, error) + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(ctx context.Context, in *v1beta1.StatRequest, opts ...client.CallOption) (*v1beta1.StatResponse, error) + // Creates a symlink to another resource. + CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, opts ...client.CallOption) (*v1beta1.CreateSymlinkResponse, error) + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.SetArbitraryMetadataResponse, error) + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.UnsetArbitraryMetadataResponse, error) + // Creates the home directory for a user. + CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, opts ...client.CallOption) (*v1beta1.CreateHomeResponse, error) + // Returns the App provider URL, which lets the user open a file in the correct online document editor. + OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*v1beta11.OpenFileInAppProviderResponse, error) + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, opts ...client.CallOption) (*v1beta12.CreateShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, opts ...client.CallOption) (*v1beta12.RemoveShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(ctx context.Context, in *v1beta12.GetShareRequest, opts ...client.CallOption) (*v1beta12.GetShareResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, opts ...client.CallOption) (*v1beta12.ListSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, opts ...client.CallOption) (*v1beta12.UpdateShareResponse, error) + // List all shares the authproviderenticated principal has received. + ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, opts ...client.CallOption) (*v1beta12.ListReceivedSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, opts ...client.CallOption) (*v1beta12.UpdateReceivedShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, opts ...client.CallOption) (*v1beta12.GetReceivedShareResponse, error) + // Maps the key-value pair. + SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, opts ...client.CallOption) (*v1beta13.SetKeyResponse, error) + // Returns the value associated with the + // requested key. + GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, opts ...client.CallOption) (*v1beta13.GetKeyResponse, error) + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, opts ...client.CallOption) (*v1beta14.CreatePublicShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, opts ...client.CallOption) (*v1beta14.RemovePublicShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareResponse, error) + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareByTokenResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, opts ...client.CallOption) (*v1beta14.ListPublicSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, opts ...client.CallOption) (*v1beta14.UpdatePublicShareResponse, error) + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, opts ...client.CallOption) (*v1beta15.CreateOCMShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, opts ...client.CallOption) (*v1beta15.RemoveOCMShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetOCMShareResponse, error) + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListOCMSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateOCMShareResponse, error) + // List all shares the authproviderenticated principal has received. + ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListReceivedOCMSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateReceivedOCMShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetReceivedOCMShareResponse, error) + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, opts ...client.CallOption) (*v1beta16.GetAppProvidersResponse, error) + // Returns a list of the available app providers known by this registry. + ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, opts ...client.CallOption) (*v1beta16.ListAppProvidersResponse, error) + // Gets the information about a user by the user id. + GetUser(ctx context.Context, in *v1beta17.GetUserRequest, opts ...client.CallOption) (*v1beta17.GetUserResponse, error) + // Gets the information about a user based on a specified claim. + GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, opts ...client.CallOption) (*v1beta17.GetUserByClaimResponse, error) + // Gets the groups of a user. + GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, opts ...client.CallOption) (*v1beta17.GetUserGroupsResponse, error) + // Tells if the user is in a certain group. + IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, opts ...client.CallOption) (*v1beta17.IsInGroupResponse, error) + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, opts ...client.CallOption) (*v1beta17.FindUsersResponse, error) + // Finds groups whose names match the specified filter. + FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, opts ...client.CallOption) (*v1beta17.FindGroupsResponse, error) + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) + // Returns the home path for the given authenticated user. + // When a user has access to multiple storage providers, one of them is the home. + GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, opts ...client.CallOption) (*v1beta1.GetHomeResponse, error) + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, opts ...client.CallOption) (*v1beta19.GenerateInviteTokenResponse, error) + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, opts ...client.CallOption) (*v1beta19.ForwardInviteResponse, error) + // Completes an invitation acceptance. + AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, opts ...client.CallOption) (*v1beta19.AcceptInviteResponse, error) + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, opts ...client.CallOption) (*v1beta19.GetRemoteUserResponse, error) + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, opts ...client.CallOption) (*v1beta110.IsProviderAllowedResponse, error) + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, opts ...client.CallOption) (*v1beta110.GetInfoByDomainResponse, error) + // Get the information of all the providers registered in the mesh. + ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, opts ...client.CallOption) (*v1beta110.ListAllProvidersResponse, error) + // Creates a new ocm share. + CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, opts ...client.CallOption) (*v1beta111.CreateOCMCoreShareResponse, error) + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, opts ...client.CallOption) (*v1beta112.CreateTransferResponse, error) + // Requests a transfer status. + GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, opts ...client.CallOption) (*v1beta112.GetTransferStatusResponse, error) + // Requests to cancel a transfer. + CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, opts ...client.CallOption) (*v1beta112.CancelTransferResponse, error) +} + +type gatewayAPIService struct { + c client.Client + name string +} + +func NewGatewayAPIService(name string, c client.Client) GatewayAPIService { + return &gatewayAPIService{ + c: c, + name: name, + } +} + +func (c *gatewayAPIService) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.Authenticate", in) + out := new(AuthenticateResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...client.CallOption) (*WhoAmIResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.WhoAmI", in) + out := new(WhoAmIResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, opts ...client.CallOption) (*v1beta1.CreateContainerResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreateContainer", in) + out := new(v1beta1.CreateContainerResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) Delete(ctx context.Context, in *v1beta1.DeleteRequest, opts ...client.CallOption) (*v1beta1.DeleteResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.Delete", in) + out := new(v1beta1.DeleteResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetPath(ctx context.Context, in *v1beta1.GetPathRequest, opts ...client.CallOption) (*v1beta1.GetPathResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetPath", in) + out := new(v1beta1.GetPathResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*v1beta1.GetQuotaResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetQuota", in) + out := new(v1beta1.GetQuotaResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.InitiateFileDownload", in) + out := new(InitiateFileDownloadResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.InitiateFileUpload", in) + out := new(InitiateFileUploadResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListContainerStream(ctx context.Context, in *v1beta1.ListContainerStreamRequest, opts ...client.CallOption) (GatewayAPI_ListContainerStreamService, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListContainerStream", &v1beta1.ListContainerStreamRequest{}) + stream, err := c.c.Stream(ctx, req, opts...) + if err != nil { + return nil, err + } + if err := stream.Send(in); err != nil { + return nil, err + } + return &gatewayAPIServiceListContainerStream{stream}, nil +} + +type GatewayAPI_ListContainerStreamService interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Recv() (*v1beta1.ListContainerStreamResponse, error) +} + +type gatewayAPIServiceListContainerStream struct { + stream client.Stream +} + +func (x *gatewayAPIServiceListContainerStream) Close() error { + return x.stream.Close() +} + +func (x *gatewayAPIServiceListContainerStream) Context() context.Context { + return x.stream.Context() +} + +func (x *gatewayAPIServiceListContainerStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *gatewayAPIServiceListContainerStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *gatewayAPIServiceListContainerStream) Recv() (*v1beta1.ListContainerStreamResponse, error) { + m := new(v1beta1.ListContainerStreamResponse) + err := x.stream.Recv(m) + if err != nil { + return nil, err + } + return m, nil +} + +func (c *gatewayAPIService) ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, opts ...client.CallOption) (*v1beta1.ListContainerResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListContainer", in) + out := new(v1beta1.ListContainerResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, opts ...client.CallOption) (*v1beta1.ListFileVersionsResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListFileVersions", in) + out := new(v1beta1.ListFileVersionsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (GatewayAPI_ListRecycleStreamService, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListRecycleStream", &ListRecycleStreamRequest{}) + stream, err := c.c.Stream(ctx, req, opts...) + if err != nil { + return nil, err + } + if err := stream.Send(in); err != nil { + return nil, err + } + return &gatewayAPIServiceListRecycleStream{stream}, nil +} + +type GatewayAPI_ListRecycleStreamService interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Recv() (*v1beta1.ListRecycleStreamResponse, error) +} + +type gatewayAPIServiceListRecycleStream struct { + stream client.Stream +} + +func (x *gatewayAPIServiceListRecycleStream) Close() error { + return x.stream.Close() +} + +func (x *gatewayAPIServiceListRecycleStream) Context() context.Context { + return x.stream.Context() +} + +func (x *gatewayAPIServiceListRecycleStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *gatewayAPIServiceListRecycleStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *gatewayAPIServiceListRecycleStream) Recv() (*v1beta1.ListRecycleStreamResponse, error) { + m := new(v1beta1.ListRecycleStreamResponse) + err := x.stream.Recv(m) + if err != nil { + return nil, err + } + return m, nil +} + +func (c *gatewayAPIService) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*v1beta1.ListRecycleResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListRecycle", in) + out := new(v1beta1.ListRecycleResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) Move(ctx context.Context, in *v1beta1.MoveRequest, opts ...client.CallOption) (*v1beta1.MoveResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.Move", in) + out := new(v1beta1.MoveResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*v1beta1.PurgeRecycleResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.PurgeRecycle", in) + out := new(v1beta1.PurgeRecycleResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, opts ...client.CallOption) (*v1beta1.RestoreFileVersionResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.RestoreFileVersion", in) + out := new(v1beta1.RestoreFileVersionResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, opts ...client.CallOption) (*v1beta1.RestoreRecycleItemResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.RestoreRecycleItem", in) + out := new(v1beta1.RestoreRecycleItemResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) Stat(ctx context.Context, in *v1beta1.StatRequest, opts ...client.CallOption) (*v1beta1.StatResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.Stat", in) + out := new(v1beta1.StatResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, opts ...client.CallOption) (*v1beta1.CreateSymlinkResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreateSymlink", in) + out := new(v1beta1.CreateSymlinkResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.SetArbitraryMetadataResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.SetArbitraryMetadata", in) + out := new(v1beta1.SetArbitraryMetadataResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.UnsetArbitraryMetadataResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.UnsetArbitraryMetadata", in) + out := new(v1beta1.UnsetArbitraryMetadataResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, opts ...client.CallOption) (*v1beta1.CreateHomeResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreateHome", in) + out := new(v1beta1.CreateHomeResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*v1beta11.OpenFileInAppProviderResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.OpenFileInAppProvider", in) + out := new(v1beta11.OpenFileInAppProviderResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, opts ...client.CallOption) (*v1beta12.CreateShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreateShare", in) + out := new(v1beta12.CreateShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, opts ...client.CallOption) (*v1beta12.RemoveShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.RemoveShare", in) + out := new(v1beta12.RemoveShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetShare(ctx context.Context, in *v1beta12.GetShareRequest, opts ...client.CallOption) (*v1beta12.GetShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetShare", in) + out := new(v1beta12.GetShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, opts ...client.CallOption) (*v1beta12.ListSharesResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListShares", in) + out := new(v1beta12.ListSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, opts ...client.CallOption) (*v1beta12.UpdateShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.UpdateShare", in) + out := new(v1beta12.UpdateShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, opts ...client.CallOption) (*v1beta12.ListReceivedSharesResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListReceivedShares", in) + out := new(v1beta12.ListReceivedSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, opts ...client.CallOption) (*v1beta12.UpdateReceivedShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.UpdateReceivedShare", in) + out := new(v1beta12.UpdateReceivedShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, opts ...client.CallOption) (*v1beta12.GetReceivedShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetReceivedShare", in) + out := new(v1beta12.GetReceivedShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, opts ...client.CallOption) (*v1beta13.SetKeyResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.SetKey", in) + out := new(v1beta13.SetKeyResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, opts ...client.CallOption) (*v1beta13.GetKeyResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetKey", in) + out := new(v1beta13.GetKeyResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, opts ...client.CallOption) (*v1beta14.CreatePublicShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreatePublicShare", in) + out := new(v1beta14.CreatePublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, opts ...client.CallOption) (*v1beta14.RemovePublicShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.RemovePublicShare", in) + out := new(v1beta14.RemovePublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetPublicShare", in) + out := new(v1beta14.GetPublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareByTokenResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetPublicShareByToken", in) + out := new(v1beta14.GetPublicShareByTokenResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, opts ...client.CallOption) (*v1beta14.ListPublicSharesResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListPublicShares", in) + out := new(v1beta14.ListPublicSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, opts ...client.CallOption) (*v1beta14.UpdatePublicShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.UpdatePublicShare", in) + out := new(v1beta14.UpdatePublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, opts ...client.CallOption) (*v1beta15.CreateOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreateOCMShare", in) + out := new(v1beta15.CreateOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, opts ...client.CallOption) (*v1beta15.RemoveOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.RemoveOCMShare", in) + out := new(v1beta15.RemoveOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetOCMShare", in) + out := new(v1beta15.GetOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListOCMSharesResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListOCMShares", in) + out := new(v1beta15.ListOCMSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.UpdateOCMShare", in) + out := new(v1beta15.UpdateOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListReceivedOCMSharesResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListReceivedOCMShares", in) + out := new(v1beta15.ListReceivedOCMSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateReceivedOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.UpdateReceivedOCMShare", in) + out := new(v1beta15.UpdateReceivedOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetReceivedOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetReceivedOCMShare", in) + out := new(v1beta15.GetReceivedOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, opts ...client.CallOption) (*v1beta16.GetAppProvidersResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetAppProviders", in) + out := new(v1beta16.GetAppProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, opts ...client.CallOption) (*v1beta16.ListAppProvidersResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListAppProviders", in) + out := new(v1beta16.ListAppProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetUser(ctx context.Context, in *v1beta17.GetUserRequest, opts ...client.CallOption) (*v1beta17.GetUserResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetUser", in) + out := new(v1beta17.GetUserResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, opts ...client.CallOption) (*v1beta17.GetUserByClaimResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetUserByClaim", in) + out := new(v1beta17.GetUserByClaimResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, opts ...client.CallOption) (*v1beta17.GetUserGroupsResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetUserGroups", in) + out := new(v1beta17.GetUserGroupsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, opts ...client.CallOption) (*v1beta17.IsInGroupResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.IsInGroup", in) + out := new(v1beta17.IsInGroupResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, opts ...client.CallOption) (*v1beta17.FindUsersResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.FindUsers", in) + out := new(v1beta17.FindUsersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, opts ...client.CallOption) (*v1beta17.FindGroupsResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.FindGroups", in) + out := new(v1beta17.FindGroupsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListAuthProviders", in) + out := new(ListAuthProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, opts ...client.CallOption) (*v1beta1.GetHomeResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetHome", in) + out := new(v1beta1.GetHomeResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, opts ...client.CallOption) (*v1beta19.GenerateInviteTokenResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GenerateInviteToken", in) + out := new(v1beta19.GenerateInviteTokenResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, opts ...client.CallOption) (*v1beta19.ForwardInviteResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ForwardInvite", in) + out := new(v1beta19.ForwardInviteResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, opts ...client.CallOption) (*v1beta19.AcceptInviteResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.AcceptInvite", in) + out := new(v1beta19.AcceptInviteResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, opts ...client.CallOption) (*v1beta19.GetRemoteUserResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetRemoteUser", in) + out := new(v1beta19.GetRemoteUserResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, opts ...client.CallOption) (*v1beta110.IsProviderAllowedResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.IsProviderAllowed", in) + out := new(v1beta110.IsProviderAllowedResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, opts ...client.CallOption) (*v1beta110.GetInfoByDomainResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetInfoByDomain", in) + out := new(v1beta110.GetInfoByDomainResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, opts ...client.CallOption) (*v1beta110.ListAllProvidersResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.ListAllProviders", in) + out := new(v1beta110.ListAllProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, opts ...client.CallOption) (*v1beta111.CreateOCMCoreShareResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreateOCMCoreShare", in) + out := new(v1beta111.CreateOCMCoreShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, opts ...client.CallOption) (*v1beta112.CreateTransferResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CreateTransfer", in) + out := new(v1beta112.CreateTransferResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, opts ...client.CallOption) (*v1beta112.GetTransferStatusResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.GetTransferStatus", in) + out := new(v1beta112.GetTransferStatusResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIService) CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, opts ...client.CallOption) (*v1beta112.CancelTransferResponse, error) { + req := c.c.NewRequest(c.name, "GatewayAPI.CancelTransfer", in) + out := new(v1beta112.CancelTransferResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for GatewayAPI service + +type GatewayAPIHandler interface { + // Authenticates a user. + Authenticate(context.Context, *AuthenticateRequest, *AuthenticateResponse) error + // WhoAmI returns the information for a user. + WhoAmI(context.Context, *WhoAmIRequest, *WhoAmIResponse) error + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(context.Context, *v1beta1.CreateContainerRequest, *v1beta1.CreateContainerResponse) error + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(context.Context, *v1beta1.DeleteRequest, *v1beta1.DeleteResponse) error + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(context.Context, *v1beta1.GetPathRequest, *v1beta1.GetPathResponse) error + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(context.Context, *GetQuotaRequest, *v1beta1.GetQuotaResponse) error + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(context.Context, *v1beta1.InitiateFileDownloadRequest, *InitiateFileDownloadResponse) error + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(context.Context, *v1beta1.InitiateFileUploadRequest, *InitiateFileUploadResponse) error + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(context.Context, *v1beta1.ListContainerStreamRequest, GatewayAPI_ListContainerStreamStream) error + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(context.Context, *v1beta1.ListContainerRequest, *v1beta1.ListContainerResponse) error + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(context.Context, *v1beta1.ListFileVersionsRequest, *v1beta1.ListFileVersionsResponse) error + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(context.Context, *ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamStream) error + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(context.Context, *ListRecycleRequest, *v1beta1.ListRecycleResponse) error + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(context.Context, *v1beta1.MoveRequest, *v1beta1.MoveResponse) error + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(context.Context, *PurgeRecycleRequest, *v1beta1.PurgeRecycleResponse) error + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(context.Context, *v1beta1.RestoreFileVersionRequest, *v1beta1.RestoreFileVersionResponse) error + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(context.Context, *v1beta1.RestoreRecycleItemRequest, *v1beta1.RestoreRecycleItemResponse) error + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(context.Context, *v1beta1.StatRequest, *v1beta1.StatResponse) error + // Creates a symlink to another resource. + CreateSymlink(context.Context, *v1beta1.CreateSymlinkRequest, *v1beta1.CreateSymlinkResponse) error + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + SetArbitraryMetadata(context.Context, *v1beta1.SetArbitraryMetadataRequest, *v1beta1.SetArbitraryMetadataResponse) error + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(context.Context, *v1beta1.UnsetArbitraryMetadataRequest, *v1beta1.UnsetArbitraryMetadataResponse) error + // Creates the home directory for a user. + CreateHome(context.Context, *v1beta1.CreateHomeRequest, *v1beta1.CreateHomeResponse) error + // Returns the App provider URL, which lets the user open a file in the correct online document editor. + OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest, *v1beta11.OpenFileInAppProviderResponse) error + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(context.Context, *v1beta12.CreateShareRequest, *v1beta12.CreateShareResponse) error + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(context.Context, *v1beta12.RemoveShareRequest, *v1beta12.RemoveShareResponse) error + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(context.Context, *v1beta12.GetShareRequest, *v1beta12.GetShareResponse) error + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(context.Context, *v1beta12.ListSharesRequest, *v1beta12.ListSharesResponse) error + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(context.Context, *v1beta12.UpdateShareRequest, *v1beta12.UpdateShareResponse) error + // List all shares the authproviderenticated principal has received. + ListReceivedShares(context.Context, *v1beta12.ListReceivedSharesRequest, *v1beta12.ListReceivedSharesResponse) error + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(context.Context, *v1beta12.UpdateReceivedShareRequest, *v1beta12.UpdateReceivedShareResponse) error + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(context.Context, *v1beta12.GetReceivedShareRequest, *v1beta12.GetReceivedShareResponse) error + // Maps the key-value pair. + SetKey(context.Context, *v1beta13.SetKeyRequest, *v1beta13.SetKeyResponse) error + // Returns the value associated with the + // requested key. + GetKey(context.Context, *v1beta13.GetKeyRequest, *v1beta13.GetKeyResponse) error + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(context.Context, *v1beta14.CreatePublicShareRequest, *v1beta14.CreatePublicShareResponse) error + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(context.Context, *v1beta14.RemovePublicShareRequest, *v1beta14.RemovePublicShareResponse) error + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(context.Context, *v1beta14.GetPublicShareRequest, *v1beta14.GetPublicShareResponse) error + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(context.Context, *v1beta14.GetPublicShareByTokenRequest, *v1beta14.GetPublicShareByTokenResponse) error + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(context.Context, *v1beta14.ListPublicSharesRequest, *v1beta14.ListPublicSharesResponse) error + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(context.Context, *v1beta14.UpdatePublicShareRequest, *v1beta14.UpdatePublicShareResponse) error + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(context.Context, *v1beta15.CreateOCMShareRequest, *v1beta15.CreateOCMShareResponse) error + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(context.Context, *v1beta15.RemoveOCMShareRequest, *v1beta15.RemoveOCMShareResponse) error + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(context.Context, *v1beta15.GetOCMShareRequest, *v1beta15.GetOCMShareResponse) error + // List the shares the authproviderenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(context.Context, *v1beta15.ListOCMSharesRequest, *v1beta15.ListOCMSharesResponse) error + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(context.Context, *v1beta15.UpdateOCMShareRequest, *v1beta15.UpdateOCMShareResponse) error + // List all shares the authproviderenticated principal has received. + ListReceivedOCMShares(context.Context, *v1beta15.ListReceivedOCMSharesRequest, *v1beta15.ListReceivedOCMSharesResponse) error + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(context.Context, *v1beta15.UpdateReceivedOCMShareRequest, *v1beta15.UpdateReceivedOCMShareResponse) error + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(context.Context, *v1beta15.GetReceivedOCMShareRequest, *v1beta15.GetReceivedOCMShareResponse) error + // Returns the app providers that are capable of handling this resource info. + // MUST return CODE_NOT_FOUND if no providers are available. + GetAppProviders(context.Context, *v1beta16.GetAppProvidersRequest, *v1beta16.GetAppProvidersResponse) error + // Returns a list of the available app providers known by this registry. + ListAppProviders(context.Context, *v1beta16.ListAppProvidersRequest, *v1beta16.ListAppProvidersResponse) error + // Gets the information about a user by the user id. + GetUser(context.Context, *v1beta17.GetUserRequest, *v1beta17.GetUserResponse) error + // Gets the information about a user based on a specified claim. + GetUserByClaim(context.Context, *v1beta17.GetUserByClaimRequest, *v1beta17.GetUserByClaimResponse) error + // Gets the groups of a user. + GetUserGroups(context.Context, *v1beta17.GetUserGroupsRequest, *v1beta17.GetUserGroupsResponse) error + // Tells if the user is in a certain group. + IsInGroup(context.Context, *v1beta17.IsInGroupRequest, *v1beta17.IsInGroupResponse) error + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(context.Context, *v1beta17.FindUsersRequest, *v1beta17.FindUsersResponse) error + // Finds groups whose names match the specified filter. + FindGroups(context.Context, *v1beta17.FindGroupsRequest, *v1beta17.FindGroupsResponse) error + // Returns a list of the available auth providers known by this registry. + ListAuthProviders(context.Context, *v1beta18.ListAuthProvidersRequest, *ListAuthProvidersResponse) error + // Returns the home path for the given authenticated user. + // When a user has access to multiple storage providers, one of them is the home. + GetHome(context.Context, *v1beta1.GetHomeRequest, *v1beta1.GetHomeResponse) error + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(context.Context, *v1beta19.GenerateInviteTokenRequest, *v1beta19.GenerateInviteTokenResponse) error + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(context.Context, *v1beta19.ForwardInviteRequest, *v1beta19.ForwardInviteResponse) error + // Completes an invitation acceptance. + AcceptInvite(context.Context, *v1beta19.AcceptInviteRequest, *v1beta19.AcceptInviteResponse) error + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(context.Context, *v1beta19.GetRemoteUserRequest, *v1beta19.GetRemoteUserResponse) error + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(context.Context, *v1beta110.IsProviderAllowedRequest, *v1beta110.IsProviderAllowedResponse) error + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(context.Context, *v1beta110.GetInfoByDomainRequest, *v1beta110.GetInfoByDomainResponse) error + // Get the information of all the providers registered in the mesh. + ListAllProviders(context.Context, *v1beta110.ListAllProvidersRequest, *v1beta110.ListAllProvidersResponse) error + // Creates a new ocm share. + CreateOCMCoreShare(context.Context, *v1beta111.CreateOCMCoreShareRequest, *v1beta111.CreateOCMCoreShareResponse) error + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(context.Context, *v1beta112.CreateTransferRequest, *v1beta112.CreateTransferResponse) error + // Requests a transfer status. + GetTransferStatus(context.Context, *v1beta112.GetTransferStatusRequest, *v1beta112.GetTransferStatusResponse) error + // Requests to cancel a transfer. + CancelTransfer(context.Context, *v1beta112.CancelTransferRequest, *v1beta112.CancelTransferResponse) error +} + +func RegisterGatewayAPIHandler(s server.Server, hdlr GatewayAPIHandler, opts ...server.HandlerOption) error { + type gatewayAPI interface { + Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error + WhoAmI(ctx context.Context, in *WhoAmIRequest, out *WhoAmIResponse) error + CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, out *v1beta1.CreateContainerResponse) error + Delete(ctx context.Context, in *v1beta1.DeleteRequest, out *v1beta1.DeleteResponse) error + GetPath(ctx context.Context, in *v1beta1.GetPathRequest, out *v1beta1.GetPathResponse) error + GetQuota(ctx context.Context, in *GetQuotaRequest, out *v1beta1.GetQuotaResponse) error + InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error + InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, out *InitiateFileUploadResponse) error + ListContainerStream(ctx context.Context, stream server.Stream) error + ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, out *v1beta1.ListContainerResponse) error + ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, out *v1beta1.ListFileVersionsResponse) error + ListRecycleStream(ctx context.Context, stream server.Stream) error + ListRecycle(ctx context.Context, in *ListRecycleRequest, out *v1beta1.ListRecycleResponse) error + Move(ctx context.Context, in *v1beta1.MoveRequest, out *v1beta1.MoveResponse) error + PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *v1beta1.PurgeRecycleResponse) error + RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, out *v1beta1.RestoreFileVersionResponse) error + RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, out *v1beta1.RestoreRecycleItemResponse) error + Stat(ctx context.Context, in *v1beta1.StatRequest, out *v1beta1.StatResponse) error + CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, out *v1beta1.CreateSymlinkResponse) error + SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, out *v1beta1.SetArbitraryMetadataResponse) error + UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, out *v1beta1.UnsetArbitraryMetadataResponse) error + CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, out *v1beta1.CreateHomeResponse) error + OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *v1beta11.OpenFileInAppProviderResponse) error + CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, out *v1beta12.CreateShareResponse) error + RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, out *v1beta12.RemoveShareResponse) error + GetShare(ctx context.Context, in *v1beta12.GetShareRequest, out *v1beta12.GetShareResponse) error + ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, out *v1beta12.ListSharesResponse) error + UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, out *v1beta12.UpdateShareResponse) error + ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, out *v1beta12.ListReceivedSharesResponse) error + UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, out *v1beta12.UpdateReceivedShareResponse) error + GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, out *v1beta12.GetReceivedShareResponse) error + SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, out *v1beta13.SetKeyResponse) error + GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, out *v1beta13.GetKeyResponse) error + CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, out *v1beta14.CreatePublicShareResponse) error + RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, out *v1beta14.RemovePublicShareResponse) error + GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, out *v1beta14.GetPublicShareResponse) error + GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, out *v1beta14.GetPublicShareByTokenResponse) error + ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, out *v1beta14.ListPublicSharesResponse) error + UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, out *v1beta14.UpdatePublicShareResponse) error + CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, out *v1beta15.CreateOCMShareResponse) error + RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, out *v1beta15.RemoveOCMShareResponse) error + GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, out *v1beta15.GetOCMShareResponse) error + ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, out *v1beta15.ListOCMSharesResponse) error + UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, out *v1beta15.UpdateOCMShareResponse) error + ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, out *v1beta15.ListReceivedOCMSharesResponse) error + UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, out *v1beta15.UpdateReceivedOCMShareResponse) error + GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, out *v1beta15.GetReceivedOCMShareResponse) error + GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, out *v1beta16.GetAppProvidersResponse) error + ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, out *v1beta16.ListAppProvidersResponse) error + GetUser(ctx context.Context, in *v1beta17.GetUserRequest, out *v1beta17.GetUserResponse) error + GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, out *v1beta17.GetUserByClaimResponse) error + GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, out *v1beta17.GetUserGroupsResponse) error + IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, out *v1beta17.IsInGroupResponse) error + FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, out *v1beta17.FindUsersResponse) error + FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, out *v1beta17.FindGroupsResponse) error + ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, out *ListAuthProvidersResponse) error + GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, out *v1beta1.GetHomeResponse) error + GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, out *v1beta19.GenerateInviteTokenResponse) error + ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, out *v1beta19.ForwardInviteResponse) error + AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, out *v1beta19.AcceptInviteResponse) error + GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, out *v1beta19.GetRemoteUserResponse) error + IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, out *v1beta110.IsProviderAllowedResponse) error + GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, out *v1beta110.GetInfoByDomainResponse) error + ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, out *v1beta110.ListAllProvidersResponse) error + CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, out *v1beta111.CreateOCMCoreShareResponse) error + CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, out *v1beta112.CreateTransferResponse) error + GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, out *v1beta112.GetTransferStatusResponse) error + CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, out *v1beta112.CancelTransferResponse) error + } + type GatewayAPI struct { + gatewayAPI + } + h := &gatewayAPIHandler{hdlr} + return s.Handle(s.NewHandler(&GatewayAPI{h}, opts...)) +} + +type gatewayAPIHandler struct { + GatewayAPIHandler +} + +func (h *gatewayAPIHandler) Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error { + return h.GatewayAPIHandler.Authenticate(ctx, in, out) +} + +func (h *gatewayAPIHandler) WhoAmI(ctx context.Context, in *WhoAmIRequest, out *WhoAmIResponse) error { + return h.GatewayAPIHandler.WhoAmI(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, out *v1beta1.CreateContainerResponse) error { + return h.GatewayAPIHandler.CreateContainer(ctx, in, out) +} + +func (h *gatewayAPIHandler) Delete(ctx context.Context, in *v1beta1.DeleteRequest, out *v1beta1.DeleteResponse) error { + return h.GatewayAPIHandler.Delete(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetPath(ctx context.Context, in *v1beta1.GetPathRequest, out *v1beta1.GetPathResponse) error { + return h.GatewayAPIHandler.GetPath(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetQuota(ctx context.Context, in *GetQuotaRequest, out *v1beta1.GetQuotaResponse) error { + return h.GatewayAPIHandler.GetQuota(ctx, in, out) +} + +func (h *gatewayAPIHandler) InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error { + return h.GatewayAPIHandler.InitiateFileDownload(ctx, in, out) +} + +func (h *gatewayAPIHandler) InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, out *InitiateFileUploadResponse) error { + return h.GatewayAPIHandler.InitiateFileUpload(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListContainerStream(ctx context.Context, stream server.Stream) error { + m := new(v1beta1.ListContainerStreamRequest) + if err := stream.Recv(m); err != nil { + return err + } + return h.GatewayAPIHandler.ListContainerStream(ctx, m, &gatewayAPIListContainerStreamStream{stream}) +} + +type GatewayAPI_ListContainerStreamStream interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Send(*v1beta1.ListContainerStreamResponse) error +} + +type gatewayAPIListContainerStreamStream struct { + stream server.Stream +} + +func (x *gatewayAPIListContainerStreamStream) Close() error { + return x.stream.Close() +} + +func (x *gatewayAPIListContainerStreamStream) Context() context.Context { + return x.stream.Context() +} + +func (x *gatewayAPIListContainerStreamStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *gatewayAPIListContainerStreamStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *gatewayAPIListContainerStreamStream) Send(m *v1beta1.ListContainerStreamResponse) error { + return x.stream.Send(m) +} + +func (h *gatewayAPIHandler) ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, out *v1beta1.ListContainerResponse) error { + return h.GatewayAPIHandler.ListContainer(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, out *v1beta1.ListFileVersionsResponse) error { + return h.GatewayAPIHandler.ListFileVersions(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListRecycleStream(ctx context.Context, stream server.Stream) error { + m := new(ListRecycleStreamRequest) + if err := stream.Recv(m); err != nil { + return err + } + return h.GatewayAPIHandler.ListRecycleStream(ctx, m, &gatewayAPIListRecycleStreamStream{stream}) +} + +type GatewayAPI_ListRecycleStreamStream interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Send(*v1beta1.ListRecycleStreamResponse) error +} + +type gatewayAPIListRecycleStreamStream struct { + stream server.Stream +} + +func (x *gatewayAPIListRecycleStreamStream) Close() error { + return x.stream.Close() +} + +func (x *gatewayAPIListRecycleStreamStream) Context() context.Context { + return x.stream.Context() +} + +func (x *gatewayAPIListRecycleStreamStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *gatewayAPIListRecycleStreamStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *gatewayAPIListRecycleStreamStream) Send(m *v1beta1.ListRecycleStreamResponse) error { + return x.stream.Send(m) +} + +func (h *gatewayAPIHandler) ListRecycle(ctx context.Context, in *ListRecycleRequest, out *v1beta1.ListRecycleResponse) error { + return h.GatewayAPIHandler.ListRecycle(ctx, in, out) +} + +func (h *gatewayAPIHandler) Move(ctx context.Context, in *v1beta1.MoveRequest, out *v1beta1.MoveResponse) error { + return h.GatewayAPIHandler.Move(ctx, in, out) +} + +func (h *gatewayAPIHandler) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *v1beta1.PurgeRecycleResponse) error { + return h.GatewayAPIHandler.PurgeRecycle(ctx, in, out) +} + +func (h *gatewayAPIHandler) RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, out *v1beta1.RestoreFileVersionResponse) error { + return h.GatewayAPIHandler.RestoreFileVersion(ctx, in, out) +} + +func (h *gatewayAPIHandler) RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, out *v1beta1.RestoreRecycleItemResponse) error { + return h.GatewayAPIHandler.RestoreRecycleItem(ctx, in, out) +} + +func (h *gatewayAPIHandler) Stat(ctx context.Context, in *v1beta1.StatRequest, out *v1beta1.StatResponse) error { + return h.GatewayAPIHandler.Stat(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, out *v1beta1.CreateSymlinkResponse) error { + return h.GatewayAPIHandler.CreateSymlink(ctx, in, out) +} + +func (h *gatewayAPIHandler) SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, out *v1beta1.SetArbitraryMetadataResponse) error { + return h.GatewayAPIHandler.SetArbitraryMetadata(ctx, in, out) +} + +func (h *gatewayAPIHandler) UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, out *v1beta1.UnsetArbitraryMetadataResponse) error { + return h.GatewayAPIHandler.UnsetArbitraryMetadata(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, out *v1beta1.CreateHomeResponse) error { + return h.GatewayAPIHandler.CreateHome(ctx, in, out) +} + +func (h *gatewayAPIHandler) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *v1beta11.OpenFileInAppProviderResponse) error { + return h.GatewayAPIHandler.OpenFileInAppProvider(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, out *v1beta12.CreateShareResponse) error { + return h.GatewayAPIHandler.CreateShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, out *v1beta12.RemoveShareResponse) error { + return h.GatewayAPIHandler.RemoveShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetShare(ctx context.Context, in *v1beta12.GetShareRequest, out *v1beta12.GetShareResponse) error { + return h.GatewayAPIHandler.GetShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, out *v1beta12.ListSharesResponse) error { + return h.GatewayAPIHandler.ListShares(ctx, in, out) +} + +func (h *gatewayAPIHandler) UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, out *v1beta12.UpdateShareResponse) error { + return h.GatewayAPIHandler.UpdateShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, out *v1beta12.ListReceivedSharesResponse) error { + return h.GatewayAPIHandler.ListReceivedShares(ctx, in, out) +} + +func (h *gatewayAPIHandler) UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, out *v1beta12.UpdateReceivedShareResponse) error { + return h.GatewayAPIHandler.UpdateReceivedShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, out *v1beta12.GetReceivedShareResponse) error { + return h.GatewayAPIHandler.GetReceivedShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, out *v1beta13.SetKeyResponse) error { + return h.GatewayAPIHandler.SetKey(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, out *v1beta13.GetKeyResponse) error { + return h.GatewayAPIHandler.GetKey(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, out *v1beta14.CreatePublicShareResponse) error { + return h.GatewayAPIHandler.CreatePublicShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, out *v1beta14.RemovePublicShareResponse) error { + return h.GatewayAPIHandler.RemovePublicShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, out *v1beta14.GetPublicShareResponse) error { + return h.GatewayAPIHandler.GetPublicShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, out *v1beta14.GetPublicShareByTokenResponse) error { + return h.GatewayAPIHandler.GetPublicShareByToken(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, out *v1beta14.ListPublicSharesResponse) error { + return h.GatewayAPIHandler.ListPublicShares(ctx, in, out) +} + +func (h *gatewayAPIHandler) UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, out *v1beta14.UpdatePublicShareResponse) error { + return h.GatewayAPIHandler.UpdatePublicShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, out *v1beta15.CreateOCMShareResponse) error { + return h.GatewayAPIHandler.CreateOCMShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, out *v1beta15.RemoveOCMShareResponse) error { + return h.GatewayAPIHandler.RemoveOCMShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, out *v1beta15.GetOCMShareResponse) error { + return h.GatewayAPIHandler.GetOCMShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, out *v1beta15.ListOCMSharesResponse) error { + return h.GatewayAPIHandler.ListOCMShares(ctx, in, out) +} + +func (h *gatewayAPIHandler) UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, out *v1beta15.UpdateOCMShareResponse) error { + return h.GatewayAPIHandler.UpdateOCMShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, out *v1beta15.ListReceivedOCMSharesResponse) error { + return h.GatewayAPIHandler.ListReceivedOCMShares(ctx, in, out) +} + +func (h *gatewayAPIHandler) UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, out *v1beta15.UpdateReceivedOCMShareResponse) error { + return h.GatewayAPIHandler.UpdateReceivedOCMShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, out *v1beta15.GetReceivedOCMShareResponse) error { + return h.GatewayAPIHandler.GetReceivedOCMShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, out *v1beta16.GetAppProvidersResponse) error { + return h.GatewayAPIHandler.GetAppProviders(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, out *v1beta16.ListAppProvidersResponse) error { + return h.GatewayAPIHandler.ListAppProviders(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetUser(ctx context.Context, in *v1beta17.GetUserRequest, out *v1beta17.GetUserResponse) error { + return h.GatewayAPIHandler.GetUser(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, out *v1beta17.GetUserByClaimResponse) error { + return h.GatewayAPIHandler.GetUserByClaim(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, out *v1beta17.GetUserGroupsResponse) error { + return h.GatewayAPIHandler.GetUserGroups(ctx, in, out) +} + +func (h *gatewayAPIHandler) IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, out *v1beta17.IsInGroupResponse) error { + return h.GatewayAPIHandler.IsInGroup(ctx, in, out) +} + +func (h *gatewayAPIHandler) FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, out *v1beta17.FindUsersResponse) error { + return h.GatewayAPIHandler.FindUsers(ctx, in, out) +} + +func (h *gatewayAPIHandler) FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, out *v1beta17.FindGroupsResponse) error { + return h.GatewayAPIHandler.FindGroups(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, out *ListAuthProvidersResponse) error { + return h.GatewayAPIHandler.ListAuthProviders(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, out *v1beta1.GetHomeResponse) error { + return h.GatewayAPIHandler.GetHome(ctx, in, out) +} + +func (h *gatewayAPIHandler) GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, out *v1beta19.GenerateInviteTokenResponse) error { + return h.GatewayAPIHandler.GenerateInviteToken(ctx, in, out) +} + +func (h *gatewayAPIHandler) ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, out *v1beta19.ForwardInviteResponse) error { + return h.GatewayAPIHandler.ForwardInvite(ctx, in, out) +} + +func (h *gatewayAPIHandler) AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, out *v1beta19.AcceptInviteResponse) error { + return h.GatewayAPIHandler.AcceptInvite(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, out *v1beta19.GetRemoteUserResponse) error { + return h.GatewayAPIHandler.GetRemoteUser(ctx, in, out) +} + +func (h *gatewayAPIHandler) IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, out *v1beta110.IsProviderAllowedResponse) error { + return h.GatewayAPIHandler.IsProviderAllowed(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, out *v1beta110.GetInfoByDomainResponse) error { + return h.GatewayAPIHandler.GetInfoByDomain(ctx, in, out) +} + +func (h *gatewayAPIHandler) ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, out *v1beta110.ListAllProvidersResponse) error { + return h.GatewayAPIHandler.ListAllProviders(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, out *v1beta111.CreateOCMCoreShareResponse) error { + return h.GatewayAPIHandler.CreateOCMCoreShare(ctx, in, out) +} + +func (h *gatewayAPIHandler) CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, out *v1beta112.CreateTransferResponse) error { + return h.GatewayAPIHandler.CreateTransfer(ctx, in, out) +} + +func (h *gatewayAPIHandler) GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, out *v1beta112.GetTransferStatusResponse) error { + return h.GatewayAPIHandler.GetTransferStatus(ctx, in, out) +} + +func (h *gatewayAPIHandler) CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, out *v1beta112.CancelTransferResponse) error { + return h.GatewayAPIHandler.CancelTransfer(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go new file mode 100644 index 00000000..a671f1b4 --- /dev/null +++ b/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go @@ -0,0 +1,359 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/gateway/v1beta1/resources.proto + +package gatewayv1beta1 + +import ( + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// A file upload protocol object stores information about +// uploading resources using a specific protocol. +type FileUploadProtocol struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocol to be followed. + Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` + // REQUIRED. + // The endpoint where to upload the data. + // The value MUST be a Uniform Resource Identifier (URI) + // as specified in RFC 3986. + UploadEndpoint string `protobuf:"bytes,3,opt,name=upload_endpoint,json=uploadEndpoint,proto3" json:"upload_endpoint,omitempty"` + // REQUIRED. + // List of available checksums + // the client can use when sending + // the file. + AvailableChecksums []*v1beta11.ResourceChecksumPriority `protobuf:"bytes,4,rep,name=available_checksums,json=availableChecksums,proto3" json:"available_checksums,omitempty"` + // OPTIONAL. + // A token that MUST be validated by the data gateway for the upload. + // Only makes sense for uploads passing through the data gateway. + Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *FileUploadProtocol) Reset() { + *x = FileUploadProtocol{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileUploadProtocol) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileUploadProtocol) ProtoMessage() {} + +func (x *FileUploadProtocol) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_resources_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 FileUploadProtocol.ProtoReflect.Descriptor instead. +func (*FileUploadProtocol) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *FileUploadProtocol) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FileUploadProtocol) GetProtocol() string { + if x != nil { + return x.Protocol + } + return "" +} + +func (x *FileUploadProtocol) GetUploadEndpoint() string { + if x != nil { + return x.UploadEndpoint + } + return "" +} + +func (x *FileUploadProtocol) GetAvailableChecksums() []*v1beta11.ResourceChecksumPriority { + if x != nil { + return x.AvailableChecksums + } + return nil +} + +func (x *FileUploadProtocol) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// A file download protocol object stores information about +// downloading resources using a specific protocol. +type FileDownloadProtocol struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocol to be followed. + Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` + // REQUIRED. + // The endpoint where to download the data. + // The value MUST be a Uniform Resource Identifier (URI) + // as specified in RFC 3986. + DownloadEndpoint string `protobuf:"bytes,3,opt,name=download_endpoint,json=downloadEndpoint,proto3" json:"download_endpoint,omitempty"` + // OPTIONAL. + // A token that MUST be validated by the data gateway for the download. + // Only makes sense for downloads passing through the data gateway. + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *FileDownloadProtocol) Reset() { + *x = FileDownloadProtocol{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileDownloadProtocol) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileDownloadProtocol) ProtoMessage() {} + +func (x *FileDownloadProtocol) ProtoReflect() protoreflect.Message { + mi := &file_cs3_gateway_v1beta1_resources_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 FileDownloadProtocol.ProtoReflect.Descriptor instead. +func (*FileDownloadProtocol) Descriptor() ([]byte, []int) { + return file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *FileDownloadProtocol) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FileDownloadProtocol) GetProtocol() string { + if x != nil { + return x.Protocol + } + return "" +} + +func (x *FileDownloadProtocol) GetDownloadEndpoint() string { + if x != nil { + return x.DownloadEndpoint + } + return "" +} + +func (x *FileDownloadProtocol) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +var File_cs3_gateway_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_gateway_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, + 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x12, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x75, + 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x67, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, + 0x6d, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0xa8, 0x01, 0x0a, 0x14, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2b, 0x0a, 0x11, 0x64, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, + 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x6d, + 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0e, 0x67, 0x61, 0x74, + 0x65, 0x77, 0x61, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, + 0x58, 0xaa, 0x02, 0x13, 0x43, 0x73, 0x33, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, + 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x13, 0x43, 0x73, 0x33, 0x5c, 0x47, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_gateway_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_gateway_v1beta1_resources_proto_rawDescData = file_cs3_gateway_v1beta1_resources_proto_rawDesc +) + +func file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_gateway_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_gateway_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_gateway_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_gateway_v1beta1_resources_proto_rawDescData +} + +var file_cs3_gateway_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cs3_gateway_v1beta1_resources_proto_goTypes = []interface{}{ + (*FileUploadProtocol)(nil), // 0: cs3.gateway.v1beta1.FileUploadProtocol + (*FileDownloadProtocol)(nil), // 1: cs3.gateway.v1beta1.FileDownloadProtocol + (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque + (*v1beta11.ResourceChecksumPriority)(nil), // 3: cs3.storage.provider.v1beta1.ResourceChecksumPriority +} +var file_cs3_gateway_v1beta1_resources_proto_depIdxs = []int32{ + 2, // 0: cs3.gateway.v1beta1.FileUploadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque + 3, // 1: cs3.gateway.v1beta1.FileUploadProtocol.available_checksums:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumPriority + 2, // 2: cs3.gateway.v1beta1.FileDownloadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_cs3_gateway_v1beta1_resources_proto_init() } +func file_cs3_gateway_v1beta1_resources_proto_init() { + if File_cs3_gateway_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_gateway_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileUploadProtocol); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_gateway_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileDownloadProtocol); 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_cs3_gateway_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_gateway_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_gateway_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_gateway_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_gateway_v1beta1_resources_proto = out.File + file_cs3_gateway_v1beta1_resources_proto_rawDesc = nil + file_cs3_gateway_v1beta1_resources_proto_goTypes = nil + file_cs3_gateway_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..6e6af652 --- /dev/null +++ b/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go @@ -0,0 +1,24 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/gateway/v1beta1/resources.proto + +package gatewayv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go new file mode 100644 index 00000000..e2536658 --- /dev/null +++ b/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go @@ -0,0 +1,321 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/identity/user/v1beta1/resources.proto + +package userv1beta1 + +import ( + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// A UserId represents a user. +type UserId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The identity provider for the user. + Idp string `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"` + // REQUIRED. + // the unique identifier for the user in the scope of + // the identity provider. + OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` +} + +func (x *UserId) Reset() { + *x = UserId{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserId) ProtoMessage() {} + +func (x *UserId) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_resources_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 UserId.ProtoReflect.Descriptor instead. +func (*UserId) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *UserId) GetIdp() string { + if x != nil { + return x.Idp + } + return "" +} + +func (x *UserId) GetOpaqueId() string { + if x != nil { + return x.OpaqueId + } + return "" +} + +// Represents a user of the system. +type User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *UserId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Mail string `protobuf:"bytes,3,opt,name=mail,proto3" json:"mail,omitempty"` + MailVerified bool `protobuf:"varint,4,opt,name=mail_verified,json=mailVerified,proto3" json:"mail_verified,omitempty"` + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"` + Opaque *v1beta1.Opaque `protobuf:"bytes,7,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_resources_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 User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *User) GetId() *UserId { + if x != nil { + return x.Id + } + return nil +} + +func (x *User) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *User) GetMail() string { + if x != nil { + return x.Mail + } + return "" +} + +func (x *User) GetMailVerified() bool { + if x != nil { + return x.MailVerified + } + return false +} + +func (x *User) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *User) GetGroups() []string { + if x != nil { + return x.Groups + } + return nil +} + +func (x *User) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +var File_cs3_identity_user_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_identity_user_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33, + 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x10, 0x0a, 0x03, 0x69, 0x64, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, + 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xfc, + 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, + 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, + 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, + 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0c, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, + 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x42, 0x7c, 0x0a, + 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x43, 0x49, 0x55, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, + 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x55, + 0x73, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_identity_user_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_identity_user_v1beta1_resources_proto_rawDescData = file_cs3_identity_user_v1beta1_resources_proto_rawDesc +) + +func file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_identity_user_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_identity_user_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_identity_user_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_identity_user_v1beta1_resources_proto_rawDescData +} + +var file_cs3_identity_user_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cs3_identity_user_v1beta1_resources_proto_goTypes = []interface{}{ + (*UserId)(nil), // 0: cs3.identity.user.v1beta1.UserId + (*User)(nil), // 1: cs3.identity.user.v1beta1.User + (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque +} +var file_cs3_identity_user_v1beta1_resources_proto_depIdxs = []int32{ + 0, // 0: cs3.identity.user.v1beta1.User.id:type_name -> cs3.identity.user.v1beta1.UserId + 2, // 1: cs3.identity.user.v1beta1.User.opaque:type_name -> cs3.types.v1beta1.Opaque + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_cs3_identity_user_v1beta1_resources_proto_init() } +func file_cs3_identity_user_v1beta1_resources_proto_init() { + if File_cs3_identity_user_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_identity_user_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); 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_cs3_identity_user_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_identity_user_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_identity_user_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_identity_user_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_identity_user_v1beta1_resources_proto = out.File + file_cs3_identity_user_v1beta1_resources_proto_rawDesc = nil + file_cs3_identity_user_v1beta1_resources_proto_goTypes = nil + file_cs3_identity_user_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..3dbea39b --- /dev/null +++ b/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go @@ -0,0 +1,22 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/identity/user/v1beta1/resources.proto + +package userv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go b/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go new file mode 100644 index 00000000..37d4fac5 --- /dev/null +++ b/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go @@ -0,0 +1,1531 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/identity/user/v1beta1/user_api.proto + +package userv1beta1 + +import ( + context "context" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GetUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The id of the user. + UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *GetUserRequest) Reset() { + *x = GetUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserRequest) ProtoMessage() {} + +func (x *GetUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserRequest.ProtoReflect.Descriptor instead. +func (*GetUserRequest) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{0} +} + +func (x *GetUserRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetUserRequest) GetUserId() *UserId { + if x != nil { + return x.UserId + } + return nil +} + +type GetUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The user information. + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *GetUserResponse) Reset() { + *x = GetUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserResponse) ProtoMessage() {} + +func (x *GetUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserResponse.ProtoReflect.Descriptor instead. +func (*GetUserResponse) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{1} +} + +func (x *GetUserResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetUserResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetUserResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +type GetUserByClaimRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The claim on the basis of which users will be filtered. + Claim string `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"` + // REQUIRED. + // The value of the claim to find the specific user. + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GetUserByClaimRequest) Reset() { + *x = GetUserByClaimRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserByClaimRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserByClaimRequest) ProtoMessage() {} + +func (x *GetUserByClaimRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserByClaimRequest.ProtoReflect.Descriptor instead. +func (*GetUserByClaimRequest) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{2} +} + +func (x *GetUserByClaimRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetUserByClaimRequest) GetClaim() string { + if x != nil { + return x.Claim + } + return "" +} + +func (x *GetUserByClaimRequest) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type GetUserByClaimResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The user information. + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *GetUserByClaimResponse) Reset() { + *x = GetUserByClaimResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserByClaimResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserByClaimResponse) ProtoMessage() {} + +func (x *GetUserByClaimResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserByClaimResponse.ProtoReflect.Descriptor instead. +func (*GetUserByClaimResponse) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{3} +} + +func (x *GetUserByClaimResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetUserByClaimResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetUserByClaimResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +type GetUserGroupsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The id of the user. + UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *GetUserGroupsRequest) Reset() { + *x = GetUserGroupsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserGroupsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserGroupsRequest) ProtoMessage() {} + +func (x *GetUserGroupsRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserGroupsRequest.ProtoReflect.Descriptor instead. +func (*GetUserGroupsRequest) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{4} +} + +func (x *GetUserGroupsRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetUserGroupsRequest) GetUserId() *UserId { + if x != nil { + return x.UserId + } + return nil +} + +type GetUserGroupsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The groups for the user. + Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"` +} + +func (x *GetUserGroupsResponse) Reset() { + *x = GetUserGroupsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserGroupsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserGroupsResponse) ProtoMessage() {} + +func (x *GetUserGroupsResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserGroupsResponse.ProtoReflect.Descriptor instead. +func (*GetUserGroupsResponse) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{5} +} + +func (x *GetUserGroupsResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetUserGroupsResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetUserGroupsResponse) GetGroups() []string { + if x != nil { + return x.Groups + } + return nil +} + +type IsInGroupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The id of the user. + UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + // REQUIRED. + // The group to check. + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` +} + +func (x *IsInGroupRequest) Reset() { + *x = IsInGroupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IsInGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsInGroupRequest) ProtoMessage() {} + +func (x *IsInGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 IsInGroupRequest.ProtoReflect.Descriptor instead. +func (*IsInGroupRequest) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{6} +} + +func (x *IsInGroupRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *IsInGroupRequest) GetUserId() *UserId { + if x != nil { + return x.UserId + } + return nil +} + +func (x *IsInGroupRequest) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +type IsInGroupResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // Tells if the user belongs to the group. + Ok bool `protobuf:"varint,3,opt,name=ok,proto3" json:"ok,omitempty"` +} + +func (x *IsInGroupResponse) Reset() { + *x = IsInGroupResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IsInGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsInGroupResponse) ProtoMessage() {} + +func (x *IsInGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 IsInGroupResponse.ProtoReflect.Descriptor instead. +func (*IsInGroupResponse) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{7} +} + +func (x *IsInGroupResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *IsInGroupResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *IsInGroupResponse) GetOk() bool { + if x != nil { + return x.Ok + } + return false +} + +type FindUsersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. TODO(labkode): create proper filters for most common searches. + // The filter to apply. + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` +} + +func (x *FindUsersRequest) Reset() { + *x = FindUsersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindUsersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindUsersRequest) ProtoMessage() {} + +func (x *FindUsersRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_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 FindUsersRequest.ProtoReflect.Descriptor instead. +func (*FindUsersRequest) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{8} +} + +func (x *FindUsersRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FindUsersRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +type FindUsersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The users matching the specified filter. + Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` +} + +func (x *FindUsersResponse) Reset() { + *x = FindUsersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindUsersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindUsersResponse) ProtoMessage() {} + +func (x *FindUsersResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[9] + 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 FindUsersResponse.ProtoReflect.Descriptor instead. +func (*FindUsersResponse) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{9} +} + +func (x *FindUsersResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *FindUsersResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FindUsersResponse) GetUsers() []*User { + if x != nil { + return x.Users + } + return nil +} + +type FindGroupsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The filter to apply. + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` +} + +func (x *FindGroupsRequest) Reset() { + *x = FindGroupsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindGroupsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindGroupsRequest) ProtoMessage() {} + +func (x *FindGroupsRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[10] + 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 FindGroupsRequest.ProtoReflect.Descriptor instead. +func (*FindGroupsRequest) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{10} +} + +func (x *FindGroupsRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FindGroupsRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +type FindGroupsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The groups matching the specified filter. + Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"` +} + +func (x *FindGroupsResponse) Reset() { + *x = FindGroupsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindGroupsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindGroupsResponse) ProtoMessage() {} + +func (x *FindGroupsResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[11] + 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 FindGroupsResponse.ProtoReflect.Descriptor instead. +func (*FindGroupsResponse) Descriptor() ([]byte, []int) { + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{11} +} + +func (x *FindGroupsResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *FindGroupsResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FindGroupsResponse) GetGroups() []string { + if x != nil { + return x.Groups + } + return nil +} + +var File_cs3_identity_user_v1beta1_user_api_proto protoreflect.FileDescriptor + +var file_cs3_identity_user_v1beta1_user_api_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33, 0x2e, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, + 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xaa, + 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x76, 0x0a, 0x15, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x69, 0x6d, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, + 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x85, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, + 0x93, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3a, 0x0a, + 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, + 0x87, 0x01, 0x0a, 0x11, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x5d, 0x0a, 0x10, 0x46, 0x69, 0x6e, + 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0xae, 0x01, 0x0a, 0x11, 0x46, 0x69, 0x6e, + 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x5e, 0x0a, 0x11, 0x46, 0x69, 0x6e, + 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, + 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x90, 0x01, 0x0a, 0x12, 0x46, 0x69, + 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x32, 0x91, 0x05, 0x0a, + 0x07, 0x55, 0x73, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x60, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x47, 0x65, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x30, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x72, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x09, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, + 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x49, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, + 0x09, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x7a, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x42, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, + 0x03, 0x43, 0x49, 0x55, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, + 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, + 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_identity_user_v1beta1_user_api_proto_rawDescOnce sync.Once + file_cs3_identity_user_v1beta1_user_api_proto_rawDescData = file_cs3_identity_user_v1beta1_user_api_proto_rawDesc +) + +func file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP() []byte { + file_cs3_identity_user_v1beta1_user_api_proto_rawDescOnce.Do(func() { + file_cs3_identity_user_v1beta1_user_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_identity_user_v1beta1_user_api_proto_rawDescData) + }) + return file_cs3_identity_user_v1beta1_user_api_proto_rawDescData +} + +var file_cs3_identity_user_v1beta1_user_api_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_cs3_identity_user_v1beta1_user_api_proto_goTypes = []interface{}{ + (*GetUserRequest)(nil), // 0: cs3.identity.user.v1beta1.GetUserRequest + (*GetUserResponse)(nil), // 1: cs3.identity.user.v1beta1.GetUserResponse + (*GetUserByClaimRequest)(nil), // 2: cs3.identity.user.v1beta1.GetUserByClaimRequest + (*GetUserByClaimResponse)(nil), // 3: cs3.identity.user.v1beta1.GetUserByClaimResponse + (*GetUserGroupsRequest)(nil), // 4: cs3.identity.user.v1beta1.GetUserGroupsRequest + (*GetUserGroupsResponse)(nil), // 5: cs3.identity.user.v1beta1.GetUserGroupsResponse + (*IsInGroupRequest)(nil), // 6: cs3.identity.user.v1beta1.IsInGroupRequest + (*IsInGroupResponse)(nil), // 7: cs3.identity.user.v1beta1.IsInGroupResponse + (*FindUsersRequest)(nil), // 8: cs3.identity.user.v1beta1.FindUsersRequest + (*FindUsersResponse)(nil), // 9: cs3.identity.user.v1beta1.FindUsersResponse + (*FindGroupsRequest)(nil), // 10: cs3.identity.user.v1beta1.FindGroupsRequest + (*FindGroupsResponse)(nil), // 11: cs3.identity.user.v1beta1.FindGroupsResponse + (*v1beta1.Opaque)(nil), // 12: cs3.types.v1beta1.Opaque + (*UserId)(nil), // 13: cs3.identity.user.v1beta1.UserId + (*v1beta11.Status)(nil), // 14: cs3.rpc.v1beta1.Status + (*User)(nil), // 15: cs3.identity.user.v1beta1.User +} +var file_cs3_identity_user_v1beta1_user_api_proto_depIdxs = []int32{ + 12, // 0: cs3.identity.user.v1beta1.GetUserRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 13, // 1: cs3.identity.user.v1beta1.GetUserRequest.user_id:type_name -> cs3.identity.user.v1beta1.UserId + 14, // 2: cs3.identity.user.v1beta1.GetUserResponse.status:type_name -> cs3.rpc.v1beta1.Status + 12, // 3: cs3.identity.user.v1beta1.GetUserResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 15, // 4: cs3.identity.user.v1beta1.GetUserResponse.user:type_name -> cs3.identity.user.v1beta1.User + 12, // 5: cs3.identity.user.v1beta1.GetUserByClaimRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 14, // 6: cs3.identity.user.v1beta1.GetUserByClaimResponse.status:type_name -> cs3.rpc.v1beta1.Status + 12, // 7: cs3.identity.user.v1beta1.GetUserByClaimResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 15, // 8: cs3.identity.user.v1beta1.GetUserByClaimResponse.user:type_name -> cs3.identity.user.v1beta1.User + 12, // 9: cs3.identity.user.v1beta1.GetUserGroupsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 13, // 10: cs3.identity.user.v1beta1.GetUserGroupsRequest.user_id:type_name -> cs3.identity.user.v1beta1.UserId + 14, // 11: cs3.identity.user.v1beta1.GetUserGroupsResponse.status:type_name -> cs3.rpc.v1beta1.Status + 12, // 12: cs3.identity.user.v1beta1.GetUserGroupsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 12, // 13: cs3.identity.user.v1beta1.IsInGroupRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 13, // 14: cs3.identity.user.v1beta1.IsInGroupRequest.user_id:type_name -> cs3.identity.user.v1beta1.UserId + 14, // 15: cs3.identity.user.v1beta1.IsInGroupResponse.status:type_name -> cs3.rpc.v1beta1.Status + 12, // 16: cs3.identity.user.v1beta1.IsInGroupResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 12, // 17: cs3.identity.user.v1beta1.FindUsersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 14, // 18: cs3.identity.user.v1beta1.FindUsersResponse.status:type_name -> cs3.rpc.v1beta1.Status + 12, // 19: cs3.identity.user.v1beta1.FindUsersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 15, // 20: cs3.identity.user.v1beta1.FindUsersResponse.users:type_name -> cs3.identity.user.v1beta1.User + 12, // 21: cs3.identity.user.v1beta1.FindGroupsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 14, // 22: cs3.identity.user.v1beta1.FindGroupsResponse.status:type_name -> cs3.rpc.v1beta1.Status + 12, // 23: cs3.identity.user.v1beta1.FindGroupsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 0, // 24: cs3.identity.user.v1beta1.UserAPI.GetUser:input_type -> cs3.identity.user.v1beta1.GetUserRequest + 2, // 25: cs3.identity.user.v1beta1.UserAPI.GetUserByClaim:input_type -> cs3.identity.user.v1beta1.GetUserByClaimRequest + 4, // 26: cs3.identity.user.v1beta1.UserAPI.GetUserGroups:input_type -> cs3.identity.user.v1beta1.GetUserGroupsRequest + 6, // 27: cs3.identity.user.v1beta1.UserAPI.IsInGroup:input_type -> cs3.identity.user.v1beta1.IsInGroupRequest + 8, // 28: cs3.identity.user.v1beta1.UserAPI.FindUsers:input_type -> cs3.identity.user.v1beta1.FindUsersRequest + 10, // 29: cs3.identity.user.v1beta1.UserAPI.FindGroups:input_type -> cs3.identity.user.v1beta1.FindGroupsRequest + 1, // 30: cs3.identity.user.v1beta1.UserAPI.GetUser:output_type -> cs3.identity.user.v1beta1.GetUserResponse + 3, // 31: cs3.identity.user.v1beta1.UserAPI.GetUserByClaim:output_type -> cs3.identity.user.v1beta1.GetUserByClaimResponse + 5, // 32: cs3.identity.user.v1beta1.UserAPI.GetUserGroups:output_type -> cs3.identity.user.v1beta1.GetUserGroupsResponse + 7, // 33: cs3.identity.user.v1beta1.UserAPI.IsInGroup:output_type -> cs3.identity.user.v1beta1.IsInGroupResponse + 9, // 34: cs3.identity.user.v1beta1.UserAPI.FindUsers:output_type -> cs3.identity.user.v1beta1.FindUsersResponse + 11, // 35: cs3.identity.user.v1beta1.UserAPI.FindGroups:output_type -> cs3.identity.user.v1beta1.FindGroupsResponse + 30, // [30:36] is the sub-list for method output_type + 24, // [24:30] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name +} + +func init() { file_cs3_identity_user_v1beta1_user_api_proto_init() } +func file_cs3_identity_user_v1beta1_user_api_proto_init() { + if File_cs3_identity_user_v1beta1_user_api_proto != nil { + return + } + file_cs3_identity_user_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserByClaimRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserByClaimResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserGroupsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserGroupsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsInGroupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsInGroupResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindUsersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindUsersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindGroupsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindGroupsResponse); 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_cs3_identity_user_v1beta1_user_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_identity_user_v1beta1_user_api_proto_goTypes, + DependencyIndexes: file_cs3_identity_user_v1beta1_user_api_proto_depIdxs, + MessageInfos: file_cs3_identity_user_v1beta1_user_api_proto_msgTypes, + }.Build() + File_cs3_identity_user_v1beta1_user_api_proto = out.File + file_cs3_identity_user_v1beta1_user_api_proto_rawDesc = nil + file_cs3_identity_user_v1beta1_user_api_proto_goTypes = nil + file_cs3_identity_user_v1beta1_user_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// UserAPIClient is the client API for UserAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type UserAPIClient interface { + // Gets the information about a user by the user id. + GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) + // Gets the information about a user based on a specified claim. + GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...grpc.CallOption) (*GetUserByClaimResponse, error) + // Gets the groups of a user. + GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) + // Tells if the user is in a certain group. + IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...grpc.CallOption) (*IsInGroupResponse, error) + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(ctx context.Context, in *FindUsersRequest, opts ...grpc.CallOption) (*FindUsersResponse, error) + // Finds groups whose names match the specified filter. + FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...grpc.CallOption) (*FindGroupsResponse, error) +} + +type userAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewUserAPIClient(cc grpc.ClientConnInterface) UserAPIClient { + return &userAPIClient{cc} +} + +func (c *userAPIClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) { + out := new(GetUserResponse) + err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/GetUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...grpc.CallOption) (*GetUserByClaimResponse, error) { + out := new(GetUserByClaimResponse) + err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/GetUserByClaim", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) { + out := new(GetUserGroupsResponse) + err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/GetUserGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...grpc.CallOption) (*IsInGroupResponse, error) { + out := new(IsInGroupResponse) + err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/IsInGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) FindUsers(ctx context.Context, in *FindUsersRequest, opts ...grpc.CallOption) (*FindUsersResponse, error) { + out := new(FindUsersResponse) + err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/FindUsers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...grpc.CallOption) (*FindGroupsResponse, error) { + out := new(FindGroupsResponse) + err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/FindGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// UserAPIServer is the server API for UserAPI service. +type UserAPIServer interface { + // Gets the information about a user by the user id. + GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) + // Gets the information about a user based on a specified claim. + GetUserByClaim(context.Context, *GetUserByClaimRequest) (*GetUserByClaimResponse, error) + // Gets the groups of a user. + GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) + // Tells if the user is in a certain group. + IsInGroup(context.Context, *IsInGroupRequest) (*IsInGroupResponse, error) + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(context.Context, *FindUsersRequest) (*FindUsersResponse, error) + // Finds groups whose names match the specified filter. + FindGroups(context.Context, *FindGroupsRequest) (*FindGroupsResponse, error) +} + +// UnimplementedUserAPIServer can be embedded to have forward compatible implementations. +type UnimplementedUserAPIServer struct { +} + +func (*UnimplementedUserAPIServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") +} +func (*UnimplementedUserAPIServer) GetUserByClaim(context.Context, *GetUserByClaimRequest) (*GetUserByClaimResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserByClaim not implemented") +} +func (*UnimplementedUserAPIServer) GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented") +} +func (*UnimplementedUserAPIServer) IsInGroup(context.Context, *IsInGroupRequest) (*IsInGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsInGroup not implemented") +} +func (*UnimplementedUserAPIServer) FindUsers(context.Context, *FindUsersRequest) (*FindUsersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindUsers not implemented") +} +func (*UnimplementedUserAPIServer) FindGroups(context.Context, *FindGroupsRequest) (*FindGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindGroups not implemented") +} + +func RegisterUserAPIServer(s *grpc.Server, srv UserAPIServer) { + s.RegisterService(&_UserAPI_serviceDesc, srv) +} + +func _UserAPI_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.identity.user.v1beta1.UserAPI/GetUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetUser(ctx, req.(*GetUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetUserByClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserByClaimRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetUserByClaim(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.identity.user.v1beta1.UserAPI/GetUserByClaim", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetUserByClaim(ctx, req.(*GetUserByClaimRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetUserGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetUserGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.identity.user.v1beta1.UserAPI/GetUserGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetUserGroups(ctx, req.(*GetUserGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_IsInGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsInGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).IsInGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.identity.user.v1beta1.UserAPI/IsInGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).IsInGroup(ctx, req.(*IsInGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_FindUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindUsersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).FindUsers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.identity.user.v1beta1.UserAPI/FindUsers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).FindUsers(ctx, req.(*FindUsersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_FindGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).FindGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.identity.user.v1beta1.UserAPI/FindGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).FindGroups(ctx, req.(*FindGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _UserAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.identity.user.v1beta1.UserAPI", + HandlerType: (*UserAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetUser", + Handler: _UserAPI_GetUser_Handler, + }, + { + MethodName: "GetUserByClaim", + Handler: _UserAPI_GetUserByClaim_Handler, + }, + { + MethodName: "GetUserGroups", + Handler: _UserAPI_GetUserGroups_Handler, + }, + { + MethodName: "IsInGroup", + Handler: _UserAPI_IsInGroup_Handler, + }, + { + MethodName: "FindUsers", + Handler: _UserAPI_FindUsers_Handler, + }, + { + MethodName: "FindGroups", + Handler: _UserAPI_FindGroups_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/identity/user/v1beta1/user_api.proto", +} diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go b/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go new file mode 100644 index 00000000..08f622bc --- /dev/null +++ b/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go @@ -0,0 +1,194 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/identity/user/v1beta1/user_api.proto + +package userv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for UserAPI service + +func NewUserAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for UserAPI service + +type UserAPIService interface { + // Gets the information about a user by the user id. + GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error) + // Gets the information about a user based on a specified claim. + GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...client.CallOption) (*GetUserByClaimResponse, error) + // Gets the groups of a user. + GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...client.CallOption) (*GetUserGroupsResponse, error) + // Tells if the user is in a certain group. + IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...client.CallOption) (*IsInGroupResponse, error) + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(ctx context.Context, in *FindUsersRequest, opts ...client.CallOption) (*FindUsersResponse, error) + // Finds groups whose names match the specified filter. + FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...client.CallOption) (*FindGroupsResponse, error) +} + +type userAPIService struct { + c client.Client + name string +} + +func NewUserAPIService(name string, c client.Client) UserAPIService { + return &userAPIService{ + c: c, + name: name, + } +} + +func (c *userAPIService) GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error) { + req := c.c.NewRequest(c.name, "UserAPI.GetUser", in) + out := new(GetUserResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIService) GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...client.CallOption) (*GetUserByClaimResponse, error) { + req := c.c.NewRequest(c.name, "UserAPI.GetUserByClaim", in) + out := new(GetUserByClaimResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIService) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...client.CallOption) (*GetUserGroupsResponse, error) { + req := c.c.NewRequest(c.name, "UserAPI.GetUserGroups", in) + out := new(GetUserGroupsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIService) IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...client.CallOption) (*IsInGroupResponse, error) { + req := c.c.NewRequest(c.name, "UserAPI.IsInGroup", in) + out := new(IsInGroupResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIService) FindUsers(ctx context.Context, in *FindUsersRequest, opts ...client.CallOption) (*FindUsersResponse, error) { + req := c.c.NewRequest(c.name, "UserAPI.FindUsers", in) + out := new(FindUsersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIService) FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...client.CallOption) (*FindGroupsResponse, error) { + req := c.c.NewRequest(c.name, "UserAPI.FindGroups", in) + out := new(FindGroupsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for UserAPI service + +type UserAPIHandler interface { + // Gets the information about a user by the user id. + GetUser(context.Context, *GetUserRequest, *GetUserResponse) error + // Gets the information about a user based on a specified claim. + GetUserByClaim(context.Context, *GetUserByClaimRequest, *GetUserByClaimResponse) error + // Gets the groups of a user. + GetUserGroups(context.Context, *GetUserGroupsRequest, *GetUserGroupsResponse) error + // Tells if the user is in a certain group. + IsInGroup(context.Context, *IsInGroupRequest, *IsInGroupResponse) error + // Finds users by any attribute of the user. + // TODO(labkode): to define the filters that make more sense. + FindUsers(context.Context, *FindUsersRequest, *FindUsersResponse) error + // Finds groups whose names match the specified filter. + FindGroups(context.Context, *FindGroupsRequest, *FindGroupsResponse) error +} + +func RegisterUserAPIHandler(s server.Server, hdlr UserAPIHandler, opts ...server.HandlerOption) error { + type userAPI interface { + GetUser(ctx context.Context, in *GetUserRequest, out *GetUserResponse) error + GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, out *GetUserByClaimResponse) error + GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, out *GetUserGroupsResponse) error + IsInGroup(ctx context.Context, in *IsInGroupRequest, out *IsInGroupResponse) error + FindUsers(ctx context.Context, in *FindUsersRequest, out *FindUsersResponse) error + FindGroups(ctx context.Context, in *FindGroupsRequest, out *FindGroupsResponse) error + } + type UserAPI struct { + userAPI + } + h := &userAPIHandler{hdlr} + return s.Handle(s.NewHandler(&UserAPI{h}, opts...)) +} + +type userAPIHandler struct { + UserAPIHandler +} + +func (h *userAPIHandler) GetUser(ctx context.Context, in *GetUserRequest, out *GetUserResponse) error { + return h.UserAPIHandler.GetUser(ctx, in, out) +} + +func (h *userAPIHandler) GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, out *GetUserByClaimResponse) error { + return h.UserAPIHandler.GetUserByClaim(ctx, in, out) +} + +func (h *userAPIHandler) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, out *GetUserGroupsResponse) error { + return h.UserAPIHandler.GetUserGroups(ctx, in, out) +} + +func (h *userAPIHandler) IsInGroup(ctx context.Context, in *IsInGroupRequest, out *IsInGroupResponse) error { + return h.UserAPIHandler.IsInGroup(ctx, in, out) +} + +func (h *userAPIHandler) FindUsers(ctx context.Context, in *FindUsersRequest, out *FindUsersResponse) error { + return h.UserAPIHandler.FindUsers(ctx, in, out) +} + +func (h *userAPIHandler) FindGroups(ctx context.Context, in *FindGroupsRequest, out *FindGroupsResponse) error { + return h.UserAPIHandler.FindGroups(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go new file mode 100644 index 00000000..675a85a7 --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go @@ -0,0 +1,484 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/ocm/core/v1beta1/ocm_core_api.proto + +package corev1beta1 + +import ( + context "context" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// https://rawgit.com/GEANT/OCM-API/v1/docs.html#null%2Fpaths%2F~1shares%2Fpost +type CreateOCMCoreShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // OPTIONAL. + // Description for the share. + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + // REQUIRED. + // Name of the resource (file or folder). + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // REQUIRED. + // Identifier to identify the resource at the provider side. This is unique per provider. + ProviderId string `protobuf:"bytes,4,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` + // REQUIRED. + // Provider specific identifier of the user that wants to share the resource. + Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` + // REQUIRED. + // Consumer specific identifier of the user or group the provider wants to share the resource with. + // This is known in advance, for example using the OCM invitation flow. + // Please note that the consumer service endpoint is known in advance as well, so this is no part of the request body. + // TODO: this field needs to represent either a user or group in the future, not only a user. + ShareWith *v1beta11.UserId `protobuf:"bytes,6,opt,name=share_with,json=shareWith,proto3" json:"share_with,omitempty"` + // REQUIRED. + // The protocol which is used to establish synchronisation. + Protocol *Protocol `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"` +} + +func (x *CreateOCMCoreShareRequest) Reset() { + *x = CreateOCMCoreShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateOCMCoreShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOCMCoreShareRequest) ProtoMessage() {} + +func (x *CreateOCMCoreShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_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 CreateOCMCoreShareRequest.ProtoReflect.Descriptor instead. +func (*CreateOCMCoreShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateOCMCoreShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateOCMCoreShareRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateOCMCoreShareRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateOCMCoreShareRequest) GetProviderId() string { + if x != nil { + return x.ProviderId + } + return "" +} + +func (x *CreateOCMCoreShareRequest) GetOwner() *v1beta11.UserId { + if x != nil { + return x.Owner + } + return nil +} + +func (x *CreateOCMCoreShareRequest) GetShareWith() *v1beta11.UserId { + if x != nil { + return x.ShareWith + } + return nil +} + +func (x *CreateOCMCoreShareRequest) GetProtocol() *Protocol { + if x != nil { + return x.Protocol + } + return nil +} + +type CreateOCMCoreShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // Unique ID to identify the share at the consumer side. + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + // REQUIRED. + Created *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` +} + +func (x *CreateOCMCoreShareResponse) Reset() { + *x = CreateOCMCoreShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateOCMCoreShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOCMCoreShareResponse) ProtoMessage() {} + +func (x *CreateOCMCoreShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_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 CreateOCMCoreShareResponse.ProtoReflect.Descriptor instead. +func (*CreateOCMCoreShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateOCMCoreShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateOCMCoreShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateOCMCoreShareResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *CreateOCMCoreShareResponse) GetCreated() *v1beta1.Timestamp { + if x != nil { + return x.Created + } + return nil +} + +var File_cs3_ocm_core_v1beta1_ocm_core_api_proto protoreflect.FileDescriptor + +var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x73, 0x33, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, + 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x73, 0x33, 0x2f, + 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, + 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, + 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x20, + 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x40, + 0x0a, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x09, 0x73, 0x68, 0x61, 0x72, 0x65, 0x57, 0x69, 0x74, 0x68, + 0x12, 0x3a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0xc8, 0x01, 0x0a, + 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x36, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x32, 0x85, 0x01, 0x0a, 0x0a, 0x4f, 0x63, 0x6d, 0x43, + 0x6f, 0x72, 0x65, 0x41, 0x50, 0x49, 0x12, 0x77, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, + 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, + 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x6e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x4f, 0x63, 0x6d, + 0x43, 0x6f, 0x72, 0x65, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0b, + 0x63, 0x6f, 0x72, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, + 0x43, 0xaa, 0x02, 0x14, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x43, 0x6f, 0x72, 0x65, + 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x73, 0x33, 0x5c, 0x4f, + 0x63, 0x6d, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescOnce sync.Once + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData = file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc +) + +func file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescGZIP() []byte { + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescOnce.Do(func() { + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData) + }) + return file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData +} + +var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_goTypes = []interface{}{ + (*CreateOCMCoreShareRequest)(nil), // 0: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest + (*CreateOCMCoreShareResponse)(nil), // 1: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse + (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque + (*v1beta11.UserId)(nil), // 3: cs3.identity.user.v1beta1.UserId + (*Protocol)(nil), // 4: cs3.ocm.core.v1beta1.Protocol + (*v1beta12.Status)(nil), // 5: cs3.rpc.v1beta1.Status + (*v1beta1.Timestamp)(nil), // 6: cs3.types.v1beta1.Timestamp +} +var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_depIdxs = []int32{ + 2, // 0: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 3, // 1: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.owner:type_name -> cs3.identity.user.v1beta1.UserId + 3, // 2: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.share_with:type_name -> cs3.identity.user.v1beta1.UserId + 4, // 3: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.protocol:type_name -> cs3.ocm.core.v1beta1.Protocol + 5, // 4: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 2, // 5: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 6, // 6: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse.created:type_name -> cs3.types.v1beta1.Timestamp + 0, // 7: cs3.ocm.core.v1beta1.OcmCoreAPI.CreateOCMCoreShare:input_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest + 1, // 8: cs3.ocm.core.v1beta1.OcmCoreAPI.CreateOCMCoreShare:output_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse + 8, // [8:9] is the sub-list for method output_type + 7, // [7:8] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_cs3_ocm_core_v1beta1_ocm_core_api_proto_init() } +func file_cs3_ocm_core_v1beta1_ocm_core_api_proto_init() { + if File_cs3_ocm_core_v1beta1_ocm_core_api_proto != nil { + return + } + file_cs3_ocm_core_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateOCMCoreShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateOCMCoreShareResponse); 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_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_ocm_core_v1beta1_ocm_core_api_proto_goTypes, + DependencyIndexes: file_cs3_ocm_core_v1beta1_ocm_core_api_proto_depIdxs, + MessageInfos: file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes, + }.Build() + File_cs3_ocm_core_v1beta1_ocm_core_api_proto = out.File + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc = nil + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_goTypes = nil + file_cs3_ocm_core_v1beta1_ocm_core_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// OcmCoreAPIClient is the client API for OcmCoreAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type OcmCoreAPIClient interface { + // Creates a new ocm share. + CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*CreateOCMCoreShareResponse, error) +} + +type ocmCoreAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewOcmCoreAPIClient(cc grpc.ClientConnInterface) OcmCoreAPIClient { + return &ocmCoreAPIClient{cc} +} + +func (c *ocmCoreAPIClient) CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*CreateOCMCoreShareResponse, error) { + out := new(CreateOCMCoreShareResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.core.v1beta1.OcmCoreAPI/CreateOCMCoreShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// OcmCoreAPIServer is the server API for OcmCoreAPI service. +type OcmCoreAPIServer interface { + // Creates a new ocm share. + CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error) +} + +// UnimplementedOcmCoreAPIServer can be embedded to have forward compatible implementations. +type UnimplementedOcmCoreAPIServer struct { +} + +func (*UnimplementedOcmCoreAPIServer) CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOCMCoreShare not implemented") +} + +func RegisterOcmCoreAPIServer(s *grpc.Server, srv OcmCoreAPIServer) { + s.RegisterService(&_OcmCoreAPI_serviceDesc, srv) +} + +func _OcmCoreAPI_CreateOCMCoreShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateOCMCoreShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmCoreAPIServer).CreateOCMCoreShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.core.v1beta1.OcmCoreAPI/CreateOCMCoreShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmCoreAPIServer).CreateOCMCoreShare(ctx, req.(*CreateOCMCoreShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _OcmCoreAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.ocm.core.v1beta1.OcmCoreAPI", + HandlerType: (*OcmCoreAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateOCMCoreShare", + Handler: _OcmCoreAPI_CreateOCMCoreShare_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/ocm/core/v1beta1/ocm_core_api.proto", +} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go new file mode 100644 index 00000000..63492f2d --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go @@ -0,0 +1,98 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/ocm/core/v1beta1/ocm_core_api.proto + +package corev1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for OcmCoreAPI service + +func NewOcmCoreAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for OcmCoreAPI service + +type OcmCoreAPIService interface { + // Creates a new ocm share. + CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...client.CallOption) (*CreateOCMCoreShareResponse, error) +} + +type ocmCoreAPIService struct { + c client.Client + name string +} + +func NewOcmCoreAPIService(name string, c client.Client) OcmCoreAPIService { + return &ocmCoreAPIService{ + c: c, + name: name, + } +} + +func (c *ocmCoreAPIService) CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...client.CallOption) (*CreateOCMCoreShareResponse, error) { + req := c.c.NewRequest(c.name, "OcmCoreAPI.CreateOCMCoreShare", in) + out := new(CreateOCMCoreShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for OcmCoreAPI service + +type OcmCoreAPIHandler interface { + // Creates a new ocm share. + CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest, *CreateOCMCoreShareResponse) error +} + +func RegisterOcmCoreAPIHandler(s server.Server, hdlr OcmCoreAPIHandler, opts ...server.HandlerOption) error { + type ocmCoreAPI interface { + CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, out *CreateOCMCoreShareResponse) error + } + type OcmCoreAPI struct { + ocmCoreAPI + } + h := &ocmCoreAPIHandler{hdlr} + return s.Handle(s.NewHandler(&OcmCoreAPI{h}, opts...)) +} + +type ocmCoreAPIHandler struct { + OcmCoreAPIHandler +} + +func (h *ocmCoreAPIHandler) CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, out *CreateOCMCoreShareResponse) error { + return h.OcmCoreAPIHandler.CreateOCMCoreShare(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go new file mode 100644 index 00000000..f3e8ae8d --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go @@ -0,0 +1,195 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/ocm/core/v1beta1/resources.proto + +package corev1beta1 + +import ( + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The protocol which is used to establish synchronisation. +type Protocol struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The name of the protocol to use. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // REQUIRED. + // JSON object with protocol specific options, + // e.g. uri, access_token, password, permissions etc. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *Protocol) Reset() { + *x = Protocol{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_core_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Protocol) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Protocol) ProtoMessage() {} + +func (x *Protocol) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_core_v1beta1_resources_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 Protocol.ProtoReflect.Descriptor instead. +func (*Protocol) Descriptor() ([]byte, []int) { + return file_cs3_ocm_core_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *Protocol) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Protocol) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +var File_cs3_ocm_core_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_ocm_core_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, + 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x42, 0x6d, + 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0b, 0x63, 0x6f, + 0x72, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x43, 0xaa, + 0x02, 0x14, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, + 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_ocm_core_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_ocm_core_v1beta1_resources_proto_rawDescData = file_cs3_ocm_core_v1beta1_resources_proto_rawDesc +) + +func file_cs3_ocm_core_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_ocm_core_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_ocm_core_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_core_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_ocm_core_v1beta1_resources_proto_rawDescData +} + +var file_cs3_ocm_core_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_cs3_ocm_core_v1beta1_resources_proto_goTypes = []interface{}{ + (*Protocol)(nil), // 0: cs3.ocm.core.v1beta1.Protocol + (*v1beta1.Opaque)(nil), // 1: cs3.types.v1beta1.Opaque +} +var file_cs3_ocm_core_v1beta1_resources_proto_depIdxs = []int32{ + 1, // 0: cs3.ocm.core.v1beta1.Protocol.opaque:type_name -> cs3.types.v1beta1.Opaque + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_cs3_ocm_core_v1beta1_resources_proto_init() } +func file_cs3_ocm_core_v1beta1_resources_proto_init() { + if File_cs3_ocm_core_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_ocm_core_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Protocol); 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_cs3_ocm_core_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_ocm_core_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_ocm_core_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_ocm_core_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_ocm_core_v1beta1_resources_proto = out.File + file_cs3_ocm_core_v1beta1_resources_proto_rawDesc = nil + file_cs3_ocm_core_v1beta1_resources_proto_goTypes = nil + file_cs3_ocm_core_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..b74e7f93 --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go @@ -0,0 +1,22 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/ocm/core/v1beta1/resources.proto + +package corev1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go new file mode 100644 index 00000000..5a6e1079 --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go @@ -0,0 +1,1080 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/ocm/invite/v1beta1/invite_api.proto + +package invitev1beta1 + +import ( + context "context" + v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GenerateInviteTokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *GenerateInviteTokenRequest) Reset() { + *x = GenerateInviteTokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenerateInviteTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateInviteTokenRequest) ProtoMessage() {} + +func (x *GenerateInviteTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GenerateInviteTokenRequest.ProtoReflect.Descriptor instead. +func (*GenerateInviteTokenRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{0} +} + +func (x *GenerateInviteTokenRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GenerateInviteTokenResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The generated token. + InviteToken *InviteToken `protobuf:"bytes,3,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"` +} + +func (x *GenerateInviteTokenResponse) Reset() { + *x = GenerateInviteTokenResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenerateInviteTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateInviteTokenResponse) ProtoMessage() {} + +func (x *GenerateInviteTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GenerateInviteTokenResponse.ProtoReflect.Descriptor instead. +func (*GenerateInviteTokenResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{1} +} + +func (x *GenerateInviteTokenResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GenerateInviteTokenResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GenerateInviteTokenResponse) GetInviteToken() *InviteToken { + if x != nil { + return x.InviteToken + } + return nil +} + +type ForwardInviteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The token to authenticate with. + InviteToken *InviteToken `protobuf:"bytes,2,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"` + // REQUIRED. + // The details of the sync'n'share system provider of the user who sent the invite. + OriginSystemProvider *v1beta12.ProviderInfo `protobuf:"bytes,3,opt,name=origin_system_provider,json=originSystemProvider,proto3" json:"origin_system_provider,omitempty"` +} + +func (x *ForwardInviteRequest) Reset() { + *x = ForwardInviteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ForwardInviteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ForwardInviteRequest) ProtoMessage() {} + +func (x *ForwardInviteRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 ForwardInviteRequest.ProtoReflect.Descriptor instead. +func (*ForwardInviteRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{2} +} + +func (x *ForwardInviteRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ForwardInviteRequest) GetInviteToken() *InviteToken { + if x != nil { + return x.InviteToken + } + return nil +} + +func (x *ForwardInviteRequest) GetOriginSystemProvider() *v1beta12.ProviderInfo { + if x != nil { + return x.OriginSystemProvider + } + return nil +} + +type ForwardInviteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *ForwardInviteResponse) Reset() { + *x = ForwardInviteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ForwardInviteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ForwardInviteResponse) ProtoMessage() {} + +func (x *ForwardInviteResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 ForwardInviteResponse.ProtoReflect.Descriptor instead. +func (*ForwardInviteResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{3} +} + +func (x *ForwardInviteResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ForwardInviteResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type AcceptInviteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The token to authenticate with. + InviteToken *InviteToken `protobuf:"bytes,2,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"` + // REQUIRED. + // The user who accepted the invite. + RemoteUser *v1beta13.User `protobuf:"bytes,3,opt,name=remote_user,json=remoteUser,proto3" json:"remote_user,omitempty"` +} + +func (x *AcceptInviteRequest) Reset() { + *x = AcceptInviteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AcceptInviteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AcceptInviteRequest) ProtoMessage() {} + +func (x *AcceptInviteRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 AcceptInviteRequest.ProtoReflect.Descriptor instead. +func (*AcceptInviteRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{4} +} + +func (x *AcceptInviteRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *AcceptInviteRequest) GetInviteToken() *InviteToken { + if x != nil { + return x.InviteToken + } + return nil +} + +func (x *AcceptInviteRequest) GetRemoteUser() *v1beta13.User { + if x != nil { + return x.RemoteUser + } + return nil +} + +type AcceptInviteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *AcceptInviteResponse) Reset() { + *x = AcceptInviteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AcceptInviteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AcceptInviteResponse) ProtoMessage() {} + +func (x *AcceptInviteResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 AcceptInviteResponse.ProtoReflect.Descriptor instead. +func (*AcceptInviteResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{5} +} + +func (x *AcceptInviteResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *AcceptInviteResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetRemoteUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The id of the user. + RemoteUserId *v1beta13.UserId `protobuf:"bytes,2,opt,name=remote_user_id,json=remoteUserId,proto3" json:"remote_user_id,omitempty"` +} + +func (x *GetRemoteUserRequest) Reset() { + *x = GetRemoteUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRemoteUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRemoteUserRequest) ProtoMessage() {} + +func (x *GetRemoteUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GetRemoteUserRequest.ProtoReflect.Descriptor instead. +func (*GetRemoteUserRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{6} +} + +func (x *GetRemoteUserRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetRemoteUserRequest) GetRemoteUserId() *v1beta13.UserId { + if x != nil { + return x.RemoteUserId + } + return nil +} + +type GetRemoteUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The user information. + RemoteUser *v1beta13.User `protobuf:"bytes,3,opt,name=remote_user,json=remoteUser,proto3" json:"remote_user,omitempty"` +} + +func (x *GetRemoteUserResponse) Reset() { + *x = GetRemoteUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRemoteUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRemoteUserResponse) ProtoMessage() {} + +func (x *GetRemoteUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GetRemoteUserResponse.ProtoReflect.Descriptor instead. +func (*GetRemoteUserResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{7} +} + +func (x *GetRemoteUserResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetRemoteUserResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetRemoteUserResponse) GetRemoteUser() *v1beta13.User { + if x != nil { + return x.RemoteUser + } + return nil +} + +var File_cs3_ocm_invite_v1beta1_invite_api_proto protoreflect.FileDescriptor + +var file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x73, 0x33, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x63, 0x73, + 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, + 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x1a, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc9, 0x01, 0x0a, + 0x1b, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, + 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0b, 0x69, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xef, 0x01, 0x0a, 0x14, 0x46, 0x6f, 0x72, + 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, + 0x0b, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x5c, 0x0a, 0x16, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x14, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x7b, 0x0a, 0x15, 0x46, 0x6f, + 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x13, 0x41, 0x63, 0x63, 0x65, + 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0b, 0x69, + 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x22, 0x7a, 0x0a, 0x14, + 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x92, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, + 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xbd, 0x01, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x32, 0xd2, 0x03, + 0x0a, 0x09, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x41, 0x50, 0x49, 0x12, 0x7e, 0x0a, 0x13, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, + 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x46, + 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x2c, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0c, 0x41, 0x63, 0x63, + 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, + 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, + 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, + 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0x75, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x42, 0x0e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x0d, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x49, 0xaa, 0x02, 0x16, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, + 0x6d, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, + 0xca, 0x02, 0x16, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x49, 0x6e, 0x76, 0x69, 0x74, + 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescOnce sync.Once + file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData = file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc +) + +func file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP() []byte { + file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescOnce.Do(func() { + file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData) + }) + return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData +} + +var file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_cs3_ocm_invite_v1beta1_invite_api_proto_goTypes = []interface{}{ + (*GenerateInviteTokenRequest)(nil), // 0: cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest + (*GenerateInviteTokenResponse)(nil), // 1: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse + (*ForwardInviteRequest)(nil), // 2: cs3.ocm.invite.v1beta1.ForwardInviteRequest + (*ForwardInviteResponse)(nil), // 3: cs3.ocm.invite.v1beta1.ForwardInviteResponse + (*AcceptInviteRequest)(nil), // 4: cs3.ocm.invite.v1beta1.AcceptInviteRequest + (*AcceptInviteResponse)(nil), // 5: cs3.ocm.invite.v1beta1.AcceptInviteResponse + (*GetRemoteUserRequest)(nil), // 6: cs3.ocm.invite.v1beta1.GetRemoteUserRequest + (*GetRemoteUserResponse)(nil), // 7: cs3.ocm.invite.v1beta1.GetRemoteUserResponse + (*v1beta1.Opaque)(nil), // 8: cs3.types.v1beta1.Opaque + (*v1beta11.Status)(nil), // 9: cs3.rpc.v1beta1.Status + (*InviteToken)(nil), // 10: cs3.ocm.invite.v1beta1.InviteToken + (*v1beta12.ProviderInfo)(nil), // 11: cs3.ocm.provider.v1beta1.ProviderInfo + (*v1beta13.User)(nil), // 12: cs3.identity.user.v1beta1.User + (*v1beta13.UserId)(nil), // 13: cs3.identity.user.v1beta1.UserId +} +var file_cs3_ocm_invite_v1beta1_invite_api_proto_depIdxs = []int32{ + 8, // 0: cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 9, // 1: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse.status:type_name -> cs3.rpc.v1beta1.Status + 8, // 2: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 10, // 3: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse.invite_token:type_name -> cs3.ocm.invite.v1beta1.InviteToken + 8, // 4: cs3.ocm.invite.v1beta1.ForwardInviteRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 10, // 5: cs3.ocm.invite.v1beta1.ForwardInviteRequest.invite_token:type_name -> cs3.ocm.invite.v1beta1.InviteToken + 11, // 6: cs3.ocm.invite.v1beta1.ForwardInviteRequest.origin_system_provider:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo + 9, // 7: cs3.ocm.invite.v1beta1.ForwardInviteResponse.status:type_name -> cs3.rpc.v1beta1.Status + 8, // 8: cs3.ocm.invite.v1beta1.ForwardInviteResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 8, // 9: cs3.ocm.invite.v1beta1.AcceptInviteRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 10, // 10: cs3.ocm.invite.v1beta1.AcceptInviteRequest.invite_token:type_name -> cs3.ocm.invite.v1beta1.InviteToken + 12, // 11: cs3.ocm.invite.v1beta1.AcceptInviteRequest.remote_user:type_name -> cs3.identity.user.v1beta1.User + 9, // 12: cs3.ocm.invite.v1beta1.AcceptInviteResponse.status:type_name -> cs3.rpc.v1beta1.Status + 8, // 13: cs3.ocm.invite.v1beta1.AcceptInviteResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 8, // 14: cs3.ocm.invite.v1beta1.GetRemoteUserRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 13, // 15: cs3.ocm.invite.v1beta1.GetRemoteUserRequest.remote_user_id:type_name -> cs3.identity.user.v1beta1.UserId + 9, // 16: cs3.ocm.invite.v1beta1.GetRemoteUserResponse.status:type_name -> cs3.rpc.v1beta1.Status + 8, // 17: cs3.ocm.invite.v1beta1.GetRemoteUserResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 12, // 18: cs3.ocm.invite.v1beta1.GetRemoteUserResponse.remote_user:type_name -> cs3.identity.user.v1beta1.User + 0, // 19: cs3.ocm.invite.v1beta1.InviteAPI.GenerateInviteToken:input_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest + 2, // 20: cs3.ocm.invite.v1beta1.InviteAPI.ForwardInvite:input_type -> cs3.ocm.invite.v1beta1.ForwardInviteRequest + 4, // 21: cs3.ocm.invite.v1beta1.InviteAPI.AcceptInvite:input_type -> cs3.ocm.invite.v1beta1.AcceptInviteRequest + 6, // 22: cs3.ocm.invite.v1beta1.InviteAPI.GetRemoteUser:input_type -> cs3.ocm.invite.v1beta1.GetRemoteUserRequest + 1, // 23: cs3.ocm.invite.v1beta1.InviteAPI.GenerateInviteToken:output_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse + 3, // 24: cs3.ocm.invite.v1beta1.InviteAPI.ForwardInvite:output_type -> cs3.ocm.invite.v1beta1.ForwardInviteResponse + 5, // 25: cs3.ocm.invite.v1beta1.InviteAPI.AcceptInvite:output_type -> cs3.ocm.invite.v1beta1.AcceptInviteResponse + 7, // 26: cs3.ocm.invite.v1beta1.InviteAPI.GetRemoteUser:output_type -> cs3.ocm.invite.v1beta1.GetRemoteUserResponse + 23, // [23:27] is the sub-list for method output_type + 19, // [19:23] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name +} + +func init() { file_cs3_ocm_invite_v1beta1_invite_api_proto_init() } +func file_cs3_ocm_invite_v1beta1_invite_api_proto_init() { + if File_cs3_ocm_invite_v1beta1_invite_api_proto != nil { + return + } + file_cs3_ocm_invite_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateInviteTokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateInviteTokenResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardInviteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardInviteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AcceptInviteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AcceptInviteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRemoteUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRemoteUserResponse); 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_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_ocm_invite_v1beta1_invite_api_proto_goTypes, + DependencyIndexes: file_cs3_ocm_invite_v1beta1_invite_api_proto_depIdxs, + MessageInfos: file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes, + }.Build() + File_cs3_ocm_invite_v1beta1_invite_api_proto = out.File + file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc = nil + file_cs3_ocm_invite_v1beta1_invite_api_proto_goTypes = nil + file_cs3_ocm_invite_v1beta1_invite_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// InviteAPIClient is the client API for InviteAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type InviteAPIClient interface { + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...grpc.CallOption) (*GenerateInviteTokenResponse, error) + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...grpc.CallOption) (*ForwardInviteResponse, error) + // Completes an invitation acceptance. + AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...grpc.CallOption) (*AcceptInviteResponse, error) + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...grpc.CallOption) (*GetRemoteUserResponse, error) +} + +type inviteAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewInviteAPIClient(cc grpc.ClientConnInterface) InviteAPIClient { + return &inviteAPIClient{cc} +} + +func (c *inviteAPIClient) GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...grpc.CallOption) (*GenerateInviteTokenResponse, error) { + out := new(GenerateInviteTokenResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/GenerateInviteToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *inviteAPIClient) ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...grpc.CallOption) (*ForwardInviteResponse, error) { + out := new(ForwardInviteResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/ForwardInvite", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *inviteAPIClient) AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...grpc.CallOption) (*AcceptInviteResponse, error) { + out := new(AcceptInviteResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/AcceptInvite", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *inviteAPIClient) GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...grpc.CallOption) (*GetRemoteUserResponse, error) { + out := new(GetRemoteUserResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/GetRemoteUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InviteAPIServer is the server API for InviteAPI service. +type InviteAPIServer interface { + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(context.Context, *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error) + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(context.Context, *ForwardInviteRequest) (*ForwardInviteResponse, error) + // Completes an invitation acceptance. + AcceptInvite(context.Context, *AcceptInviteRequest) (*AcceptInviteResponse, error) + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(context.Context, *GetRemoteUserRequest) (*GetRemoteUserResponse, error) +} + +// UnimplementedInviteAPIServer can be embedded to have forward compatible implementations. +type UnimplementedInviteAPIServer struct { +} + +func (*UnimplementedInviteAPIServer) GenerateInviteToken(context.Context, *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateInviteToken not implemented") +} +func (*UnimplementedInviteAPIServer) ForwardInvite(context.Context, *ForwardInviteRequest) (*ForwardInviteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ForwardInvite not implemented") +} +func (*UnimplementedInviteAPIServer) AcceptInvite(context.Context, *AcceptInviteRequest) (*AcceptInviteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AcceptInvite not implemented") +} +func (*UnimplementedInviteAPIServer) GetRemoteUser(context.Context, *GetRemoteUserRequest) (*GetRemoteUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRemoteUser not implemented") +} + +func RegisterInviteAPIServer(s *grpc.Server, srv InviteAPIServer) { + s.RegisterService(&_InviteAPI_serviceDesc, srv) +} + +func _InviteAPI_GenerateInviteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateInviteTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InviteAPIServer).GenerateInviteToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/GenerateInviteToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InviteAPIServer).GenerateInviteToken(ctx, req.(*GenerateInviteTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InviteAPI_ForwardInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ForwardInviteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InviteAPIServer).ForwardInvite(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/ForwardInvite", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InviteAPIServer).ForwardInvite(ctx, req.(*ForwardInviteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InviteAPI_AcceptInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AcceptInviteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InviteAPIServer).AcceptInvite(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/AcceptInvite", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InviteAPIServer).AcceptInvite(ctx, req.(*AcceptInviteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _InviteAPI_GetRemoteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRemoteUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InviteAPIServer).GetRemoteUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/GetRemoteUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InviteAPIServer).GetRemoteUser(ctx, req.(*GetRemoteUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _InviteAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.ocm.invite.v1beta1.InviteAPI", + HandlerType: (*InviteAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GenerateInviteToken", + Handler: _InviteAPI_GenerateInviteToken_Handler, + }, + { + MethodName: "ForwardInvite", + Handler: _InviteAPI_ForwardInvite_Handler, + }, + { + MethodName: "AcceptInvite", + Handler: _InviteAPI_AcceptInvite_Handler, + }, + { + MethodName: "GetRemoteUser", + Handler: _InviteAPI_GetRemoteUser_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/ocm/invite/v1beta1/invite_api.proto", +} diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go new file mode 100644 index 00000000..f9b600af --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go @@ -0,0 +1,156 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/ocm/invite/v1beta1/invite_api.proto + +package invitev1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for InviteAPI service + +func NewInviteAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for InviteAPI service + +type InviteAPIService interface { + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...client.CallOption) (*GenerateInviteTokenResponse, error) + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...client.CallOption) (*ForwardInviteResponse, error) + // Completes an invitation acceptance. + AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...client.CallOption) (*AcceptInviteResponse, error) + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...client.CallOption) (*GetRemoteUserResponse, error) +} + +type inviteAPIService struct { + c client.Client + name string +} + +func NewInviteAPIService(name string, c client.Client) InviteAPIService { + return &inviteAPIService{ + c: c, + name: name, + } +} + +func (c *inviteAPIService) GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...client.CallOption) (*GenerateInviteTokenResponse, error) { + req := c.c.NewRequest(c.name, "InviteAPI.GenerateInviteToken", in) + out := new(GenerateInviteTokenResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *inviteAPIService) ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...client.CallOption) (*ForwardInviteResponse, error) { + req := c.c.NewRequest(c.name, "InviteAPI.ForwardInvite", in) + out := new(ForwardInviteResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *inviteAPIService) AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...client.CallOption) (*AcceptInviteResponse, error) { + req := c.c.NewRequest(c.name, "InviteAPI.AcceptInvite", in) + out := new(AcceptInviteResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *inviteAPIService) GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...client.CallOption) (*GetRemoteUserResponse, error) { + req := c.c.NewRequest(c.name, "InviteAPI.GetRemoteUser", in) + out := new(GetRemoteUserResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for InviteAPI service + +type InviteAPIHandler interface { + // Generates a new token for the user with a validity of 24 hours. + GenerateInviteToken(context.Context, *GenerateInviteTokenRequest, *GenerateInviteTokenResponse) error + // Forwards a received invite to the sync'n'share system provider. + ForwardInvite(context.Context, *ForwardInviteRequest, *ForwardInviteResponse) error + // Completes an invitation acceptance. + AcceptInvite(context.Context, *AcceptInviteRequest, *AcceptInviteResponse) error + // Retrieves details about a remote user who has accepted an invite to share. + GetRemoteUser(context.Context, *GetRemoteUserRequest, *GetRemoteUserResponse) error +} + +func RegisterInviteAPIHandler(s server.Server, hdlr InviteAPIHandler, opts ...server.HandlerOption) error { + type inviteAPI interface { + GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, out *GenerateInviteTokenResponse) error + ForwardInvite(ctx context.Context, in *ForwardInviteRequest, out *ForwardInviteResponse) error + AcceptInvite(ctx context.Context, in *AcceptInviteRequest, out *AcceptInviteResponse) error + GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, out *GetRemoteUserResponse) error + } + type InviteAPI struct { + inviteAPI + } + h := &inviteAPIHandler{hdlr} + return s.Handle(s.NewHandler(&InviteAPI{h}, opts...)) +} + +type inviteAPIHandler struct { + InviteAPIHandler +} + +func (h *inviteAPIHandler) GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, out *GenerateInviteTokenResponse) error { + return h.InviteAPIHandler.GenerateInviteToken(ctx, in, out) +} + +func (h *inviteAPIHandler) ForwardInvite(ctx context.Context, in *ForwardInviteRequest, out *ForwardInviteResponse) error { + return h.InviteAPIHandler.ForwardInvite(ctx, in, out) +} + +func (h *inviteAPIHandler) AcceptInvite(ctx context.Context, in *AcceptInviteRequest, out *AcceptInviteResponse) error { + return h.InviteAPIHandler.AcceptInvite(ctx, in, out) +} + +func (h *inviteAPIHandler) GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, out *GetRemoteUserResponse) error { + return h.InviteAPIHandler.GetRemoteUser(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go new file mode 100644 index 00000000..9af55196 --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go @@ -0,0 +1,220 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/ocm/invite/v1beta1/resources.proto + +package invitev1beta1 + +import ( + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// InviteToken is used to invite users and groups from other sync'n'share +// systems to collaborate on resources. +type InviteToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // Unique ID associated with an InviteToken. + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + // REQUIRED. + // The user who created the token. + UserId *v1beta1.UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + // OPTIONAL. + // The time when the token will expire. + Expiration *v1beta11.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` +} + +func (x *InviteToken) Reset() { + *x = InviteToken{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InviteToken) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InviteToken) ProtoMessage() {} + +func (x *InviteToken) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_invite_v1beta1_resources_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 InviteToken.ProtoReflect.Descriptor instead. +func (*InviteToken) Descriptor() ([]byte, []int) { + return file_cs3_ocm_invite_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *InviteToken) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *InviteToken) GetUserId() *v1beta1.UserId { + if x != nil { + return x.UserId + } + return nil +} + +func (x *InviteToken) GetExpiration() *v1beta11.Timestamp { + if x != nil { + return x.Expiration + } + return nil +} + +var File_cs3_ocm_invite_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, + 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3a, + 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0d, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x49, 0xaa, 0x02, 0x16, + 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, + 0x5c, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_ocm_invite_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData = file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc +) + +func file_cs3_ocm_invite_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_ocm_invite_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData +} + +var file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_cs3_ocm_invite_v1beta1_resources_proto_goTypes = []interface{}{ + (*InviteToken)(nil), // 0: cs3.ocm.invite.v1beta1.InviteToken + (*v1beta1.UserId)(nil), // 1: cs3.identity.user.v1beta1.UserId + (*v1beta11.Timestamp)(nil), // 2: cs3.types.v1beta1.Timestamp +} +var file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs = []int32{ + 1, // 0: cs3.ocm.invite.v1beta1.InviteToken.user_id:type_name -> cs3.identity.user.v1beta1.UserId + 2, // 1: cs3.ocm.invite.v1beta1.InviteToken.expiration:type_name -> cs3.types.v1beta1.Timestamp + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_cs3_ocm_invite_v1beta1_resources_proto_init() } +func file_cs3_ocm_invite_v1beta1_resources_proto_init() { + if File_cs3_ocm_invite_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InviteToken); 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_cs3_ocm_invite_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_ocm_invite_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_ocm_invite_v1beta1_resources_proto = out.File + file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc = nil + file_cs3_ocm_invite_v1beta1_resources_proto_goTypes = nil + file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..a99339ac --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go @@ -0,0 +1,24 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/ocm/invite/v1beta1/resources.proto + +package invitev1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go new file mode 100644 index 00000000..3a1dff5d --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go @@ -0,0 +1,829 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/ocm/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + context "context" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type IsProviderAllowedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The provider that we need to check against the list of verified mesh providers. + Provider *ProviderInfo `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` +} + +func (x *IsProviderAllowedRequest) Reset() { + *x = IsProviderAllowedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IsProviderAllowedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsProviderAllowedRequest) ProtoMessage() {} + +func (x *IsProviderAllowedRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 IsProviderAllowedRequest.ProtoReflect.Descriptor instead. +func (*IsProviderAllowedRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} +} + +func (x *IsProviderAllowedRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *IsProviderAllowedRequest) GetProvider() *ProviderInfo { + if x != nil { + return x.Provider + } + return nil +} + +type IsProviderAllowedResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *IsProviderAllowedResponse) Reset() { + *x = IsProviderAllowedResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IsProviderAllowedResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IsProviderAllowedResponse) ProtoMessage() {} + +func (x *IsProviderAllowedResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 IsProviderAllowedResponse.ProtoReflect.Descriptor instead. +func (*IsProviderAllowedResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} +} + +func (x *IsProviderAllowedResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *IsProviderAllowedResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetInfoByDomainRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The domain of the system provider. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` +} + +func (x *GetInfoByDomainRequest) Reset() { + *x = GetInfoByDomainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetInfoByDomainRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetInfoByDomainRequest) ProtoMessage() {} + +func (x *GetInfoByDomainRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 GetInfoByDomainRequest.ProtoReflect.Descriptor instead. +func (*GetInfoByDomainRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{2} +} + +func (x *GetInfoByDomainRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetInfoByDomainRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +type GetInfoByDomainResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The info of the provider + ProviderInfo *ProviderInfo `protobuf:"bytes,3,opt,name=provider_info,json=providerInfo,proto3" json:"provider_info,omitempty"` +} + +func (x *GetInfoByDomainResponse) Reset() { + *x = GetInfoByDomainResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetInfoByDomainResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetInfoByDomainResponse) ProtoMessage() {} + +func (x *GetInfoByDomainResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 GetInfoByDomainResponse.ProtoReflect.Descriptor instead. +func (*GetInfoByDomainResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{3} +} + +func (x *GetInfoByDomainResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetInfoByDomainResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetInfoByDomainResponse) GetProviderInfo() *ProviderInfo { + if x != nil { + return x.ProviderInfo + } + return nil +} + +type ListAllProvidersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *ListAllProvidersRequest) Reset() { + *x = ListAllProvidersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAllProvidersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAllProvidersRequest) ProtoMessage() {} + +func (x *ListAllProvidersRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 ListAllProvidersRequest.ProtoReflect.Descriptor instead. +func (*ListAllProvidersRequest) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{4} +} + +func (x *ListAllProvidersRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListAllProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The share. + Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` +} + +func (x *ListAllProvidersResponse) Reset() { + *x = ListAllProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAllProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAllProvidersResponse) ProtoMessage() {} + +func (x *ListAllProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 ListAllProvidersResponse.ProtoReflect.Descriptor instead. +func (*ListAllProvidersResponse) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{5} +} + +func (x *ListAllProvidersResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListAllProvidersResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListAllProvidersResponse) GetProviders() []*ProviderInfo { + if x != nil { + return x.Providers + } + return nil +} + +var File_cs3_ocm_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor + +var file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, + 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, + 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, + 0x01, 0x0a, 0x18, 0x49, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, + 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x42, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x22, 0x7f, 0x0a, 0x19, 0x49, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x22, 0x63, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xca, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4b, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x4c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, 0xfe, 0x02, 0x0a, 0x0b, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x11, 0x49, 0x73, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, + 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, + 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, + 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x7f, 0x0a, 0x1c, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x50, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, + 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, + 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once + file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc +) + +func file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { + file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { + file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData) + }) + return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData +} + +var file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_cs3_ocm_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ + (*IsProviderAllowedRequest)(nil), // 0: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest + (*IsProviderAllowedResponse)(nil), // 1: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse + (*GetInfoByDomainRequest)(nil), // 2: cs3.ocm.provider.v1beta1.GetInfoByDomainRequest + (*GetInfoByDomainResponse)(nil), // 3: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse + (*ListAllProvidersRequest)(nil), // 4: cs3.ocm.provider.v1beta1.ListAllProvidersRequest + (*ListAllProvidersResponse)(nil), // 5: cs3.ocm.provider.v1beta1.ListAllProvidersResponse + (*v1beta1.Opaque)(nil), // 6: cs3.types.v1beta1.Opaque + (*ProviderInfo)(nil), // 7: cs3.ocm.provider.v1beta1.ProviderInfo + (*v1beta11.Status)(nil), // 8: cs3.rpc.v1beta1.Status +} +var file_cs3_ocm_provider_v1beta1_provider_api_proto_depIdxs = []int32{ + 6, // 0: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 1: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest.provider:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo + 8, // 2: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse.status:type_name -> cs3.rpc.v1beta1.Status + 6, // 3: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 6, // 4: cs3.ocm.provider.v1beta1.GetInfoByDomainRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 8, // 5: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse.status:type_name -> cs3.rpc.v1beta1.Status + 6, // 6: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 7: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse.provider_info:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo + 6, // 8: cs3.ocm.provider.v1beta1.ListAllProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 8, // 9: cs3.ocm.provider.v1beta1.ListAllProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status + 6, // 10: cs3.ocm.provider.v1beta1.ListAllProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 11: cs3.ocm.provider.v1beta1.ListAllProvidersResponse.providers:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo + 0, // 12: cs3.ocm.provider.v1beta1.ProviderAPI.IsProviderAllowed:input_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedRequest + 2, // 13: cs3.ocm.provider.v1beta1.ProviderAPI.GetInfoByDomain:input_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainRequest + 4, // 14: cs3.ocm.provider.v1beta1.ProviderAPI.ListAllProviders:input_type -> cs3.ocm.provider.v1beta1.ListAllProvidersRequest + 1, // 15: cs3.ocm.provider.v1beta1.ProviderAPI.IsProviderAllowed:output_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedResponse + 3, // 16: cs3.ocm.provider.v1beta1.ProviderAPI.GetInfoByDomain:output_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainResponse + 5, // 17: cs3.ocm.provider.v1beta1.ProviderAPI.ListAllProviders:output_type -> cs3.ocm.provider.v1beta1.ListAllProvidersResponse + 15, // [15:18] is the sub-list for method output_type + 12, // [12:15] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_cs3_ocm_provider_v1beta1_provider_api_proto_init() } +func file_cs3_ocm_provider_v1beta1_provider_api_proto_init() { + if File_cs3_ocm_provider_v1beta1_provider_api_proto != nil { + return + } + file_cs3_ocm_provider_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsProviderAllowedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IsProviderAllowedResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetInfoByDomainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetInfoByDomainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAllProvidersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAllProvidersResponse); 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_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_ocm_provider_v1beta1_provider_api_proto_goTypes, + DependencyIndexes: file_cs3_ocm_provider_v1beta1_provider_api_proto_depIdxs, + MessageInfos: file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes, + }.Build() + File_cs3_ocm_provider_v1beta1_provider_api_proto = out.File + file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc = nil + file_cs3_ocm_provider_v1beta1_provider_api_proto_goTypes = nil + file_cs3_ocm_provider_v1beta1_provider_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ProviderAPIClient is the client API for ProviderAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ProviderAPIClient interface { + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...grpc.CallOption) (*IsProviderAllowedResponse, error) + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...grpc.CallOption) (*GetInfoByDomainResponse, error) + // Get the information of all the providers registered in the mesh. + ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...grpc.CallOption) (*ListAllProvidersResponse, error) +} + +type providerAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { + return &providerAPIClient{cc} +} + +func (c *providerAPIClient) IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...grpc.CallOption) (*IsProviderAllowedResponse, error) { + out := new(IsProviderAllowedResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.provider.v1beta1.ProviderAPI/IsProviderAllowed", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...grpc.CallOption) (*GetInfoByDomainResponse, error) { + out := new(GetInfoByDomainResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.provider.v1beta1.ProviderAPI/GetInfoByDomain", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...grpc.CallOption) (*ListAllProvidersResponse, error) { + out := new(ListAllProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.ocm.provider.v1beta1.ProviderAPI/ListAllProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProviderAPIServer is the server API for ProviderAPI service. +type ProviderAPIServer interface { + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(context.Context, *IsProviderAllowedRequest) (*IsProviderAllowedResponse, error) + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(context.Context, *GetInfoByDomainRequest) (*GetInfoByDomainResponse, error) + // Get the information of all the providers registered in the mesh. + ListAllProviders(context.Context, *ListAllProvidersRequest) (*ListAllProvidersResponse, error) +} + +// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. +type UnimplementedProviderAPIServer struct { +} + +func (*UnimplementedProviderAPIServer) IsProviderAllowed(context.Context, *IsProviderAllowedRequest) (*IsProviderAllowedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsProviderAllowed not implemented") +} +func (*UnimplementedProviderAPIServer) GetInfoByDomain(context.Context, *GetInfoByDomainRequest) (*GetInfoByDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetInfoByDomain not implemented") +} +func (*UnimplementedProviderAPIServer) ListAllProviders(context.Context, *ListAllProvidersRequest) (*ListAllProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAllProviders not implemented") +} + +func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { + s.RegisterService(&_ProviderAPI_serviceDesc, srv) +} + +func _ProviderAPI_IsProviderAllowed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsProviderAllowedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).IsProviderAllowed(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.provider.v1beta1.ProviderAPI/IsProviderAllowed", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).IsProviderAllowed(ctx, req.(*IsProviderAllowedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_GetInfoByDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetInfoByDomainRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).GetInfoByDomain(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.provider.v1beta1.ProviderAPI/GetInfoByDomain", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).GetInfoByDomain(ctx, req.(*GetInfoByDomainRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_ListAllProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListAllProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).ListAllProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.ocm.provider.v1beta1.ProviderAPI/ListAllProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).ListAllProviders(ctx, req.(*ListAllProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.ocm.provider.v1beta1.ProviderAPI", + HandlerType: (*ProviderAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "IsProviderAllowed", + Handler: _ProviderAPI_IsProviderAllowed_Handler, + }, + { + MethodName: "GetInfoByDomain", + Handler: _ProviderAPI_GetInfoByDomain_Handler, + }, + { + MethodName: "ListAllProviders", + Handler: _ProviderAPI_ListAllProviders_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/ocm/provider/v1beta1/provider_api.proto", +} diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go new file mode 100644 index 00000000..3d83f5e2 --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go @@ -0,0 +1,139 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/ocm/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for ProviderAPI service + +func NewProviderAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for ProviderAPI service + +type ProviderAPIService interface { + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...client.CallOption) (*IsProviderAllowedResponse, error) + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...client.CallOption) (*GetInfoByDomainResponse, error) + // Get the information of all the providers registered in the mesh. + ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...client.CallOption) (*ListAllProvidersResponse, error) +} + +type providerAPIService struct { + c client.Client + name string +} + +func NewProviderAPIService(name string, c client.Client) ProviderAPIService { + return &providerAPIService{ + c: c, + name: name, + } +} + +func (c *providerAPIService) IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...client.CallOption) (*IsProviderAllowedResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.IsProviderAllowed", in) + out := new(IsProviderAllowedResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...client.CallOption) (*GetInfoByDomainResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.GetInfoByDomain", in) + out := new(GetInfoByDomainResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...client.CallOption) (*ListAllProvidersResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.ListAllProviders", in) + out := new(ListAllProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for ProviderAPI service + +type ProviderAPIHandler interface { + // Check if a given system provider is registered in the mesh or not. + // MUST return CODE_UNAUTHENTICATED if the system is not registered + IsProviderAllowed(context.Context, *IsProviderAllowedRequest, *IsProviderAllowedResponse) error + // Get the information of the provider identified by a specific domain. + // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. + GetInfoByDomain(context.Context, *GetInfoByDomainRequest, *GetInfoByDomainResponse) error + // Get the information of all the providers registered in the mesh. + ListAllProviders(context.Context, *ListAllProvidersRequest, *ListAllProvidersResponse) error +} + +func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { + type providerAPI interface { + IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, out *IsProviderAllowedResponse) error + GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, out *GetInfoByDomainResponse) error + ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, out *ListAllProvidersResponse) error + } + type ProviderAPI struct { + providerAPI + } + h := &providerAPIHandler{hdlr} + return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) +} + +type providerAPIHandler struct { + ProviderAPIHandler +} + +func (h *providerAPIHandler) IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, out *IsProviderAllowedResponse) error { + return h.ProviderAPIHandler.IsProviderAllowed(ctx, in, out) +} + +func (h *providerAPIHandler) GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, out *GetInfoByDomainResponse) error { + return h.ProviderAPIHandler.GetInfoByDomain(ctx, in, out) +} + +func (h *providerAPIHandler) ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, out *ListAllProvidersResponse) error { + return h.ProviderAPIHandler.ListAllProviders(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go new file mode 100644 index 00000000..2dca1bf5 --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go @@ -0,0 +1,597 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/ocm/provider/v1beta1/resources.proto + +package providerv1beta1 + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Identifier for various types of services offered by sync'n'share system providers. +type ServiceType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED + // The name of the service type. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // REQUIRED + // The description of the service type. + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *ServiceType) Reset() { + *x = ServiceType{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceType) ProtoMessage() {} + +func (x *ServiceType) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_resources_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 ServiceType.ProtoReflect.Descriptor instead. +func (*ServiceType) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *ServiceType) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ServiceType) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// The endpoints exposed by particular services. +type ServiceEndpoint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The type of service. + Type *ServiceType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // REQUIRED. + // The name of the service. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // REQUIRED. + // The path at which the service is hosted. + Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + // OPTIONAL. + // Whether the service is monitored. + IsMonitored bool `protobuf:"varint,4,opt,name=is_monitored,json=isMonitored,proto3" json:"is_monitored,omitempty"` + // OPTIONAL. + // Additional properties about the service. + Properties map[string]string `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ServiceEndpoint) Reset() { + *x = ServiceEndpoint{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceEndpoint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceEndpoint) ProtoMessage() {} + +func (x *ServiceEndpoint) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_resources_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 ServiceEndpoint.ProtoReflect.Descriptor instead. +func (*ServiceEndpoint) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *ServiceEndpoint) GetType() *ServiceType { + if x != nil { + return x.Type + } + return nil +} + +func (x *ServiceEndpoint) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ServiceEndpoint) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *ServiceEndpoint) GetIsMonitored() bool { + if x != nil { + return x.IsMonitored + } + return false +} + +func (x *ServiceEndpoint) GetProperties() map[string]string { + if x != nil { + return x.Properties + } + return nil +} + +// The services offered by sync'n'share system providers. +type Service struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The URL at which the service is hosted. + Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` + // REQUIRED. + // The primary endpoint of the service. + Endpoint *ServiceEndpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + // REQUIRED. + // The API version of the provided service. + ApiVersion string `protobuf:"bytes,3,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` + // OPTIONAL. + // Additional endpoints at which the service is exposed. + AdditionalEndpoints []*ServiceEndpoint `protobuf:"bytes,4,rep,name=additional_endpoints,json=additionalEndpoints,proto3" json:"additional_endpoints,omitempty"` +} + +func (x *Service) Reset() { + *x = Service{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Service) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Service) ProtoMessage() {} + +func (x *Service) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_resources_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 Service.ProtoReflect.Descriptor instead. +func (*Service) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{2} +} + +func (x *Service) GetHost() string { + if x != nil { + return x.Host + } + return "" +} + +func (x *Service) GetEndpoint() *ServiceEndpoint { + if x != nil { + return x.Endpoint + } + return nil +} + +func (x *Service) GetApiVersion() string { + if x != nil { + return x.ApiVersion + } + return "" +} + +func (x *Service) GetAdditionalEndpoints() []*ServiceEndpoint { + if x != nil { + return x.AdditionalEndpoints + } + return nil +} + +// Details of the sync'n'share system provider. +type ProviderInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The name of the provider. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // REQUIRED. + // The full name of the provider. + FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + // REQUIRED. + // A description of the provider. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // REQUIRED. + // The organization to which the provider belongs. + Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` + // REQUIRED. + // The domain of the sync'n'share provider. + Domain string `protobuf:"bytes,5,opt,name=domain,proto3" json:"domain,omitempty"` + // REQUIRED. + // The homepage of the provider. + Homepage string `protobuf:"bytes,6,opt,name=homepage,proto3" json:"homepage,omitempty"` + // REQUIRED. + // The email at which the provider can be reached. + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + // REQUIRED. + // The list of services provided by the provider. + Services []*Service `protobuf:"bytes,8,rep,name=services,proto3" json:"services,omitempty"` + // OPTIONAL. + // Additional properties about the service. + Properties map[string]string `protobuf:"bytes,9,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ProviderInfo) Reset() { + *x = ProviderInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderInfo) ProtoMessage() {} + +func (x *ProviderInfo) ProtoReflect() protoreflect.Message { + mi := &file_cs3_ocm_provider_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. +func (*ProviderInfo) Descriptor() ([]byte, []int) { + return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{3} +} + +func (x *ProviderInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ProviderInfo) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *ProviderInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ProviderInfo) GetOrganization() string { + if x != nil { + return x.Organization + } + return "" +} + +func (x *ProviderInfo) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ProviderInfo) GetHomepage() string { + if x != nil { + return x.Homepage + } + return "" +} + +func (x *ProviderInfo) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *ProviderInfo) GetServices() []*Service { + if x != nil { + return x.Services + } + return nil +} + +func (x *ProviderInfo) GetProperties() map[string]string { + if x != nil { + return x.Properties + } + return nil +} + +var File_cs3_ocm_provider_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, + 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x22, 0x43, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb1, 0x02, 0x0a, 0x0f, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x39, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, + 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d, + 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe3, 0x01, + 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x45, 0x0a, + 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x14, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x13, + 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x73, 0x22, 0xa5, 0x03, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, + 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x6d, 0x65, 0x70, 0x61, 0x67, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x6d, 0x65, 0x70, 0x61, 0x67, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3d, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x12, 0x56, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, + 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x7d, 0x0a, 0x1c, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, + 0x03, 0x43, 0x4f, 0x50, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, + 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_cs3_ocm_provider_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData = file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc +) + +func file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_ocm_provider_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData +} + +var file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_cs3_ocm_provider_v1beta1_resources_proto_goTypes = []interface{}{ + (*ServiceType)(nil), // 0: cs3.ocm.provider.v1beta1.ServiceType + (*ServiceEndpoint)(nil), // 1: cs3.ocm.provider.v1beta1.ServiceEndpoint + (*Service)(nil), // 2: cs3.ocm.provider.v1beta1.Service + (*ProviderInfo)(nil), // 3: cs3.ocm.provider.v1beta1.ProviderInfo + nil, // 4: cs3.ocm.provider.v1beta1.ServiceEndpoint.PropertiesEntry + nil, // 5: cs3.ocm.provider.v1beta1.ProviderInfo.PropertiesEntry +} +var file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs = []int32{ + 0, // 0: cs3.ocm.provider.v1beta1.ServiceEndpoint.type:type_name -> cs3.ocm.provider.v1beta1.ServiceType + 4, // 1: cs3.ocm.provider.v1beta1.ServiceEndpoint.properties:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint.PropertiesEntry + 1, // 2: cs3.ocm.provider.v1beta1.Service.endpoint:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint + 1, // 3: cs3.ocm.provider.v1beta1.Service.additional_endpoints:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint + 2, // 4: cs3.ocm.provider.v1beta1.ProviderInfo.services:type_name -> cs3.ocm.provider.v1beta1.Service + 5, // 5: cs3.ocm.provider.v1beta1.ProviderInfo.properties:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo.PropertiesEntry + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_cs3_ocm_provider_v1beta1_resources_proto_init() } +func file_cs3_ocm_provider_v1beta1_resources_proto_init() { + if File_cs3_ocm_provider_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceEndpoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Service); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderInfo); 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_cs3_ocm_provider_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_ocm_provider_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_ocm_provider_v1beta1_resources_proto = out.File + file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc = nil + file_cs3_ocm_provider_v1beta1_resources_proto_goTypes = nil + file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..c41bd81b --- /dev/null +++ b/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go @@ -0,0 +1,21 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/ocm/provider/v1beta1/resources.proto + +package providerv1beta1 + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go b/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go new file mode 100644 index 00000000..f8588ec0 --- /dev/null +++ b/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go @@ -0,0 +1,542 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/preferences/v1beta1/preferences_api.proto + +package preferencesv1beta1 + +import ( + context "context" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type SetKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // REQUIRED. + // The value associated with the key. + Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` +} + +func (x *SetKeyRequest) Reset() { + *x = SetKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetKeyRequest) ProtoMessage() {} + +func (x *SetKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_preferences_v1beta1_preferences_api_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 SetKeyRequest.ProtoReflect.Descriptor instead. +func (*SetKeyRequest) Descriptor() ([]byte, []int) { + return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{0} +} + +func (x *SetKeyRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *SetKeyRequest) GetVal() string { + if x != nil { + return x.Val + } + return "" +} + +type SetKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *SetKeyResponse) Reset() { + *x = SetKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetKeyResponse) ProtoMessage() {} + +func (x *SetKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_preferences_v1beta1_preferences_api_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 SetKeyResponse.ProtoReflect.Descriptor instead. +func (*SetKeyResponse) Descriptor() ([]byte, []int) { + return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{1} +} + +func (x *SetKeyResponse) GetStatus() *v1beta1.Status { + if x != nil { + return x.Status + } + return nil +} + +type GetKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` +} + +func (x *GetKeyRequest) Reset() { + *x = GetKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetKeyRequest) ProtoMessage() {} + +func (x *GetKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_preferences_v1beta1_preferences_api_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 GetKeyRequest.ProtoReflect.Descriptor instead. +func (*GetKeyRequest) Descriptor() ([]byte, []int) { + return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{2} +} + +func (x *GetKeyRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +type GetKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // REQUIRED. + // The value associated with the key. + Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` +} + +func (x *GetKeyResponse) Reset() { + *x = GetKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetKeyResponse) ProtoMessage() {} + +func (x *GetKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_preferences_v1beta1_preferences_api_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 GetKeyResponse.ProtoReflect.Descriptor instead. +func (*GetKeyResponse) Descriptor() ([]byte, []int) { + return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{3} +} + +func (x *GetKeyResponse) GetStatus() *v1beta1.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetKeyResponse) GetVal() string { + if x != nil { + return x.Val + } + return "" +} + +var File_cs3_preferences_v1beta1_preferences_api_proto protoreflect.FileDescriptor + +var file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc = []byte{ + 0x0a, 0x2d, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x17, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, + 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x22, 0x41, 0x0a, 0x0e, 0x53, + 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x21, + 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x22, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x32, 0xc6, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x50, 0x49, 0x12, 0x59, 0x0a, 0x06, 0x53, 0x65, 0x74, + 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, + 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x82, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, + 0x13, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x70, 0x69, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, 0x58, + 0xaa, 0x02, 0x17, 0x43, 0x73, 0x33, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x73, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, + 0x5c, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x42, + 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_preferences_v1beta1_preferences_api_proto_rawDescOnce sync.Once + file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData = file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc +) + +func file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP() []byte { + file_cs3_preferences_v1beta1_preferences_api_proto_rawDescOnce.Do(func() { + file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData) + }) + return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData +} + +var file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cs3_preferences_v1beta1_preferences_api_proto_goTypes = []interface{}{ + (*SetKeyRequest)(nil), // 0: cs3.preferences.v1beta1.SetKeyRequest + (*SetKeyResponse)(nil), // 1: cs3.preferences.v1beta1.SetKeyResponse + (*GetKeyRequest)(nil), // 2: cs3.preferences.v1beta1.GetKeyRequest + (*GetKeyResponse)(nil), // 3: cs3.preferences.v1beta1.GetKeyResponse + (*v1beta1.Status)(nil), // 4: cs3.rpc.v1beta1.Status +} +var file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs = []int32{ + 4, // 0: cs3.preferences.v1beta1.SetKeyResponse.status:type_name -> cs3.rpc.v1beta1.Status + 4, // 1: cs3.preferences.v1beta1.GetKeyResponse.status:type_name -> cs3.rpc.v1beta1.Status + 0, // 2: cs3.preferences.v1beta1.PreferencesAPI.SetKey:input_type -> cs3.preferences.v1beta1.SetKeyRequest + 2, // 3: cs3.preferences.v1beta1.PreferencesAPI.GetKey:input_type -> cs3.preferences.v1beta1.GetKeyRequest + 1, // 4: cs3.preferences.v1beta1.PreferencesAPI.SetKey:output_type -> cs3.preferences.v1beta1.SetKeyResponse + 3, // 5: cs3.preferences.v1beta1.PreferencesAPI.GetKey:output_type -> cs3.preferences.v1beta1.GetKeyResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_cs3_preferences_v1beta1_preferences_api_proto_init() } +func file_cs3_preferences_v1beta1_preferences_api_proto_init() { + if File_cs3_preferences_v1beta1_preferences_api_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetKeyResponse); 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_cs3_preferences_v1beta1_preferences_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_preferences_v1beta1_preferences_api_proto_goTypes, + DependencyIndexes: file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs, + MessageInfos: file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes, + }.Build() + File_cs3_preferences_v1beta1_preferences_api_proto = out.File + file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc = nil + file_cs3_preferences_v1beta1_preferences_api_proto_goTypes = nil + file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// PreferencesAPIClient is the client API for PreferencesAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type PreferencesAPIClient interface { + // Maps the key-value pair. + SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error) + // Returns the value associated with the + // requested key. + GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) +} + +type preferencesAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewPreferencesAPIClient(cc grpc.ClientConnInterface) PreferencesAPIClient { + return &preferencesAPIClient{cc} +} + +func (c *preferencesAPIClient) SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error) { + out := new(SetKeyResponse) + err := c.cc.Invoke(ctx, "/cs3.preferences.v1beta1.PreferencesAPI/SetKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *preferencesAPIClient) GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) { + out := new(GetKeyResponse) + err := c.cc.Invoke(ctx, "/cs3.preferences.v1beta1.PreferencesAPI/GetKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PreferencesAPIServer is the server API for PreferencesAPI service. +type PreferencesAPIServer interface { + // Maps the key-value pair. + SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error) + // Returns the value associated with the + // requested key. + GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error) +} + +// UnimplementedPreferencesAPIServer can be embedded to have forward compatible implementations. +type UnimplementedPreferencesAPIServer struct { +} + +func (*UnimplementedPreferencesAPIServer) SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetKey not implemented") +} +func (*UnimplementedPreferencesAPIServer) GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented") +} + +func RegisterPreferencesAPIServer(s *grpc.Server, srv PreferencesAPIServer) { + s.RegisterService(&_PreferencesAPI_serviceDesc, srv) +} + +func _PreferencesAPI_SetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PreferencesAPIServer).SetKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.preferences.v1beta1.PreferencesAPI/SetKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PreferencesAPIServer).SetKey(ctx, req.(*SetKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PreferencesAPI_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PreferencesAPIServer).GetKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.preferences.v1beta1.PreferencesAPI/GetKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PreferencesAPIServer).GetKey(ctx, req.(*GetKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _PreferencesAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.preferences.v1beta1.PreferencesAPI", + HandlerType: (*PreferencesAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SetKey", + Handler: _PreferencesAPI_SetKey_Handler, + }, + { + MethodName: "GetKey", + Handler: _PreferencesAPI_GetKey_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/preferences/v1beta1/preferences_api.proto", +} diff --git a/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go b/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go new file mode 100644 index 00000000..1d3a739e --- /dev/null +++ b/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go @@ -0,0 +1,117 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/preferences/v1beta1/preferences_api.proto + +package preferencesv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for PreferencesAPI service + +func NewPreferencesAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for PreferencesAPI service + +type PreferencesAPIService interface { + // Maps the key-value pair. + SetKey(ctx context.Context, in *SetKeyRequest, opts ...client.CallOption) (*SetKeyResponse, error) + // Returns the value associated with the + // requested key. + GetKey(ctx context.Context, in *GetKeyRequest, opts ...client.CallOption) (*GetKeyResponse, error) +} + +type preferencesAPIService struct { + c client.Client + name string +} + +func NewPreferencesAPIService(name string, c client.Client) PreferencesAPIService { + return &preferencesAPIService{ + c: c, + name: name, + } +} + +func (c *preferencesAPIService) SetKey(ctx context.Context, in *SetKeyRequest, opts ...client.CallOption) (*SetKeyResponse, error) { + req := c.c.NewRequest(c.name, "PreferencesAPI.SetKey", in) + out := new(SetKeyResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *preferencesAPIService) GetKey(ctx context.Context, in *GetKeyRequest, opts ...client.CallOption) (*GetKeyResponse, error) { + req := c.c.NewRequest(c.name, "PreferencesAPI.GetKey", in) + out := new(GetKeyResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for PreferencesAPI service + +type PreferencesAPIHandler interface { + // Maps the key-value pair. + SetKey(context.Context, *SetKeyRequest, *SetKeyResponse) error + // Returns the value associated with the + // requested key. + GetKey(context.Context, *GetKeyRequest, *GetKeyResponse) error +} + +func RegisterPreferencesAPIHandler(s server.Server, hdlr PreferencesAPIHandler, opts ...server.HandlerOption) error { + type preferencesAPI interface { + SetKey(ctx context.Context, in *SetKeyRequest, out *SetKeyResponse) error + GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error + } + type PreferencesAPI struct { + preferencesAPI + } + h := &preferencesAPIHandler{hdlr} + return s.Handle(s.NewHandler(&PreferencesAPI{h}, opts...)) +} + +type preferencesAPIHandler struct { + PreferencesAPIHandler +} + +func (h *preferencesAPIHandler) SetKey(ctx context.Context, in *SetKeyRequest, out *SetKeyResponse) error { + return h.PreferencesAPIHandler.SetKey(ctx, in, out) +} + +func (h *preferencesAPIHandler) GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error { + return h.PreferencesAPIHandler.GetKey(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go b/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go new file mode 100644 index 00000000..2074f9e2 --- /dev/null +++ b/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go @@ -0,0 +1,367 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/rpc/v1beta1/code.proto + +package rpcv1beta1 + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// These are the canonical error codes used by CS3 APIs. +// +// Adapted from Google APIs: +// https://github.com/googleapis/googleapis/ +// +// Sometimes multiple error codes may apply. Services should return +// the most specific error code that applies. For example, prefer +// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. +// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. +type Code int32 + +const ( + // A programmer would not intentionally set the code to CODE_INVALID. + // This code exists to force service implementors to set + // a specific code for the API call and to not rely on defaults. + // + // HTTP Mapping: 500 Internal Server Error + Code_CODE_INVALID Code = 0 + // Not an error; returned on success + // + // HTTP Mapping: 200 OK + Code_CODE_OK Code = 1 + // The operation was cancelled, typically by the caller. + // + // HTTP Mapping: 499 Client Closed Request + Code_CODE_CANCELLED Code = 2 + // Unknown error. For example, this error may be returned when + // a `Status` value received from another address space belongs to + // an error space that is not known in this address space. Also + // errors raised by APIs that do not return enough error information + // may be converted to this error. + // + // HTTP Mapping: 500 Internal Server Error + Code_CODE_UNKNOWN Code = 3 + // The client specified an invalid argument. Note that this differs + // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments + // that are problematic regardless of the state of the system + // (e.g., a malformed file name). + // + // HTTP Mapping: 400 Bad Request + Code_CODE_INVALID_ARGUMENT Code = 4 + // The deadline expired before the operation could complete. For operations + // that change the state of the system, this error may be returned + // even if the operation has completed successfully. For example, a + // successful response from a server could have been delayed long + // enough for the deadline to expire. + // + // HTTP Mapping: 504 Gateway Timeout + Code_CODE_DEADLINE_EXCEEDED Code = 5 + // Some requested entity (e.g., file or directory) was not found. + // + // Note to server developers: if a request is denied for an entire class + // of users, such as gradual feature rollout or undocumented whitelist, + // `NOT_FOUND` may be used. If a request is denied for some users within + // a class of users, such as user-based access control, `PERMISSION_DENIED` + // must be used. + // + // HTTP Mapping: 404 Not Found + Code_CODE_NOT_FOUND Code = 6 + // The entity that a client attempted to create (e.g., file or directory) + // already exists. + // + // HTTP Mapping: 409 Conflict + Code_CODE_ALREADY_EXISTS Code = 7 + // The caller does not have permission to execute the specified + // operation. `PERMISSION_DENIED` must not be used for rejections + // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` + // instead for those errors). `PERMISSION_DENIED` must not be + // used if the caller can not be identified (use `UNAUTHENTICATED` + // instead for those errors). This error code does not imply the + // request is valid or the requested entity exists or satisfies + // other pre-conditions. + // + // HTTP Mapping: 403 Forbidden + Code_CODE_PERMISSION_DENIED Code = 8 + // The request does not have valid authentication credentials for the + // operation. + // + // HTTP Mapping: 401 Unauthorized + Code_CODE_UNAUTHENTICATED Code = 9 + // Some resource has been exhausted, perhaps a per-user quota, or + // perhaps the entire file system is out of space. + // + // HTTP Mapping: 429 Too Many Requests + Code_CODE_RESOURCE_EXHAUSTED Code = 10 + // The operation was rejected because the system is not in a state + // required for the operation's execution. For example, the directory + // to be deleted is non-empty, an rmdir operation is applied to + // a non-directory, etc. + // + // Service implementors can use the following guidelines to decide + // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: + // (a) Use `UNAVAILABLE` if the client can retry just the failing call. + // (b) Use `ABORTED` if the client should retry at a higher level + // (e.g., when a client-specified test-and-set fails, indicating the + // client should restart a read-modify-write sequence). + // (c) Use `FAILED_PRECONDITION` if the client should not retry until + // the system state has been explicitly fixed. E.g., if an "rmdir" + // fails because the directory is non-empty, `FAILED_PRECONDITION` + // should be returned since the client should not retry unless + // the files are deleted from the directory. + // + // HTTP Mapping: 400 Bad Request + Code_CODE_FAILED_PRECONDITION Code = 11 + // The operation was aborted, typically due to a concurrency issue such as + // a sequencer check failure or transaction abort. + // + // See the guidelines above for deciding between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`. + // + // HTTP Mapping: 409 Conflict + Code_CODE_ABORTED Code = 12 + // The operation was attempted past the valid range. E.g., seeking or + // reading past end-of-file. + // + // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may + // be fixed if the system state changes. For example, a 32-bit file + // system will generate `INVALID_ARGUMENT` if asked to read at an + // offset that is not in the range [0,2^32-1], but it will generate + // `OUT_OF_RANGE` if asked to read from an offset past the current + // file size. + // + // There is a fair bit of overlap between `FAILED_PRECONDITION` and + // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific + // error) when it applies so that callers who are iterating through + // a space can easily look for an `OUT_OF_RANGE` error to detect when + // they are done. + // + // HTTP Mapping: 400 Bad Request + Code_CODE_OUT_OF_RANGE Code = 13 + // The operation is not implemented or is not supported/enabled in this + // service. + // + // HTTP Mapping: 501 Not Implemented + Code_CODE_UNIMPLEMENTED Code = 14 + // Internal errors. This means that some invariants expected by the + // underlying system have been broken. This error code is reserved + // for serious errors. + // + // HTTP Mapping: 500 Internal Server Error + Code_CODE_INTERNAL Code = 15 + // The service is currently unavailable. This is most likely a + // transient condition, which can be corrected by retrying with + // a backoff. + // + // See the guidelines above for deciding between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`. + // + // HTTP Mapping: 503 Service Unavailable + Code_CODE_UNAVAILABLE Code = 16 + // Unrecoverable data loss or corruption. + // + // HTTP Mapping: 500 Internal Server Error + Code_CODE_DATA_LOSS Code = 17 + // Redirects the operation to another location. + // Used in a Status reponse with a reference to the target URI. + Code_CODE_REDIRECTION Code = 18 +) + +// Enum value maps for Code. +var ( + Code_name = map[int32]string{ + 0: "CODE_INVALID", + 1: "CODE_OK", + 2: "CODE_CANCELLED", + 3: "CODE_UNKNOWN", + 4: "CODE_INVALID_ARGUMENT", + 5: "CODE_DEADLINE_EXCEEDED", + 6: "CODE_NOT_FOUND", + 7: "CODE_ALREADY_EXISTS", + 8: "CODE_PERMISSION_DENIED", + 9: "CODE_UNAUTHENTICATED", + 10: "CODE_RESOURCE_EXHAUSTED", + 11: "CODE_FAILED_PRECONDITION", + 12: "CODE_ABORTED", + 13: "CODE_OUT_OF_RANGE", + 14: "CODE_UNIMPLEMENTED", + 15: "CODE_INTERNAL", + 16: "CODE_UNAVAILABLE", + 17: "CODE_DATA_LOSS", + 18: "CODE_REDIRECTION", + } + Code_value = map[string]int32{ + "CODE_INVALID": 0, + "CODE_OK": 1, + "CODE_CANCELLED": 2, + "CODE_UNKNOWN": 3, + "CODE_INVALID_ARGUMENT": 4, + "CODE_DEADLINE_EXCEEDED": 5, + "CODE_NOT_FOUND": 6, + "CODE_ALREADY_EXISTS": 7, + "CODE_PERMISSION_DENIED": 8, + "CODE_UNAUTHENTICATED": 9, + "CODE_RESOURCE_EXHAUSTED": 10, + "CODE_FAILED_PRECONDITION": 11, + "CODE_ABORTED": 12, + "CODE_OUT_OF_RANGE": 13, + "CODE_UNIMPLEMENTED": 14, + "CODE_INTERNAL": 15, + "CODE_UNAVAILABLE": 16, + "CODE_DATA_LOSS": 17, + "CODE_REDIRECTION": 18, + } +) + +func (x Code) Enum() *Code { + p := new(Code) + *p = x + return p +} + +func (x Code) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Code) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_rpc_v1beta1_code_proto_enumTypes[0].Descriptor() +} + +func (Code) Type() protoreflect.EnumType { + return &file_cs3_rpc_v1beta1_code_proto_enumTypes[0] +} + +func (x Code) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Code.Descriptor instead. +func (Code) EnumDescriptor() ([]byte, []int) { + return file_cs3_rpc_v1beta1_code_proto_rawDescGZIP(), []int{0} +} + +var File_cs3_rpc_v1beta1_code_proto protoreflect.FileDescriptor + +var file_cs3_rpc_v1beta1_code_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x73, + 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2a, 0xb4, 0x03, + 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49, + 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x44, 0x45, + 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x43, 0x41, + 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, + 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x43, + 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, + 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x44, + 0x45, 0x41, 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, + 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, + 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x41, + 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x07, 0x12, + 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x43, + 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, + 0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, + 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 0x54, 0x45, 0x44, + 0x10, 0x0a, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x5f, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0b, + 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, + 0x10, 0x0c, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f, + 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0d, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x44, + 0x45, 0x5f, 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, + 0x0e, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, + 0x41, 0x4c, 0x10, 0x0f, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x41, + 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, + 0x44, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x11, 0x12, 0x14, + 0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x10, 0x12, 0x42, 0x58, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x43, 0x6f, 0x64, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x72, 0x70, 0x63, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x73, 0x33, + 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0f, 0x43, + 0x73, 0x33, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_rpc_v1beta1_code_proto_rawDescOnce sync.Once + file_cs3_rpc_v1beta1_code_proto_rawDescData = file_cs3_rpc_v1beta1_code_proto_rawDesc +) + +func file_cs3_rpc_v1beta1_code_proto_rawDescGZIP() []byte { + file_cs3_rpc_v1beta1_code_proto_rawDescOnce.Do(func() { + file_cs3_rpc_v1beta1_code_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_rpc_v1beta1_code_proto_rawDescData) + }) + return file_cs3_rpc_v1beta1_code_proto_rawDescData +} + +var file_cs3_rpc_v1beta1_code_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_rpc_v1beta1_code_proto_goTypes = []interface{}{ + (Code)(0), // 0: cs3.rpc.v1beta1.Code +} +var file_cs3_rpc_v1beta1_code_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_cs3_rpc_v1beta1_code_proto_init() } +func file_cs3_rpc_v1beta1_code_proto_init() { + if File_cs3_rpc_v1beta1_code_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_rpc_v1beta1_code_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_rpc_v1beta1_code_proto_goTypes, + DependencyIndexes: file_cs3_rpc_v1beta1_code_proto_depIdxs, + EnumInfos: file_cs3_rpc_v1beta1_code_proto_enumTypes, + }.Build() + File_cs3_rpc_v1beta1_code_proto = out.File + file_cs3_rpc_v1beta1_code_proto_rawDesc = nil + file_cs3_rpc_v1beta1_code_proto_goTypes = nil + file_cs3_rpc_v1beta1_code_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go b/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go new file mode 100644 index 00000000..2456c7a9 --- /dev/null +++ b/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go @@ -0,0 +1,21 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/rpc/v1beta1/code.proto + +package rpcv1beta1 + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go b/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go new file mode 100644 index 00000000..f1182925 --- /dev/null +++ b/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go @@ -0,0 +1,221 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/rpc/v1beta1/status.proto + +package rpcv1beta1 + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The `Status` message contains two pieces of data: error code and error message. +// The error code should be an enum value of [cs3.rpc.code]. +// The error message should be a developer-facing English +// message that helps developers *understand* and *resolve* the error. +type Status struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The status code, which should be an enum value of [cs3.rpc.code][cs3.rpc.code]. + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=cs3.rpc.v1beta1.Code" json:"code,omitempty"` + // OPTIONAL. + // A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // OPTIONAL. + // A trace added to the response for helping support to identify client problems. + Trace string `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"` + // OPTIONAL. + // A target URI as per RFC3986 to redirect requests to another location. + // A Status message with CODE_REDIRECT MUST always set the target_uri. + // https://golang.org/pkg/net/url/#URL provides a quick view of the format. + TargetUri string `protobuf:"bytes,4,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"` +} + +func (x *Status) Reset() { + *x = Status{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_rpc_v1beta1_status_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Status) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Status) ProtoMessage() {} + +func (x *Status) ProtoReflect() protoreflect.Message { + mi := &file_cs3_rpc_v1beta1_status_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 Status.ProtoReflect.Descriptor instead. +func (*Status) Descriptor() ([]byte, []int) { + return file_cs3_rpc_v1beta1_status_proto_rawDescGZIP(), []int{0} +} + +func (x *Status) GetCode() Code { + if x != nil { + return x.Code + } + return Code_CODE_INVALID +} + +func (x *Status) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *Status) GetTrace() string { + if x != nil { + return x.Trace + } + return "" +} + +func (x *Status) GetTargetUri() string { + if x != nil { + return x.TargetUri + } + return "" +} + +var File_cs3_rpc_v1beta1_status_proto protoreflect.FileDescriptor + +var file_cs3_rpc_v1beta1_status_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, + 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, + 0x1a, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x06, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x72, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x72, 0x61, 0x63, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, + 0x42, 0x5a, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x72, 0x70, 0x63, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x73, 0x33, 0x2e, 0x52, + 0x70, 0x63, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x73, 0x33, + 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_rpc_v1beta1_status_proto_rawDescOnce sync.Once + file_cs3_rpc_v1beta1_status_proto_rawDescData = file_cs3_rpc_v1beta1_status_proto_rawDesc +) + +func file_cs3_rpc_v1beta1_status_proto_rawDescGZIP() []byte { + file_cs3_rpc_v1beta1_status_proto_rawDescOnce.Do(func() { + file_cs3_rpc_v1beta1_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_rpc_v1beta1_status_proto_rawDescData) + }) + return file_cs3_rpc_v1beta1_status_proto_rawDescData +} + +var file_cs3_rpc_v1beta1_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_cs3_rpc_v1beta1_status_proto_goTypes = []interface{}{ + (*Status)(nil), // 0: cs3.rpc.v1beta1.Status + (Code)(0), // 1: cs3.rpc.v1beta1.Code +} +var file_cs3_rpc_v1beta1_status_proto_depIdxs = []int32{ + 1, // 0: cs3.rpc.v1beta1.Status.code:type_name -> cs3.rpc.v1beta1.Code + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_cs3_rpc_v1beta1_status_proto_init() } +func file_cs3_rpc_v1beta1_status_proto_init() { + if File_cs3_rpc_v1beta1_status_proto != nil { + return + } + file_cs3_rpc_v1beta1_code_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_rpc_v1beta1_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Status); 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_cs3_rpc_v1beta1_status_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_rpc_v1beta1_status_proto_goTypes, + DependencyIndexes: file_cs3_rpc_v1beta1_status_proto_depIdxs, + MessageInfos: file_cs3_rpc_v1beta1_status_proto_msgTypes, + }.Build() + File_cs3_rpc_v1beta1_status_proto = out.File + file_cs3_rpc_v1beta1_status_proto_rawDesc = nil + file_cs3_rpc_v1beta1_status_proto_goTypes = nil + file_cs3_rpc_v1beta1_status_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go b/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go new file mode 100644 index 00000000..ff19eda8 --- /dev/null +++ b/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go @@ -0,0 +1,21 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/rpc/v1beta1/status.proto + +package rpcv1beta1 + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go new file mode 100644 index 00000000..3de40c4b --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go @@ -0,0 +1,2466 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/sharing/collaboration/v1beta1/collaboration_api.proto + +package collaborationv1beta1 + +import ( + context "context" + v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The filter to apply. +type ListSharesRequest_Filter_Type int32 + +const ( + ListSharesRequest_Filter_TYPE_INVALID ListSharesRequest_Filter_Type = 0 + ListSharesRequest_Filter_TYPE_NO ListSharesRequest_Filter_Type = 1 + ListSharesRequest_Filter_TYPE_RESOURCE_ID ListSharesRequest_Filter_Type = 2 + ListSharesRequest_Filter_TYPE_OWNER ListSharesRequest_Filter_Type = 3 + ListSharesRequest_Filter_TYPE_CREATOR ListSharesRequest_Filter_Type = 4 +) + +// Enum value maps for ListSharesRequest_Filter_Type. +var ( + ListSharesRequest_Filter_Type_name = map[int32]string{ + 0: "TYPE_INVALID", + 1: "TYPE_NO", + 2: "TYPE_RESOURCE_ID", + 3: "TYPE_OWNER", + 4: "TYPE_CREATOR", + } + ListSharesRequest_Filter_Type_value = map[string]int32{ + "TYPE_INVALID": 0, + "TYPE_NO": 1, + "TYPE_RESOURCE_ID": 2, + "TYPE_OWNER": 3, + "TYPE_CREATOR": 4, + } +) + +func (x ListSharesRequest_Filter_Type) Enum() *ListSharesRequest_Filter_Type { + p := new(ListSharesRequest_Filter_Type) + *p = x + return p +} + +func (x ListSharesRequest_Filter_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ListSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes[0].Descriptor() +} + +func (ListSharesRequest_Filter_Type) Type() protoreflect.EnumType { + return &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes[0] +} + +func (x ListSharesRequest_Filter_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ListSharesRequest_Filter_Type.Descriptor instead. +func (ListSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{4, 0, 0} +} + +type CreateShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The information of the resource to be shared. + ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` + // REQUIRED. + // The share grant for the share. + Grant *ShareGrant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` +} + +func (x *CreateShareRequest) Reset() { + *x = CreateShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateShareRequest) ProtoMessage() {} + +func (x *CreateShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 CreateShareRequest.ProtoReflect.Descriptor instead. +func (*CreateShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateShareRequest) GetResourceInfo() *v1beta11.ResourceInfo { + if x != nil { + return x.ResourceInfo + } + return nil +} + +func (x *CreateShareRequest) GetGrant() *ShareGrant { + if x != nil { + return x.Grant + } + return nil +} + +type CreateShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The created share. + Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *CreateShareResponse) Reset() { + *x = CreateShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateShareResponse) ProtoMessage() {} + +func (x *CreateShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 CreateShareResponse.ProtoReflect.Descriptor instead. +func (*CreateShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateShareResponse) GetShare() *Share { + if x != nil { + return x.Share + } + return nil +} + +type UpdateShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + Field *UpdateShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` +} + +func (x *UpdateShareRequest) Reset() { + *x = UpdateShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateShareRequest) ProtoMessage() {} + +func (x *UpdateShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 UpdateShareRequest.ProtoReflect.Descriptor instead. +func (*UpdateShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UpdateShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *UpdateShareRequest) GetField() *UpdateShareRequest_UpdateField { + if x != nil { + return x.Field + } + return nil +} + +type UpdateShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *UpdateShareResponse) Reset() { + *x = UpdateShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateShareResponse) ProtoMessage() {} + +func (x *UpdateShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 UpdateShareResponse.ProtoReflect.Descriptor instead. +func (*UpdateShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *UpdateShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListSharesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // OPTIONAL. + // The list of filters to apply if any. + Filters []*ListSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` +} + +func (x *ListSharesRequest) Reset() { + *x = ListSharesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSharesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSharesRequest) ProtoMessage() {} + +func (x *ListSharesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 ListSharesRequest.ProtoReflect.Descriptor instead. +func (*ListSharesRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{4} +} + +func (x *ListSharesRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListSharesRequest) GetFilters() []*ListSharesRequest_Filter { + if x != nil { + return x.Filters + } + return nil +} + +type ListSharesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of shares. + Shares []*Share `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` +} + +func (x *ListSharesResponse) Reset() { + *x = ListSharesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSharesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSharesResponse) ProtoMessage() {} + +func (x *ListSharesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 ListSharesResponse.ProtoReflect.Descriptor instead. +func (*ListSharesResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{5} +} + +func (x *ListSharesResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListSharesResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListSharesResponse) GetShares() []*Share { + if x != nil { + return x.Shares + } + return nil +} + +type RemoveShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *RemoveShareRequest) Reset() { + *x = RemoveShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveShareRequest) ProtoMessage() {} + +func (x *RemoveShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 RemoveShareRequest.ProtoReflect.Descriptor instead. +func (*RemoveShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{6} +} + +func (x *RemoveShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *RemoveShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type RemoveShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *RemoveShareResponse) Reset() { + *x = RemoveShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveShareResponse) ProtoMessage() {} + +func (x *RemoveShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 RemoveShareResponse.ProtoReflect.Descriptor instead. +func (*RemoveShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{7} +} + +func (x *RemoveShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *RemoveShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *GetShareRequest) Reset() { + *x = GetShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetShareRequest) ProtoMessage() {} + +func (x *GetShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 GetShareRequest.ProtoReflect.Descriptor instead. +func (*GetShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{8} +} + +func (x *GetShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type GetShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The share. + Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *GetShareResponse) Reset() { + *x = GetShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetShareResponse) ProtoMessage() {} + +func (x *GetShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[9] + 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 GetShareResponse.ProtoReflect.Descriptor instead. +func (*GetShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{9} +} + +func (x *GetShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetShareResponse) GetShare() *Share { + if x != nil { + return x.Share + } + return nil +} + +type ListReceivedSharesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *ListReceivedSharesRequest) Reset() { + *x = ListReceivedSharesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListReceivedSharesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListReceivedSharesRequest) ProtoMessage() {} + +func (x *ListReceivedSharesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[10] + 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 ListReceivedSharesRequest.ProtoReflect.Descriptor instead. +func (*ListReceivedSharesRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{10} +} + +func (x *ListReceivedSharesRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListReceivedSharesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of received shares. + Shares []*ReceivedShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` +} + +func (x *ListReceivedSharesResponse) Reset() { + *x = ListReceivedSharesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListReceivedSharesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListReceivedSharesResponse) ProtoMessage() {} + +func (x *ListReceivedSharesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[11] + 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 ListReceivedSharesResponse.ProtoReflect.Descriptor instead. +func (*ListReceivedSharesResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{11} +} + +func (x *ListReceivedSharesResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListReceivedSharesResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListReceivedSharesResponse) GetShares() []*ReceivedShare { + if x != nil { + return x.Shares + } + return nil +} + +// TODO(labkode): clean up display_name ? we'll use storage links for that. +type UpdateReceivedShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + Field *UpdateReceivedShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` +} + +func (x *UpdateReceivedShareRequest) Reset() { + *x = UpdateReceivedShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateReceivedShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReceivedShareRequest) ProtoMessage() {} + +func (x *UpdateReceivedShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[12] + 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 UpdateReceivedShareRequest.ProtoReflect.Descriptor instead. +func (*UpdateReceivedShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{12} +} + +func (x *UpdateReceivedShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UpdateReceivedShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *UpdateReceivedShareRequest) GetField() *UpdateReceivedShareRequest_UpdateField { + if x != nil { + return x.Field + } + return nil +} + +type UpdateReceivedShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *UpdateReceivedShareResponse) Reset() { + *x = UpdateReceivedShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateReceivedShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReceivedShareResponse) ProtoMessage() {} + +func (x *UpdateReceivedShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[13] + 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 UpdateReceivedShareResponse.ProtoReflect.Descriptor instead. +func (*UpdateReceivedShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{13} +} + +func (x *UpdateReceivedShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *UpdateReceivedShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetReceivedShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference of the received share. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *GetReceivedShareRequest) Reset() { + *x = GetReceivedShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetReceivedShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReceivedShareRequest) ProtoMessage() {} + +func (x *GetReceivedShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[14] + 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 GetReceivedShareRequest.ProtoReflect.Descriptor instead. +func (*GetReceivedShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{14} +} + +func (x *GetReceivedShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetReceivedShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type GetReceivedShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The share. + Share *ReceivedShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *GetReceivedShareResponse) Reset() { + *x = GetReceivedShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetReceivedShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReceivedShareResponse) ProtoMessage() {} + +func (x *GetReceivedShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[15] + 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 GetReceivedShareResponse.ProtoReflect.Descriptor instead. +func (*GetReceivedShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{15} +} + +func (x *GetReceivedShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetReceivedShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetReceivedShareResponse) GetShare() *ReceivedShare { + if x != nil { + return x.Share + } + return nil +} + +// REQUIRED. +type UpdateShareRequest_UpdateField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // One of the update fields MUST be specified. + // + // Types that are assignable to Field: + // *UpdateShareRequest_UpdateField_Permissions + // *UpdateShareRequest_UpdateField_DisplayName + Field isUpdateShareRequest_UpdateField_Field `protobuf_oneof:"field"` +} + +func (x *UpdateShareRequest_UpdateField) Reset() { + *x = UpdateShareRequest_UpdateField{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateShareRequest_UpdateField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateShareRequest_UpdateField) ProtoMessage() {} + +func (x *UpdateShareRequest_UpdateField) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16] + 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 UpdateShareRequest_UpdateField.ProtoReflect.Descriptor instead. +func (*UpdateShareRequest_UpdateField) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{2, 0} +} + +func (m *UpdateShareRequest_UpdateField) GetField() isUpdateShareRequest_UpdateField_Field { + if m != nil { + return m.Field + } + return nil +} + +func (x *UpdateShareRequest_UpdateField) GetPermissions() *SharePermissions { + if x, ok := x.GetField().(*UpdateShareRequest_UpdateField_Permissions); ok { + return x.Permissions + } + return nil +} + +func (x *UpdateShareRequest_UpdateField) GetDisplayName() string { + if x, ok := x.GetField().(*UpdateShareRequest_UpdateField_DisplayName); ok { + return x.DisplayName + } + return "" +} + +type isUpdateShareRequest_UpdateField_Field interface { + isUpdateShareRequest_UpdateField_Field() +} + +type UpdateShareRequest_UpdateField_Permissions struct { + // Update the permissions. + Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3,oneof"` +} + +type UpdateShareRequest_UpdateField_DisplayName struct { + // Update the display name. + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3,oneof"` +} + +func (*UpdateShareRequest_UpdateField_Permissions) isUpdateShareRequest_UpdateField_Field() {} + +func (*UpdateShareRequest_UpdateField_DisplayName) isUpdateShareRequest_UpdateField_Field() {} + +// REQUIRED. +// represents a filter to apply to the request. +type ListSharesRequest_Filter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Type ListSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.collaboration.v1beta1.ListSharesRequest_Filter_Type" json:"type,omitempty"` + // Types that are assignable to Term: + // *ListSharesRequest_Filter_ResourceId + // *ListSharesRequest_Filter_Owner + // *ListSharesRequest_Filter_Creator + Term isListSharesRequest_Filter_Term `protobuf_oneof:"term"` +} + +func (x *ListSharesRequest_Filter) Reset() { + *x = ListSharesRequest_Filter{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSharesRequest_Filter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSharesRequest_Filter) ProtoMessage() {} + +func (x *ListSharesRequest_Filter) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17] + 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 ListSharesRequest_Filter.ProtoReflect.Descriptor instead. +func (*ListSharesRequest_Filter) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *ListSharesRequest_Filter) GetType() ListSharesRequest_Filter_Type { + if x != nil { + return x.Type + } + return ListSharesRequest_Filter_TYPE_INVALID +} + +func (m *ListSharesRequest_Filter) GetTerm() isListSharesRequest_Filter_Term { + if m != nil { + return m.Term + } + return nil +} + +func (x *ListSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId { + if x, ok := x.GetTerm().(*ListSharesRequest_Filter_ResourceId); ok { + return x.ResourceId + } + return nil +} + +func (x *ListSharesRequest_Filter) GetOwner() *v1beta13.UserId { + if x, ok := x.GetTerm().(*ListSharesRequest_Filter_Owner); ok { + return x.Owner + } + return nil +} + +func (x *ListSharesRequest_Filter) GetCreator() *v1beta13.UserId { + if x, ok := x.GetTerm().(*ListSharesRequest_Filter_Creator); ok { + return x.Creator + } + return nil +} + +type isListSharesRequest_Filter_Term interface { + isListSharesRequest_Filter_Term() +} + +type ListSharesRequest_Filter_ResourceId struct { + ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"` +} + +type ListSharesRequest_Filter_Owner struct { + Owner *v1beta13.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"` +} + +type ListSharesRequest_Filter_Creator struct { + Creator *v1beta13.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"` +} + +func (*ListSharesRequest_Filter_ResourceId) isListSharesRequest_Filter_Term() {} + +func (*ListSharesRequest_Filter_Owner) isListSharesRequest_Filter_Term() {} + +func (*ListSharesRequest_Filter_Creator) isListSharesRequest_Filter_Term() {} + +// REQUIRED. +// The field to update. +type UpdateReceivedShareRequest_UpdateField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // One of the update fields MUST be specified. + // + // Types that are assignable to Field: + // *UpdateReceivedShareRequest_UpdateField_DisplayName + // *UpdateReceivedShareRequest_UpdateField_State + Field isUpdateReceivedShareRequest_UpdateField_Field `protobuf_oneof:"field"` +} + +func (x *UpdateReceivedShareRequest_UpdateField) Reset() { + *x = UpdateReceivedShareRequest_UpdateField{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateReceivedShareRequest_UpdateField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReceivedShareRequest_UpdateField) ProtoMessage() {} + +func (x *UpdateReceivedShareRequest_UpdateField) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18] + 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 UpdateReceivedShareRequest_UpdateField.ProtoReflect.Descriptor instead. +func (*UpdateReceivedShareRequest_UpdateField) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{12, 0} +} + +func (m *UpdateReceivedShareRequest_UpdateField) GetField() isUpdateReceivedShareRequest_UpdateField_Field { + if m != nil { + return m.Field + } + return nil +} + +func (x *UpdateReceivedShareRequest_UpdateField) GetDisplayName() string { + if x, ok := x.GetField().(*UpdateReceivedShareRequest_UpdateField_DisplayName); ok { + return x.DisplayName + } + return "" +} + +func (x *UpdateReceivedShareRequest_UpdateField) GetState() ShareState { + if x, ok := x.GetField().(*UpdateReceivedShareRequest_UpdateField_State); ok { + return x.State + } + return ShareState_SHARE_STATE_INVALID +} + +type isUpdateReceivedShareRequest_UpdateField_Field interface { + isUpdateReceivedShareRequest_UpdateField_Field() +} + +type UpdateReceivedShareRequest_UpdateField_DisplayName struct { + // Update the display name. + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3,oneof"` +} + +type UpdateReceivedShareRequest_UpdateField_State struct { + // Update the share state + State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.collaboration.v1beta1.ShareState,oneof"` +} + +func (*UpdateReceivedShareRequest_UpdateField_DisplayName) isUpdateReceivedShareRequest_UpdateField_Field() { +} + +func (*UpdateReceivedShareRequest_UpdateField_State) isUpdateReceivedShareRequest_UpdateField_Field() { +} + +var File_cs3_sharing_collaboration_v1beta1_collaboration_api_proto protoreflect.FileDescriptor + +var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc = []byte{ + 0x0a, 0x39, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, + 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, + 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, + 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, + 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, + 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0xb9, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x22, 0xfc, 0x02, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, + 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, + 0x65, 0x66, 0x12, 0x57, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x41, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x94, 0x01, 0x0a, 0x0b, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x0b, 0x70, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x22, 0x79, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xac, 0x04, + 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x55, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x8c, 0x03, + 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x40, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4b, + 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, + 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5d, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, + 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x44, + 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, + 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, + 0x4f, 0x52, 0x10, 0x04, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x22, 0xba, 0x01, 0x0a, + 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x12, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x79, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, + 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, + 0xb6, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x4e, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, + 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x06, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xfa, 0x02, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x5f, 0x0a, 0x05, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, + 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x82, 0x01, + 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, + 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x48, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x22, 0x81, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xc6, 0x01, 0x0a, 0x18, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x32, 0xb5, 0x08, 0x0a, 0x10, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, + 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, + 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0a, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, + 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x94, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x3d, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, + 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8b, 0x01, + 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xa4, 0x01, 0x0a, 0x25, + 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x15, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x14, + 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x43, 0xaa, 0x02, 0x21, 0x43, 0x73, 0x33, + 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, + 0x21, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x6f, 0x6c, + 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, + 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescOnce sync.Once + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData = file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc +) + +func file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP() []byte { + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescOnce.Do(func() { + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData) + }) + return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData +} + +var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_goTypes = []interface{}{ + (ListSharesRequest_Filter_Type)(0), // 0: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.Type + (*CreateShareRequest)(nil), // 1: cs3.sharing.collaboration.v1beta1.CreateShareRequest + (*CreateShareResponse)(nil), // 2: cs3.sharing.collaboration.v1beta1.CreateShareResponse + (*UpdateShareRequest)(nil), // 3: cs3.sharing.collaboration.v1beta1.UpdateShareRequest + (*UpdateShareResponse)(nil), // 4: cs3.sharing.collaboration.v1beta1.UpdateShareResponse + (*ListSharesRequest)(nil), // 5: cs3.sharing.collaboration.v1beta1.ListSharesRequest + (*ListSharesResponse)(nil), // 6: cs3.sharing.collaboration.v1beta1.ListSharesResponse + (*RemoveShareRequest)(nil), // 7: cs3.sharing.collaboration.v1beta1.RemoveShareRequest + (*RemoveShareResponse)(nil), // 8: cs3.sharing.collaboration.v1beta1.RemoveShareResponse + (*GetShareRequest)(nil), // 9: cs3.sharing.collaboration.v1beta1.GetShareRequest + (*GetShareResponse)(nil), // 10: cs3.sharing.collaboration.v1beta1.GetShareResponse + (*ListReceivedSharesRequest)(nil), // 11: cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest + (*ListReceivedSharesResponse)(nil), // 12: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse + (*UpdateReceivedShareRequest)(nil), // 13: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest + (*UpdateReceivedShareResponse)(nil), // 14: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse + (*GetReceivedShareRequest)(nil), // 15: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest + (*GetReceivedShareResponse)(nil), // 16: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse + (*UpdateShareRequest_UpdateField)(nil), // 17: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField + (*ListSharesRequest_Filter)(nil), // 18: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter + (*UpdateReceivedShareRequest_UpdateField)(nil), // 19: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.UpdateField + (*v1beta1.Opaque)(nil), // 20: cs3.types.v1beta1.Opaque + (*v1beta11.ResourceInfo)(nil), // 21: cs3.storage.provider.v1beta1.ResourceInfo + (*ShareGrant)(nil), // 22: cs3.sharing.collaboration.v1beta1.ShareGrant + (*v1beta12.Status)(nil), // 23: cs3.rpc.v1beta1.Status + (*Share)(nil), // 24: cs3.sharing.collaboration.v1beta1.Share + (*ShareReference)(nil), // 25: cs3.sharing.collaboration.v1beta1.ShareReference + (*ReceivedShare)(nil), // 26: cs3.sharing.collaboration.v1beta1.ReceivedShare + (*SharePermissions)(nil), // 27: cs3.sharing.collaboration.v1beta1.SharePermissions + (*v1beta11.ResourceId)(nil), // 28: cs3.storage.provider.v1beta1.ResourceId + (*v1beta13.UserId)(nil), // 29: cs3.identity.user.v1beta1.UserId + (ShareState)(0), // 30: cs3.sharing.collaboration.v1beta1.ShareState +} +var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_depIdxs = []int32{ + 20, // 0: cs3.sharing.collaboration.v1beta1.CreateShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 21, // 1: cs3.sharing.collaboration.v1beta1.CreateShareRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo + 22, // 2: cs3.sharing.collaboration.v1beta1.CreateShareRequest.grant:type_name -> cs3.sharing.collaboration.v1beta1.ShareGrant + 23, // 3: cs3.sharing.collaboration.v1beta1.CreateShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 4: cs3.sharing.collaboration.v1beta1.CreateShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 24, // 5: cs3.sharing.collaboration.v1beta1.CreateShareResponse.share:type_name -> cs3.sharing.collaboration.v1beta1.Share + 20, // 6: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 7: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference + 17, // 8: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.field:type_name -> cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField + 23, // 9: cs3.sharing.collaboration.v1beta1.UpdateShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 10: cs3.sharing.collaboration.v1beta1.UpdateShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 11: cs3.sharing.collaboration.v1beta1.ListSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 18, // 12: cs3.sharing.collaboration.v1beta1.ListSharesRequest.filters:type_name -> cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter + 23, // 13: cs3.sharing.collaboration.v1beta1.ListSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 14: cs3.sharing.collaboration.v1beta1.ListSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 24, // 15: cs3.sharing.collaboration.v1beta1.ListSharesResponse.shares:type_name -> cs3.sharing.collaboration.v1beta1.Share + 20, // 16: cs3.sharing.collaboration.v1beta1.RemoveShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 17: cs3.sharing.collaboration.v1beta1.RemoveShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference + 23, // 18: cs3.sharing.collaboration.v1beta1.RemoveShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 19: cs3.sharing.collaboration.v1beta1.RemoveShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 20: cs3.sharing.collaboration.v1beta1.GetShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 21: cs3.sharing.collaboration.v1beta1.GetShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference + 23, // 22: cs3.sharing.collaboration.v1beta1.GetShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 23: cs3.sharing.collaboration.v1beta1.GetShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 24, // 24: cs3.sharing.collaboration.v1beta1.GetShareResponse.share:type_name -> cs3.sharing.collaboration.v1beta1.Share + 20, // 25: cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 23, // 26: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 27: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // 28: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.shares:type_name -> cs3.sharing.collaboration.v1beta1.ReceivedShare + 20, // 29: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 30: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference + 19, // 31: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.field:type_name -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.UpdateField + 23, // 32: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 33: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 34: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 35: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference + 23, // 36: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 37: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // 38: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.share:type_name -> cs3.sharing.collaboration.v1beta1.ReceivedShare + 27, // 39: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.permissions:type_name -> cs3.sharing.collaboration.v1beta1.SharePermissions + 0, // 40: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.type:type_name -> cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.Type + 28, // 41: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 29, // 42: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.owner:type_name -> cs3.identity.user.v1beta1.UserId + 29, // 43: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.creator:type_name -> cs3.identity.user.v1beta1.UserId + 30, // 44: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.UpdateField.state:type_name -> cs3.sharing.collaboration.v1beta1.ShareState + 1, // 45: cs3.sharing.collaboration.v1beta1.CollaborationAPI.CreateShare:input_type -> cs3.sharing.collaboration.v1beta1.CreateShareRequest + 7, // 46: cs3.sharing.collaboration.v1beta1.CollaborationAPI.RemoveShare:input_type -> cs3.sharing.collaboration.v1beta1.RemoveShareRequest + 9, // 47: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetShare:input_type -> cs3.sharing.collaboration.v1beta1.GetShareRequest + 5, // 48: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListShares:input_type -> cs3.sharing.collaboration.v1beta1.ListSharesRequest + 3, // 49: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateShareRequest + 11, // 50: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListReceivedShares:input_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest + 13, // 51: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest + 15, // 52: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest + 2, // 53: cs3.sharing.collaboration.v1beta1.CollaborationAPI.CreateShare:output_type -> cs3.sharing.collaboration.v1beta1.CreateShareResponse + 8, // 54: cs3.sharing.collaboration.v1beta1.CollaborationAPI.RemoveShare:output_type -> cs3.sharing.collaboration.v1beta1.RemoveShareResponse + 10, // 55: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetShare:output_type -> cs3.sharing.collaboration.v1beta1.GetShareResponse + 6, // 56: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListShares:output_type -> cs3.sharing.collaboration.v1beta1.ListSharesResponse + 4, // 57: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateShareResponse + 12, // 58: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListReceivedShares:output_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse + 14, // 59: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse + 16, // 60: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse + 53, // [53:61] is the sub-list for method output_type + 45, // [45:53] is the sub-list for method input_type + 45, // [45:45] is the sub-list for extension type_name + 45, // [45:45] is the sub-list for extension extendee + 0, // [0:45] is the sub-list for field type_name +} + +func init() { file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_init() } +func file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_init() { + if File_cs3_sharing_collaboration_v1beta1_collaboration_api_proto != nil { + return + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSharesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSharesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListReceivedSharesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListReceivedSharesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateReceivedShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateReceivedShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReceivedShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReceivedShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateShareRequest_UpdateField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSharesRequest_Filter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateReceivedShareRequest_UpdateField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16].OneofWrappers = []interface{}{ + (*UpdateShareRequest_UpdateField_Permissions)(nil), + (*UpdateShareRequest_UpdateField_DisplayName)(nil), + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17].OneofWrappers = []interface{}{ + (*ListSharesRequest_Filter_ResourceId)(nil), + (*ListSharesRequest_Filter_Owner)(nil), + (*ListSharesRequest_Filter_Creator)(nil), + } + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18].OneofWrappers = []interface{}{ + (*UpdateReceivedShareRequest_UpdateField_DisplayName)(nil), + (*UpdateReceivedShareRequest_UpdateField_State)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc, + NumEnums: 1, + NumMessages: 19, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_goTypes, + DependencyIndexes: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_depIdxs, + EnumInfos: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes, + MessageInfos: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes, + }.Build() + File_cs3_sharing_collaboration_v1beta1_collaboration_api_proto = out.File + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc = nil + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_goTypes = nil + file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// CollaborationAPIClient is the client API for CollaborationAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type CollaborationAPIClient interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(ctx context.Context, in *CreateShareRequest, opts ...grpc.CallOption) (*CreateShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...grpc.CallOption) (*RemoveShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(ctx context.Context, in *GetShareRequest, opts ...grpc.CallOption) (*GetShareResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(ctx context.Context, in *ListSharesRequest, opts ...grpc.CallOption) (*ListSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...grpc.CallOption) (*UpdateShareResponse, error) + // List all shares the authenticated principal has received. + ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...grpc.CallOption) (*ListReceivedSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...grpc.CallOption) (*UpdateReceivedShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...grpc.CallOption) (*GetReceivedShareResponse, error) +} + +type collaborationAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewCollaborationAPIClient(cc grpc.ClientConnInterface) CollaborationAPIClient { + return &collaborationAPIClient{cc} +} + +func (c *collaborationAPIClient) CreateShare(ctx context.Context, in *CreateShareRequest, opts ...grpc.CallOption) (*CreateShareResponse, error) { + out := new(CreateShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/CreateShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIClient) RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...grpc.CallOption) (*RemoveShareResponse, error) { + out := new(RemoveShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/RemoveShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIClient) GetShare(ctx context.Context, in *GetShareRequest, opts ...grpc.CallOption) (*GetShareResponse, error) { + out := new(GetShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIClient) ListShares(ctx context.Context, in *ListSharesRequest, opts ...grpc.CallOption) (*ListSharesResponse, error) { + out := new(ListSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIClient) UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...grpc.CallOption) (*UpdateShareResponse, error) { + out := new(UpdateShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIClient) ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...grpc.CallOption) (*ListReceivedSharesResponse, error) { + out := new(ListReceivedSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIClient) UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...grpc.CallOption) (*UpdateReceivedShareResponse, error) { + out := new(UpdateReceivedShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateReceivedShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIClient) GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...grpc.CallOption) (*GetReceivedShareResponse, error) { + out := new(GetReceivedShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetReceivedShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CollaborationAPIServer is the server API for CollaborationAPI service. +type CollaborationAPIServer interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(context.Context, *CreateShareRequest) (*CreateShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(context.Context, *RemoveShareRequest) (*RemoveShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(context.Context, *GetShareRequest) (*GetShareResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(context.Context, *ListSharesRequest) (*ListSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(context.Context, *UpdateShareRequest) (*UpdateShareResponse, error) + // List all shares the authenticated principal has received. + ListReceivedShares(context.Context, *ListReceivedSharesRequest) (*ListReceivedSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest) (*UpdateReceivedShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(context.Context, *GetReceivedShareRequest) (*GetReceivedShareResponse, error) +} + +// UnimplementedCollaborationAPIServer can be embedded to have forward compatible implementations. +type UnimplementedCollaborationAPIServer struct { +} + +func (*UnimplementedCollaborationAPIServer) CreateShare(context.Context, *CreateShareRequest) (*CreateShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateShare not implemented") +} +func (*UnimplementedCollaborationAPIServer) RemoveShare(context.Context, *RemoveShareRequest) (*RemoveShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveShare not implemented") +} +func (*UnimplementedCollaborationAPIServer) GetShare(context.Context, *GetShareRequest) (*GetShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetShare not implemented") +} +func (*UnimplementedCollaborationAPIServer) ListShares(context.Context, *ListSharesRequest) (*ListSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListShares not implemented") +} +func (*UnimplementedCollaborationAPIServer) UpdateShare(context.Context, *UpdateShareRequest) (*UpdateShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateShare not implemented") +} +func (*UnimplementedCollaborationAPIServer) ListReceivedShares(context.Context, *ListReceivedSharesRequest) (*ListReceivedSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListReceivedShares not implemented") +} +func (*UnimplementedCollaborationAPIServer) UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest) (*UpdateReceivedShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedShare not implemented") +} +func (*UnimplementedCollaborationAPIServer) GetReceivedShare(context.Context, *GetReceivedShareRequest) (*GetReceivedShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetReceivedShare not implemented") +} + +func RegisterCollaborationAPIServer(s *grpc.Server, srv CollaborationAPIServer) { + s.RegisterService(&_CollaborationAPI_serviceDesc, srv) +} + +func _CollaborationAPI_CreateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).CreateShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/CreateShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).CreateShare(ctx, req.(*CreateShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CollaborationAPI_RemoveShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).RemoveShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/RemoveShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).RemoveShare(ctx, req.(*RemoveShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CollaborationAPI_GetShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).GetShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).GetShare(ctx, req.(*GetShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CollaborationAPI_ListShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).ListShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).ListShares(ctx, req.(*ListSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CollaborationAPI_UpdateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).UpdateShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).UpdateShare(ctx, req.(*UpdateShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CollaborationAPI_ListReceivedShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListReceivedSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).ListReceivedShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).ListReceivedShares(ctx, req.(*ListReceivedSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CollaborationAPI_UpdateReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateReceivedShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).UpdateReceivedShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateReceivedShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).UpdateReceivedShare(ctx, req.(*UpdateReceivedShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CollaborationAPI_GetReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetReceivedShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CollaborationAPIServer).GetReceivedShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetReceivedShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CollaborationAPIServer).GetReceivedShare(ctx, req.(*GetReceivedShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _CollaborationAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.sharing.collaboration.v1beta1.CollaborationAPI", + HandlerType: (*CollaborationAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateShare", + Handler: _CollaborationAPI_CreateShare_Handler, + }, + { + MethodName: "RemoveShare", + Handler: _CollaborationAPI_RemoveShare_Handler, + }, + { + MethodName: "GetShare", + Handler: _CollaborationAPI_GetShare_Handler, + }, + { + MethodName: "ListShares", + Handler: _CollaborationAPI_ListShares_Handler, + }, + { + MethodName: "UpdateShare", + Handler: _CollaborationAPI_UpdateShare_Handler, + }, + { + MethodName: "ListReceivedShares", + Handler: _CollaborationAPI_ListReceivedShares_Handler, + }, + { + MethodName: "UpdateReceivedShare", + Handler: _CollaborationAPI_UpdateReceivedShare_Handler, + }, + { + MethodName: "GetReceivedShare", + Handler: _CollaborationAPI_GetReceivedShare_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/sharing/collaboration/v1beta1/collaboration_api.proto", +} diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go new file mode 100644 index 00000000..7401d726 --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go @@ -0,0 +1,254 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/sharing/collaboration/v1beta1/collaboration_api.proto + +package collaborationv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for CollaborationAPI service + +func NewCollaborationAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for CollaborationAPI service + +type CollaborationAPIService interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(ctx context.Context, in *CreateShareRequest, opts ...client.CallOption) (*CreateShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...client.CallOption) (*RemoveShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(ctx context.Context, in *GetShareRequest, opts ...client.CallOption) (*GetShareResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(ctx context.Context, in *ListSharesRequest, opts ...client.CallOption) (*ListSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...client.CallOption) (*UpdateShareResponse, error) + // List all shares the authenticated principal has received. + ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...client.CallOption) (*ListReceivedSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...client.CallOption) (*UpdateReceivedShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...client.CallOption) (*GetReceivedShareResponse, error) +} + +type collaborationAPIService struct { + c client.Client + name string +} + +func NewCollaborationAPIService(name string, c client.Client) CollaborationAPIService { + return &collaborationAPIService{ + c: c, + name: name, + } +} + +func (c *collaborationAPIService) CreateShare(ctx context.Context, in *CreateShareRequest, opts ...client.CallOption) (*CreateShareResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.CreateShare", in) + out := new(CreateShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIService) RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...client.CallOption) (*RemoveShareResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.RemoveShare", in) + out := new(RemoveShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIService) GetShare(ctx context.Context, in *GetShareRequest, opts ...client.CallOption) (*GetShareResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.GetShare", in) + out := new(GetShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIService) ListShares(ctx context.Context, in *ListSharesRequest, opts ...client.CallOption) (*ListSharesResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.ListShares", in) + out := new(ListSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIService) UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...client.CallOption) (*UpdateShareResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.UpdateShare", in) + out := new(UpdateShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIService) ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...client.CallOption) (*ListReceivedSharesResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.ListReceivedShares", in) + out := new(ListReceivedSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIService) UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...client.CallOption) (*UpdateReceivedShareResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.UpdateReceivedShare", in) + out := new(UpdateReceivedShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *collaborationAPIService) GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...client.CallOption) (*GetReceivedShareResponse, error) { + req := c.c.NewRequest(c.name, "CollaborationAPI.GetReceivedShare", in) + out := new(GetReceivedShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for CollaborationAPI service + +type CollaborationAPIHandler interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateShare(context.Context, *CreateShareRequest, *CreateShareResponse) error + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveShare(context.Context, *RemoveShareRequest, *RemoveShareResponse) error + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetShare(context.Context, *GetShareRequest, *GetShareResponse) error + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListShares(context.Context, *ListSharesRequest, *ListSharesResponse) error + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateShare(context.Context, *UpdateShareRequest, *UpdateShareResponse) error + // List all shares the authenticated principal has received. + ListReceivedShares(context.Context, *ListReceivedSharesRequest, *ListReceivedSharesResponse) error + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest, *UpdateReceivedShareResponse) error + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedShare(context.Context, *GetReceivedShareRequest, *GetReceivedShareResponse) error +} + +func RegisterCollaborationAPIHandler(s server.Server, hdlr CollaborationAPIHandler, opts ...server.HandlerOption) error { + type collaborationAPI interface { + CreateShare(ctx context.Context, in *CreateShareRequest, out *CreateShareResponse) error + RemoveShare(ctx context.Context, in *RemoveShareRequest, out *RemoveShareResponse) error + GetShare(ctx context.Context, in *GetShareRequest, out *GetShareResponse) error + ListShares(ctx context.Context, in *ListSharesRequest, out *ListSharesResponse) error + UpdateShare(ctx context.Context, in *UpdateShareRequest, out *UpdateShareResponse) error + ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, out *ListReceivedSharesResponse) error + UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, out *UpdateReceivedShareResponse) error + GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, out *GetReceivedShareResponse) error + } + type CollaborationAPI struct { + collaborationAPI + } + h := &collaborationAPIHandler{hdlr} + return s.Handle(s.NewHandler(&CollaborationAPI{h}, opts...)) +} + +type collaborationAPIHandler struct { + CollaborationAPIHandler +} + +func (h *collaborationAPIHandler) CreateShare(ctx context.Context, in *CreateShareRequest, out *CreateShareResponse) error { + return h.CollaborationAPIHandler.CreateShare(ctx, in, out) +} + +func (h *collaborationAPIHandler) RemoveShare(ctx context.Context, in *RemoveShareRequest, out *RemoveShareResponse) error { + return h.CollaborationAPIHandler.RemoveShare(ctx, in, out) +} + +func (h *collaborationAPIHandler) GetShare(ctx context.Context, in *GetShareRequest, out *GetShareResponse) error { + return h.CollaborationAPIHandler.GetShare(ctx, in, out) +} + +func (h *collaborationAPIHandler) ListShares(ctx context.Context, in *ListSharesRequest, out *ListSharesResponse) error { + return h.CollaborationAPIHandler.ListShares(ctx, in, out) +} + +func (h *collaborationAPIHandler) UpdateShare(ctx context.Context, in *UpdateShareRequest, out *UpdateShareResponse) error { + return h.CollaborationAPIHandler.UpdateShare(ctx, in, out) +} + +func (h *collaborationAPIHandler) ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, out *ListReceivedSharesResponse) error { + return h.CollaborationAPIHandler.ListReceivedShares(ctx, in, out) +} + +func (h *collaborationAPIHandler) UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, out *UpdateReceivedShareResponse) error { + return h.CollaborationAPIHandler.UpdateReceivedShare(ctx, in, out) +} + +func (h *collaborationAPIHandler) GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, out *GetReceivedShareResponse) error { + return h.CollaborationAPIHandler.GetReceivedShare(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go new file mode 100644 index 00000000..dabd10fb --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go @@ -0,0 +1,920 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/sharing/collaboration/v1beta1/resources.proto + +package collaborationv1beta1 + +import ( + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The state of the share. +type ShareState int32 + +const ( + // The share is no longer valid, for example, the share expired. + ShareState_SHARE_STATE_INVALID ShareState = 0 + // New shares MUST be created in the SHARE_STATE_PENDING state. + // This state means the share is pending to be accepted or rejected + // by the recipient of the share. + ShareState_SHARE_STATE_PENDING ShareState = 1 + // The recipient of the share has accepted the share. + ShareState_SHARE_STATE_ACCEPTED ShareState = 2 + // The recipient of the share has rejected the share. + // Do not means the share is removed, the recipient MAY + // change the state to accepted or pending. + ShareState_SHARE_STATE_REJECTED ShareState = 3 +) + +// Enum value maps for ShareState. +var ( + ShareState_name = map[int32]string{ + 0: "SHARE_STATE_INVALID", + 1: "SHARE_STATE_PENDING", + 2: "SHARE_STATE_ACCEPTED", + 3: "SHARE_STATE_REJECTED", + } + ShareState_value = map[string]int32{ + "SHARE_STATE_INVALID": 0, + "SHARE_STATE_PENDING": 1, + "SHARE_STATE_ACCEPTED": 2, + "SHARE_STATE_REJECTED": 3, + } +) + +func (x ShareState) Enum() *ShareState { + p := new(ShareState) + *p = x + return p +} + +func (x ShareState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ShareState) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes[0].Descriptor() +} + +func (ShareState) Type() protoreflect.EnumType { + return &file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes[0] +} + +func (x ShareState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ShareState.Descriptor instead. +func (ShareState) EnumDescriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +// Shares are relationships between a resource owner +// (usually the authenticated user) who grants permissions to a recipient (grantee) +// on a specified resource (resource_id). UserShares represents both user and groups. +type Share struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // Opaque unique identifier of the share. + Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // REQUIRED. + // Unique identifier of the shared resource. + ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // REQUIRED. + // Permissions for the grantee to use + // the resource. + Permissions *SharePermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"` + // REQUIRED. + // The receiver of the share, like a user, group ... + Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` + // REQUIRED. + // Uniquely identifies the owner of the share + // (the resource owner at the time of creating the share). + // In case the ownership of the underlying resource changes + // the share owner field MAY change to reflect the change of ownsership. + Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` + // REQUIRED. + // Uniquely identifies a principal who initiates the share creation. + // A creator can create shares on behalf of the owner (because of re-sharing, + // because belonging to special groups, ...). + // Creator and owner often result in being the same principal. + Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` + // REQUIRED. + // Creation time of the share. + Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"` + // REQUIRED. + // Last modification time of the share. + Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"` +} + +func (x *Share) Reset() { + *x = Share{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Share) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Share) ProtoMessage() {} + +func (x *Share) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 Share.ProtoReflect.Descriptor instead. +func (*Share) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *Share) GetId() *ShareId { + if x != nil { + return x.Id + } + return nil +} + +func (x *Share) GetResourceId() *v1beta1.ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +func (x *Share) GetPermissions() *SharePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +func (x *Share) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +func (x *Share) GetOwner() *v1beta11.UserId { + if x != nil { + return x.Owner + } + return nil +} + +func (x *Share) GetCreator() *v1beta11.UserId { + if x != nil { + return x.Creator + } + return nil +} + +func (x *Share) GetCtime() *v1beta12.Timestamp { + if x != nil { + return x.Ctime + } + return nil +} + +func (x *Share) GetMtime() *v1beta12.Timestamp { + if x != nil { + return x.Mtime + } + return nil +} + +// The permissions for a share. +type SharePermissions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` // TODO(labkode): additional permissions for shares like re-sharing +} + +func (x *SharePermissions) Reset() { + *x = SharePermissions{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SharePermissions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SharePermissions) ProtoMessage() {} + +func (x *SharePermissions) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 SharePermissions.ProtoReflect.Descriptor instead. +func (*SharePermissions) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +// A received share is the share that a grantee will receive. +// It expands the original share by adding state to the share, +// a display name from the perspective of the grantee and a +// resource mount path in case the share will be mounted +// in a path in a storage provider. +type ReceivedShare struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"` + // REQUIRED. + // The state of the share. + State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.collaboration.v1beta1.ShareState" json:"state,omitempty"` +} + +func (x *ReceivedShare) Reset() { + *x = ReceivedShare{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReceivedShare) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReceivedShare) ProtoMessage() {} + +func (x *ReceivedShare) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ReceivedShare.ProtoReflect.Descriptor instead. +func (*ReceivedShare) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{2} +} + +func (x *ReceivedShare) GetShare() *Share { + if x != nil { + return x.Share + } + return nil +} + +func (x *ReceivedShare) GetState() ShareState { + if x != nil { + return x.State + } + return ShareState_SHARE_STATE_INVALID +} + +// Uniquely identifies a share in the share provider. +// A share MUST be uniquely identify by four (4) elements: +// 1) The share provider id +// 2) The owner of the share +// 3) The resource id +// 4) The grantee for the share +// This 4-tuple MUST be unique. +// For example, owner Alice shares the resource /home/docs with id +// home:1234 to an user named Bob. The 4-tuple will consist of +// 1) The share provider id = "user" +// 2) The owner of the share = "Alice" +// 3) The resource id = "home:1234" +// 4) The grantee for the share = Grantee("type" = "user", "" => "Bob") +type ShareKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Owner *v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + // REQUIRED. + ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // REQUIRED. + Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` +} + +func (x *ShareKey) Reset() { + *x = ShareKey{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareKey) ProtoMessage() {} + +func (x *ShareKey) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareKey.ProtoReflect.Descriptor instead. +func (*ShareKey) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{3} +} + +func (x *ShareKey) GetOwner() *v1beta11.UserId { + if x != nil { + return x.Owner + } + return nil +} + +func (x *ShareKey) GetResourceId() *v1beta1.ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +func (x *ShareKey) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +// A share id identifies uniquely a // share in the share provider namespace. +// A ShareId MUST be unique inside the share provider. +type ShareId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The internal id used by service implementor to + // uniquely Collaboration the share in the internal + // implementation of the service. + OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` +} + +func (x *ShareId) Reset() { + *x = ShareId{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareId) ProtoMessage() {} + +func (x *ShareId) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareId.ProtoReflect.Descriptor instead. +func (*ShareId) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{4} +} + +func (x *ShareId) GetOpaqueId() string { + if x != nil { + return x.OpaqueId + } + return "" +} + +// The mechanism to identify a share +// in the share provider namespace. +type ShareReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // One of the specifications MUST be specified. + // + // Types that are assignable to Spec: + // *ShareReference_Id + // *ShareReference_Key + Spec isShareReference_Spec `protobuf_oneof:"spec"` +} + +func (x *ShareReference) Reset() { + *x = ShareReference{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareReference) ProtoMessage() {} + +func (x *ShareReference) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareReference.ProtoReflect.Descriptor instead. +func (*ShareReference) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{5} +} + +func (m *ShareReference) GetSpec() isShareReference_Spec { + if m != nil { + return m.Spec + } + return nil +} + +func (x *ShareReference) GetId() *ShareId { + if x, ok := x.GetSpec().(*ShareReference_Id); ok { + return x.Id + } + return nil +} + +func (x *ShareReference) GetKey() *ShareKey { + if x, ok := x.GetSpec().(*ShareReference_Key); ok { + return x.Key + } + return nil +} + +type isShareReference_Spec interface { + isShareReference_Spec() +} + +type ShareReference_Id struct { + // The id of the share. + Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type ShareReference_Key struct { + // The combination of fields that + // make the share unique. + Key *ShareKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"` +} + +func (*ShareReference_Id) isShareReference_Spec() {} + +func (*ShareReference_Key) isShareReference_Spec() {} + +// A share grant specifies the share permissions +// for a grantee. +type ShareGrant struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The grantee of the grant. + Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` + // REQUIRED. + // The share permissions for the grant. + Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` +} + +func (x *ShareGrant) Reset() { + *x = ShareGrant{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareGrant) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareGrant) ProtoMessage() {} + +func (x *ShareGrant) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareGrant.ProtoReflect.Descriptor instead. +func (*ShareGrant) Descriptor() ([]byte, []int) { + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{6} +} + +func (x *ShareGrant) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +func (x *ShareGrant) GetPermissions() *SharePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +var File_cs3_sharing_collaboration_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x31, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, + 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, + 0x04, 0x0a, 0x05, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, + 0x55, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, + 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, + 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, + 0x65, 0x12, 0x32, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, + 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x67, 0x0a, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x70, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x94, + 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, + 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, + 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x08, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4b, + 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0b, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, + 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x22, 0x26, 0x0a, 0x07, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, + 0x97, 0x01, 0x0a, 0x0e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x3f, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, + 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xa4, 0x01, 0x0a, 0x0a, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, + 0x74, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, + 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x70, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, + 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2a, 0x72, 0x0a, 0x0a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, + 0x0a, 0x13, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x48, 0x41, 0x52, 0x45, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, + 0x12, 0x18, 0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x48, + 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, + 0x45, 0x44, 0x10, 0x03, 0x42, 0x9d, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x14, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x43, 0xaa, 0x02, 0x21, 0x43, + 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x61, + 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, + 0xca, 0x02, 0x21, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, + 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x42, + 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData = file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc +) + +func file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData +} + +var file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_cs3_sharing_collaboration_v1beta1_resources_proto_goTypes = []interface{}{ + (ShareState)(0), // 0: cs3.sharing.collaboration.v1beta1.ShareState + (*Share)(nil), // 1: cs3.sharing.collaboration.v1beta1.Share + (*SharePermissions)(nil), // 2: cs3.sharing.collaboration.v1beta1.SharePermissions + (*ReceivedShare)(nil), // 3: cs3.sharing.collaboration.v1beta1.ReceivedShare + (*ShareKey)(nil), // 4: cs3.sharing.collaboration.v1beta1.ShareKey + (*ShareId)(nil), // 5: cs3.sharing.collaboration.v1beta1.ShareId + (*ShareReference)(nil), // 6: cs3.sharing.collaboration.v1beta1.ShareReference + (*ShareGrant)(nil), // 7: cs3.sharing.collaboration.v1beta1.ShareGrant + (*v1beta1.ResourceId)(nil), // 8: cs3.storage.provider.v1beta1.ResourceId + (*v1beta1.Grantee)(nil), // 9: cs3.storage.provider.v1beta1.Grantee + (*v1beta11.UserId)(nil), // 10: cs3.identity.user.v1beta1.UserId + (*v1beta12.Timestamp)(nil), // 11: cs3.types.v1beta1.Timestamp + (*v1beta1.ResourcePermissions)(nil), // 12: cs3.storage.provider.v1beta1.ResourcePermissions +} +var file_cs3_sharing_collaboration_v1beta1_resources_proto_depIdxs = []int32{ + 5, // 0: cs3.sharing.collaboration.v1beta1.Share.id:type_name -> cs3.sharing.collaboration.v1beta1.ShareId + 8, // 1: cs3.sharing.collaboration.v1beta1.Share.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 2, // 2: cs3.sharing.collaboration.v1beta1.Share.permissions:type_name -> cs3.sharing.collaboration.v1beta1.SharePermissions + 9, // 3: cs3.sharing.collaboration.v1beta1.Share.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 10, // 4: cs3.sharing.collaboration.v1beta1.Share.owner:type_name -> cs3.identity.user.v1beta1.UserId + 10, // 5: cs3.sharing.collaboration.v1beta1.Share.creator:type_name -> cs3.identity.user.v1beta1.UserId + 11, // 6: cs3.sharing.collaboration.v1beta1.Share.ctime:type_name -> cs3.types.v1beta1.Timestamp + 11, // 7: cs3.sharing.collaboration.v1beta1.Share.mtime:type_name -> cs3.types.v1beta1.Timestamp + 12, // 8: cs3.sharing.collaboration.v1beta1.SharePermissions.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions + 1, // 9: cs3.sharing.collaboration.v1beta1.ReceivedShare.share:type_name -> cs3.sharing.collaboration.v1beta1.Share + 0, // 10: cs3.sharing.collaboration.v1beta1.ReceivedShare.state:type_name -> cs3.sharing.collaboration.v1beta1.ShareState + 10, // 11: cs3.sharing.collaboration.v1beta1.ShareKey.owner:type_name -> cs3.identity.user.v1beta1.UserId + 8, // 12: cs3.sharing.collaboration.v1beta1.ShareKey.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 9, // 13: cs3.sharing.collaboration.v1beta1.ShareKey.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 5, // 14: cs3.sharing.collaboration.v1beta1.ShareReference.id:type_name -> cs3.sharing.collaboration.v1beta1.ShareId + 4, // 15: cs3.sharing.collaboration.v1beta1.ShareReference.key:type_name -> cs3.sharing.collaboration.v1beta1.ShareKey + 9, // 16: cs3.sharing.collaboration.v1beta1.ShareGrant.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 2, // 17: cs3.sharing.collaboration.v1beta1.ShareGrant.permissions:type_name -> cs3.sharing.collaboration.v1beta1.SharePermissions + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_cs3_sharing_collaboration_v1beta1_resources_proto_init() } +func file_cs3_sharing_collaboration_v1beta1_resources_proto_init() { + if File_cs3_sharing_collaboration_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Share); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SharePermissions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReceivedShare); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareGrant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*ShareReference_Id)(nil), + (*ShareReference_Key)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_sharing_collaboration_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_sharing_collaboration_v1beta1_resources_proto_depIdxs, + EnumInfos: file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes, + MessageInfos: file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_sharing_collaboration_v1beta1_resources_proto = out.File + file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc = nil + file_cs3_sharing_collaboration_v1beta1_resources_proto_goTypes = nil + file_cs3_sharing_collaboration_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..5ff51693 --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go @@ -0,0 +1,24 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/sharing/collaboration/v1beta1/resources.proto + +package collaborationv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go new file mode 100644 index 00000000..5013d16c --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go @@ -0,0 +1,1963 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/sharing/link/v1beta1/link_api.proto + +package linkv1beta1 + +import ( + context "context" + v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// REQUIRED. +type UpdatePublicShareRequest_Update_Type int32 + +const ( + UpdatePublicShareRequest_Update_TYPE_INVALID UpdatePublicShareRequest_Update_Type = 0 + UpdatePublicShareRequest_Update_TYPE_PERMISSIONS UpdatePublicShareRequest_Update_Type = 1 + UpdatePublicShareRequest_Update_TYPE_PASSWORD UpdatePublicShareRequest_Update_Type = 2 + UpdatePublicShareRequest_Update_TYPE_EXPIRATION UpdatePublicShareRequest_Update_Type = 3 + UpdatePublicShareRequest_Update_TYPE_DISPLAYNAME UpdatePublicShareRequest_Update_Type = 4 +) + +// Enum value maps for UpdatePublicShareRequest_Update_Type. +var ( + UpdatePublicShareRequest_Update_Type_name = map[int32]string{ + 0: "TYPE_INVALID", + 1: "TYPE_PERMISSIONS", + 2: "TYPE_PASSWORD", + 3: "TYPE_EXPIRATION", + 4: "TYPE_DISPLAYNAME", + } + UpdatePublicShareRequest_Update_Type_value = map[string]int32{ + "TYPE_INVALID": 0, + "TYPE_PERMISSIONS": 1, + "TYPE_PASSWORD": 2, + "TYPE_EXPIRATION": 3, + "TYPE_DISPLAYNAME": 4, + } +) + +func (x UpdatePublicShareRequest_Update_Type) Enum() *UpdatePublicShareRequest_Update_Type { + p := new(UpdatePublicShareRequest_Update_Type) + *p = x + return p +} + +func (x UpdatePublicShareRequest_Update_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UpdatePublicShareRequest_Update_Type) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[0].Descriptor() +} + +func (UpdatePublicShareRequest_Update_Type) Type() protoreflect.EnumType { + return &file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[0] +} + +func (x UpdatePublicShareRequest_Update_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use UpdatePublicShareRequest_Update_Type.Descriptor instead. +func (UpdatePublicShareRequest_Update_Type) EnumDescriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{2, 0, 0} +} + +// REQUIRED. +type ListPublicSharesRequest_Filter_Type int32 + +const ( + ListPublicSharesRequest_Filter_TYPE_INVALID ListPublicSharesRequest_Filter_Type = 0 + ListPublicSharesRequest_Filter_TYPE_RESOURCE_ID ListPublicSharesRequest_Filter_Type = 1 + ListPublicSharesRequest_Filter_TYPE_OWNER ListPublicSharesRequest_Filter_Type = 2 + ListPublicSharesRequest_Filter_TYPE_CREATOR ListPublicSharesRequest_Filter_Type = 3 +) + +// Enum value maps for ListPublicSharesRequest_Filter_Type. +var ( + ListPublicSharesRequest_Filter_Type_name = map[int32]string{ + 0: "TYPE_INVALID", + 1: "TYPE_RESOURCE_ID", + 2: "TYPE_OWNER", + 3: "TYPE_CREATOR", + } + ListPublicSharesRequest_Filter_Type_value = map[string]int32{ + "TYPE_INVALID": 0, + "TYPE_RESOURCE_ID": 1, + "TYPE_OWNER": 2, + "TYPE_CREATOR": 3, + } +) + +func (x ListPublicSharesRequest_Filter_Type) Enum() *ListPublicSharesRequest_Filter_Type { + p := new(ListPublicSharesRequest_Filter_Type) + *p = x + return p +} + +func (x ListPublicSharesRequest_Filter_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ListPublicSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[1].Descriptor() +} + +func (ListPublicSharesRequest_Filter_Type) Type() protoreflect.EnumType { + return &file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[1] +} + +func (x ListPublicSharesRequest_Filter_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ListPublicSharesRequest_Filter_Type.Descriptor instead. +func (ListPublicSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{4, 0, 0} +} + +type CreatePublicShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The unique identifier for the shared storage resource. + ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` + // REQUIRED. + // The restrictions to apply to the share. + Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` +} + +func (x *CreatePublicShareRequest) Reset() { + *x = CreatePublicShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreatePublicShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePublicShareRequest) ProtoMessage() {} + +func (x *CreatePublicShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 CreatePublicShareRequest.ProtoReflect.Descriptor instead. +func (*CreatePublicShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{0} +} + +func (x *CreatePublicShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreatePublicShareRequest) GetResourceInfo() *v1beta11.ResourceInfo { + if x != nil { + return x.ResourceInfo + } + return nil +} + +func (x *CreatePublicShareRequest) GetGrant() *Grant { + if x != nil { + return x.Grant + } + return nil +} + +type CreatePublicShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The created share. + Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *CreatePublicShareResponse) Reset() { + *x = CreatePublicShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreatePublicShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePublicShareResponse) ProtoMessage() {} + +func (x *CreatePublicShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 CreatePublicShareResponse.ProtoReflect.Descriptor instead. +func (*CreatePublicShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{1} +} + +func (x *CreatePublicShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreatePublicShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreatePublicShareResponse) GetShare() *PublicShare { + if x != nil { + return x.Share + } + return nil +} + +type UpdatePublicShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. + // REQUIRED. + // The reference to the public share. + Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // Available fields to update. + Update *UpdatePublicShareRequest_Update `protobuf:"bytes,3,opt,name=update,proto3" json:"update,omitempty"` +} + +func (x *UpdatePublicShareRequest) Reset() { + *x = UpdatePublicShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdatePublicShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePublicShareRequest) ProtoMessage() {} + +func (x *UpdatePublicShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 UpdatePublicShareRequest.ProtoReflect.Descriptor instead. +func (*UpdatePublicShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdatePublicShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UpdatePublicShareRequest) GetRef() *PublicShareReference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *UpdatePublicShareRequest) GetUpdate() *UpdatePublicShareRequest_Update { + if x != nil { + return x.Update + } + return nil +} + +type UpdatePublicShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The updated public share. + Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *UpdatePublicShareResponse) Reset() { + *x = UpdatePublicShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdatePublicShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePublicShareResponse) ProtoMessage() {} + +func (x *UpdatePublicShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 UpdatePublicShareResponse.ProtoReflect.Descriptor instead. +func (*UpdatePublicShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdatePublicShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *UpdatePublicShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UpdatePublicShareResponse) GetShare() *PublicShare { + if x != nil { + return x.Share + } + return nil +} + +type ListPublicSharesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // OPTIONAL. + // The list of filters to apply if any. + Filters []*ListPublicSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` +} + +func (x *ListPublicSharesRequest) Reset() { + *x = ListPublicSharesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPublicSharesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPublicSharesRequest) ProtoMessage() {} + +func (x *ListPublicSharesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 ListPublicSharesRequest.ProtoReflect.Descriptor instead. +func (*ListPublicSharesRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{4} +} + +func (x *ListPublicSharesRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListPublicSharesRequest) GetFilters() []*ListPublicSharesRequest_Filter { + if x != nil { + return x.Filters + } + return nil +} + +type ListPublicSharesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of shares. + Share []*PublicShare `protobuf:"bytes,3,rep,name=share,proto3" json:"share,omitempty"` +} + +func (x *ListPublicSharesResponse) Reset() { + *x = ListPublicSharesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPublicSharesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPublicSharesResponse) ProtoMessage() {} + +func (x *ListPublicSharesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 ListPublicSharesResponse.ProtoReflect.Descriptor instead. +func (*ListPublicSharesResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{5} +} + +func (x *ListPublicSharesResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListPublicSharesResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListPublicSharesResponse) GetShare() []*PublicShare { + if x != nil { + return x.Share + } + return nil +} + +type RemovePublicShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *RemovePublicShareRequest) Reset() { + *x = RemovePublicShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemovePublicShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemovePublicShareRequest) ProtoMessage() {} + +func (x *RemovePublicShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 RemovePublicShareRequest.ProtoReflect.Descriptor instead. +func (*RemovePublicShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{6} +} + +func (x *RemovePublicShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *RemovePublicShareRequest) GetRef() *PublicShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type RemovePublicShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *RemovePublicShareResponse) Reset() { + *x = RemovePublicShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemovePublicShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemovePublicShareResponse) ProtoMessage() {} + +func (x *RemovePublicShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 RemovePublicShareResponse.ProtoReflect.Descriptor instead. +func (*RemovePublicShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{7} +} + +func (x *RemovePublicShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *RemovePublicShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetPublicShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *GetPublicShareRequest) Reset() { + *x = GetPublicShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPublicShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPublicShareRequest) ProtoMessage() {} + +func (x *GetPublicShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_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 GetPublicShareRequest.ProtoReflect.Descriptor instead. +func (*GetPublicShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{8} +} + +func (x *GetPublicShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetPublicShareRequest) GetRef() *PublicShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type GetPublicShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The share. + Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *GetPublicShareResponse) Reset() { + *x = GetPublicShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPublicShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPublicShareResponse) ProtoMessage() {} + +func (x *GetPublicShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[9] + 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 GetPublicShareResponse.ProtoReflect.Descriptor instead. +func (*GetPublicShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{9} +} + +func (x *GetPublicShareResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetPublicShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetPublicShareResponse) GetShare() *PublicShare { + if x != nil { + return x.Share + } + return nil +} + +type GetPublicShareByTokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The unlisted token to identify the public share. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + // OPTIONAL. + // The public link can be password protected. + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *GetPublicShareByTokenRequest) Reset() { + *x = GetPublicShareByTokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPublicShareByTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPublicShareByTokenRequest) ProtoMessage() {} + +func (x *GetPublicShareByTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[10] + 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 GetPublicShareByTokenRequest.ProtoReflect.Descriptor instead. +func (*GetPublicShareByTokenRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{10} +} + +func (x *GetPublicShareByTokenRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetPublicShareByTokenRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *GetPublicShareByTokenRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type GetPublicShareByTokenResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The share. + Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *GetPublicShareByTokenResponse) Reset() { + *x = GetPublicShareByTokenResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPublicShareByTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPublicShareByTokenResponse) ProtoMessage() {} + +func (x *GetPublicShareByTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[11] + 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 GetPublicShareByTokenResponse.ProtoReflect.Descriptor instead. +func (*GetPublicShareByTokenResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{11} +} + +func (x *GetPublicShareByTokenResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetPublicShareByTokenResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetPublicShareByTokenResponse) GetShare() *PublicShare { + if x != nil { + return x.Share + } + return nil +} + +// REQUIRED. +type UpdatePublicShareRequest_Update struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // Defines the field to update. + Type UpdatePublicShareRequest_Update_Type `protobuf:"varint,3,opt,name=type,proto3,enum=cs3.sharing.link.v1beta1.UpdatePublicShareRequest_Update_Type" json:"type,omitempty"` + // REQUIRED. + // Contains the field that will be updated. + Grant *Grant `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"` + // OPTIONAL + // Defines the public link display name. + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` +} + +func (x *UpdatePublicShareRequest_Update) Reset() { + *x = UpdatePublicShareRequest_Update{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdatePublicShareRequest_Update) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePublicShareRequest_Update) ProtoMessage() {} + +func (x *UpdatePublicShareRequest_Update) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[12] + 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 UpdatePublicShareRequest_Update.ProtoReflect.Descriptor instead. +func (*UpdatePublicShareRequest_Update) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *UpdatePublicShareRequest_Update) GetType() UpdatePublicShareRequest_Update_Type { + if x != nil { + return x.Type + } + return UpdatePublicShareRequest_Update_TYPE_INVALID +} + +func (x *UpdatePublicShareRequest_Update) GetGrant() *Grant { + if x != nil { + return x.Grant + } + return nil +} + +func (x *UpdatePublicShareRequest_Update) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +// REQUIRED. +// represents a filter to apply to the request. +type ListPublicSharesRequest_Filter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type ListPublicSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.link.v1beta1.ListPublicSharesRequest_Filter_Type" json:"type,omitempty"` + // Types that are assignable to Term: + // *ListPublicSharesRequest_Filter_ResourceId + // *ListPublicSharesRequest_Filter_Owner + // *ListPublicSharesRequest_Filter_Creator + Term isListPublicSharesRequest_Filter_Term `protobuf_oneof:"term"` +} + +func (x *ListPublicSharesRequest_Filter) Reset() { + *x = ListPublicSharesRequest_Filter{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPublicSharesRequest_Filter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPublicSharesRequest_Filter) ProtoMessage() {} + +func (x *ListPublicSharesRequest_Filter) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13] + 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 ListPublicSharesRequest_Filter.ProtoReflect.Descriptor instead. +func (*ListPublicSharesRequest_Filter) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *ListPublicSharesRequest_Filter) GetType() ListPublicSharesRequest_Filter_Type { + if x != nil { + return x.Type + } + return ListPublicSharesRequest_Filter_TYPE_INVALID +} + +func (m *ListPublicSharesRequest_Filter) GetTerm() isListPublicSharesRequest_Filter_Term { + if m != nil { + return m.Term + } + return nil +} + +func (x *ListPublicSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId { + if x, ok := x.GetTerm().(*ListPublicSharesRequest_Filter_ResourceId); ok { + return x.ResourceId + } + return nil +} + +func (x *ListPublicSharesRequest_Filter) GetOwner() *v1beta13.UserId { + if x, ok := x.GetTerm().(*ListPublicSharesRequest_Filter_Owner); ok { + return x.Owner + } + return nil +} + +func (x *ListPublicSharesRequest_Filter) GetCreator() *v1beta13.UserId { + if x, ok := x.GetTerm().(*ListPublicSharesRequest_Filter_Creator); ok { + return x.Creator + } + return nil +} + +type isListPublicSharesRequest_Filter_Term interface { + isListPublicSharesRequest_Filter_Term() +} + +type ListPublicSharesRequest_Filter_ResourceId struct { + ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"` +} + +type ListPublicSharesRequest_Filter_Owner struct { + Owner *v1beta13.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"` +} + +type ListPublicSharesRequest_Filter_Creator struct { + Creator *v1beta13.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"` +} + +func (*ListPublicSharesRequest_Filter_ResourceId) isListPublicSharesRequest_Filter_Term() {} + +func (*ListPublicSharesRequest_Filter_Owner) isListPublicSharesRequest_Filter_Term() {} + +func (*ListPublicSharesRequest_Filter_Creator) isListPublicSharesRequest_Filter_Term() {} + +var File_cs3_sharing_link_v1beta1_link_api_proto protoreflect.FileDescriptor + +var file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6c, 0x69, + 0x6e, 0x6b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, + 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x01, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x35, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0xbc, 0x01, 0x0a, 0x19, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, + 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x89, 0x04, 0x0a, 0x18, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x03, 0x72, 0x65, + 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x51, 0x0a, 0x06, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, + 0xa4, 0x02, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, + 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, + 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, + 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, + 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, + 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x04, 0x22, 0xbc, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x9f, 0x04, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x12, 0x52, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, + 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0xfc, 0x02, 0x0a, 0x06, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x48, 0x00, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x50, 0x0a, + 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x0e, 0x0a, + 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x02, 0x12, 0x10, 0x0a, + 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x03, 0x42, + 0x06, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x22, 0xbb, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7f, 0x0a, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xb9, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x1d, 0x47, 0x65, + 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, + 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x32, 0xfe, 0x05, 0x0a, + 0x07, 0x4c, 0x69, 0x6e, 0x6b, 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, + 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x47, 0x65, + 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x7c, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x77, 0x0a, + 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x4c, + 0x69, 0x6e, 0x6b, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0b, 0x6c, + 0x69, 0x6e, 0x6b, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x4c, + 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4c, + 0x69, 0x6e, 0x6b, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, + 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4c, 0x69, 0x6e, 0x6b, 0x5c, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_sharing_link_v1beta1_link_api_proto_rawDescOnce sync.Once + file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData = file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc +) + +func file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP() []byte { + file_cs3_sharing_link_v1beta1_link_api_proto_rawDescOnce.Do(func() { + file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData) + }) + return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData +} + +var file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_cs3_sharing_link_v1beta1_link_api_proto_goTypes = []interface{}{ + (UpdatePublicShareRequest_Update_Type)(0), // 0: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.Type + (ListPublicSharesRequest_Filter_Type)(0), // 1: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.Type + (*CreatePublicShareRequest)(nil), // 2: cs3.sharing.link.v1beta1.CreatePublicShareRequest + (*CreatePublicShareResponse)(nil), // 3: cs3.sharing.link.v1beta1.CreatePublicShareResponse + (*UpdatePublicShareRequest)(nil), // 4: cs3.sharing.link.v1beta1.UpdatePublicShareRequest + (*UpdatePublicShareResponse)(nil), // 5: cs3.sharing.link.v1beta1.UpdatePublicShareResponse + (*ListPublicSharesRequest)(nil), // 6: cs3.sharing.link.v1beta1.ListPublicSharesRequest + (*ListPublicSharesResponse)(nil), // 7: cs3.sharing.link.v1beta1.ListPublicSharesResponse + (*RemovePublicShareRequest)(nil), // 8: cs3.sharing.link.v1beta1.RemovePublicShareRequest + (*RemovePublicShareResponse)(nil), // 9: cs3.sharing.link.v1beta1.RemovePublicShareResponse + (*GetPublicShareRequest)(nil), // 10: cs3.sharing.link.v1beta1.GetPublicShareRequest + (*GetPublicShareResponse)(nil), // 11: cs3.sharing.link.v1beta1.GetPublicShareResponse + (*GetPublicShareByTokenRequest)(nil), // 12: cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest + (*GetPublicShareByTokenResponse)(nil), // 13: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse + (*UpdatePublicShareRequest_Update)(nil), // 14: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update + (*ListPublicSharesRequest_Filter)(nil), // 15: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter + (*v1beta1.Opaque)(nil), // 16: cs3.types.v1beta1.Opaque + (*v1beta11.ResourceInfo)(nil), // 17: cs3.storage.provider.v1beta1.ResourceInfo + (*Grant)(nil), // 18: cs3.sharing.link.v1beta1.Grant + (*v1beta12.Status)(nil), // 19: cs3.rpc.v1beta1.Status + (*PublicShare)(nil), // 20: cs3.sharing.link.v1beta1.PublicShare + (*PublicShareReference)(nil), // 21: cs3.sharing.link.v1beta1.PublicShareReference + (*v1beta11.ResourceId)(nil), // 22: cs3.storage.provider.v1beta1.ResourceId + (*v1beta13.UserId)(nil), // 23: cs3.identity.user.v1beta1.UserId +} +var file_cs3_sharing_link_v1beta1_link_api_proto_depIdxs = []int32{ + 16, // 0: cs3.sharing.link.v1beta1.CreatePublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 17, // 1: cs3.sharing.link.v1beta1.CreatePublicShareRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo + 18, // 2: cs3.sharing.link.v1beta1.CreatePublicShareRequest.grant:type_name -> cs3.sharing.link.v1beta1.Grant + 19, // 3: cs3.sharing.link.v1beta1.CreatePublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 16, // 4: cs3.sharing.link.v1beta1.CreatePublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 5: cs3.sharing.link.v1beta1.CreatePublicShareResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare + 16, // 6: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 21, // 7: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.ref:type_name -> cs3.sharing.link.v1beta1.PublicShareReference + 14, // 8: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.update:type_name -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update + 19, // 9: cs3.sharing.link.v1beta1.UpdatePublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 16, // 10: cs3.sharing.link.v1beta1.UpdatePublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 11: cs3.sharing.link.v1beta1.UpdatePublicShareResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare + 16, // 12: cs3.sharing.link.v1beta1.ListPublicSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 15, // 13: cs3.sharing.link.v1beta1.ListPublicSharesRequest.filters:type_name -> cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter + 19, // 14: cs3.sharing.link.v1beta1.ListPublicSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status + 16, // 15: cs3.sharing.link.v1beta1.ListPublicSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 16: cs3.sharing.link.v1beta1.ListPublicSharesResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare + 16, // 17: cs3.sharing.link.v1beta1.RemovePublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 21, // 18: cs3.sharing.link.v1beta1.RemovePublicShareRequest.ref:type_name -> cs3.sharing.link.v1beta1.PublicShareReference + 19, // 19: cs3.sharing.link.v1beta1.RemovePublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 16, // 20: cs3.sharing.link.v1beta1.RemovePublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 16, // 21: cs3.sharing.link.v1beta1.GetPublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 21, // 22: cs3.sharing.link.v1beta1.GetPublicShareRequest.ref:type_name -> cs3.sharing.link.v1beta1.PublicShareReference + 19, // 23: cs3.sharing.link.v1beta1.GetPublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 16, // 24: cs3.sharing.link.v1beta1.GetPublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 25: cs3.sharing.link.v1beta1.GetPublicShareResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare + 16, // 26: cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 19, // 27: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse.status:type_name -> cs3.rpc.v1beta1.Status + 16, // 28: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 29: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare + 0, // 30: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.type:type_name -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.Type + 18, // 31: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.grant:type_name -> cs3.sharing.link.v1beta1.Grant + 1, // 32: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.type:type_name -> cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.Type + 22, // 33: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 23, // 34: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.owner:type_name -> cs3.identity.user.v1beta1.UserId + 23, // 35: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.creator:type_name -> cs3.identity.user.v1beta1.UserId + 2, // 36: cs3.sharing.link.v1beta1.LinkAPI.CreatePublicShare:input_type -> cs3.sharing.link.v1beta1.CreatePublicShareRequest + 8, // 37: cs3.sharing.link.v1beta1.LinkAPI.RemovePublicShare:input_type -> cs3.sharing.link.v1beta1.RemovePublicShareRequest + 10, // 38: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShare:input_type -> cs3.sharing.link.v1beta1.GetPublicShareRequest + 12, // 39: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShareByToken:input_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest + 6, // 40: cs3.sharing.link.v1beta1.LinkAPI.ListPublicShares:input_type -> cs3.sharing.link.v1beta1.ListPublicSharesRequest + 4, // 41: cs3.sharing.link.v1beta1.LinkAPI.UpdatePublicShare:input_type -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest + 3, // 42: cs3.sharing.link.v1beta1.LinkAPI.CreatePublicShare:output_type -> cs3.sharing.link.v1beta1.CreatePublicShareResponse + 9, // 43: cs3.sharing.link.v1beta1.LinkAPI.RemovePublicShare:output_type -> cs3.sharing.link.v1beta1.RemovePublicShareResponse + 11, // 44: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShare:output_type -> cs3.sharing.link.v1beta1.GetPublicShareResponse + 13, // 45: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShareByToken:output_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse + 7, // 46: cs3.sharing.link.v1beta1.LinkAPI.ListPublicShares:output_type -> cs3.sharing.link.v1beta1.ListPublicSharesResponse + 5, // 47: cs3.sharing.link.v1beta1.LinkAPI.UpdatePublicShare:output_type -> cs3.sharing.link.v1beta1.UpdatePublicShareResponse + 42, // [42:48] is the sub-list for method output_type + 36, // [36:42] is the sub-list for method input_type + 36, // [36:36] is the sub-list for extension type_name + 36, // [36:36] is the sub-list for extension extendee + 0, // [0:36] is the sub-list for field type_name +} + +func init() { file_cs3_sharing_link_v1beta1_link_api_proto_init() } +func file_cs3_sharing_link_v1beta1_link_api_proto_init() { + if File_cs3_sharing_link_v1beta1_link_api_proto != nil { + return + } + file_cs3_sharing_link_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreatePublicShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreatePublicShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdatePublicShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdatePublicShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPublicSharesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPublicSharesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemovePublicShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemovePublicShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPublicShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPublicShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPublicShareByTokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPublicShareByTokenResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdatePublicShareRequest_Update); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPublicSharesRequest_Filter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13].OneofWrappers = []interface{}{ + (*ListPublicSharesRequest_Filter_ResourceId)(nil), + (*ListPublicSharesRequest_Filter_Owner)(nil), + (*ListPublicSharesRequest_Filter_Creator)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc, + NumEnums: 2, + NumMessages: 14, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_sharing_link_v1beta1_link_api_proto_goTypes, + DependencyIndexes: file_cs3_sharing_link_v1beta1_link_api_proto_depIdxs, + EnumInfos: file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes, + MessageInfos: file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes, + }.Build() + File_cs3_sharing_link_v1beta1_link_api_proto = out.File + file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc = nil + file_cs3_sharing_link_v1beta1_link_api_proto_goTypes = nil + file_cs3_sharing_link_v1beta1_link_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// LinkAPIClient is the client API for LinkAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type LinkAPIClient interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error) + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error) +} + +type linkAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewLinkAPIClient(cc grpc.ClientConnInterface) LinkAPIClient { + return &linkAPIClient{cc} +} + +func (c *linkAPIClient) CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error) { + out := new(CreatePublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/CreatePublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIClient) RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error) { + out := new(RemovePublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/RemovePublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIClient) GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error) { + out := new(GetPublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIClient) GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error) { + out := new(GetPublicShareByTokenResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShareByToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIClient) ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error) { + out := new(ListPublicSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/ListPublicShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIClient) UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error) { + out := new(UpdatePublicShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/UpdatePublicShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// LinkAPIServer is the server API for LinkAPI service. +type LinkAPIServer interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error) + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error) +} + +// UnimplementedLinkAPIServer can be embedded to have forward compatible implementations. +type UnimplementedLinkAPIServer struct { +} + +func (*UnimplementedLinkAPIServer) CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePublicShare not implemented") +} +func (*UnimplementedLinkAPIServer) RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemovePublicShare not implemented") +} +func (*UnimplementedLinkAPIServer) GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPublicShare not implemented") +} +func (*UnimplementedLinkAPIServer) GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPublicShareByToken not implemented") +} +func (*UnimplementedLinkAPIServer) ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPublicShares not implemented") +} +func (*UnimplementedLinkAPIServer) UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePublicShare not implemented") +} + +func RegisterLinkAPIServer(s *grpc.Server, srv LinkAPIServer) { + s.RegisterService(&_LinkAPI_serviceDesc, srv) +} + +func _LinkAPI_CreatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreatePublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LinkAPIServer).CreatePublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/CreatePublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LinkAPIServer).CreatePublicShare(ctx, req.(*CreatePublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LinkAPI_RemovePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemovePublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LinkAPIServer).RemovePublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/RemovePublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LinkAPIServer).RemovePublicShare(ctx, req.(*RemovePublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LinkAPI_GetPublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LinkAPIServer).GetPublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LinkAPIServer).GetPublicShare(ctx, req.(*GetPublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LinkAPI_GetPublicShareByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPublicShareByTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LinkAPIServer).GetPublicShareByToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShareByToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LinkAPIServer).GetPublicShareByToken(ctx, req.(*GetPublicShareByTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LinkAPI_ListPublicShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPublicSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LinkAPIServer).ListPublicShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/ListPublicShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LinkAPIServer).ListPublicShares(ctx, req.(*ListPublicSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LinkAPI_UpdatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdatePublicShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LinkAPIServer).UpdatePublicShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/UpdatePublicShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LinkAPIServer).UpdatePublicShare(ctx, req.(*UpdatePublicShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _LinkAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.sharing.link.v1beta1.LinkAPI", + HandlerType: (*LinkAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreatePublicShare", + Handler: _LinkAPI_CreatePublicShare_Handler, + }, + { + MethodName: "RemovePublicShare", + Handler: _LinkAPI_RemovePublicShare_Handler, + }, + { + MethodName: "GetPublicShare", + Handler: _LinkAPI_GetPublicShare_Handler, + }, + { + MethodName: "GetPublicShareByToken", + Handler: _LinkAPI_GetPublicShareByToken_Handler, + }, + { + MethodName: "ListPublicShares", + Handler: _LinkAPI_ListPublicShares_Handler, + }, + { + MethodName: "UpdatePublicShare", + Handler: _LinkAPI_UpdatePublicShare_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/sharing/link/v1beta1/link_api.proto", +} diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go new file mode 100644 index 00000000..0707aaa6 --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go @@ -0,0 +1,214 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/sharing/link/v1beta1/link_api.proto + +package linkv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for LinkAPI service + +func NewLinkAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for LinkAPI service + +type LinkAPIService interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...client.CallOption) (*CreatePublicShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...client.CallOption) (*RemovePublicShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...client.CallOption) (*GetPublicShareResponse, error) + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...client.CallOption) (*GetPublicShareByTokenResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...client.CallOption) (*ListPublicSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...client.CallOption) (*UpdatePublicShareResponse, error) +} + +type linkAPIService struct { + c client.Client + name string +} + +func NewLinkAPIService(name string, c client.Client) LinkAPIService { + return &linkAPIService{ + c: c, + name: name, + } +} + +func (c *linkAPIService) CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...client.CallOption) (*CreatePublicShareResponse, error) { + req := c.c.NewRequest(c.name, "LinkAPI.CreatePublicShare", in) + out := new(CreatePublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIService) RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...client.CallOption) (*RemovePublicShareResponse, error) { + req := c.c.NewRequest(c.name, "LinkAPI.RemovePublicShare", in) + out := new(RemovePublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIService) GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...client.CallOption) (*GetPublicShareResponse, error) { + req := c.c.NewRequest(c.name, "LinkAPI.GetPublicShare", in) + out := new(GetPublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIService) GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...client.CallOption) (*GetPublicShareByTokenResponse, error) { + req := c.c.NewRequest(c.name, "LinkAPI.GetPublicShareByToken", in) + out := new(GetPublicShareByTokenResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIService) ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...client.CallOption) (*ListPublicSharesResponse, error) { + req := c.c.NewRequest(c.name, "LinkAPI.ListPublicShares", in) + out := new(ListPublicSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *linkAPIService) UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...client.CallOption) (*UpdatePublicShareResponse, error) { + req := c.c.NewRequest(c.name, "LinkAPI.UpdatePublicShare", in) + out := new(UpdatePublicShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for LinkAPI service + +type LinkAPIHandler interface { + // Creates a new share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreatePublicShare(context.Context, *CreatePublicShareRequest, *CreatePublicShareResponse) error + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemovePublicShare(context.Context, *RemovePublicShareRequest, *RemovePublicShareResponse) error + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetPublicShare(context.Context, *GetPublicShareRequest, *GetPublicShareResponse) error + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest, *GetPublicShareByTokenResponse) error + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListPublicShares(context.Context, *ListPublicSharesRequest, *ListPublicSharesResponse) error + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdatePublicShare(context.Context, *UpdatePublicShareRequest, *UpdatePublicShareResponse) error +} + +func RegisterLinkAPIHandler(s server.Server, hdlr LinkAPIHandler, opts ...server.HandlerOption) error { + type linkAPI interface { + CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, out *CreatePublicShareResponse) error + RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, out *RemovePublicShareResponse) error + GetPublicShare(ctx context.Context, in *GetPublicShareRequest, out *GetPublicShareResponse) error + GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, out *GetPublicShareByTokenResponse) error + ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, out *ListPublicSharesResponse) error + UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, out *UpdatePublicShareResponse) error + } + type LinkAPI struct { + linkAPI + } + h := &linkAPIHandler{hdlr} + return s.Handle(s.NewHandler(&LinkAPI{h}, opts...)) +} + +type linkAPIHandler struct { + LinkAPIHandler +} + +func (h *linkAPIHandler) CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, out *CreatePublicShareResponse) error { + return h.LinkAPIHandler.CreatePublicShare(ctx, in, out) +} + +func (h *linkAPIHandler) RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, out *RemovePublicShareResponse) error { + return h.LinkAPIHandler.RemovePublicShare(ctx, in, out) +} + +func (h *linkAPIHandler) GetPublicShare(ctx context.Context, in *GetPublicShareRequest, out *GetPublicShareResponse) error { + return h.LinkAPIHandler.GetPublicShare(ctx, in, out) +} + +func (h *linkAPIHandler) GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, out *GetPublicShareByTokenResponse) error { + return h.LinkAPIHandler.GetPublicShareByToken(ctx, in, out) +} + +func (h *linkAPIHandler) ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, out *ListPublicSharesResponse) error { + return h.LinkAPIHandler.ListPublicShares(ctx, in, out) +} + +func (h *linkAPIHandler) UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, out *UpdatePublicShareResponse) error { + return h.LinkAPIHandler.UpdatePublicShare(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go new file mode 100644 index 00000000..25c490c5 --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go @@ -0,0 +1,700 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/sharing/link/v1beta1/resources.proto + +package linkv1beta1 + +import ( + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Public share are relationships between a resource owner +// (usually the authenticated user) who grants permissions to a recipient (grantee) +// on a specified resource (resource_id). UserShares represents both user and groups. +// TODO(labkode): do we need to have resource_type stored on the share? +// This is not needed if when getting the shares a stat operation is launched against the +// the storage provider. +type PublicShare struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // Opaque unique identifier of the share. + Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // REQUIRED. + // The unlisted token to give public access + // to the public share. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + // REQUIRED. + // Unique identifier of the shared resource. + ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // REQUIRED. + // Permissions for the grantee to use + // the resource. + Permissions *PublicSharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` + // REQUIRED. + // Uniquely identifies the owner of the share + // (the resource owner at the time of creating the share). + // In case the ownership of the underlying resource changes + // the share owner field MAY change to reflect the change of ownsership. + Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` + // REQUIRED. + // Uniquely identifies a principal who initiates the share creation. + // A creator can create shares on behalf of the owner (because of re-sharing, + // because belonging to special groups, ...). + // Creator and owner often result in being the same principal. + Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` + // REQUIRED. + // Creation time of the share. + Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"` + // REQUIRED. + // Last modification time of the share. + Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"` + // REQUIRED. + // Determines if the public share is password protected or not. + PasswordProtected bool `protobuf:"varint,9,opt,name=password_protected,json=passwordProtected,proto3" json:"password_protected,omitempty"` + // OPTIONAL. + // The expiration time for the public share. + Expiration *v1beta12.Timestamp `protobuf:"bytes,10,opt,name=expiration,proto3" json:"expiration,omitempty"` + // OPTIONAL. + // Display name for the shared resource (such as file, directory basename or any + // user defined name). + // The display name MAY be different than the actual resource basename. + // This field is only useful for informational purposes, like for example, + // setting the window title in a public share HTML page. + DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` +} + +func (x *PublicShare) Reset() { + *x = PublicShare{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublicShare) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicShare) ProtoMessage() {} + +func (x *PublicShare) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicShare.ProtoReflect.Descriptor instead. +func (*PublicShare) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *PublicShare) GetId() *PublicShareId { + if x != nil { + return x.Id + } + return nil +} + +func (x *PublicShare) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *PublicShare) GetResourceId() *v1beta1.ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +func (x *PublicShare) GetPermissions() *PublicSharePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +func (x *PublicShare) GetOwner() *v1beta11.UserId { + if x != nil { + return x.Owner + } + return nil +} + +func (x *PublicShare) GetCreator() *v1beta11.UserId { + if x != nil { + return x.Creator + } + return nil +} + +func (x *PublicShare) GetCtime() *v1beta12.Timestamp { + if x != nil { + return x.Ctime + } + return nil +} + +func (x *PublicShare) GetMtime() *v1beta12.Timestamp { + if x != nil { + return x.Mtime + } + return nil +} + +func (x *PublicShare) GetPasswordProtected() bool { + if x != nil { + return x.PasswordProtected + } + return false +} + +func (x *PublicShare) GetExpiration() *v1beta12.Timestamp { + if x != nil { + return x.Expiration + } + return nil +} + +func (x *PublicShare) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +// The permissions for a share. +type PublicSharePermissions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` // TODO(labkode): additional permissions for shares like re-sharing +} + +func (x *PublicSharePermissions) Reset() { + *x = PublicSharePermissions{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublicSharePermissions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicSharePermissions) ProtoMessage() {} + +func (x *PublicSharePermissions) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicSharePermissions.ProtoReflect.Descriptor instead. +func (*PublicSharePermissions) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *PublicSharePermissions) GetPermissions() *v1beta1.ResourcePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +// A share id identifies uniquely a // share in the share provider namespace. +// A ShareId MUST be unique inside the share provider. +type PublicShareId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The internal id used by service implementor to + // uniquely identity the share in the internal + // implementation of the service. + OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` +} + +func (x *PublicShareId) Reset() { + *x = PublicShareId{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublicShareId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicShareId) ProtoMessage() {} + +func (x *PublicShareId) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicShareId.ProtoReflect.Descriptor instead. +func (*PublicShareId) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{2} +} + +func (x *PublicShareId) GetOpaqueId() string { + if x != nil { + return x.OpaqueId + } + return "" +} + +// The mechanism to identify a share +// in the share provider namespace. +type PublicShareReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // One of the specifications MUST be specified. + // + // Types that are assignable to Spec: + // *PublicShareReference_Id + // *PublicShareReference_Token + Spec isPublicShareReference_Spec `protobuf_oneof:"spec"` +} + +func (x *PublicShareReference) Reset() { + *x = PublicShareReference{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublicShareReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicShareReference) ProtoMessage() {} + +func (x *PublicShareReference) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicShareReference.ProtoReflect.Descriptor instead. +func (*PublicShareReference) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{3} +} + +func (m *PublicShareReference) GetSpec() isPublicShareReference_Spec { + if m != nil { + return m.Spec + } + return nil +} + +func (x *PublicShareReference) GetId() *PublicShareId { + if x, ok := x.GetSpec().(*PublicShareReference_Id); ok { + return x.Id + } + return nil +} + +func (x *PublicShareReference) GetToken() string { + if x, ok := x.GetSpec().(*PublicShareReference_Token); ok { + return x.Token + } + return "" +} + +type isPublicShareReference_Spec interface { + isPublicShareReference_Spec() +} + +type PublicShareReference_Id struct { + // The id of the share. + Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type PublicShareReference_Token struct { + // The token to identify the public share. + Token string `protobuf:"bytes,2,opt,name=token,proto3,oneof"` +} + +func (*PublicShareReference_Id) isPublicShareReference_Spec() {} + +func (*PublicShareReference_Token) isPublicShareReference_Spec() {} + +// Defines the restrictions for the public share. +type Grant struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The permissions for the share. + Permissions *PublicSharePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` + // OPTIONAL. + // A password to protect the access to the public share. + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + // OPTIONAL. + // An expiration date to protect the access to the public share. + Expiration *v1beta12.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` +} + +func (x *Grant) Reset() { + *x = Grant{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Grant) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Grant) ProtoMessage() {} + +func (x *Grant) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_link_v1beta1_resources_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 Grant.ProtoReflect.Descriptor instead. +func (*Grant) Descriptor() ([]byte, []int) { + return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{4} +} + +func (x *Grant) GetPermissions() *PublicSharePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +func (x *Grant) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *Grant) GetExpiration() *v1beta12.Timestamp { + if x != nil { + return x.Expiration + } + return nil +} + +var File_cs3_sharing_link_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_sharing_link_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6c, 0x69, + 0x6e, 0x6b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, + 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x04, 0x0a, + 0x0b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x37, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, + 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x49, 0x0a, 0x0b, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x32, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, + 0x74, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, + 0x6f, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, + 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6d, 0x0a, 0x16, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2c, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0x71, 0x0a, 0x14, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xb5, 0x01, 0x0a, 0x05, 0x47, 0x72, 0x61, + 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, + 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x42, 0x79, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x0b, 0x6c, 0x69, 0x6e, 0x6b, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, + 0x02, 0x03, 0x43, 0x53, 0x4c, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, + 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4c, + 0x69, 0x6e, 0x6b, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_sharing_link_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_sharing_link_v1beta1_resources_proto_rawDescData = file_cs3_sharing_link_v1beta1_resources_proto_rawDesc +) + +func file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_sharing_link_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_sharing_link_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_link_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_sharing_link_v1beta1_resources_proto_rawDescData +} + +var file_cs3_sharing_link_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_cs3_sharing_link_v1beta1_resources_proto_goTypes = []interface{}{ + (*PublicShare)(nil), // 0: cs3.sharing.link.v1beta1.PublicShare + (*PublicSharePermissions)(nil), // 1: cs3.sharing.link.v1beta1.PublicSharePermissions + (*PublicShareId)(nil), // 2: cs3.sharing.link.v1beta1.PublicShareId + (*PublicShareReference)(nil), // 3: cs3.sharing.link.v1beta1.PublicShareReference + (*Grant)(nil), // 4: cs3.sharing.link.v1beta1.Grant + (*v1beta1.ResourceId)(nil), // 5: cs3.storage.provider.v1beta1.ResourceId + (*v1beta11.UserId)(nil), // 6: cs3.identity.user.v1beta1.UserId + (*v1beta12.Timestamp)(nil), // 7: cs3.types.v1beta1.Timestamp + (*v1beta1.ResourcePermissions)(nil), // 8: cs3.storage.provider.v1beta1.ResourcePermissions +} +var file_cs3_sharing_link_v1beta1_resources_proto_depIdxs = []int32{ + 2, // 0: cs3.sharing.link.v1beta1.PublicShare.id:type_name -> cs3.sharing.link.v1beta1.PublicShareId + 5, // 1: cs3.sharing.link.v1beta1.PublicShare.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 1, // 2: cs3.sharing.link.v1beta1.PublicShare.permissions:type_name -> cs3.sharing.link.v1beta1.PublicSharePermissions + 6, // 3: cs3.sharing.link.v1beta1.PublicShare.owner:type_name -> cs3.identity.user.v1beta1.UserId + 6, // 4: cs3.sharing.link.v1beta1.PublicShare.creator:type_name -> cs3.identity.user.v1beta1.UserId + 7, // 5: cs3.sharing.link.v1beta1.PublicShare.ctime:type_name -> cs3.types.v1beta1.Timestamp + 7, // 6: cs3.sharing.link.v1beta1.PublicShare.mtime:type_name -> cs3.types.v1beta1.Timestamp + 7, // 7: cs3.sharing.link.v1beta1.PublicShare.expiration:type_name -> cs3.types.v1beta1.Timestamp + 8, // 8: cs3.sharing.link.v1beta1.PublicSharePermissions.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions + 2, // 9: cs3.sharing.link.v1beta1.PublicShareReference.id:type_name -> cs3.sharing.link.v1beta1.PublicShareId + 1, // 10: cs3.sharing.link.v1beta1.Grant.permissions:type_name -> cs3.sharing.link.v1beta1.PublicSharePermissions + 7, // 11: cs3.sharing.link.v1beta1.Grant.expiration:type_name -> cs3.types.v1beta1.Timestamp + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_cs3_sharing_link_v1beta1_resources_proto_init() } +func file_cs3_sharing_link_v1beta1_resources_proto_init() { + if File_cs3_sharing_link_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicShare); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicSharePermissions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicShareId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicShareReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Grant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*PublicShareReference_Id)(nil), + (*PublicShareReference_Token)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_sharing_link_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_sharing_link_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_sharing_link_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_sharing_link_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_sharing_link_v1beta1_resources_proto = out.File + file_cs3_sharing_link_v1beta1_resources_proto_rawDesc = nil + file_cs3_sharing_link_v1beta1_resources_proto_goTypes = nil + file_cs3_sharing_link_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..4e9091ad --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go @@ -0,0 +1,24 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/sharing/link/v1beta1/resources.proto + +package linkv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go new file mode 100644 index 00000000..46af37f5 --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go @@ -0,0 +1,2477 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/sharing/ocm/v1beta1/ocm_api.proto + +package ocmv1beta1 + +import ( + context "context" + v1beta14 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" + v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// REQUIRED. +// The filter to apply. +type ListOCMSharesRequest_Filter_Type int32 + +const ( + ListOCMSharesRequest_Filter_TYPE_INVALID ListOCMSharesRequest_Filter_Type = 0 + ListOCMSharesRequest_Filter_TYPE_NO ListOCMSharesRequest_Filter_Type = 1 + ListOCMSharesRequest_Filter_TYPE_RESOURCE_ID ListOCMSharesRequest_Filter_Type = 2 + ListOCMSharesRequest_Filter_TYPE_OWNER ListOCMSharesRequest_Filter_Type = 3 + ListOCMSharesRequest_Filter_TYPE_CREATOR ListOCMSharesRequest_Filter_Type = 4 + ListOCMSharesRequest_Filter_TYPE_OWNER_PROVIDER ListOCMSharesRequest_Filter_Type = 5 + ListOCMSharesRequest_Filter_TYPE_CREATOR_PROVIDER ListOCMSharesRequest_Filter_Type = 6 +) + +// Enum value maps for ListOCMSharesRequest_Filter_Type. +var ( + ListOCMSharesRequest_Filter_Type_name = map[int32]string{ + 0: "TYPE_INVALID", + 1: "TYPE_NO", + 2: "TYPE_RESOURCE_ID", + 3: "TYPE_OWNER", + 4: "TYPE_CREATOR", + 5: "TYPE_OWNER_PROVIDER", + 6: "TYPE_CREATOR_PROVIDER", + } + ListOCMSharesRequest_Filter_Type_value = map[string]int32{ + "TYPE_INVALID": 0, + "TYPE_NO": 1, + "TYPE_RESOURCE_ID": 2, + "TYPE_OWNER": 3, + "TYPE_CREATOR": 4, + "TYPE_OWNER_PROVIDER": 5, + "TYPE_CREATOR_PROVIDER": 6, + } +) + +func (x ListOCMSharesRequest_Filter_Type) Enum() *ListOCMSharesRequest_Filter_Type { + p := new(ListOCMSharesRequest_Filter_Type) + *p = x + return p +} + +func (x ListOCMSharesRequest_Filter_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ListOCMSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes[0].Descriptor() +} + +func (ListOCMSharesRequest_Filter_Type) Type() protoreflect.EnumType { + return &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes[0] +} + +func (x ListOCMSharesRequest_Filter_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ListOCMSharesRequest_Filter_Type.Descriptor instead. +func (ListOCMSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{4, 0, 0} +} + +type CreateOCMShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The unique identifier for the shared storage resource. + ResourceId *v1beta11.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // REQUIRED. + // The share grant for the share. + Grant *ShareGrant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` + // REQUIRED. + // The details of the recipient user's mesh provider. + RecipientMeshProvider *v1beta12.ProviderInfo `protobuf:"bytes,4,opt,name=recipient_mesh_provider,json=recipientMeshProvider,proto3" json:"recipient_mesh_provider,omitempty"` +} + +func (x *CreateOCMShareRequest) Reset() { + *x = CreateOCMShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateOCMShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOCMShareRequest) ProtoMessage() {} + +func (x *CreateOCMShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 CreateOCMShareRequest.ProtoReflect.Descriptor instead. +func (*CreateOCMShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateOCMShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateOCMShareRequest) GetResourceId() *v1beta11.ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +func (x *CreateOCMShareRequest) GetGrant() *ShareGrant { + if x != nil { + return x.Grant + } + return nil +} + +func (x *CreateOCMShareRequest) GetRecipientMeshProvider() *v1beta12.ProviderInfo { + if x != nil { + return x.RecipientMeshProvider + } + return nil +} + +type CreateOCMShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The created share. + Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *CreateOCMShareResponse) Reset() { + *x = CreateOCMShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateOCMShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOCMShareResponse) ProtoMessage() {} + +func (x *CreateOCMShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 CreateOCMShareResponse.ProtoReflect.Descriptor instead. +func (*CreateOCMShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateOCMShareResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateOCMShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateOCMShareResponse) GetShare() *Share { + if x != nil { + return x.Share + } + return nil +} + +type UpdateOCMShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. + // REQUIRED. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + Field *UpdateOCMShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` +} + +func (x *UpdateOCMShareRequest) Reset() { + *x = UpdateOCMShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateOCMShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOCMShareRequest) ProtoMessage() {} + +func (x *UpdateOCMShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 UpdateOCMShareRequest.ProtoReflect.Descriptor instead. +func (*UpdateOCMShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateOCMShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UpdateOCMShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *UpdateOCMShareRequest) GetField() *UpdateOCMShareRequest_UpdateField { + if x != nil { + return x.Field + } + return nil +} + +type UpdateOCMShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *UpdateOCMShareResponse) Reset() { + *x = UpdateOCMShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateOCMShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOCMShareResponse) ProtoMessage() {} + +func (x *UpdateOCMShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 UpdateOCMShareResponse.ProtoReflect.Descriptor instead. +func (*UpdateOCMShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateOCMShareResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *UpdateOCMShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListOCMSharesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // OPTIONAL. + // The list of filters to apply if any. + Filters []*ListOCMSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` +} + +func (x *ListOCMSharesRequest) Reset() { + *x = ListOCMSharesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListOCMSharesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOCMSharesRequest) ProtoMessage() {} + +func (x *ListOCMSharesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 ListOCMSharesRequest.ProtoReflect.Descriptor instead. +func (*ListOCMSharesRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{4} +} + +func (x *ListOCMSharesRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListOCMSharesRequest) GetFilters() []*ListOCMSharesRequest_Filter { + if x != nil { + return x.Filters + } + return nil +} + +type ListOCMSharesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of shares. + Shares []*Share `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` +} + +func (x *ListOCMSharesResponse) Reset() { + *x = ListOCMSharesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListOCMSharesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOCMSharesResponse) ProtoMessage() {} + +func (x *ListOCMSharesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 ListOCMSharesResponse.ProtoReflect.Descriptor instead. +func (*ListOCMSharesResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{5} +} + +func (x *ListOCMSharesResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListOCMSharesResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListOCMSharesResponse) GetShares() []*Share { + if x != nil { + return x.Shares + } + return nil +} + +type RemoveOCMShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *RemoveOCMShareRequest) Reset() { + *x = RemoveOCMShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveOCMShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveOCMShareRequest) ProtoMessage() {} + +func (x *RemoveOCMShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 RemoveOCMShareRequest.ProtoReflect.Descriptor instead. +func (*RemoveOCMShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{6} +} + +func (x *RemoveOCMShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *RemoveOCMShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type RemoveOCMShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *RemoveOCMShareResponse) Reset() { + *x = RemoveOCMShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveOCMShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveOCMShareResponse) ProtoMessage() {} + +func (x *RemoveOCMShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 RemoveOCMShareResponse.ProtoReflect.Descriptor instead. +func (*RemoveOCMShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{7} +} + +func (x *RemoveOCMShareResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *RemoveOCMShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetOCMShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *GetOCMShareRequest) Reset() { + *x = GetOCMShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOCMShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOCMShareRequest) ProtoMessage() {} + +func (x *GetOCMShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 GetOCMShareRequest.ProtoReflect.Descriptor instead. +func (*GetOCMShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{8} +} + +func (x *GetOCMShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetOCMShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type GetOCMShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The share. + Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *GetOCMShareResponse) Reset() { + *x = GetOCMShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOCMShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOCMShareResponse) ProtoMessage() {} + +func (x *GetOCMShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[9] + 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 GetOCMShareResponse.ProtoReflect.Descriptor instead. +func (*GetOCMShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{9} +} + +func (x *GetOCMShareResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetOCMShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetOCMShareResponse) GetShare() *Share { + if x != nil { + return x.Share + } + return nil +} + +type ListReceivedOCMSharesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *ListReceivedOCMSharesRequest) Reset() { + *x = ListReceivedOCMSharesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListReceivedOCMSharesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListReceivedOCMSharesRequest) ProtoMessage() {} + +func (x *ListReceivedOCMSharesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[10] + 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 ListReceivedOCMSharesRequest.ProtoReflect.Descriptor instead. +func (*ListReceivedOCMSharesRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{10} +} + +func (x *ListReceivedOCMSharesRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListReceivedOCMSharesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of received shares. + Shares []*ReceivedShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` +} + +func (x *ListReceivedOCMSharesResponse) Reset() { + *x = ListReceivedOCMSharesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListReceivedOCMSharesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListReceivedOCMSharesResponse) ProtoMessage() {} + +func (x *ListReceivedOCMSharesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[11] + 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 ListReceivedOCMSharesResponse.ProtoReflect.Descriptor instead. +func (*ListReceivedOCMSharesResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{11} +} + +func (x *ListReceivedOCMSharesResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListReceivedOCMSharesResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListReceivedOCMSharesResponse) GetShares() []*ReceivedShare { + if x != nil { + return x.Shares + } + return nil +} + +// TODO(labkode): clean up display_name ? we'll use storage links for that. +type UpdateReceivedOCMShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + Field *UpdateReceivedOCMShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` +} + +func (x *UpdateReceivedOCMShareRequest) Reset() { + *x = UpdateReceivedOCMShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateReceivedOCMShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReceivedOCMShareRequest) ProtoMessage() {} + +func (x *UpdateReceivedOCMShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[12] + 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 UpdateReceivedOCMShareRequest.ProtoReflect.Descriptor instead. +func (*UpdateReceivedOCMShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{12} +} + +func (x *UpdateReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UpdateReceivedOCMShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *UpdateReceivedOCMShareRequest) GetField() *UpdateReceivedOCMShareRequest_UpdateField { + if x != nil { + return x.Field + } + return nil +} + +type UpdateReceivedOCMShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *UpdateReceivedOCMShareResponse) Reset() { + *x = UpdateReceivedOCMShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateReceivedOCMShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReceivedOCMShareResponse) ProtoMessage() {} + +func (x *UpdateReceivedOCMShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[13] + 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 UpdateReceivedOCMShareResponse.ProtoReflect.Descriptor instead. +func (*UpdateReceivedOCMShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{13} +} + +func (x *UpdateReceivedOCMShareResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *UpdateReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetReceivedOCMShareRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference of the received share. + Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *GetReceivedOCMShareRequest) Reset() { + *x = GetReceivedOCMShareRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetReceivedOCMShareRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReceivedOCMShareRequest) ProtoMessage() {} + +func (x *GetReceivedOCMShareRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[14] + 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 GetReceivedOCMShareRequest.ProtoReflect.Descriptor instead. +func (*GetReceivedOCMShareRequest) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{14} +} + +func (x *GetReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetReceivedOCMShareRequest) GetRef() *ShareReference { + if x != nil { + return x.Ref + } + return nil +} + +type GetReceivedOCMShareResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The share. + Share *ReceivedShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` +} + +func (x *GetReceivedOCMShareResponse) Reset() { + *x = GetReceivedOCMShareResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetReceivedOCMShareResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReceivedOCMShareResponse) ProtoMessage() {} + +func (x *GetReceivedOCMShareResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[15] + 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 GetReceivedOCMShareResponse.ProtoReflect.Descriptor instead. +func (*GetReceivedOCMShareResponse) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{15} +} + +func (x *GetReceivedOCMShareResponse) GetStatus() *v1beta13.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetReceivedOCMShareResponse) GetShare() *ReceivedShare { + if x != nil { + return x.Share + } + return nil +} + +// REQUIRED. +type UpdateOCMShareRequest_UpdateField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // One of the update fields MUST be specified. + // + // Types that are assignable to Field: + // *UpdateOCMShareRequest_UpdateField_Permissions + // *UpdateOCMShareRequest_UpdateField_DisplayName + Field isUpdateOCMShareRequest_UpdateField_Field `protobuf_oneof:"field"` +} + +func (x *UpdateOCMShareRequest_UpdateField) Reset() { + *x = UpdateOCMShareRequest_UpdateField{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateOCMShareRequest_UpdateField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOCMShareRequest_UpdateField) ProtoMessage() {} + +func (x *UpdateOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16] + 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 UpdateOCMShareRequest_UpdateField.ProtoReflect.Descriptor instead. +func (*UpdateOCMShareRequest_UpdateField) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{2, 0} +} + +func (m *UpdateOCMShareRequest_UpdateField) GetField() isUpdateOCMShareRequest_UpdateField_Field { + if m != nil { + return m.Field + } + return nil +} + +func (x *UpdateOCMShareRequest_UpdateField) GetPermissions() *SharePermissions { + if x, ok := x.GetField().(*UpdateOCMShareRequest_UpdateField_Permissions); ok { + return x.Permissions + } + return nil +} + +func (x *UpdateOCMShareRequest_UpdateField) GetDisplayName() string { + if x, ok := x.GetField().(*UpdateOCMShareRequest_UpdateField_DisplayName); ok { + return x.DisplayName + } + return "" +} + +type isUpdateOCMShareRequest_UpdateField_Field interface { + isUpdateOCMShareRequest_UpdateField_Field() +} + +type UpdateOCMShareRequest_UpdateField_Permissions struct { + // Update the permissions. + Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3,oneof"` +} + +type UpdateOCMShareRequest_UpdateField_DisplayName struct { + // Update the display name. + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3,oneof"` +} + +func (*UpdateOCMShareRequest_UpdateField_Permissions) isUpdateOCMShareRequest_UpdateField_Field() {} + +func (*UpdateOCMShareRequest_UpdateField_DisplayName) isUpdateOCMShareRequest_UpdateField_Field() {} + +// REQUIRED. +// represents a filter to apply to the request. +type ListOCMSharesRequest_Filter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Type ListOCMSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.ocm.v1beta1.ListOCMSharesRequest_Filter_Type" json:"type,omitempty"` + // Types that are assignable to Term: + // *ListOCMSharesRequest_Filter_ResourceId + // *ListOCMSharesRequest_Filter_Owner + // *ListOCMSharesRequest_Filter_Creator + Term isListOCMSharesRequest_Filter_Term `protobuf_oneof:"term"` +} + +func (x *ListOCMSharesRequest_Filter) Reset() { + *x = ListOCMSharesRequest_Filter{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListOCMSharesRequest_Filter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOCMSharesRequest_Filter) ProtoMessage() {} + +func (x *ListOCMSharesRequest_Filter) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17] + 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 ListOCMSharesRequest_Filter.ProtoReflect.Descriptor instead. +func (*ListOCMSharesRequest_Filter) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *ListOCMSharesRequest_Filter) GetType() ListOCMSharesRequest_Filter_Type { + if x != nil { + return x.Type + } + return ListOCMSharesRequest_Filter_TYPE_INVALID +} + +func (m *ListOCMSharesRequest_Filter) GetTerm() isListOCMSharesRequest_Filter_Term { + if m != nil { + return m.Term + } + return nil +} + +func (x *ListOCMSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId { + if x, ok := x.GetTerm().(*ListOCMSharesRequest_Filter_ResourceId); ok { + return x.ResourceId + } + return nil +} + +func (x *ListOCMSharesRequest_Filter) GetOwner() *v1beta14.UserId { + if x, ok := x.GetTerm().(*ListOCMSharesRequest_Filter_Owner); ok { + return x.Owner + } + return nil +} + +func (x *ListOCMSharesRequest_Filter) GetCreator() *v1beta14.UserId { + if x, ok := x.GetTerm().(*ListOCMSharesRequest_Filter_Creator); ok { + return x.Creator + } + return nil +} + +type isListOCMSharesRequest_Filter_Term interface { + isListOCMSharesRequest_Filter_Term() +} + +type ListOCMSharesRequest_Filter_ResourceId struct { + ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"` +} + +type ListOCMSharesRequest_Filter_Owner struct { + Owner *v1beta14.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"` +} + +type ListOCMSharesRequest_Filter_Creator struct { + Creator *v1beta14.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"` +} + +func (*ListOCMSharesRequest_Filter_ResourceId) isListOCMSharesRequest_Filter_Term() {} + +func (*ListOCMSharesRequest_Filter_Owner) isListOCMSharesRequest_Filter_Term() {} + +func (*ListOCMSharesRequest_Filter_Creator) isListOCMSharesRequest_Filter_Term() {} + +// REQUIRED. +type UpdateReceivedOCMShareRequest_UpdateField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // One of the update fields MUST be specified. + // + // Types that are assignable to Field: + // *UpdateReceivedOCMShareRequest_UpdateField_DisplayName + // *UpdateReceivedOCMShareRequest_UpdateField_State + Field isUpdateReceivedOCMShareRequest_UpdateField_Field `protobuf_oneof:"field"` +} + +func (x *UpdateReceivedOCMShareRequest_UpdateField) Reset() { + *x = UpdateReceivedOCMShareRequest_UpdateField{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateReceivedOCMShareRequest_UpdateField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoMessage() {} + +func (x *UpdateReceivedOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18] + 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 UpdateReceivedOCMShareRequest_UpdateField.ProtoReflect.Descriptor instead. +func (*UpdateReceivedOCMShareRequest_UpdateField) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{12, 0} +} + +func (m *UpdateReceivedOCMShareRequest_UpdateField) GetField() isUpdateReceivedOCMShareRequest_UpdateField_Field { + if m != nil { + return m.Field + } + return nil +} + +func (x *UpdateReceivedOCMShareRequest_UpdateField) GetDisplayName() string { + if x, ok := x.GetField().(*UpdateReceivedOCMShareRequest_UpdateField_DisplayName); ok { + return x.DisplayName + } + return "" +} + +func (x *UpdateReceivedOCMShareRequest_UpdateField) GetState() ShareState { + if x, ok := x.GetField().(*UpdateReceivedOCMShareRequest_UpdateField_State); ok { + return x.State + } + return ShareState_SHARE_STATE_INVALID +} + +type isUpdateReceivedOCMShareRequest_UpdateField_Field interface { + isUpdateReceivedOCMShareRequest_UpdateField_Field() +} + +type UpdateReceivedOCMShareRequest_UpdateField_DisplayName struct { + // Update the display name. + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3,oneof"` +} + +type UpdateReceivedOCMShareRequest_UpdateField_State struct { + // Update the share state + State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState,oneof"` +} + +func (*UpdateReceivedOCMShareRequest_UpdateField_DisplayName) isUpdateReceivedOCMShareRequest_UpdateField_Field() { +} + +func (*UpdateReceivedOCMShareRequest_UpdateField_State) isUpdateReceivedOCMShareRequest_UpdateField_Field() { +} + +var File_cs3_sharing_ocm_v1beta1_ocm_api_proto protoreflect.FileDescriptor + +var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x63, + 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, 0x33, + 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, + 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x02, 0x0a, 0x15, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x64, 0x12, 0x39, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x5e, 0x0a, 0x17, + 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x68, 0x5f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x15, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, + 0x4d, 0x65, 0x73, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0xb2, 0x01, 0x0a, + 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x50, 0x0a, 0x05, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x8a, 0x01, 0x0a, 0x0b, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x4d, 0x0a, 0x0b, 0x70, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x70, + 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, + 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x7c, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xd6, 0x04, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4f, + 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x73, 0x1a, 0xba, 0x03, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4d, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x0b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x22, 0x91, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x44, 0x10, + 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, + 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x4f, + 0x52, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, + 0x52, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x50, 0x52, 0x4f, + 0x56, 0x49, 0x44, 0x45, 0x52, 0x10, 0x06, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x22, + 0xb3, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x36, 0x0a, + 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x06, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7c, 0x0a, + 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x12, + 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, + 0x22, 0xaf, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x22, 0x51, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc3, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xe1, 0x02, 0x0a, 0x1d, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, + 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x58, 0x0a, 0x05, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x78, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, + 0x84, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, + 0x72, 0x65, 0x66, 0x22, 0xbf, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x32, 0xd3, 0x07, 0x0a, 0x06, 0x4f, 0x63, 0x6d, 0x41, 0x50, 0x49, + 0x12, 0x71, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, + 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x71, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x35, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, + 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, + 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x72, 0x0a, 0x1b, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x4f, 0x63, 0x6d, 0x41, + 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x6f, 0x63, 0x6d, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x4f, 0xaa, 0x02, 0x17, 0x43, 0x73, + 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x56, 0x31, + 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescOnce sync.Once + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData = file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc +) + +func file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP() []byte { + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescOnce.Do(func() { + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData) + }) + return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData +} + +var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_goTypes = []interface{}{ + (ListOCMSharesRequest_Filter_Type)(0), // 0: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.Type + (*CreateOCMShareRequest)(nil), // 1: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest + (*CreateOCMShareResponse)(nil), // 2: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse + (*UpdateOCMShareRequest)(nil), // 3: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest + (*UpdateOCMShareResponse)(nil), // 4: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse + (*ListOCMSharesRequest)(nil), // 5: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest + (*ListOCMSharesResponse)(nil), // 6: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse + (*RemoveOCMShareRequest)(nil), // 7: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest + (*RemoveOCMShareResponse)(nil), // 8: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse + (*GetOCMShareRequest)(nil), // 9: cs3.sharing.ocm.v1beta1.GetOCMShareRequest + (*GetOCMShareResponse)(nil), // 10: cs3.sharing.ocm.v1beta1.GetOCMShareResponse + (*ListReceivedOCMSharesRequest)(nil), // 11: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest + (*ListReceivedOCMSharesResponse)(nil), // 12: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse + (*UpdateReceivedOCMShareRequest)(nil), // 13: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest + (*UpdateReceivedOCMShareResponse)(nil), // 14: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse + (*GetReceivedOCMShareRequest)(nil), // 15: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest + (*GetReceivedOCMShareResponse)(nil), // 16: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse + (*UpdateOCMShareRequest_UpdateField)(nil), // 17: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.UpdateField + (*ListOCMSharesRequest_Filter)(nil), // 18: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter + (*UpdateReceivedOCMShareRequest_UpdateField)(nil), // 19: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.UpdateField + (*v1beta1.Opaque)(nil), // 20: cs3.types.v1beta1.Opaque + (*v1beta11.ResourceId)(nil), // 21: cs3.storage.provider.v1beta1.ResourceId + (*ShareGrant)(nil), // 22: cs3.sharing.ocm.v1beta1.ShareGrant + (*v1beta12.ProviderInfo)(nil), // 23: cs3.ocm.provider.v1beta1.ProviderInfo + (*v1beta13.Status)(nil), // 24: cs3.rpc.v1beta1.Status + (*Share)(nil), // 25: cs3.sharing.ocm.v1beta1.Share + (*ShareReference)(nil), // 26: cs3.sharing.ocm.v1beta1.ShareReference + (*ReceivedShare)(nil), // 27: cs3.sharing.ocm.v1beta1.ReceivedShare + (*SharePermissions)(nil), // 28: cs3.sharing.ocm.v1beta1.SharePermissions + (*v1beta14.UserId)(nil), // 29: cs3.identity.user.v1beta1.UserId + (ShareState)(0), // 30: cs3.sharing.ocm.v1beta1.ShareState +} +var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_depIdxs = []int32{ + 20, // 0: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 21, // 1: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 22, // 2: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.grant:type_name -> cs3.sharing.ocm.v1beta1.ShareGrant + 23, // 3: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.recipient_mesh_provider:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo + 24, // 4: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 5: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 6: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse.share:type_name -> cs3.sharing.ocm.v1beta1.Share + 20, // 7: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // 8: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference + 17, // 9: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.field:type_name -> cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.UpdateField + 24, // 10: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 11: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 12: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 18, // 13: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.filters:type_name -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter + 24, // 14: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 15: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 16: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse.shares:type_name -> cs3.sharing.ocm.v1beta1.Share + 20, // 17: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // 18: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference + 24, // 19: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 20: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 21: cs3.sharing.ocm.v1beta1.GetOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // 22: cs3.sharing.ocm.v1beta1.GetOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference + 24, // 23: cs3.sharing.ocm.v1beta1.GetOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 24: cs3.sharing.ocm.v1beta1.GetOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 25, // 25: cs3.sharing.ocm.v1beta1.GetOCMShareResponse.share:type_name -> cs3.sharing.ocm.v1beta1.Share + 20, // 26: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 24, // 27: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 28: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 27, // 29: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse.shares:type_name -> cs3.sharing.ocm.v1beta1.ReceivedShare + 20, // 30: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // 31: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference + 19, // 32: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.field:type_name -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.UpdateField + 24, // 33: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 34: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 20, // 35: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // 36: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference + 24, // 37: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status + 20, // 38: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 27, // 39: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse.share:type_name -> cs3.sharing.ocm.v1beta1.ReceivedShare + 28, // 40: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.UpdateField.permissions:type_name -> cs3.sharing.ocm.v1beta1.SharePermissions + 0, // 41: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.type:type_name -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.Type + 21, // 42: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 29, // 43: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.owner:type_name -> cs3.identity.user.v1beta1.UserId + 29, // 44: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.creator:type_name -> cs3.identity.user.v1beta1.UserId + 30, // 45: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.UpdateField.state:type_name -> cs3.sharing.ocm.v1beta1.ShareState + 1, // 46: cs3.sharing.ocm.v1beta1.OcmAPI.CreateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareRequest + 7, // 47: cs3.sharing.ocm.v1beta1.OcmAPI.RemoveOCMShare:input_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest + 9, // 48: cs3.sharing.ocm.v1beta1.OcmAPI.GetOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetOCMShareRequest + 5, // 49: cs3.sharing.ocm.v1beta1.OcmAPI.ListOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest + 3, // 50: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest + 11, // 51: cs3.sharing.ocm.v1beta1.OcmAPI.ListReceivedOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest + 13, // 52: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest + 15, // 53: cs3.sharing.ocm.v1beta1.OcmAPI.GetReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest + 2, // 54: cs3.sharing.ocm.v1beta1.OcmAPI.CreateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareResponse + 8, // 55: cs3.sharing.ocm.v1beta1.OcmAPI.RemoveOCMShare:output_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse + 10, // 56: cs3.sharing.ocm.v1beta1.OcmAPI.GetOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetOCMShareResponse + 6, // 57: cs3.sharing.ocm.v1beta1.OcmAPI.ListOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesResponse + 4, // 58: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse + 12, // 59: cs3.sharing.ocm.v1beta1.OcmAPI.ListReceivedOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse + 14, // 60: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse + 16, // 61: cs3.sharing.ocm.v1beta1.OcmAPI.GetReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse + 54, // [54:62] is the sub-list for method output_type + 46, // [46:54] is the sub-list for method input_type + 46, // [46:46] is the sub-list for extension type_name + 46, // [46:46] is the sub-list for extension extendee + 0, // [0:46] is the sub-list for field type_name +} + +func init() { file_cs3_sharing_ocm_v1beta1_ocm_api_proto_init() } +func file_cs3_sharing_ocm_v1beta1_ocm_api_proto_init() { + if File_cs3_sharing_ocm_v1beta1_ocm_api_proto != nil { + return + } + file_cs3_sharing_ocm_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateOCMShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateOCMShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateOCMShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateOCMShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOCMSharesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOCMSharesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveOCMShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveOCMShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOCMShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOCMShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListReceivedOCMSharesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListReceivedOCMSharesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateReceivedOCMShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateReceivedOCMShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReceivedOCMShareRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReceivedOCMShareResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateOCMShareRequest_UpdateField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOCMSharesRequest_Filter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateReceivedOCMShareRequest_UpdateField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16].OneofWrappers = []interface{}{ + (*UpdateOCMShareRequest_UpdateField_Permissions)(nil), + (*UpdateOCMShareRequest_UpdateField_DisplayName)(nil), + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17].OneofWrappers = []interface{}{ + (*ListOCMSharesRequest_Filter_ResourceId)(nil), + (*ListOCMSharesRequest_Filter_Owner)(nil), + (*ListOCMSharesRequest_Filter_Creator)(nil), + } + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18].OneofWrappers = []interface{}{ + (*UpdateReceivedOCMShareRequest_UpdateField_DisplayName)(nil), + (*UpdateReceivedOCMShareRequest_UpdateField_State)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc, + NumEnums: 1, + NumMessages: 19, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_goTypes, + DependencyIndexes: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_depIdxs, + EnumInfos: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes, + MessageInfos: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes, + }.Build() + File_cs3_sharing_ocm_v1beta1_ocm_api_proto = out.File + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc = nil + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_goTypes = nil + file_cs3_sharing_ocm_v1beta1_ocm_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// OcmAPIClient is the client API for OcmAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type OcmAPIClient interface { + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error) + // List all shares the authenticated principal has received. + ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error) +} + +type ocmAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewOcmAPIClient(cc grpc.ClientConnInterface) OcmAPIClient { + return &ocmAPIClient{cc} +} + +func (c *ocmAPIClient) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error) { + out := new(CreateOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/CreateOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIClient) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error) { + out := new(RemoveOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/RemoveOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIClient) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error) { + out := new(GetOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIClient) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error) { + out := new(ListOCMSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/ListOCMShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIClient) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error) { + out := new(UpdateOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIClient) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error) { + out := new(ListReceivedOCMSharesResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIClient) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error) { + out := new(UpdateReceivedOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateReceivedOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIClient) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error) { + out := new(GetReceivedOCMShareResponse) + err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/GetReceivedOCMShare", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// OcmAPIServer is the server API for OcmAPI service. +type OcmAPIServer interface { + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error) + // List all shares the authenticated principal has received. + ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error) +} + +// UnimplementedOcmAPIServer can be embedded to have forward compatible implementations. +type UnimplementedOcmAPIServer struct { +} + +func (*UnimplementedOcmAPIServer) CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateOCMShare not implemented") +} +func (*UnimplementedOcmAPIServer) RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveOCMShare not implemented") +} +func (*UnimplementedOcmAPIServer) GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOCMShare not implemented") +} +func (*UnimplementedOcmAPIServer) ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListOCMShares not implemented") +} +func (*UnimplementedOcmAPIServer) UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateOCMShare not implemented") +} +func (*UnimplementedOcmAPIServer) ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListReceivedOCMShares not implemented") +} +func (*UnimplementedOcmAPIServer) UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedOCMShare not implemented") +} +func (*UnimplementedOcmAPIServer) GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetReceivedOCMShare not implemented") +} + +func RegisterOcmAPIServer(s *grpc.Server, srv OcmAPIServer) { + s.RegisterService(&_OcmAPI_serviceDesc, srv) +} + +func _OcmAPI_CreateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).CreateOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/CreateOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).CreateOCMShare(ctx, req.(*CreateOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OcmAPI_RemoveOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).RemoveOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/RemoveOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).RemoveOCMShare(ctx, req.(*RemoveOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OcmAPI_GetOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).GetOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).GetOCMShare(ctx, req.(*GetOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OcmAPI_ListOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListOCMSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).ListOCMShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/ListOCMShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).ListOCMShares(ctx, req.(*ListOCMSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OcmAPI_UpdateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).UpdateOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).UpdateOCMShare(ctx, req.(*UpdateOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OcmAPI_ListReceivedOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListReceivedOCMSharesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, req.(*ListReceivedOCMSharesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OcmAPI_UpdateReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateReceivedOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateReceivedOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, req.(*UpdateReceivedOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OcmAPI_GetReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetReceivedOCMShareRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/GetReceivedOCMShare", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, req.(*GetReceivedOCMShareRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _OcmAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.sharing.ocm.v1beta1.OcmAPI", + HandlerType: (*OcmAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateOCMShare", + Handler: _OcmAPI_CreateOCMShare_Handler, + }, + { + MethodName: "RemoveOCMShare", + Handler: _OcmAPI_RemoveOCMShare_Handler, + }, + { + MethodName: "GetOCMShare", + Handler: _OcmAPI_GetOCMShare_Handler, + }, + { + MethodName: "ListOCMShares", + Handler: _OcmAPI_ListOCMShares_Handler, + }, + { + MethodName: "UpdateOCMShare", + Handler: _OcmAPI_UpdateOCMShare_Handler, + }, + { + MethodName: "ListReceivedOCMShares", + Handler: _OcmAPI_ListReceivedOCMShares_Handler, + }, + { + MethodName: "UpdateReceivedOCMShare", + Handler: _OcmAPI_UpdateReceivedOCMShare_Handler, + }, + { + MethodName: "GetReceivedOCMShare", + Handler: _OcmAPI_GetReceivedOCMShare_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/sharing/ocm/v1beta1/ocm_api.proto", +} diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go new file mode 100644 index 00000000..a15541bf --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go @@ -0,0 +1,255 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/sharing/ocm/v1beta1/ocm_api.proto + +package ocmv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for OcmAPI service + +func NewOcmAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for OcmAPI service + +type OcmAPIService interface { + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...client.CallOption) (*CreateOCMShareResponse, error) + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...client.CallOption) (*RemoveOCMShareResponse, error) + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...client.CallOption) (*GetOCMShareResponse, error) + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...client.CallOption) (*ListOCMSharesResponse, error) + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...client.CallOption) (*UpdateOCMShareResponse, error) + // List all shares the authenticated principal has received. + ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...client.CallOption) (*ListReceivedOCMSharesResponse, error) + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*UpdateReceivedOCMShareResponse, error) + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...client.CallOption) (*GetReceivedOCMShareResponse, error) +} + +type ocmAPIService struct { + c client.Client + name string +} + +func NewOcmAPIService(name string, c client.Client) OcmAPIService { + return &ocmAPIService{ + c: c, + name: name, + } +} + +func (c *ocmAPIService) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...client.CallOption) (*CreateOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.CreateOCMShare", in) + out := new(CreateOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIService) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...client.CallOption) (*RemoveOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.RemoveOCMShare", in) + out := new(RemoveOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIService) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...client.CallOption) (*GetOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.GetOCMShare", in) + out := new(GetOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIService) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...client.CallOption) (*ListOCMSharesResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.ListOCMShares", in) + out := new(ListOCMSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIService) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...client.CallOption) (*UpdateOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.UpdateOCMShare", in) + out := new(UpdateOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIService) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...client.CallOption) (*ListReceivedOCMSharesResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.ListReceivedOCMShares", in) + out := new(ListReceivedOCMSharesResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIService) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*UpdateReceivedOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.UpdateReceivedOCMShare", in) + out := new(UpdateReceivedOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ocmAPIService) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...client.CallOption) (*GetReceivedOCMShareResponse, error) { + req := c.c.NewRequest(c.name, "OcmAPI.GetReceivedOCMShare", in) + out := new(GetReceivedOCMShareResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for OcmAPI service + +type OcmAPIHandler interface { + // Creates a new ocm share. + // MUST return CODE_NOT_FOUND if the resource reference does not exist. + // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of + // (owner, shared_resource, grantee). + // New shares MUST be created in the state SHARE_STATE_PENDING. + CreateOCMShare(context.Context, *CreateOCMShareRequest, *CreateOCMShareResponse) error + // Removes a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + RemoveOCMShare(context.Context, *RemoveOCMShareRequest, *RemoveOCMShareResponse) error + // Gets share information for a single share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + GetOCMShare(context.Context, *GetOCMShareRequest, *GetOCMShareResponse) error + // List the shares the authenticated principal has created, + // both as owner and creator. If a filter is specified, only + // shares satisfying the filter MUST be returned. + ListOCMShares(context.Context, *ListOCMSharesRequest, *ListOCMSharesResponse) error + // Updates a share. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateOCMShare(context.Context, *UpdateOCMShareRequest, *UpdateOCMShareResponse) error + // List all shares the authenticated principal has received. + ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest, *ListReceivedOCMSharesResponse) error + // Update the received share to change the share state or the display name. + // MUST return CODE_NOT_FOUND if the share reference does not exist. + UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest, *UpdateReceivedOCMShareResponse) error + // Get the information for the given received share reference. + // MUST return CODE_NOT_FOUND if the received share reference does not exist. + GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest, *GetReceivedOCMShareResponse) error +} + +func RegisterOcmAPIHandler(s server.Server, hdlr OcmAPIHandler, opts ...server.HandlerOption) error { + type ocmAPI interface { + CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, out *CreateOCMShareResponse) error + RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, out *RemoveOCMShareResponse) error + GetOCMShare(ctx context.Context, in *GetOCMShareRequest, out *GetOCMShareResponse) error + ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, out *ListOCMSharesResponse) error + UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, out *UpdateOCMShareResponse) error + ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, out *ListReceivedOCMSharesResponse) error + UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, out *UpdateReceivedOCMShareResponse) error + GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, out *GetReceivedOCMShareResponse) error + } + type OcmAPI struct { + ocmAPI + } + h := &ocmAPIHandler{hdlr} + return s.Handle(s.NewHandler(&OcmAPI{h}, opts...)) +} + +type ocmAPIHandler struct { + OcmAPIHandler +} + +func (h *ocmAPIHandler) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, out *CreateOCMShareResponse) error { + return h.OcmAPIHandler.CreateOCMShare(ctx, in, out) +} + +func (h *ocmAPIHandler) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, out *RemoveOCMShareResponse) error { + return h.OcmAPIHandler.RemoveOCMShare(ctx, in, out) +} + +func (h *ocmAPIHandler) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, out *GetOCMShareResponse) error { + return h.OcmAPIHandler.GetOCMShare(ctx, in, out) +} + +func (h *ocmAPIHandler) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, out *ListOCMSharesResponse) error { + return h.OcmAPIHandler.ListOCMShares(ctx, in, out) +} + +func (h *ocmAPIHandler) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, out *UpdateOCMShareResponse) error { + return h.OcmAPIHandler.UpdateOCMShare(ctx, in, out) +} + +func (h *ocmAPIHandler) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, out *ListReceivedOCMSharesResponse) error { + return h.OcmAPIHandler.ListReceivedOCMShares(ctx, in, out) +} + +func (h *ocmAPIHandler) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, out *UpdateReceivedOCMShareResponse) error { + return h.OcmAPIHandler.UpdateReceivedOCMShare(ctx, in, out) +} + +func (h *ocmAPIHandler) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, out *GetReceivedOCMShareResponse) error { + return h.OcmAPIHandler.GetReceivedOCMShare(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go new file mode 100644 index 00000000..12b03aba --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go @@ -0,0 +1,933 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/sharing/ocm/v1beta1/resources.proto + +package ocmv1beta1 + +import ( + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The state of the share. +type ShareState int32 + +const ( + // The share is no longer valid, for example, the share expired. + ShareState_SHARE_STATE_INVALID ShareState = 0 + // New shares MUST be created in the SHARE_STATE_PENDING state. + // This state means the share is pending to be accepted or rejected + // by the recipient of the share. + ShareState_SHARE_STATE_PENDING ShareState = 1 + // The recipient of the share has accepted the share. + ShareState_SHARE_STATE_ACCEPTED ShareState = 2 + // The recipient of the share has rejected the share. + // Do not means the share is removed, the recipient MAY + // change the state to accepted or pending. + ShareState_SHARE_STATE_REJECTED ShareState = 3 +) + +// Enum value maps for ShareState. +var ( + ShareState_name = map[int32]string{ + 0: "SHARE_STATE_INVALID", + 1: "SHARE_STATE_PENDING", + 2: "SHARE_STATE_ACCEPTED", + 3: "SHARE_STATE_REJECTED", + } + ShareState_value = map[string]int32{ + "SHARE_STATE_INVALID": 0, + "SHARE_STATE_PENDING": 1, + "SHARE_STATE_ACCEPTED": 2, + "SHARE_STATE_REJECTED": 3, + } +) + +func (x ShareState) Enum() *ShareState { + p := new(ShareState) + *p = x + return p +} + +func (x ShareState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ShareState) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes[0].Descriptor() +} + +func (ShareState) Type() protoreflect.EnumType { + return &file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes[0] +} + +func (x ShareState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ShareState.Descriptor instead. +func (ShareState) EnumDescriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +// Shares are relationships between a resource owner +// (usually the authenticated user) who grants permissions to a recipient (grantee) +// on a specified resource (resource_id). UserShares represents both user and groups. +type Share struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // Opaque unique identifier of the share. + Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // REQUIRED. + // Unique identifier of the shared resource. + ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // REQUIRED. + // Name of the shared resource. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // REQUIRED. + // Permissions for the grantee to use + // the resource. + Permissions *SharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` + // REQUIRED. + // The receiver of the share, like a user, group ... + Grantee *v1beta1.Grantee `protobuf:"bytes,5,opt,name=grantee,proto3" json:"grantee,omitempty"` + // REQUIRED. + // Uniquely identifies the owner of the share + // (the resource owner at the time of creating the share). + // In case the ownership of the underlying resource changes + // the share owner field MAY change to reflect the change of ownsership. + Owner *v1beta11.UserId `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` + // REQUIRED. + // Uniquely identifies a principal who initiates the share creation. + // A creator can create shares on behalf of the owner (because of re-sharing, + // because belonging to special groups, ...). + // Creator and owner often result in being the same principal. + Creator *v1beta11.UserId `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` + // REQUIRED. + // Creation time of the share. + Ctime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=ctime,proto3" json:"ctime,omitempty"` + // REQUIRED. + // Last modification time of the share. + Mtime *v1beta12.Timestamp `protobuf:"bytes,9,opt,name=mtime,proto3" json:"mtime,omitempty"` +} + +func (x *Share) Reset() { + *x = Share{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Share) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Share) ProtoMessage() {} + +func (x *Share) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_resources_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 Share.ProtoReflect.Descriptor instead. +func (*Share) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *Share) GetId() *ShareId { + if x != nil { + return x.Id + } + return nil +} + +func (x *Share) GetResourceId() *v1beta1.ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +func (x *Share) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Share) GetPermissions() *SharePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +func (x *Share) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +func (x *Share) GetOwner() *v1beta11.UserId { + if x != nil { + return x.Owner + } + return nil +} + +func (x *Share) GetCreator() *v1beta11.UserId { + if x != nil { + return x.Creator + } + return nil +} + +func (x *Share) GetCtime() *v1beta12.Timestamp { + if x != nil { + return x.Ctime + } + return nil +} + +func (x *Share) GetMtime() *v1beta12.Timestamp { + if x != nil { + return x.Mtime + } + return nil +} + +// The permissions for a share. +type SharePermissions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` + Reshare bool `protobuf:"varint,2,opt,name=reshare,proto3" json:"reshare,omitempty"` +} + +func (x *SharePermissions) Reset() { + *x = SharePermissions{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SharePermissions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SharePermissions) ProtoMessage() {} + +func (x *SharePermissions) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_resources_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 SharePermissions.ProtoReflect.Descriptor instead. +func (*SharePermissions) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +func (x *SharePermissions) GetReshare() bool { + if x != nil { + return x.Reshare + } + return false +} + +// A received share is the share that a grantee will receive. +// It expands the original share by adding state to the share, +// a display name from the perspective of the grantee and a +// resource mount path in case the share will be mounted +// in a path in a storage provider. +type ReceivedShare struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"` + // REQUIRED. + // The state of the share. + State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState" json:"state,omitempty"` +} + +func (x *ReceivedShare) Reset() { + *x = ReceivedShare{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReceivedShare) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReceivedShare) ProtoMessage() {} + +func (x *ReceivedShare) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ReceivedShare.ProtoReflect.Descriptor instead. +func (*ReceivedShare) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{2} +} + +func (x *ReceivedShare) GetShare() *Share { + if x != nil { + return x.Share + } + return nil +} + +func (x *ReceivedShare) GetState() ShareState { + if x != nil { + return x.State + } + return ShareState_SHARE_STATE_INVALID +} + +// Uniquely identifies a share in the share provider. +// A share MUST be uniquely identify by four (4) elements: +// 1) The share provider id +// 2) The owner of the share +// 3) The resource id +// 4) The grantee for the share +// This 4-tuple MUST be unique. +// For example, owner Alice shares the resource /home/docs with id +// home:1234 to an user named Bob. The 4-tuple will consist of +// 1) The share provider id = "user" +// 2) The owner of the share = "Alice" +// 3) The resource id = "home:1234" +// 4) The grantee for the share = Grantee("type" = "user", "" => "Bob") +type ShareKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Owner *v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + // REQUIRED. + ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // REQUIRED. + Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` +} + +func (x *ShareKey) Reset() { + *x = ShareKey{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareKey) ProtoMessage() {} + +func (x *ShareKey) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareKey.ProtoReflect.Descriptor instead. +func (*ShareKey) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{3} +} + +func (x *ShareKey) GetOwner() *v1beta11.UserId { + if x != nil { + return x.Owner + } + return nil +} + +func (x *ShareKey) GetResourceId() *v1beta1.ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +func (x *ShareKey) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +// A share id identifies uniquely a // share in the share provider namespace. +// A ShareId MUST be unique inside the share provider. +type ShareId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The internal id used by service implementor to + // uniquely identity the share in the internal + // implementation of the service. + OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` +} + +func (x *ShareId) Reset() { + *x = ShareId{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareId) ProtoMessage() {} + +func (x *ShareId) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareId.ProtoReflect.Descriptor instead. +func (*ShareId) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{4} +} + +func (x *ShareId) GetOpaqueId() string { + if x != nil { + return x.OpaqueId + } + return "" +} + +// The mechanism to identify a share +// in the share provider namespace. +type ShareReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // One of the specifications MUST be specified. + // + // Types that are assignable to Spec: + // *ShareReference_Id + // *ShareReference_Key + Spec isShareReference_Spec `protobuf_oneof:"spec"` +} + +func (x *ShareReference) Reset() { + *x = ShareReference{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareReference) ProtoMessage() {} + +func (x *ShareReference) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareReference.ProtoReflect.Descriptor instead. +func (*ShareReference) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{5} +} + +func (m *ShareReference) GetSpec() isShareReference_Spec { + if m != nil { + return m.Spec + } + return nil +} + +func (x *ShareReference) GetId() *ShareId { + if x, ok := x.GetSpec().(*ShareReference_Id); ok { + return x.Id + } + return nil +} + +func (x *ShareReference) GetKey() *ShareKey { + if x, ok := x.GetSpec().(*ShareReference_Key); ok { + return x.Key + } + return nil +} + +type isShareReference_Spec interface { + isShareReference_Spec() +} + +type ShareReference_Id struct { + // The id of the share. + Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type ShareReference_Key struct { + // The combination of fields that + // make the share unique. + Key *ShareKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"` +} + +func (*ShareReference_Id) isShareReference_Spec() {} + +func (*ShareReference_Key) isShareReference_Spec() {} + +// A share grant specifies the share permissions +// for a grantee. +type ShareGrant struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The grantee of the grant. + Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` + // REQUIRED. + // The share permissions for the grant. + Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` +} + +func (x *ShareGrant) Reset() { + *x = ShareGrant{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShareGrant) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShareGrant) ProtoMessage() {} + +func (x *ShareGrant) ProtoReflect() protoreflect.Message { + mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareGrant.ProtoReflect.Descriptor instead. +func (*ShareGrant) Descriptor() ([]byte, []int) { + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{6} +} + +func (x *ShareGrant) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +func (x *ShareGrant) GetPermissions() *SharePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +var File_cs3_sharing_ocm_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x63, + 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, + 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x04, 0x0a, 0x05, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x30, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, + 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, + 0x74, 0x65, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x05, 0x63, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, + 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, + 0x65, 0x22, 0x81, 0x01, 0x0a, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, + 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, + 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x39, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x08, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x49, + 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, + 0x6e, 0x74, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, + 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x22, 0x26, 0x0a, 0x07, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x49, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x0e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x9a, 0x01, 0x0a, 0x0a, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, + 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x72, 0x0a, 0x0a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, + 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, + 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, + 0x18, 0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, + 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x75, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x6f, 0x63, 0x6d, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x4f, 0xaa, 0x02, 0x17, 0x43, + 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData = file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc +) + +func file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData +} + +var file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_cs3_sharing_ocm_v1beta1_resources_proto_goTypes = []interface{}{ + (ShareState)(0), // 0: cs3.sharing.ocm.v1beta1.ShareState + (*Share)(nil), // 1: cs3.sharing.ocm.v1beta1.Share + (*SharePermissions)(nil), // 2: cs3.sharing.ocm.v1beta1.SharePermissions + (*ReceivedShare)(nil), // 3: cs3.sharing.ocm.v1beta1.ReceivedShare + (*ShareKey)(nil), // 4: cs3.sharing.ocm.v1beta1.ShareKey + (*ShareId)(nil), // 5: cs3.sharing.ocm.v1beta1.ShareId + (*ShareReference)(nil), // 6: cs3.sharing.ocm.v1beta1.ShareReference + (*ShareGrant)(nil), // 7: cs3.sharing.ocm.v1beta1.ShareGrant + (*v1beta1.ResourceId)(nil), // 8: cs3.storage.provider.v1beta1.ResourceId + (*v1beta1.Grantee)(nil), // 9: cs3.storage.provider.v1beta1.Grantee + (*v1beta11.UserId)(nil), // 10: cs3.identity.user.v1beta1.UserId + (*v1beta12.Timestamp)(nil), // 11: cs3.types.v1beta1.Timestamp + (*v1beta1.ResourcePermissions)(nil), // 12: cs3.storage.provider.v1beta1.ResourcePermissions +} +var file_cs3_sharing_ocm_v1beta1_resources_proto_depIdxs = []int32{ + 5, // 0: cs3.sharing.ocm.v1beta1.Share.id:type_name -> cs3.sharing.ocm.v1beta1.ShareId + 8, // 1: cs3.sharing.ocm.v1beta1.Share.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 2, // 2: cs3.sharing.ocm.v1beta1.Share.permissions:type_name -> cs3.sharing.ocm.v1beta1.SharePermissions + 9, // 3: cs3.sharing.ocm.v1beta1.Share.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 10, // 4: cs3.sharing.ocm.v1beta1.Share.owner:type_name -> cs3.identity.user.v1beta1.UserId + 10, // 5: cs3.sharing.ocm.v1beta1.Share.creator:type_name -> cs3.identity.user.v1beta1.UserId + 11, // 6: cs3.sharing.ocm.v1beta1.Share.ctime:type_name -> cs3.types.v1beta1.Timestamp + 11, // 7: cs3.sharing.ocm.v1beta1.Share.mtime:type_name -> cs3.types.v1beta1.Timestamp + 12, // 8: cs3.sharing.ocm.v1beta1.SharePermissions.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions + 1, // 9: cs3.sharing.ocm.v1beta1.ReceivedShare.share:type_name -> cs3.sharing.ocm.v1beta1.Share + 0, // 10: cs3.sharing.ocm.v1beta1.ReceivedShare.state:type_name -> cs3.sharing.ocm.v1beta1.ShareState + 10, // 11: cs3.sharing.ocm.v1beta1.ShareKey.owner:type_name -> cs3.identity.user.v1beta1.UserId + 8, // 12: cs3.sharing.ocm.v1beta1.ShareKey.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 9, // 13: cs3.sharing.ocm.v1beta1.ShareKey.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 5, // 14: cs3.sharing.ocm.v1beta1.ShareReference.id:type_name -> cs3.sharing.ocm.v1beta1.ShareId + 4, // 15: cs3.sharing.ocm.v1beta1.ShareReference.key:type_name -> cs3.sharing.ocm.v1beta1.ShareKey + 9, // 16: cs3.sharing.ocm.v1beta1.ShareGrant.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 2, // 17: cs3.sharing.ocm.v1beta1.ShareGrant.permissions:type_name -> cs3.sharing.ocm.v1beta1.SharePermissions + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_cs3_sharing_ocm_v1beta1_resources_proto_init() } +func file_cs3_sharing_ocm_v1beta1_resources_proto_init() { + if File_cs3_sharing_ocm_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Share); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SharePermissions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReceivedShare); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareGrant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*ShareReference_Id)(nil), + (*ShareReference_Key)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_sharing_ocm_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_sharing_ocm_v1beta1_resources_proto_depIdxs, + EnumInfos: file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes, + MessageInfos: file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_sharing_ocm_v1beta1_resources_proto = out.File + file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc = nil + file_cs3_sharing_ocm_v1beta1_resources_proto_goTypes = nil + file_cs3_sharing_ocm_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..f4e9fad4 --- /dev/null +++ b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go @@ -0,0 +1,24 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/sharing/ocm/v1beta1/resources.proto + +package ocmv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go new file mode 100644 index 00000000..563ae4ec --- /dev/null +++ b/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go @@ -0,0 +1,6205 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/storage/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + context "context" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GetHomeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *GetHomeRequest) Reset() { + *x = GetHomeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetHomeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetHomeRequest) ProtoMessage() {} + +func (x *GetHomeRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 GetHomeRequest.ProtoReflect.Descriptor instead. +func (*GetHomeRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} +} + +func (x *GetHomeRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetHomeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The path to the home in a storage provider. + // For example /eos/user/h/hugo in the storage provider with root path /eos/user/. + Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` +} + +func (x *GetHomeResponse) Reset() { + *x = GetHomeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetHomeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetHomeResponse) ProtoMessage() {} + +func (x *GetHomeResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 GetHomeResponse.ProtoReflect.Descriptor instead. +func (*GetHomeResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} +} + +func (x *GetHomeResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetHomeResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetHomeResponse) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +type AddGrantRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The grant to be added. + Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` +} + +func (x *AddGrantRequest) Reset() { + *x = AddGrantRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddGrantRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddGrantRequest) ProtoMessage() {} + +func (x *AddGrantRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 AddGrantRequest.ProtoReflect.Descriptor instead. +func (*AddGrantRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{2} +} + +func (x *AddGrantRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *AddGrantRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *AddGrantRequest) GetGrant() *Grant { + if x != nil { + return x.Grant + } + return nil +} + +type AddGrantResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *AddGrantResponse) Reset() { + *x = AddGrantResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddGrantResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddGrantResponse) ProtoMessage() {} + +func (x *AddGrantResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 AddGrantResponse.ProtoReflect.Descriptor instead. +func (*AddGrantResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{3} +} + +func (x *AddGrantResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *AddGrantResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CreateContainerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *CreateContainerRequest) Reset() { + *x = CreateContainerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateContainerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateContainerRequest) ProtoMessage() {} + +func (x *CreateContainerRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 CreateContainerRequest.ProtoReflect.Descriptor instead. +func (*CreateContainerRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{4} +} + +func (x *CreateContainerRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateContainerRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +type CreateContainerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CreateContainerResponse) Reset() { + *x = CreateContainerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateContainerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateContainerResponse) ProtoMessage() {} + +func (x *CreateContainerResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 CreateContainerResponse.ProtoReflect.Descriptor instead. +func (*CreateContainerResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{5} +} + +func (x *CreateContainerResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateContainerResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type DeleteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *DeleteRequest) Reset() { + *x = DeleteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteRequest) ProtoMessage() {} + +func (x *DeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 DeleteRequest.ProtoReflect.Descriptor instead. +func (*DeleteRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{6} +} + +func (x *DeleteRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *DeleteRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +type DeleteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *DeleteResponse) Reset() { + *x = DeleteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteResponse) ProtoMessage() {} + +func (x *DeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 DeleteResponse.ProtoReflect.Descriptor instead. +func (*DeleteResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{7} +} + +func (x *DeleteResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *DeleteResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetPathRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The resource id of the resource. + ResourceId *ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` +} + +func (x *GetPathRequest) Reset() { + *x = GetPathRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPathRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPathRequest) ProtoMessage() {} + +func (x *GetPathRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_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 GetPathRequest.ProtoReflect.Descriptor instead. +func (*GetPathRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{8} +} + +func (x *GetPathRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetPathRequest) GetResourceId() *ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +type GetPathResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The path of the resource. + Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` +} + +func (x *GetPathResponse) Reset() { + *x = GetPathResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetPathResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPathResponse) ProtoMessage() {} + +func (x *GetPathResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[9] + 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 GetPathResponse.ProtoReflect.Descriptor instead. +func (*GetPathResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{9} +} + +func (x *GetPathResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetPathResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetPathResponse) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +type GetQuotaRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *GetQuotaRequest) Reset() { + *x = GetQuotaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetQuotaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetQuotaRequest) ProtoMessage() {} + +func (x *GetQuotaRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[10] + 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 GetQuotaRequest.ProtoReflect.Descriptor instead. +func (*GetQuotaRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{10} +} + +func (x *GetQuotaRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetQuotaResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The total available bytes. + TotalBytes uint64 `protobuf:"varint,3,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` + // REQUIRED. + // The number of used bytes. + UsedBytes uint64 `protobuf:"varint,4,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"` +} + +func (x *GetQuotaResponse) Reset() { + *x = GetQuotaResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetQuotaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetQuotaResponse) ProtoMessage() {} + +func (x *GetQuotaResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[11] + 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 GetQuotaResponse.ProtoReflect.Descriptor instead. +func (*GetQuotaResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{11} +} + +func (x *GetQuotaResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetQuotaResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetQuotaResponse) GetTotalBytes() uint64 { + if x != nil { + return x.TotalBytes + } + return 0 +} + +func (x *GetQuotaResponse) GetUsedBytes() uint64 { + if x != nil { + return x.UsedBytes + } + return 0 +} + +type InitiateFileUploadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *InitiateFileUploadRequest) Reset() { + *x = InitiateFileUploadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateFileUploadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateFileUploadRequest) ProtoMessage() {} + +func (x *InitiateFileUploadRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[12] + 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 InitiateFileUploadRequest.ProtoReflect.Descriptor instead. +func (*InitiateFileUploadRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{12} +} + +func (x *InitiateFileUploadRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *InitiateFileUploadRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +type InitiateFileUploadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocols through which data can be uploaded. + Protocols []*FileUploadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` +} + +func (x *InitiateFileUploadResponse) Reset() { + *x = InitiateFileUploadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateFileUploadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateFileUploadResponse) ProtoMessage() {} + +func (x *InitiateFileUploadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[13] + 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 InitiateFileUploadResponse.ProtoReflect.Descriptor instead. +func (*InitiateFileUploadResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{13} +} + +func (x *InitiateFileUploadResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *InitiateFileUploadResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *InitiateFileUploadResponse) GetProtocols() []*FileUploadProtocol { + if x != nil { + return x.Protocols + } + return nil +} + +type InitiateFileDownloadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *InitiateFileDownloadRequest) Reset() { + *x = InitiateFileDownloadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateFileDownloadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateFileDownloadRequest) ProtoMessage() {} + +func (x *InitiateFileDownloadRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[14] + 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 InitiateFileDownloadRequest.ProtoReflect.Descriptor instead. +func (*InitiateFileDownloadRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{14} +} + +func (x *InitiateFileDownloadRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *InitiateFileDownloadRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +type InitiateFileDownloadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocols through which data can be downloaded. + Protocols []*FileDownloadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` +} + +func (x *InitiateFileDownloadResponse) Reset() { + *x = InitiateFileDownloadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateFileDownloadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateFileDownloadResponse) ProtoMessage() {} + +func (x *InitiateFileDownloadResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[15] + 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 InitiateFileDownloadResponse.ProtoReflect.Descriptor instead. +func (*InitiateFileDownloadResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{15} +} + +func (x *InitiateFileDownloadResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *InitiateFileDownloadResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *InitiateFileDownloadResponse) GetProtocols() []*FileDownloadProtocol { + if x != nil { + return x.Protocols + } + return nil +} + +type ListGrantsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *ListGrantsRequest) Reset() { + *x = ListGrantsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListGrantsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListGrantsRequest) ProtoMessage() {} + +func (x *ListGrantsRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[16] + 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 ListGrantsRequest.ProtoReflect.Descriptor instead. +func (*ListGrantsRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{16} +} + +func (x *ListGrantsRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListGrantsRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +type ListGrantsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The grants. + Grants []*Grant `protobuf:"bytes,3,rep,name=grants,proto3" json:"grants,omitempty"` +} + +func (x *ListGrantsResponse) Reset() { + *x = ListGrantsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListGrantsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListGrantsResponse) ProtoMessage() {} + +func (x *ListGrantsResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[17] + 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 ListGrantsResponse.ProtoReflect.Descriptor instead. +func (*ListGrantsResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{17} +} + +func (x *ListGrantsResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListGrantsResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListGrantsResponse) GetGrants() []*Grant { + if x != nil { + return x.Grants + } + return nil +} + +type ListContainerStreamRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // OPTIONAL. + // Arbitrary metadata be included with the resource. + // A key with the name '*' means to return all available arbitrary metadata. + ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` +} + +func (x *ListContainerStreamRequest) Reset() { + *x = ListContainerStreamRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListContainerStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListContainerStreamRequest) ProtoMessage() {} + +func (x *ListContainerStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[18] + 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 ListContainerStreamRequest.ProtoReflect.Descriptor instead. +func (*ListContainerStreamRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{18} +} + +func (x *ListContainerStreamRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListContainerStreamRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *ListContainerStreamRequest) GetArbitraryMetadataKeys() []string { + if x != nil { + return x.ArbitraryMetadataKeys + } + return nil +} + +type ListContainerStreamResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The resource information. + Info *ResourceInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` +} + +func (x *ListContainerStreamResponse) Reset() { + *x = ListContainerStreamResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListContainerStreamResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListContainerStreamResponse) ProtoMessage() {} + +func (x *ListContainerStreamResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[19] + 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 ListContainerStreamResponse.ProtoReflect.Descriptor instead. +func (*ListContainerStreamResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{19} +} + +func (x *ListContainerStreamResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListContainerStreamResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListContainerStreamResponse) GetInfo() *ResourceInfo { + if x != nil { + return x.Info + } + return nil +} + +type ListContainerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // OPTIONAL. + // Arbitrary metadata be included with the resource. + // A key with the name '*' means to return all available arbitrary metadata. + ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` +} + +func (x *ListContainerRequest) Reset() { + *x = ListContainerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListContainerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListContainerRequest) ProtoMessage() {} + +func (x *ListContainerRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[20] + 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 ListContainerRequest.ProtoReflect.Descriptor instead. +func (*ListContainerRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{20} +} + +func (x *ListContainerRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListContainerRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *ListContainerRequest) GetArbitraryMetadataKeys() []string { + if x != nil { + return x.ArbitraryMetadataKeys + } + return nil +} + +type ListContainerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of resource informations. + Infos []*ResourceInfo `protobuf:"bytes,3,rep,name=infos,proto3" json:"infos,omitempty"` +} + +func (x *ListContainerResponse) Reset() { + *x = ListContainerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListContainerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListContainerResponse) ProtoMessage() {} + +func (x *ListContainerResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[21] + 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 ListContainerResponse.ProtoReflect.Descriptor instead. +func (*ListContainerResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{21} +} + +func (x *ListContainerResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListContainerResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListContainerResponse) GetInfos() []*ResourceInfo { + if x != nil { + return x.Infos + } + return nil +} + +type ListFileVersionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *ListFileVersionsRequest) Reset() { + *x = ListFileVersionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListFileVersionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListFileVersionsRequest) ProtoMessage() {} + +func (x *ListFileVersionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[22] + 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 ListFileVersionsRequest.ProtoReflect.Descriptor instead. +func (*ListFileVersionsRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{22} +} + +func (x *ListFileVersionsRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListFileVersionsRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +type ListFileVersionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of file versions. + Versions []*FileVersion `protobuf:"bytes,3,rep,name=versions,proto3" json:"versions,omitempty"` +} + +func (x *ListFileVersionsResponse) Reset() { + *x = ListFileVersionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListFileVersionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListFileVersionsResponse) ProtoMessage() {} + +func (x *ListFileVersionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[23] + 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 ListFileVersionsResponse.ProtoReflect.Descriptor instead. +func (*ListFileVersionsResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{23} +} + +func (x *ListFileVersionsResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListFileVersionsResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListFileVersionsResponse) GetVersions() []*FileVersion { + if x != nil { + return x.Versions + } + return nil +} + +type ListRecycleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The start time range to query for recycle items. + // The value is the Unix Epoch timestamp in seconds. + FromTs *v1beta1.Timestamp `protobuf:"bytes,2,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The end time range to query for recycle items. + // The value is Unix Epoch timestamp in seconds. + ToTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` +} + +func (x *ListRecycleRequest) Reset() { + *x = ListRecycleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRecycleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecycleRequest) ProtoMessage() {} + +func (x *ListRecycleRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[24] + 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 ListRecycleRequest.ProtoReflect.Descriptor instead. +func (*ListRecycleRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{24} +} + +func (x *ListRecycleRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListRecycleRequest) GetFromTs() *v1beta1.Timestamp { + if x != nil { + return x.FromTs + } + return nil +} + +func (x *ListRecycleRequest) GetToTs() *v1beta1.Timestamp { + if x != nil { + return x.ToTs + } + return nil +} + +type ListRecycleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of recycle items. + RecycleItems []*RecycleItem `protobuf:"bytes,3,rep,name=recycle_items,json=recycleItems,proto3" json:"recycle_items,omitempty"` +} + +func (x *ListRecycleResponse) Reset() { + *x = ListRecycleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRecycleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecycleResponse) ProtoMessage() {} + +func (x *ListRecycleResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[25] + 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 ListRecycleResponse.ProtoReflect.Descriptor instead. +func (*ListRecycleResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{25} +} + +func (x *ListRecycleResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListRecycleResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListRecycleResponse) GetRecycleItems() []*RecycleItem { + if x != nil { + return x.RecycleItems + } + return nil +} + +type ListRecycleStreamRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The start time range to query for recycle items. + // The value is the Unix Epoch timestamp in seconds. + FromTs *v1beta1.Timestamp `protobuf:"bytes,2,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` + // OPTIONAL. + // SHOULD be specified. + // The end time range to query for recycle items. + // The value is Unix Epoch timestamp in seconds. + ToTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` +} + +func (x *ListRecycleStreamRequest) Reset() { + *x = ListRecycleStreamRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRecycleStreamRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecycleStreamRequest) ProtoMessage() {} + +func (x *ListRecycleStreamRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[26] + 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 ListRecycleStreamRequest.ProtoReflect.Descriptor instead. +func (*ListRecycleStreamRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{26} +} + +func (x *ListRecycleStreamRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListRecycleStreamRequest) GetFromTs() *v1beta1.Timestamp { + if x != nil { + return x.FromTs + } + return nil +} + +func (x *ListRecycleStreamRequest) GetToTs() *v1beta1.Timestamp { + if x != nil { + return x.ToTs + } + return nil +} + +type ListRecycleStreamResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The recycle items. + RecycleItem *RecycleItem `protobuf:"bytes,3,opt,name=recycle_item,json=recycleItem,proto3" json:"recycle_item,omitempty"` +} + +func (x *ListRecycleStreamResponse) Reset() { + *x = ListRecycleStreamResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRecycleStreamResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecycleStreamResponse) ProtoMessage() {} + +func (x *ListRecycleStreamResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[27] + 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 ListRecycleStreamResponse.ProtoReflect.Descriptor instead. +func (*ListRecycleStreamResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{27} +} + +func (x *ListRecycleStreamResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListRecycleStreamResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListRecycleStreamResponse) GetRecycleItem() *RecycleItem { + if x != nil { + return x.RecycleItem + } + return nil +} + +type MoveRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The source reference the resource is moved from. + Source *Reference `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + // REQUIRED. + // The destination reference the resource is moved to. + Destination *Reference `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"` +} + +func (x *MoveRequest) Reset() { + *x = MoveRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MoveRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MoveRequest) ProtoMessage() {} + +func (x *MoveRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[28] + 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 MoveRequest.ProtoReflect.Descriptor instead. +func (*MoveRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{28} +} + +func (x *MoveRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *MoveRequest) GetSource() *Reference { + if x != nil { + return x.Source + } + return nil +} + +func (x *MoveRequest) GetDestination() *Reference { + if x != nil { + return x.Destination + } + return nil +} + +type MoveResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *MoveResponse) Reset() { + *x = MoveResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MoveResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MoveResponse) ProtoMessage() {} + +func (x *MoveResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[29] + 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 MoveResponse.ProtoReflect.Descriptor instead. +func (*MoveResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{29} +} + +func (x *MoveResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *MoveResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type PurgeRecycleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *PurgeRecycleRequest) Reset() { + *x = PurgeRecycleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PurgeRecycleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurgeRecycleRequest) ProtoMessage() {} + +func (x *PurgeRecycleRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[30] + 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 PurgeRecycleRequest.ProtoReflect.Descriptor instead. +func (*PurgeRecycleRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{30} +} + +func (x *PurgeRecycleRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *PurgeRecycleRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +type PurgeRecycleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *PurgeRecycleResponse) Reset() { + *x = PurgeRecycleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PurgeRecycleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurgeRecycleResponse) ProtoMessage() {} + +func (x *PurgeRecycleResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[31] + 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 PurgeRecycleResponse.ProtoReflect.Descriptor instead. +func (*PurgeRecycleResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{31} +} + +func (x *PurgeRecycleResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *PurgeRecycleResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type RestoreFileVersionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The key to restore a specific file version. + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` +} + +func (x *RestoreFileVersionRequest) Reset() { + *x = RestoreFileVersionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RestoreFileVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RestoreFileVersionRequest) ProtoMessage() {} + +func (x *RestoreFileVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[32] + 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 RestoreFileVersionRequest.ProtoReflect.Descriptor instead. +func (*RestoreFileVersionRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{32} +} + +func (x *RestoreFileVersionRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *RestoreFileVersionRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *RestoreFileVersionRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +type RestoreFileVersionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *RestoreFileVersionResponse) Reset() { + *x = RestoreFileVersionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RestoreFileVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RestoreFileVersionResponse) ProtoMessage() {} + +func (x *RestoreFileVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[33] + 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 RestoreFileVersionResponse.ProtoReflect.Descriptor instead. +func (*RestoreFileVersionResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{33} +} + +func (x *RestoreFileVersionResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *RestoreFileVersionResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +// TODO: restore to original location if not specified as OPTIONAL? +type RestoreRecycleItemRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The key for the recycle item to be restored. + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // OPTIONAL. + // An optional restore path for the deleted resource. + // It can be useful to restore to another location rather than + // the original. + // If empty, service implementors MUST restore + // to original location if possible. + RestorePath string `protobuf:"bytes,4,opt,name=restore_path,json=restorePath,proto3" json:"restore_path,omitempty"` +} + +func (x *RestoreRecycleItemRequest) Reset() { + *x = RestoreRecycleItemRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RestoreRecycleItemRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RestoreRecycleItemRequest) ProtoMessage() {} + +func (x *RestoreRecycleItemRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[34] + 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 RestoreRecycleItemRequest.ProtoReflect.Descriptor instead. +func (*RestoreRecycleItemRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{34} +} + +func (x *RestoreRecycleItemRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *RestoreRecycleItemRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *RestoreRecycleItemRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *RestoreRecycleItemRequest) GetRestorePath() string { + if x != nil { + return x.RestorePath + } + return "" +} + +type RestoreRecycleItemResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *RestoreRecycleItemResponse) Reset() { + *x = RestoreRecycleItemResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RestoreRecycleItemResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RestoreRecycleItemResponse) ProtoMessage() {} + +func (x *RestoreRecycleItemResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[35] + 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 RestoreRecycleItemResponse.ProtoReflect.Descriptor instead. +func (*RestoreRecycleItemResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{35} +} + +func (x *RestoreRecycleItemResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *RestoreRecycleItemResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type RemoveGrantRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The grant to remove. + Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` +} + +func (x *RemoveGrantRequest) Reset() { + *x = RemoveGrantRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveGrantRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveGrantRequest) ProtoMessage() {} + +func (x *RemoveGrantRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[36] + 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 RemoveGrantRequest.ProtoReflect.Descriptor instead. +func (*RemoveGrantRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{36} +} + +func (x *RemoveGrantRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *RemoveGrantRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *RemoveGrantRequest) GetGrant() *Grant { + if x != nil { + return x.Grant + } + return nil +} + +type RemoveGrantResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *RemoveGrantResponse) Reset() { + *x = RemoveGrantResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveGrantResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveGrantResponse) ProtoMessage() {} + +func (x *RemoveGrantResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[37] + 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 RemoveGrantResponse.ProtoReflect.Descriptor instead. +func (*RemoveGrantResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{37} +} + +func (x *RemoveGrantResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *RemoveGrantResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type StatRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // OPTIONAL. + // Arbitrary metadata be included with the resource. + // A key with the name '*' means to return all available arbitrary metadata. + ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` +} + +func (x *StatRequest) Reset() { + *x = StatRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatRequest) ProtoMessage() {} + +func (x *StatRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[38] + 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 StatRequest.ProtoReflect.Descriptor instead. +func (*StatRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{38} +} + +func (x *StatRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *StatRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *StatRequest) GetArbitraryMetadataKeys() []string { + if x != nil { + return x.ArbitraryMetadataKeys + } + return nil +} + +type StatResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The resource information. + Info *ResourceInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` +} + +func (x *StatResponse) Reset() { + *x = StatResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatResponse) ProtoMessage() {} + +func (x *StatResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[39] + 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 StatResponse.ProtoReflect.Descriptor instead. +func (*StatResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{39} +} + +func (x *StatResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *StatResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *StatResponse) GetInfo() *ResourceInfo { + if x != nil { + return x.Info + } + return nil +} + +type UpdateGrantRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The grant to be updated. + Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` +} + +func (x *UpdateGrantRequest) Reset() { + *x = UpdateGrantRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateGrantRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateGrantRequest) ProtoMessage() {} + +func (x *UpdateGrantRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[40] + 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 UpdateGrantRequest.ProtoReflect.Descriptor instead. +func (*UpdateGrantRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{40} +} + +func (x *UpdateGrantRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UpdateGrantRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *UpdateGrantRequest) GetGrant() *Grant { + if x != nil { + return x.Grant + } + return nil +} + +type UpdateGrantResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *UpdateGrantResponse) Reset() { + *x = UpdateGrantResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateGrantResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateGrantResponse) ProtoMessage() {} + +func (x *UpdateGrantResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[41] + 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 UpdateGrantResponse.ProtoReflect.Descriptor instead. +func (*UpdateGrantResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{41} +} + +func (x *UpdateGrantResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *UpdateGrantResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CreateSymlinkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The location where to store the symlink. + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + // REQUIRED. + // The link target can hold arbitrary text; if later resolved, + // a relative link is interpreted in relation to its parent directory + Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` +} + +func (x *CreateSymlinkRequest) Reset() { + *x = CreateSymlinkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateSymlinkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSymlinkRequest) ProtoMessage() {} + +func (x *CreateSymlinkRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[42] + 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 CreateSymlinkRequest.ProtoReflect.Descriptor instead. +func (*CreateSymlinkRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{42} +} + +func (x *CreateSymlinkRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateSymlinkRequest) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *CreateSymlinkRequest) GetTarget() string { + if x != nil { + return x.Target + } + return "" +} + +type CreateSymlinkResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CreateSymlinkResponse) Reset() { + *x = CreateSymlinkResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateSymlinkResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSymlinkResponse) ProtoMessage() {} + +func (x *CreateSymlinkResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[43] + 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 CreateSymlinkResponse.ProtoReflect.Descriptor instead. +func (*CreateSymlinkResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{43} +} + +func (x *CreateSymlinkResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateSymlinkResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CreateReferenceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The location where to store the reference. + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + // REQUIRED. + // The reference resource by RFC3986. + TargetUri string `protobuf:"bytes,3,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"` +} + +func (x *CreateReferenceRequest) Reset() { + *x = CreateReferenceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateReferenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateReferenceRequest) ProtoMessage() {} + +func (x *CreateReferenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[44] + 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 CreateReferenceRequest.ProtoReflect.Descriptor instead. +func (*CreateReferenceRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{44} +} + +func (x *CreateReferenceRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *CreateReferenceRequest) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *CreateReferenceRequest) GetTargetUri() string { + if x != nil { + return x.TargetUri + } + return "" +} + +type CreateReferenceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CreateReferenceResponse) Reset() { + *x = CreateReferenceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateReferenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateReferenceResponse) ProtoMessage() {} + +func (x *CreateReferenceResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[45] + 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 CreateReferenceResponse.ProtoReflect.Descriptor instead. +func (*CreateReferenceResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{45} +} + +func (x *CreateReferenceResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateReferenceResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type SetArbitraryMetadataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The arbitrary metadata to add to the resource. + ArbitraryMetadata *ArbitraryMetadata `protobuf:"bytes,3,opt,name=arbitrary_metadata,json=arbitraryMetadata,proto3" json:"arbitrary_metadata,omitempty"` +} + +func (x *SetArbitraryMetadataRequest) Reset() { + *x = SetArbitraryMetadataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetArbitraryMetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetArbitraryMetadataRequest) ProtoMessage() {} + +func (x *SetArbitraryMetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[46] + 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 SetArbitraryMetadataRequest.ProtoReflect.Descriptor instead. +func (*SetArbitraryMetadataRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{46} +} + +func (x *SetArbitraryMetadataRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *SetArbitraryMetadataRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *SetArbitraryMetadataRequest) GetArbitraryMetadata() *ArbitraryMetadata { + if x != nil { + return x.ArbitraryMetadata + } + return nil +} + +type SetArbitraryMetadataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *SetArbitraryMetadataResponse) Reset() { + *x = SetArbitraryMetadataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetArbitraryMetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetArbitraryMetadataResponse) ProtoMessage() {} + +func (x *SetArbitraryMetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[47] + 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 SetArbitraryMetadataResponse.ProtoReflect.Descriptor instead. +func (*SetArbitraryMetadataResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{47} +} + +func (x *SetArbitraryMetadataResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *SetArbitraryMetadataResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type UnsetArbitraryMetadataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference to which the action should be performed. + Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The arbitrary metadata to delete. + ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` +} + +func (x *UnsetArbitraryMetadataRequest) Reset() { + *x = UnsetArbitraryMetadataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsetArbitraryMetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsetArbitraryMetadataRequest) ProtoMessage() {} + +func (x *UnsetArbitraryMetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[48] + 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 UnsetArbitraryMetadataRequest.ProtoReflect.Descriptor instead. +func (*UnsetArbitraryMetadataRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{48} +} + +func (x *UnsetArbitraryMetadataRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *UnsetArbitraryMetadataRequest) GetRef() *Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *UnsetArbitraryMetadataRequest) GetArbitraryMetadataKeys() []string { + if x != nil { + return x.ArbitraryMetadataKeys + } + return nil +} + +type UnsetArbitraryMetadataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *UnsetArbitraryMetadataResponse) Reset() { + *x = UnsetArbitraryMetadataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsetArbitraryMetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsetArbitraryMetadataResponse) ProtoMessage() {} + +func (x *UnsetArbitraryMetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[49] + 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 UnsetArbitraryMetadataResponse.ProtoReflect.Descriptor instead. +func (*UnsetArbitraryMetadataResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{49} +} + +func (x *UnsetArbitraryMetadataResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *UnsetArbitraryMetadataResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CreateHomeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CreateHomeRequest) Reset() { + *x = CreateHomeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateHomeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateHomeRequest) ProtoMessage() {} + +func (x *CreateHomeRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[50] + 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 CreateHomeRequest.ProtoReflect.Descriptor instead. +func (*CreateHomeRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{50} +} + +func (x *CreateHomeRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CreateHomeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CreateHomeResponse) Reset() { + *x = CreateHomeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateHomeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateHomeResponse) ProtoMessage() {} + +func (x *CreateHomeResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[51] + 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 CreateHomeResponse.ProtoReflect.Descriptor instead. +func (*CreateHomeResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{51} +} + +func (x *CreateHomeResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateHomeResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +var File_cs3_storage_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor + +var file_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x1c, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, + 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, + 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x0e, 0x47, 0x65, + 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, + 0x89, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0xba, 0x01, 0x0a, 0x0f, + 0x41, 0x64, 0x64, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x39, 0x0a, + 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, + 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x76, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x47, + 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x22, 0x86, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7d, 0x0a, 0x17, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x7d, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, + 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x74, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x8e, 0x01, + 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x89, + 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x44, 0x0a, 0x0f, 0x47, 0x65, + 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x22, 0xb6, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, + 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, + 0x75, 0x73, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x19, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, + 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xd0, 0x01, 0x0a, 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x55, + 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x09, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x1b, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, + 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xd4, 0x01, 0x0a, 0x1c, 0x49, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x22, 0x81, 0x01, + 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, + 0x66, 0x22, 0xb5, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x06, + 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, + 0x74, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x1a, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, + 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, + 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6b, 0x65, 0x79, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, + 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xc1, + 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, + 0x66, 0x6f, 0x22, 0xbc, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x72, 0x62, + 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x61, 0x72, 0x62, 0x69, + 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, + 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x40, 0x0a, 0x05, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x69, 0x6e, 0x66, 0x6f, + 0x73, 0x22, 0x87, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xc5, 0x01, 0x0a, 0x18, + 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x08, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, + 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x35, 0x0a, + 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, + 0x6f, 0x6d, 0x54, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x6f, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x04, 0x74, 0x6f, 0x54, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x69, + 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, + 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, + 0x65, 0x6d, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, + 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x54, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x6f, + 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x6f, 0x54, 0x73, 0x22, 0xcd, 0x01, + 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x4c, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, + 0x52, 0x0b, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x22, 0xcc, 0x01, + 0x0a, 0x0b, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, 0x0a, 0x0c, + 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x22, 0x83, 0x01, 0x0a, 0x13, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, + 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7a, 0x0a, 0x14, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, + 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, + 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x22, 0x80, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x22, 0xbe, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, + 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x50, 0x61, 0x74, 0x68, 0x22, 0x80, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xbd, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, + 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x39, 0x0a, 0x05, + 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x79, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x22, 0xb3, 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, + 0x12, 0x36, 0x0a, 0x17, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x15, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, + 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xbd, 0x01, + 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, + 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, + 0x65, 0x66, 0x12, 0x39, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x79, 0x0a, + 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x75, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, + 0x7b, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x7e, 0x0a, 0x16, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, + 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x22, 0x7d, 0x0a, 0x17, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xeb, 0x01, 0x0a, 0x1b, + 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x5e, 0x0a, 0x12, 0x61, 0x72, 0x62, + 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, + 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x82, 0x01, 0x0a, 0x1c, 0x53, 0x65, + 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc5, + 0x01, 0x0a, 0x1d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, + 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x36, + 0x0a, 0x17, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x15, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x1e, 0x55, 0x6e, 0x73, 0x65, 0x74, + 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x46, 0x0a, + 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x78, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, + 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x32, + 0xef, 0x18, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, + 0x69, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x61, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x0f, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x34, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x06, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x66, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, + 0x6f, 0x74, 0x61, 0x12, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, + 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x39, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, + 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, + 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0a, + 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, + 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8c, 0x01, + 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x78, 0x0a, 0x0d, + 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x32, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x46, + 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, + 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, + 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x30, 0x01, 0x12, 0x72, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, + 0x6c, 0x65, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 0x65, 0x12, + 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, + 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x61, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0c, 0x50, 0x75, + 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, + 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x72, + 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, + 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, + 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, + 0x65, 0x6d, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, + 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x29, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, + 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, + 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, + 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, + 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, + 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, + 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x07, 0x47, 0x65, 0x74, + 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x8b, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, + 0x50, 0xaa, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, + 0xca, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5c, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once + file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc +) + +func file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { + file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { + file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData) + }) + return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData +} + +var file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 52) +var file_cs3_storage_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ + (*GetHomeRequest)(nil), // 0: cs3.storage.provider.v1beta1.GetHomeRequest + (*GetHomeResponse)(nil), // 1: cs3.storage.provider.v1beta1.GetHomeResponse + (*AddGrantRequest)(nil), // 2: cs3.storage.provider.v1beta1.AddGrantRequest + (*AddGrantResponse)(nil), // 3: cs3.storage.provider.v1beta1.AddGrantResponse + (*CreateContainerRequest)(nil), // 4: cs3.storage.provider.v1beta1.CreateContainerRequest + (*CreateContainerResponse)(nil), // 5: cs3.storage.provider.v1beta1.CreateContainerResponse + (*DeleteRequest)(nil), // 6: cs3.storage.provider.v1beta1.DeleteRequest + (*DeleteResponse)(nil), // 7: cs3.storage.provider.v1beta1.DeleteResponse + (*GetPathRequest)(nil), // 8: cs3.storage.provider.v1beta1.GetPathRequest + (*GetPathResponse)(nil), // 9: cs3.storage.provider.v1beta1.GetPathResponse + (*GetQuotaRequest)(nil), // 10: cs3.storage.provider.v1beta1.GetQuotaRequest + (*GetQuotaResponse)(nil), // 11: cs3.storage.provider.v1beta1.GetQuotaResponse + (*InitiateFileUploadRequest)(nil), // 12: cs3.storage.provider.v1beta1.InitiateFileUploadRequest + (*InitiateFileUploadResponse)(nil), // 13: cs3.storage.provider.v1beta1.InitiateFileUploadResponse + (*InitiateFileDownloadRequest)(nil), // 14: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest + (*InitiateFileDownloadResponse)(nil), // 15: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse + (*ListGrantsRequest)(nil), // 16: cs3.storage.provider.v1beta1.ListGrantsRequest + (*ListGrantsResponse)(nil), // 17: cs3.storage.provider.v1beta1.ListGrantsResponse + (*ListContainerStreamRequest)(nil), // 18: cs3.storage.provider.v1beta1.ListContainerStreamRequest + (*ListContainerStreamResponse)(nil), // 19: cs3.storage.provider.v1beta1.ListContainerStreamResponse + (*ListContainerRequest)(nil), // 20: cs3.storage.provider.v1beta1.ListContainerRequest + (*ListContainerResponse)(nil), // 21: cs3.storage.provider.v1beta1.ListContainerResponse + (*ListFileVersionsRequest)(nil), // 22: cs3.storage.provider.v1beta1.ListFileVersionsRequest + (*ListFileVersionsResponse)(nil), // 23: cs3.storage.provider.v1beta1.ListFileVersionsResponse + (*ListRecycleRequest)(nil), // 24: cs3.storage.provider.v1beta1.ListRecycleRequest + (*ListRecycleResponse)(nil), // 25: cs3.storage.provider.v1beta1.ListRecycleResponse + (*ListRecycleStreamRequest)(nil), // 26: cs3.storage.provider.v1beta1.ListRecycleStreamRequest + (*ListRecycleStreamResponse)(nil), // 27: cs3.storage.provider.v1beta1.ListRecycleStreamResponse + (*MoveRequest)(nil), // 28: cs3.storage.provider.v1beta1.MoveRequest + (*MoveResponse)(nil), // 29: cs3.storage.provider.v1beta1.MoveResponse + (*PurgeRecycleRequest)(nil), // 30: cs3.storage.provider.v1beta1.PurgeRecycleRequest + (*PurgeRecycleResponse)(nil), // 31: cs3.storage.provider.v1beta1.PurgeRecycleResponse + (*RestoreFileVersionRequest)(nil), // 32: cs3.storage.provider.v1beta1.RestoreFileVersionRequest + (*RestoreFileVersionResponse)(nil), // 33: cs3.storage.provider.v1beta1.RestoreFileVersionResponse + (*RestoreRecycleItemRequest)(nil), // 34: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest + (*RestoreRecycleItemResponse)(nil), // 35: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse + (*RemoveGrantRequest)(nil), // 36: cs3.storage.provider.v1beta1.RemoveGrantRequest + (*RemoveGrantResponse)(nil), // 37: cs3.storage.provider.v1beta1.RemoveGrantResponse + (*StatRequest)(nil), // 38: cs3.storage.provider.v1beta1.StatRequest + (*StatResponse)(nil), // 39: cs3.storage.provider.v1beta1.StatResponse + (*UpdateGrantRequest)(nil), // 40: cs3.storage.provider.v1beta1.UpdateGrantRequest + (*UpdateGrantResponse)(nil), // 41: cs3.storage.provider.v1beta1.UpdateGrantResponse + (*CreateSymlinkRequest)(nil), // 42: cs3.storage.provider.v1beta1.CreateSymlinkRequest + (*CreateSymlinkResponse)(nil), // 43: cs3.storage.provider.v1beta1.CreateSymlinkResponse + (*CreateReferenceRequest)(nil), // 44: cs3.storage.provider.v1beta1.CreateReferenceRequest + (*CreateReferenceResponse)(nil), // 45: cs3.storage.provider.v1beta1.CreateReferenceResponse + (*SetArbitraryMetadataRequest)(nil), // 46: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest + (*SetArbitraryMetadataResponse)(nil), // 47: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse + (*UnsetArbitraryMetadataRequest)(nil), // 48: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest + (*UnsetArbitraryMetadataResponse)(nil), // 49: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse + (*CreateHomeRequest)(nil), // 50: cs3.storage.provider.v1beta1.CreateHomeRequest + (*CreateHomeResponse)(nil), // 51: cs3.storage.provider.v1beta1.CreateHomeResponse + (*v1beta1.Opaque)(nil), // 52: cs3.types.v1beta1.Opaque + (*v1beta11.Status)(nil), // 53: cs3.rpc.v1beta1.Status + (*Reference)(nil), // 54: cs3.storage.provider.v1beta1.Reference + (*Grant)(nil), // 55: cs3.storage.provider.v1beta1.Grant + (*ResourceId)(nil), // 56: cs3.storage.provider.v1beta1.ResourceId + (*FileUploadProtocol)(nil), // 57: cs3.storage.provider.v1beta1.FileUploadProtocol + (*FileDownloadProtocol)(nil), // 58: cs3.storage.provider.v1beta1.FileDownloadProtocol + (*ResourceInfo)(nil), // 59: cs3.storage.provider.v1beta1.ResourceInfo + (*FileVersion)(nil), // 60: cs3.storage.provider.v1beta1.FileVersion + (*v1beta1.Timestamp)(nil), // 61: cs3.types.v1beta1.Timestamp + (*RecycleItem)(nil), // 62: cs3.storage.provider.v1beta1.RecycleItem + (*ArbitraryMetadata)(nil), // 63: cs3.storage.provider.v1beta1.ArbitraryMetadata +} +var file_cs3_storage_provider_v1beta1_provider_api_proto_depIdxs = []int32{ + 52, // 0: cs3.storage.provider.v1beta1.GetHomeRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 53, // 1: cs3.storage.provider.v1beta1.GetHomeResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 2: cs3.storage.provider.v1beta1.GetHomeResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 3: cs3.storage.provider.v1beta1.AddGrantRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 4: cs3.storage.provider.v1beta1.AddGrantRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 55, // 5: cs3.storage.provider.v1beta1.AddGrantRequest.grant:type_name -> cs3.storage.provider.v1beta1.Grant + 53, // 6: cs3.storage.provider.v1beta1.AddGrantResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 7: cs3.storage.provider.v1beta1.AddGrantResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 8: cs3.storage.provider.v1beta1.CreateContainerRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 9: cs3.storage.provider.v1beta1.CreateContainerRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 10: cs3.storage.provider.v1beta1.CreateContainerResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 11: cs3.storage.provider.v1beta1.CreateContainerResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 12: cs3.storage.provider.v1beta1.DeleteRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 13: cs3.storage.provider.v1beta1.DeleteRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 14: cs3.storage.provider.v1beta1.DeleteResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 15: cs3.storage.provider.v1beta1.DeleteResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 16: cs3.storage.provider.v1beta1.GetPathRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 56, // 17: cs3.storage.provider.v1beta1.GetPathRequest.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 53, // 18: cs3.storage.provider.v1beta1.GetPathResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 19: cs3.storage.provider.v1beta1.GetPathResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 20: cs3.storage.provider.v1beta1.GetQuotaRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 53, // 21: cs3.storage.provider.v1beta1.GetQuotaResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 22: cs3.storage.provider.v1beta1.GetQuotaResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 23: cs3.storage.provider.v1beta1.InitiateFileUploadRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 24: cs3.storage.provider.v1beta1.InitiateFileUploadRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 25: cs3.storage.provider.v1beta1.InitiateFileUploadResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 26: cs3.storage.provider.v1beta1.InitiateFileUploadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 57, // 27: cs3.storage.provider.v1beta1.InitiateFileUploadResponse.protocols:type_name -> cs3.storage.provider.v1beta1.FileUploadProtocol + 52, // 28: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 29: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 30: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 31: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 58, // 32: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse.protocols:type_name -> cs3.storage.provider.v1beta1.FileDownloadProtocol + 52, // 33: cs3.storage.provider.v1beta1.ListGrantsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 34: cs3.storage.provider.v1beta1.ListGrantsRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 35: cs3.storage.provider.v1beta1.ListGrantsResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 36: cs3.storage.provider.v1beta1.ListGrantsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 55, // 37: cs3.storage.provider.v1beta1.ListGrantsResponse.grants:type_name -> cs3.storage.provider.v1beta1.Grant + 52, // 38: cs3.storage.provider.v1beta1.ListContainerStreamRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 39: cs3.storage.provider.v1beta1.ListContainerStreamRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 40: cs3.storage.provider.v1beta1.ListContainerStreamResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 41: cs3.storage.provider.v1beta1.ListContainerStreamResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 59, // 42: cs3.storage.provider.v1beta1.ListContainerStreamResponse.info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo + 52, // 43: cs3.storage.provider.v1beta1.ListContainerRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 44: cs3.storage.provider.v1beta1.ListContainerRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 45: cs3.storage.provider.v1beta1.ListContainerResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 46: cs3.storage.provider.v1beta1.ListContainerResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 59, // 47: cs3.storage.provider.v1beta1.ListContainerResponse.infos:type_name -> cs3.storage.provider.v1beta1.ResourceInfo + 52, // 48: cs3.storage.provider.v1beta1.ListFileVersionsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 49: cs3.storage.provider.v1beta1.ListFileVersionsRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 50: cs3.storage.provider.v1beta1.ListFileVersionsResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 51: cs3.storage.provider.v1beta1.ListFileVersionsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 60, // 52: cs3.storage.provider.v1beta1.ListFileVersionsResponse.versions:type_name -> cs3.storage.provider.v1beta1.FileVersion + 52, // 53: cs3.storage.provider.v1beta1.ListRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 61, // 54: cs3.storage.provider.v1beta1.ListRecycleRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp + 61, // 55: cs3.storage.provider.v1beta1.ListRecycleRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp + 53, // 56: cs3.storage.provider.v1beta1.ListRecycleResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 57: cs3.storage.provider.v1beta1.ListRecycleResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 62, // 58: cs3.storage.provider.v1beta1.ListRecycleResponse.recycle_items:type_name -> cs3.storage.provider.v1beta1.RecycleItem + 52, // 59: cs3.storage.provider.v1beta1.ListRecycleStreamRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 61, // 60: cs3.storage.provider.v1beta1.ListRecycleStreamRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp + 61, // 61: cs3.storage.provider.v1beta1.ListRecycleStreamRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp + 53, // 62: cs3.storage.provider.v1beta1.ListRecycleStreamResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 63: cs3.storage.provider.v1beta1.ListRecycleStreamResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 62, // 64: cs3.storage.provider.v1beta1.ListRecycleStreamResponse.recycle_item:type_name -> cs3.storage.provider.v1beta1.RecycleItem + 52, // 65: cs3.storage.provider.v1beta1.MoveRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 66: cs3.storage.provider.v1beta1.MoveRequest.source:type_name -> cs3.storage.provider.v1beta1.Reference + 54, // 67: cs3.storage.provider.v1beta1.MoveRequest.destination:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 68: cs3.storage.provider.v1beta1.MoveResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 69: cs3.storage.provider.v1beta1.MoveResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 70: cs3.storage.provider.v1beta1.PurgeRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 71: cs3.storage.provider.v1beta1.PurgeRecycleRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 72: cs3.storage.provider.v1beta1.PurgeRecycleResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 73: cs3.storage.provider.v1beta1.PurgeRecycleResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 74: cs3.storage.provider.v1beta1.RestoreFileVersionRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 75: cs3.storage.provider.v1beta1.RestoreFileVersionRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 76: cs3.storage.provider.v1beta1.RestoreFileVersionResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 77: cs3.storage.provider.v1beta1.RestoreFileVersionResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 78: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 79: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 80: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 81: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 82: cs3.storage.provider.v1beta1.RemoveGrantRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 83: cs3.storage.provider.v1beta1.RemoveGrantRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 55, // 84: cs3.storage.provider.v1beta1.RemoveGrantRequest.grant:type_name -> cs3.storage.provider.v1beta1.Grant + 53, // 85: cs3.storage.provider.v1beta1.RemoveGrantResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 86: cs3.storage.provider.v1beta1.RemoveGrantResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 87: cs3.storage.provider.v1beta1.StatRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 88: cs3.storage.provider.v1beta1.StatRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 89: cs3.storage.provider.v1beta1.StatResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 90: cs3.storage.provider.v1beta1.StatResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 59, // 91: cs3.storage.provider.v1beta1.StatResponse.info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo + 52, // 92: cs3.storage.provider.v1beta1.UpdateGrantRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 93: cs3.storage.provider.v1beta1.UpdateGrantRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 55, // 94: cs3.storage.provider.v1beta1.UpdateGrantRequest.grant:type_name -> cs3.storage.provider.v1beta1.Grant + 53, // 95: cs3.storage.provider.v1beta1.UpdateGrantResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 96: cs3.storage.provider.v1beta1.UpdateGrantResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 97: cs3.storage.provider.v1beta1.CreateSymlinkRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 53, // 98: cs3.storage.provider.v1beta1.CreateSymlinkResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 99: cs3.storage.provider.v1beta1.CreateSymlinkResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 100: cs3.storage.provider.v1beta1.CreateReferenceRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 53, // 101: cs3.storage.provider.v1beta1.CreateReferenceResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 102: cs3.storage.provider.v1beta1.CreateReferenceResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 103: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 104: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 63, // 105: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest.arbitrary_metadata:type_name -> cs3.storage.provider.v1beta1.ArbitraryMetadata + 53, // 106: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 107: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 108: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 54, // 109: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 53, // 110: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 111: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 52, // 112: cs3.storage.provider.v1beta1.CreateHomeRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 53, // 113: cs3.storage.provider.v1beta1.CreateHomeResponse.status:type_name -> cs3.rpc.v1beta1.Status + 52, // 114: cs3.storage.provider.v1beta1.CreateHomeResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 2, // 115: cs3.storage.provider.v1beta1.ProviderAPI.AddGrant:input_type -> cs3.storage.provider.v1beta1.AddGrantRequest + 4, // 116: cs3.storage.provider.v1beta1.ProviderAPI.CreateContainer:input_type -> cs3.storage.provider.v1beta1.CreateContainerRequest + 6, // 117: cs3.storage.provider.v1beta1.ProviderAPI.Delete:input_type -> cs3.storage.provider.v1beta1.DeleteRequest + 8, // 118: cs3.storage.provider.v1beta1.ProviderAPI.GetPath:input_type -> cs3.storage.provider.v1beta1.GetPathRequest + 10, // 119: cs3.storage.provider.v1beta1.ProviderAPI.GetQuota:input_type -> cs3.storage.provider.v1beta1.GetQuotaRequest + 14, // 120: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileDownload:input_type -> cs3.storage.provider.v1beta1.InitiateFileDownloadRequest + 12, // 121: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileUpload:input_type -> cs3.storage.provider.v1beta1.InitiateFileUploadRequest + 16, // 122: cs3.storage.provider.v1beta1.ProviderAPI.ListGrants:input_type -> cs3.storage.provider.v1beta1.ListGrantsRequest + 18, // 123: cs3.storage.provider.v1beta1.ProviderAPI.ListContainerStream:input_type -> cs3.storage.provider.v1beta1.ListContainerStreamRequest + 20, // 124: cs3.storage.provider.v1beta1.ProviderAPI.ListContainer:input_type -> cs3.storage.provider.v1beta1.ListContainerRequest + 22, // 125: cs3.storage.provider.v1beta1.ProviderAPI.ListFileVersions:input_type -> cs3.storage.provider.v1beta1.ListFileVersionsRequest + 26, // 126: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycleStream:input_type -> cs3.storage.provider.v1beta1.ListRecycleStreamRequest + 24, // 127: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycle:input_type -> cs3.storage.provider.v1beta1.ListRecycleRequest + 28, // 128: cs3.storage.provider.v1beta1.ProviderAPI.Move:input_type -> cs3.storage.provider.v1beta1.MoveRequest + 36, // 129: cs3.storage.provider.v1beta1.ProviderAPI.RemoveGrant:input_type -> cs3.storage.provider.v1beta1.RemoveGrantRequest + 30, // 130: cs3.storage.provider.v1beta1.ProviderAPI.PurgeRecycle:input_type -> cs3.storage.provider.v1beta1.PurgeRecycleRequest + 32, // 131: cs3.storage.provider.v1beta1.ProviderAPI.RestoreFileVersion:input_type -> cs3.storage.provider.v1beta1.RestoreFileVersionRequest + 34, // 132: cs3.storage.provider.v1beta1.ProviderAPI.RestoreRecycleItem:input_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemRequest + 38, // 133: cs3.storage.provider.v1beta1.ProviderAPI.Stat:input_type -> cs3.storage.provider.v1beta1.StatRequest + 40, // 134: cs3.storage.provider.v1beta1.ProviderAPI.UpdateGrant:input_type -> cs3.storage.provider.v1beta1.UpdateGrantRequest + 42, // 135: cs3.storage.provider.v1beta1.ProviderAPI.CreateSymlink:input_type -> cs3.storage.provider.v1beta1.CreateSymlinkRequest + 44, // 136: cs3.storage.provider.v1beta1.ProviderAPI.CreateReference:input_type -> cs3.storage.provider.v1beta1.CreateReferenceRequest + 46, // 137: cs3.storage.provider.v1beta1.ProviderAPI.SetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest + 48, // 138: cs3.storage.provider.v1beta1.ProviderAPI.UnsetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest + 50, // 139: cs3.storage.provider.v1beta1.ProviderAPI.CreateHome:input_type -> cs3.storage.provider.v1beta1.CreateHomeRequest + 0, // 140: cs3.storage.provider.v1beta1.ProviderAPI.GetHome:input_type -> cs3.storage.provider.v1beta1.GetHomeRequest + 3, // 141: cs3.storage.provider.v1beta1.ProviderAPI.AddGrant:output_type -> cs3.storage.provider.v1beta1.AddGrantResponse + 5, // 142: cs3.storage.provider.v1beta1.ProviderAPI.CreateContainer:output_type -> cs3.storage.provider.v1beta1.CreateContainerResponse + 7, // 143: cs3.storage.provider.v1beta1.ProviderAPI.Delete:output_type -> cs3.storage.provider.v1beta1.DeleteResponse + 9, // 144: cs3.storage.provider.v1beta1.ProviderAPI.GetPath:output_type -> cs3.storage.provider.v1beta1.GetPathResponse + 11, // 145: cs3.storage.provider.v1beta1.ProviderAPI.GetQuota:output_type -> cs3.storage.provider.v1beta1.GetQuotaResponse + 15, // 146: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileDownload:output_type -> cs3.storage.provider.v1beta1.InitiateFileDownloadResponse + 13, // 147: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileUpload:output_type -> cs3.storage.provider.v1beta1.InitiateFileUploadResponse + 17, // 148: cs3.storage.provider.v1beta1.ProviderAPI.ListGrants:output_type -> cs3.storage.provider.v1beta1.ListGrantsResponse + 19, // 149: cs3.storage.provider.v1beta1.ProviderAPI.ListContainerStream:output_type -> cs3.storage.provider.v1beta1.ListContainerStreamResponse + 21, // 150: cs3.storage.provider.v1beta1.ProviderAPI.ListContainer:output_type -> cs3.storage.provider.v1beta1.ListContainerResponse + 23, // 151: cs3.storage.provider.v1beta1.ProviderAPI.ListFileVersions:output_type -> cs3.storage.provider.v1beta1.ListFileVersionsResponse + 27, // 152: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycleStream:output_type -> cs3.storage.provider.v1beta1.ListRecycleStreamResponse + 25, // 153: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycle:output_type -> cs3.storage.provider.v1beta1.ListRecycleResponse + 29, // 154: cs3.storage.provider.v1beta1.ProviderAPI.Move:output_type -> cs3.storage.provider.v1beta1.MoveResponse + 37, // 155: cs3.storage.provider.v1beta1.ProviderAPI.RemoveGrant:output_type -> cs3.storage.provider.v1beta1.RemoveGrantResponse + 31, // 156: cs3.storage.provider.v1beta1.ProviderAPI.PurgeRecycle:output_type -> cs3.storage.provider.v1beta1.PurgeRecycleResponse + 33, // 157: cs3.storage.provider.v1beta1.ProviderAPI.RestoreFileVersion:output_type -> cs3.storage.provider.v1beta1.RestoreFileVersionResponse + 35, // 158: cs3.storage.provider.v1beta1.ProviderAPI.RestoreRecycleItem:output_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemResponse + 39, // 159: cs3.storage.provider.v1beta1.ProviderAPI.Stat:output_type -> cs3.storage.provider.v1beta1.StatResponse + 41, // 160: cs3.storage.provider.v1beta1.ProviderAPI.UpdateGrant:output_type -> cs3.storage.provider.v1beta1.UpdateGrantResponse + 43, // 161: cs3.storage.provider.v1beta1.ProviderAPI.CreateSymlink:output_type -> cs3.storage.provider.v1beta1.CreateSymlinkResponse + 45, // 162: cs3.storage.provider.v1beta1.ProviderAPI.CreateReference:output_type -> cs3.storage.provider.v1beta1.CreateReferenceResponse + 47, // 163: cs3.storage.provider.v1beta1.ProviderAPI.SetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse + 49, // 164: cs3.storage.provider.v1beta1.ProviderAPI.UnsetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse + 51, // 165: cs3.storage.provider.v1beta1.ProviderAPI.CreateHome:output_type -> cs3.storage.provider.v1beta1.CreateHomeResponse + 1, // 166: cs3.storage.provider.v1beta1.ProviderAPI.GetHome:output_type -> cs3.storage.provider.v1beta1.GetHomeResponse + 141, // [141:167] is the sub-list for method output_type + 115, // [115:141] is the sub-list for method input_type + 115, // [115:115] is the sub-list for extension type_name + 115, // [115:115] is the sub-list for extension extendee + 0, // [0:115] is the sub-list for field type_name +} + +func init() { file_cs3_storage_provider_v1beta1_provider_api_proto_init() } +func file_cs3_storage_provider_v1beta1_provider_api_proto_init() { + if File_cs3_storage_provider_v1beta1_provider_api_proto != nil { + return + } + file_cs3_storage_provider_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHomeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHomeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddGrantRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddGrantResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateContainerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateContainerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPathRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPathResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetQuotaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetQuotaResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateFileUploadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateFileUploadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateFileDownloadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateFileDownloadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListGrantsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListGrantsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListContainerStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListContainerStreamResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListContainerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListContainerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListFileVersionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListFileVersionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRecycleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRecycleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRecycleStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRecycleStreamResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MoveRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MoveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PurgeRecycleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PurgeRecycleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreFileVersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreFileVersionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreRecycleItemRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreRecycleItemResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveGrantRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveGrantResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateGrantRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateGrantResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateSymlinkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateSymlinkResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateReferenceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateReferenceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetArbitraryMetadataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetArbitraryMetadataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnsetArbitraryMetadataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnsetArbitraryMetadataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateHomeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateHomeResponse); 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_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 52, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_storage_provider_v1beta1_provider_api_proto_goTypes, + DependencyIndexes: file_cs3_storage_provider_v1beta1_provider_api_proto_depIdxs, + MessageInfos: file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes, + }.Build() + File_cs3_storage_provider_v1beta1_provider_api_proto = out.File + file_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc = nil + file_cs3_storage_provider_v1beta1_provider_api_proto_goTypes = nil + file_cs3_storage_provider_v1beta1_provider_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ProviderAPIClient is the client API for ProviderAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ProviderAPIClient interface { + // Adds a new grant for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + AddGrant(ctx context.Context, in *AddGrantRequest, opts ...grpc.CallOption) (*AddGrantResponse, error) + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error) + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(ctx context.Context, in *GetPathRequest, opts ...grpc.CallOption) (*GetPathResponse, error) + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*GetQuotaResponse, error) + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) + // Returns the list of grants for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...grpc.CallOption) (*ListGrantsResponse, error) + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListContainerStreamClient, error) + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(ctx context.Context, in *ListContainerRequest, opts ...grpc.CallOption) (*ListContainerResponse, error) + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...grpc.CallOption) (*ListFileVersionsResponse, error) + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListRecycleStreamClient, error) + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*ListRecycleResponse, error) + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(ctx context.Context, in *MoveRequest, opts ...grpc.CallOption) (*MoveResponse, error) + // Removes a grant for the provided reference. + // This is recursive and atomic for directories. Does not follow references. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if grant does not exist. + RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...grpc.CallOption) (*RemoveGrantResponse, error) + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*PurgeRecycleResponse, error) + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...grpc.CallOption) (*RestoreFileVersionResponse, error) + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...grpc.CallOption) (*RestoreRecycleItemResponse, error) + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) + // Updates an ACL for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. + UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...grpc.CallOption) (*UpdateGrantResponse, error) + // Creates a symlink to another resource. + CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...grpc.CallOption) (*CreateSymlinkResponse, error) + // Creates a reference to another resource in the same cluster or another domain (OCM shares). + // The references resource can be accessed by the protocol specificied in the request message. + CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...grpc.CallOption) (*CreateReferenceResponse, error) + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*SetArbitraryMetadataResponse, error) + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*UnsetArbitraryMetadataResponse, error) + // Creates the home directory for a user. + CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...grpc.CallOption) (*CreateHomeResponse, error) + // Gets the home path for the user. + GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) +} + +type providerAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { + return &providerAPIClient{cc} +} + +func (c *providerAPIClient) AddGrant(ctx context.Context, in *AddGrantRequest, opts ...grpc.CallOption) (*AddGrantResponse, error) { + out := new(AddGrantResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error) { + out := new(CreateContainerResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateContainer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { + out := new(DeleteResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) GetPath(ctx context.Context, in *GetPathRequest, opts ...grpc.CallOption) (*GetPathResponse, error) { + out := new(GetPathResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/GetPath", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*GetQuotaResponse, error) { + out := new(GetQuotaResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/GetQuota", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) { + out := new(InitiateFileDownloadResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileDownload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) { + out := new(InitiateFileUploadResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileUpload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...grpc.CallOption) (*ListGrantsResponse, error) { + out := new(ListGrantsResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListGrants", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListContainerStreamClient, error) { + stream, err := c.cc.NewStream(ctx, &_ProviderAPI_serviceDesc.Streams[0], "/cs3.storage.provider.v1beta1.ProviderAPI/ListContainerStream", opts...) + if err != nil { + return nil, err + } + x := &providerAPIListContainerStreamClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ProviderAPI_ListContainerStreamClient interface { + Recv() (*ListContainerStreamResponse, error) + grpc.ClientStream +} + +type providerAPIListContainerStreamClient struct { + grpc.ClientStream +} + +func (x *providerAPIListContainerStreamClient) Recv() (*ListContainerStreamResponse, error) { + m := new(ListContainerStreamResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *providerAPIClient) ListContainer(ctx context.Context, in *ListContainerRequest, opts ...grpc.CallOption) (*ListContainerResponse, error) { + out := new(ListContainerResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListContainer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...grpc.CallOption) (*ListFileVersionsResponse, error) { + out := new(ListFileVersionsResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListFileVersions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListRecycleStreamClient, error) { + stream, err := c.cc.NewStream(ctx, &_ProviderAPI_serviceDesc.Streams[1], "/cs3.storage.provider.v1beta1.ProviderAPI/ListRecycleStream", opts...) + if err != nil { + return nil, err + } + x := &providerAPIListRecycleStreamClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ProviderAPI_ListRecycleStreamClient interface { + Recv() (*ListRecycleStreamResponse, error) + grpc.ClientStream +} + +type providerAPIListRecycleStreamClient struct { + grpc.ClientStream +} + +func (x *providerAPIListRecycleStreamClient) Recv() (*ListRecycleStreamResponse, error) { + m := new(ListRecycleStreamResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *providerAPIClient) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*ListRecycleResponse, error) { + out := new(ListRecycleResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListRecycle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) Move(ctx context.Context, in *MoveRequest, opts ...grpc.CallOption) (*MoveResponse, error) { + out := new(MoveResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/Move", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...grpc.CallOption) (*RemoveGrantResponse, error) { + out := new(RemoveGrantResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/RemoveGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*PurgeRecycleResponse, error) { + out := new(PurgeRecycleResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/PurgeRecycle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...grpc.CallOption) (*RestoreFileVersionResponse, error) { + out := new(RestoreFileVersionResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreFileVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...grpc.CallOption) (*RestoreRecycleItemResponse, error) { + out := new(RestoreRecycleItemResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreRecycleItem", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { + out := new(StatResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/Stat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...grpc.CallOption) (*UpdateGrantResponse, error) { + out := new(UpdateGrantResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/UpdateGrant", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...grpc.CallOption) (*CreateSymlinkResponse, error) { + out := new(CreateSymlinkResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateSymlink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...grpc.CallOption) (*CreateReferenceResponse, error) { + out := new(CreateReferenceResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateReference", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*SetArbitraryMetadataResponse, error) { + out := new(SetArbitraryMetadataResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/SetArbitraryMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*UnsetArbitraryMetadataResponse, error) { + out := new(UnsetArbitraryMetadataResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/UnsetArbitraryMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...grpc.CallOption) (*CreateHomeResponse, error) { + out := new(CreateHomeResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIClient) GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) { + out := new(GetHomeResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/GetHome", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProviderAPIServer is the server API for ProviderAPI service. +type ProviderAPIServer interface { + // Adds a new grant for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + AddGrant(context.Context, *AddGrantRequest) (*AddGrantResponse, error) + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(context.Context, *CreateContainerRequest) (*CreateContainerResponse, error) + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(context.Context, *GetPathRequest) (*GetPathResponse, error) + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error) + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(context.Context, *InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(context.Context, *InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) + // Returns the list of grants for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListGrants(context.Context, *ListGrantsRequest) (*ListGrantsResponse, error) + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(*ListContainerStreamRequest, ProviderAPI_ListContainerStreamServer) error + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(context.Context, *ListContainerRequest) (*ListContainerResponse, error) + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(context.Context, *ListFileVersionsRequest) (*ListFileVersionsResponse, error) + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(*ListRecycleStreamRequest, ProviderAPI_ListRecycleStreamServer) error + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(context.Context, *ListRecycleRequest) (*ListRecycleResponse, error) + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(context.Context, *MoveRequest) (*MoveResponse, error) + // Removes a grant for the provided reference. + // This is recursive and atomic for directories. Does not follow references. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if grant does not exist. + RemoveGrant(context.Context, *RemoveGrantRequest) (*RemoveGrantResponse, error) + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(context.Context, *PurgeRecycleRequest) (*PurgeRecycleResponse, error) + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(context.Context, *RestoreFileVersionRequest) (*RestoreFileVersionResponse, error) + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(context.Context, *RestoreRecycleItemRequest) (*RestoreRecycleItemResponse, error) + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(context.Context, *StatRequest) (*StatResponse, error) + // Updates an ACL for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. + UpdateGrant(context.Context, *UpdateGrantRequest) (*UpdateGrantResponse, error) + // Creates a symlink to another resource. + CreateSymlink(context.Context, *CreateSymlinkRequest) (*CreateSymlinkResponse, error) + // Creates a reference to another resource in the same cluster or another domain (OCM shares). + // The references resource can be accessed by the protocol specificied in the request message. + CreateReference(context.Context, *CreateReferenceRequest) (*CreateReferenceResponse, error) + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + SetArbitraryMetadata(context.Context, *SetArbitraryMetadataRequest) (*SetArbitraryMetadataResponse, error) + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(context.Context, *UnsetArbitraryMetadataRequest) (*UnsetArbitraryMetadataResponse, error) + // Creates the home directory for a user. + CreateHome(context.Context, *CreateHomeRequest) (*CreateHomeResponse, error) + // Gets the home path for the user. + GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) +} + +// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. +type UnimplementedProviderAPIServer struct { +} + +func (*UnimplementedProviderAPIServer) AddGrant(context.Context, *AddGrantRequest) (*AddGrantResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddGrant not implemented") +} +func (*UnimplementedProviderAPIServer) CreateContainer(context.Context, *CreateContainerRequest) (*CreateContainerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateContainer not implemented") +} +func (*UnimplementedProviderAPIServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (*UnimplementedProviderAPIServer) GetPath(context.Context, *GetPathRequest) (*GetPathResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPath not implemented") +} +func (*UnimplementedProviderAPIServer) GetQuota(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetQuota not implemented") +} +func (*UnimplementedProviderAPIServer) InitiateFileDownload(context.Context, *InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InitiateFileDownload not implemented") +} +func (*UnimplementedProviderAPIServer) InitiateFileUpload(context.Context, *InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InitiateFileUpload not implemented") +} +func (*UnimplementedProviderAPIServer) ListGrants(context.Context, *ListGrantsRequest) (*ListGrantsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListGrants not implemented") +} +func (*UnimplementedProviderAPIServer) ListContainerStream(*ListContainerStreamRequest, ProviderAPI_ListContainerStreamServer) error { + return status.Errorf(codes.Unimplemented, "method ListContainerStream not implemented") +} +func (*UnimplementedProviderAPIServer) ListContainer(context.Context, *ListContainerRequest) (*ListContainerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListContainer not implemented") +} +func (*UnimplementedProviderAPIServer) ListFileVersions(context.Context, *ListFileVersionsRequest) (*ListFileVersionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListFileVersions not implemented") +} +func (*UnimplementedProviderAPIServer) ListRecycleStream(*ListRecycleStreamRequest, ProviderAPI_ListRecycleStreamServer) error { + return status.Errorf(codes.Unimplemented, "method ListRecycleStream not implemented") +} +func (*UnimplementedProviderAPIServer) ListRecycle(context.Context, *ListRecycleRequest) (*ListRecycleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListRecycle not implemented") +} +func (*UnimplementedProviderAPIServer) Move(context.Context, *MoveRequest) (*MoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") +} +func (*UnimplementedProviderAPIServer) RemoveGrant(context.Context, *RemoveGrantRequest) (*RemoveGrantResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveGrant not implemented") +} +func (*UnimplementedProviderAPIServer) PurgeRecycle(context.Context, *PurgeRecycleRequest) (*PurgeRecycleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeRecycle not implemented") +} +func (*UnimplementedProviderAPIServer) RestoreFileVersion(context.Context, *RestoreFileVersionRequest) (*RestoreFileVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestoreFileVersion not implemented") +} +func (*UnimplementedProviderAPIServer) RestoreRecycleItem(context.Context, *RestoreRecycleItemRequest) (*RestoreRecycleItemResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestoreRecycleItem not implemented") +} +func (*UnimplementedProviderAPIServer) Stat(context.Context, *StatRequest) (*StatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") +} +func (*UnimplementedProviderAPIServer) UpdateGrant(context.Context, *UpdateGrantRequest) (*UpdateGrantResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateGrant not implemented") +} +func (*UnimplementedProviderAPIServer) CreateSymlink(context.Context, *CreateSymlinkRequest) (*CreateSymlinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSymlink not implemented") +} +func (*UnimplementedProviderAPIServer) CreateReference(context.Context, *CreateReferenceRequest) (*CreateReferenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateReference not implemented") +} +func (*UnimplementedProviderAPIServer) SetArbitraryMetadata(context.Context, *SetArbitraryMetadataRequest) (*SetArbitraryMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetArbitraryMetadata not implemented") +} +func (*UnimplementedProviderAPIServer) UnsetArbitraryMetadata(context.Context, *UnsetArbitraryMetadataRequest) (*UnsetArbitraryMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnsetArbitraryMetadata not implemented") +} +func (*UnimplementedProviderAPIServer) CreateHome(context.Context, *CreateHomeRequest) (*CreateHomeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateHome not implemented") +} +func (*UnimplementedProviderAPIServer) GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented") +} + +func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { + s.RegisterService(&_ProviderAPI_serviceDesc, srv) +} + +func _ProviderAPI_AddGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddGrantRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).AddGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).AddGrant(ctx, req.(*AddGrantRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_CreateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateContainerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).CreateContainer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateContainer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).CreateContainer(ctx, req.(*CreateContainerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).Delete(ctx, req.(*DeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_GetPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPathRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).GetPath(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/GetPath", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).GetPath(ctx, req.(*GetPathRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_GetQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetQuotaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).GetQuota(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/GetQuota", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).GetQuota(ctx, req.(*GetQuotaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_InitiateFileDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InitiateFileDownloadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).InitiateFileDownload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileDownload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).InitiateFileDownload(ctx, req.(*InitiateFileDownloadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_InitiateFileUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InitiateFileUploadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).InitiateFileUpload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileUpload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).InitiateFileUpload(ctx, req.(*InitiateFileUploadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_ListGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListGrantsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).ListGrants(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListGrants", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).ListGrants(ctx, req.(*ListGrantsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_ListContainerStream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListContainerStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ProviderAPIServer).ListContainerStream(m, &providerAPIListContainerStreamServer{stream}) +} + +type ProviderAPI_ListContainerStreamServer interface { + Send(*ListContainerStreamResponse) error + grpc.ServerStream +} + +type providerAPIListContainerStreamServer struct { + grpc.ServerStream +} + +func (x *providerAPIListContainerStreamServer) Send(m *ListContainerStreamResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ProviderAPI_ListContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListContainerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).ListContainer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListContainer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).ListContainer(ctx, req.(*ListContainerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_ListFileVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListFileVersionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).ListFileVersions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListFileVersions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).ListFileVersions(ctx, req.(*ListFileVersionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_ListRecycleStream_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListRecycleStreamRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ProviderAPIServer).ListRecycleStream(m, &providerAPIListRecycleStreamServer{stream}) +} + +type ProviderAPI_ListRecycleStreamServer interface { + Send(*ListRecycleStreamResponse) error + grpc.ServerStream +} + +type providerAPIListRecycleStreamServer struct { + grpc.ServerStream +} + +func (x *providerAPIListRecycleStreamServer) Send(m *ListRecycleStreamResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ProviderAPI_ListRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRecycleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).ListRecycle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListRecycle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).ListRecycle(ctx, req.(*ListRecycleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).Move(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/Move", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).Move(ctx, req.(*MoveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_RemoveGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveGrantRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).RemoveGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/RemoveGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).RemoveGrant(ctx, req.(*RemoveGrantRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_PurgeRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PurgeRecycleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).PurgeRecycle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/PurgeRecycle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).PurgeRecycle(ctx, req.(*PurgeRecycleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_RestoreFileVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RestoreFileVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).RestoreFileVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreFileVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).RestoreFileVersion(ctx, req.(*RestoreFileVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_RestoreRecycleItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RestoreRecycleItemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).RestoreRecycleItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreRecycleItem", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).RestoreRecycleItem(ctx, req.(*RestoreRecycleItemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/Stat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).Stat(ctx, req.(*StatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_UpdateGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateGrantRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).UpdateGrant(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/UpdateGrant", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).UpdateGrant(ctx, req.(*UpdateGrantRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_CreateSymlink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSymlinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).CreateSymlink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateSymlink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).CreateSymlink(ctx, req.(*CreateSymlinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_CreateReference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateReferenceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).CreateReference(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateReference", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).CreateReference(ctx, req.(*CreateReferenceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_SetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetArbitraryMetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).SetArbitraryMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/SetArbitraryMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).SetArbitraryMetadata(ctx, req.(*SetArbitraryMetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_UnsetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnsetArbitraryMetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).UnsetArbitraryMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/UnsetArbitraryMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).UnsetArbitraryMetadata(ctx, req.(*UnsetArbitraryMetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_CreateHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateHomeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).CreateHome(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).CreateHome(ctx, req.(*CreateHomeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProviderAPI_GetHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetHomeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderAPIServer).GetHome(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/GetHome", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderAPIServer).GetHome(ctx, req.(*GetHomeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.storage.provider.v1beta1.ProviderAPI", + HandlerType: (*ProviderAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddGrant", + Handler: _ProviderAPI_AddGrant_Handler, + }, + { + MethodName: "CreateContainer", + Handler: _ProviderAPI_CreateContainer_Handler, + }, + { + MethodName: "Delete", + Handler: _ProviderAPI_Delete_Handler, + }, + { + MethodName: "GetPath", + Handler: _ProviderAPI_GetPath_Handler, + }, + { + MethodName: "GetQuota", + Handler: _ProviderAPI_GetQuota_Handler, + }, + { + MethodName: "InitiateFileDownload", + Handler: _ProviderAPI_InitiateFileDownload_Handler, + }, + { + MethodName: "InitiateFileUpload", + Handler: _ProviderAPI_InitiateFileUpload_Handler, + }, + { + MethodName: "ListGrants", + Handler: _ProviderAPI_ListGrants_Handler, + }, + { + MethodName: "ListContainer", + Handler: _ProviderAPI_ListContainer_Handler, + }, + { + MethodName: "ListFileVersions", + Handler: _ProviderAPI_ListFileVersions_Handler, + }, + { + MethodName: "ListRecycle", + Handler: _ProviderAPI_ListRecycle_Handler, + }, + { + MethodName: "Move", + Handler: _ProviderAPI_Move_Handler, + }, + { + MethodName: "RemoveGrant", + Handler: _ProviderAPI_RemoveGrant_Handler, + }, + { + MethodName: "PurgeRecycle", + Handler: _ProviderAPI_PurgeRecycle_Handler, + }, + { + MethodName: "RestoreFileVersion", + Handler: _ProviderAPI_RestoreFileVersion_Handler, + }, + { + MethodName: "RestoreRecycleItem", + Handler: _ProviderAPI_RestoreRecycleItem_Handler, + }, + { + MethodName: "Stat", + Handler: _ProviderAPI_Stat_Handler, + }, + { + MethodName: "UpdateGrant", + Handler: _ProviderAPI_UpdateGrant_Handler, + }, + { + MethodName: "CreateSymlink", + Handler: _ProviderAPI_CreateSymlink_Handler, + }, + { + MethodName: "CreateReference", + Handler: _ProviderAPI_CreateReference_Handler, + }, + { + MethodName: "SetArbitraryMetadata", + Handler: _ProviderAPI_SetArbitraryMetadata_Handler, + }, + { + MethodName: "UnsetArbitraryMetadata", + Handler: _ProviderAPI_UnsetArbitraryMetadata_Handler, + }, + { + MethodName: "CreateHome", + Handler: _ProviderAPI_CreateHome_Handler, + }, + { + MethodName: "GetHome", + Handler: _ProviderAPI_GetHome_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ListContainerStream", + Handler: _ProviderAPI_ListContainerStream_Handler, + ServerStreams: true, + }, + { + StreamName: "ListRecycleStream", + Handler: _ProviderAPI_ListRecycleStream_Handler, + ServerStreams: true, + }, + }, + Metadata: "cs3/storage/provider/v1beta1/provider_api.proto", +} diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go new file mode 100644 index 00000000..87b32482 --- /dev/null +++ b/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go @@ -0,0 +1,808 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/storage/provider/v1beta1/provider_api.proto + +package providerv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for ProviderAPI service + +func NewProviderAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for ProviderAPI service + +type ProviderAPIService interface { + // Adds a new grant for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + AddGrant(ctx context.Context, in *AddGrantRequest, opts ...client.CallOption) (*AddGrantResponse, error) + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...client.CallOption) (*CreateContainerResponse, error) + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(ctx context.Context, in *GetPathRequest, opts ...client.CallOption) (*GetPathResponse, error) + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*GetQuotaResponse, error) + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) + // Returns the list of grants for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...client.CallOption) (*ListGrantsResponse, error) + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...client.CallOption) (ProviderAPI_ListContainerStreamService, error) + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(ctx context.Context, in *ListContainerRequest, opts ...client.CallOption) (*ListContainerResponse, error) + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...client.CallOption) (*ListFileVersionsResponse, error) + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (ProviderAPI_ListRecycleStreamService, error) + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*ListRecycleResponse, error) + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(ctx context.Context, in *MoveRequest, opts ...client.CallOption) (*MoveResponse, error) + // Removes a grant for the provided reference. + // This is recursive and atomic for directories. Does not follow references. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if grant does not exist. + RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...client.CallOption) (*RemoveGrantResponse, error) + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*PurgeRecycleResponse, error) + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...client.CallOption) (*RestoreFileVersionResponse, error) + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...client.CallOption) (*RestoreRecycleItemResponse, error) + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(ctx context.Context, in *StatRequest, opts ...client.CallOption) (*StatResponse, error) + // Updates an ACL for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. + UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...client.CallOption) (*UpdateGrantResponse, error) + // Creates a symlink to another resource. + CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...client.CallOption) (*CreateSymlinkResponse, error) + // Creates a reference to another resource in the same cluster or another domain (OCM shares). + // The references resource can be accessed by the protocol specificied in the request message. + CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...client.CallOption) (*CreateReferenceResponse, error) + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...client.CallOption) (*SetArbitraryMetadataResponse, error) + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*UnsetArbitraryMetadataResponse, error) + // Creates the home directory for a user. + CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...client.CallOption) (*CreateHomeResponse, error) + // Gets the home path for the user. + GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) +} + +type providerAPIService struct { + c client.Client + name string +} + +func NewProviderAPIService(name string, c client.Client) ProviderAPIService { + return &providerAPIService{ + c: c, + name: name, + } +} + +func (c *providerAPIService) AddGrant(ctx context.Context, in *AddGrantRequest, opts ...client.CallOption) (*AddGrantResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.AddGrant", in) + out := new(AddGrantResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...client.CallOption) (*CreateContainerResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.CreateContainer", in) + out := new(CreateContainerResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.Delete", in) + out := new(DeleteResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) GetPath(ctx context.Context, in *GetPathRequest, opts ...client.CallOption) (*GetPathResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.GetPath", in) + out := new(GetPathResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*GetQuotaResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.GetQuota", in) + out := new(GetQuotaResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.InitiateFileDownload", in) + out := new(InitiateFileDownloadResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.InitiateFileUpload", in) + out := new(InitiateFileUploadResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...client.CallOption) (*ListGrantsResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.ListGrants", in) + out := new(ListGrantsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...client.CallOption) (ProviderAPI_ListContainerStreamService, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.ListContainerStream", &ListContainerStreamRequest{}) + stream, err := c.c.Stream(ctx, req, opts...) + if err != nil { + return nil, err + } + if err := stream.Send(in); err != nil { + return nil, err + } + return &providerAPIServiceListContainerStream{stream}, nil +} + +type ProviderAPI_ListContainerStreamService interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Recv() (*ListContainerStreamResponse, error) +} + +type providerAPIServiceListContainerStream struct { + stream client.Stream +} + +func (x *providerAPIServiceListContainerStream) Close() error { + return x.stream.Close() +} + +func (x *providerAPIServiceListContainerStream) Context() context.Context { + return x.stream.Context() +} + +func (x *providerAPIServiceListContainerStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *providerAPIServiceListContainerStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *providerAPIServiceListContainerStream) Recv() (*ListContainerStreamResponse, error) { + m := new(ListContainerStreamResponse) + err := x.stream.Recv(m) + if err != nil { + return nil, err + } + return m, nil +} + +func (c *providerAPIService) ListContainer(ctx context.Context, in *ListContainerRequest, opts ...client.CallOption) (*ListContainerResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.ListContainer", in) + out := new(ListContainerResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...client.CallOption) (*ListFileVersionsResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.ListFileVersions", in) + out := new(ListFileVersionsResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (ProviderAPI_ListRecycleStreamService, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.ListRecycleStream", &ListRecycleStreamRequest{}) + stream, err := c.c.Stream(ctx, req, opts...) + if err != nil { + return nil, err + } + if err := stream.Send(in); err != nil { + return nil, err + } + return &providerAPIServiceListRecycleStream{stream}, nil +} + +type ProviderAPI_ListRecycleStreamService interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Recv() (*ListRecycleStreamResponse, error) +} + +type providerAPIServiceListRecycleStream struct { + stream client.Stream +} + +func (x *providerAPIServiceListRecycleStream) Close() error { + return x.stream.Close() +} + +func (x *providerAPIServiceListRecycleStream) Context() context.Context { + return x.stream.Context() +} + +func (x *providerAPIServiceListRecycleStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *providerAPIServiceListRecycleStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *providerAPIServiceListRecycleStream) Recv() (*ListRecycleStreamResponse, error) { + m := new(ListRecycleStreamResponse) + err := x.stream.Recv(m) + if err != nil { + return nil, err + } + return m, nil +} + +func (c *providerAPIService) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*ListRecycleResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.ListRecycle", in) + out := new(ListRecycleResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) Move(ctx context.Context, in *MoveRequest, opts ...client.CallOption) (*MoveResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.Move", in) + out := new(MoveResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...client.CallOption) (*RemoveGrantResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.RemoveGrant", in) + out := new(RemoveGrantResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*PurgeRecycleResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.PurgeRecycle", in) + out := new(PurgeRecycleResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...client.CallOption) (*RestoreFileVersionResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.RestoreFileVersion", in) + out := new(RestoreFileVersionResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...client.CallOption) (*RestoreRecycleItemResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.RestoreRecycleItem", in) + out := new(RestoreRecycleItemResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) Stat(ctx context.Context, in *StatRequest, opts ...client.CallOption) (*StatResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.Stat", in) + out := new(StatResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...client.CallOption) (*UpdateGrantResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.UpdateGrant", in) + out := new(UpdateGrantResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...client.CallOption) (*CreateSymlinkResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.CreateSymlink", in) + out := new(CreateSymlinkResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...client.CallOption) (*CreateReferenceResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.CreateReference", in) + out := new(CreateReferenceResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...client.CallOption) (*SetArbitraryMetadataResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.SetArbitraryMetadata", in) + out := new(SetArbitraryMetadataResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*UnsetArbitraryMetadataResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.UnsetArbitraryMetadata", in) + out := new(UnsetArbitraryMetadataResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...client.CallOption) (*CreateHomeResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.CreateHome", in) + out := new(CreateHomeResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerAPIService) GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) { + req := c.c.NewRequest(c.name, "ProviderAPI.GetHome", in) + out := new(GetHomeResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for ProviderAPI service + +type ProviderAPIHandler interface { + // Adds a new grant for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + AddGrant(context.Context, *AddGrantRequest, *AddGrantResponse) error + // Creates a new resource of type container. + // MUST return CODE_PRECONDITION_FAILED if the container + // cannot be created at the specified reference. + CreateContainer(context.Context, *CreateContainerRequest, *CreateContainerResponse) error + // Deletes a resource. + // If a resource specifies the non-empty container (directory, ...), + // then the entire directory is deleted recursively. + // If a resource specifies a reference or symlink type, only the reference is removed (not the target). + // MUST return CODE_NOT_FOUND if the reference does not exist. + Delete(context.Context, *DeleteRequest, *DeleteResponse) error + // Returns the path reference for + // the provided resource id reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + GetPath(context.Context, *GetPathRequest, *GetPathResponse) error + // Returns the quota available under the provided + // reference. + // MUST return CODE_NOT_FOUND if the reference does not exist + // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. + GetQuota(context.Context, *GetQuotaRequest, *GetQuotaResponse) error + // Initiates the download of a file using an + // out-of-band data transfer mechanism. + InitiateFileDownload(context.Context, *InitiateFileDownloadRequest, *InitiateFileDownloadResponse) error + // Initiates the upload of a file using an + // out-of-band data transfer mechanism. + InitiateFileUpload(context.Context, *InitiateFileUploadRequest, *InitiateFileUploadResponse) error + // Returns the list of grants for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListGrants(context.Context, *ListGrantsRequest, *ListGrantsResponse) error + // Returns a stream of resource informations + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainerStream(context.Context, *ListContainerStreamRequest, ProviderAPI_ListContainerStreamStream) error + // Returns a list of resource information + // for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exists. + ListContainer(context.Context, *ListContainerRequest, *ListContainerResponse) error + // Returns a list of the versions for a resource of + // type file at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_OK and MUST return an empty list if no versions are available. + // TODO: What code if resource not of type file? + ListFileVersions(context.Context, *ListFileVersionsRequest, *ListFileVersionsResponse) error + // Returns a stream of recycle items for this storage provider. + ListRecycleStream(context.Context, *ListRecycleStreamRequest, ProviderAPI_ListRecycleStreamStream) error + // Returns a list of recycle items for this storage provider. + // MUST return CODE_OK and MUST return an empty list if no recycle items are available. + ListRecycle(context.Context, *ListRecycleRequest, *ListRecycleResponse) error + // Moves a resource from one reference to another. + // MUST return CODE_NOT_FOUND if any of the references do not exist. + // MUST return CODE_PRECONDITION_FAILED if the source reference + // cannot be moved to the destination reference. + Move(context.Context, *MoveRequest, *MoveResponse) error + // Removes a grant for the provided reference. + // This is recursive and atomic for directories. Does not follow references. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if grant does not exist. + RemoveGrant(context.Context, *RemoveGrantRequest, *RemoveGrantResponse) error + // Permanently removes a recycle item from the recycle. + // This operation is irrevocable. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + PurgeRecycle(context.Context, *PurgeRecycleRequest, *PurgeRecycleResponse) error + // Restores a file version for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_NOT_FOUND if the version does not exist. + RestoreFileVersion(context.Context, *RestoreFileVersionRequest, *RestoreFileVersionResponse) error + // Restores a recycle item from the recycle. + // MUST return CODE_NOT_FOUND if the recycle item id does not exist. + // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty + // and the recycle item cannot be restored to the restore_path. + RestoreRecycleItem(context.Context, *RestoreRecycleItemRequest, *RestoreRecycleItemResponse) error + // Returns the resource information at the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + Stat(context.Context, *StatRequest, *StatResponse) error + // Updates an ACL for the provided reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. + UpdateGrant(context.Context, *UpdateGrantRequest, *UpdateGrantResponse) error + // Creates a symlink to another resource. + CreateSymlink(context.Context, *CreateSymlinkRequest, *CreateSymlinkResponse) error + // Creates a reference to another resource in the same cluster or another domain (OCM shares). + // The references resource can be accessed by the protocol specificied in the request message. + CreateReference(context.Context, *CreateReferenceRequest, *CreateReferenceResponse) error + // Sets arbitrary metadata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + SetArbitraryMetadata(context.Context, *SetArbitraryMetadataRequest, *SetArbitraryMetadataResponse) error + // Unsets arbitrary metdata into a storage resource. + // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. + UnsetArbitraryMetadata(context.Context, *UnsetArbitraryMetadataRequest, *UnsetArbitraryMetadataResponse) error + // Creates the home directory for a user. + CreateHome(context.Context, *CreateHomeRequest, *CreateHomeResponse) error + // Gets the home path for the user. + GetHome(context.Context, *GetHomeRequest, *GetHomeResponse) error +} + +func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { + type providerAPI interface { + AddGrant(ctx context.Context, in *AddGrantRequest, out *AddGrantResponse) error + CreateContainer(ctx context.Context, in *CreateContainerRequest, out *CreateContainerResponse) error + Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error + GetPath(ctx context.Context, in *GetPathRequest, out *GetPathResponse) error + GetQuota(ctx context.Context, in *GetQuotaRequest, out *GetQuotaResponse) error + InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error + InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, out *InitiateFileUploadResponse) error + ListGrants(ctx context.Context, in *ListGrantsRequest, out *ListGrantsResponse) error + ListContainerStream(ctx context.Context, stream server.Stream) error + ListContainer(ctx context.Context, in *ListContainerRequest, out *ListContainerResponse) error + ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, out *ListFileVersionsResponse) error + ListRecycleStream(ctx context.Context, stream server.Stream) error + ListRecycle(ctx context.Context, in *ListRecycleRequest, out *ListRecycleResponse) error + Move(ctx context.Context, in *MoveRequest, out *MoveResponse) error + RemoveGrant(ctx context.Context, in *RemoveGrantRequest, out *RemoveGrantResponse) error + PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *PurgeRecycleResponse) error + RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, out *RestoreFileVersionResponse) error + RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, out *RestoreRecycleItemResponse) error + Stat(ctx context.Context, in *StatRequest, out *StatResponse) error + UpdateGrant(ctx context.Context, in *UpdateGrantRequest, out *UpdateGrantResponse) error + CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, out *CreateSymlinkResponse) error + CreateReference(ctx context.Context, in *CreateReferenceRequest, out *CreateReferenceResponse) error + SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, out *SetArbitraryMetadataResponse) error + UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, out *UnsetArbitraryMetadataResponse) error + CreateHome(ctx context.Context, in *CreateHomeRequest, out *CreateHomeResponse) error + GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error + } + type ProviderAPI struct { + providerAPI + } + h := &providerAPIHandler{hdlr} + return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) +} + +type providerAPIHandler struct { + ProviderAPIHandler +} + +func (h *providerAPIHandler) AddGrant(ctx context.Context, in *AddGrantRequest, out *AddGrantResponse) error { + return h.ProviderAPIHandler.AddGrant(ctx, in, out) +} + +func (h *providerAPIHandler) CreateContainer(ctx context.Context, in *CreateContainerRequest, out *CreateContainerResponse) error { + return h.ProviderAPIHandler.CreateContainer(ctx, in, out) +} + +func (h *providerAPIHandler) Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error { + return h.ProviderAPIHandler.Delete(ctx, in, out) +} + +func (h *providerAPIHandler) GetPath(ctx context.Context, in *GetPathRequest, out *GetPathResponse) error { + return h.ProviderAPIHandler.GetPath(ctx, in, out) +} + +func (h *providerAPIHandler) GetQuota(ctx context.Context, in *GetQuotaRequest, out *GetQuotaResponse) error { + return h.ProviderAPIHandler.GetQuota(ctx, in, out) +} + +func (h *providerAPIHandler) InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error { + return h.ProviderAPIHandler.InitiateFileDownload(ctx, in, out) +} + +func (h *providerAPIHandler) InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, out *InitiateFileUploadResponse) error { + return h.ProviderAPIHandler.InitiateFileUpload(ctx, in, out) +} + +func (h *providerAPIHandler) ListGrants(ctx context.Context, in *ListGrantsRequest, out *ListGrantsResponse) error { + return h.ProviderAPIHandler.ListGrants(ctx, in, out) +} + +func (h *providerAPIHandler) ListContainerStream(ctx context.Context, stream server.Stream) error { + m := new(ListContainerStreamRequest) + if err := stream.Recv(m); err != nil { + return err + } + return h.ProviderAPIHandler.ListContainerStream(ctx, m, &providerAPIListContainerStreamStream{stream}) +} + +type ProviderAPI_ListContainerStreamStream interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Send(*ListContainerStreamResponse) error +} + +type providerAPIListContainerStreamStream struct { + stream server.Stream +} + +func (x *providerAPIListContainerStreamStream) Close() error { + return x.stream.Close() +} + +func (x *providerAPIListContainerStreamStream) Context() context.Context { + return x.stream.Context() +} + +func (x *providerAPIListContainerStreamStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *providerAPIListContainerStreamStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *providerAPIListContainerStreamStream) Send(m *ListContainerStreamResponse) error { + return x.stream.Send(m) +} + +func (h *providerAPIHandler) ListContainer(ctx context.Context, in *ListContainerRequest, out *ListContainerResponse) error { + return h.ProviderAPIHandler.ListContainer(ctx, in, out) +} + +func (h *providerAPIHandler) ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, out *ListFileVersionsResponse) error { + return h.ProviderAPIHandler.ListFileVersions(ctx, in, out) +} + +func (h *providerAPIHandler) ListRecycleStream(ctx context.Context, stream server.Stream) error { + m := new(ListRecycleStreamRequest) + if err := stream.Recv(m); err != nil { + return err + } + return h.ProviderAPIHandler.ListRecycleStream(ctx, m, &providerAPIListRecycleStreamStream{stream}) +} + +type ProviderAPI_ListRecycleStreamStream interface { + Context() context.Context + SendMsg(interface{}) error + RecvMsg(interface{}) error + Close() error + Send(*ListRecycleStreamResponse) error +} + +type providerAPIListRecycleStreamStream struct { + stream server.Stream +} + +func (x *providerAPIListRecycleStreamStream) Close() error { + return x.stream.Close() +} + +func (x *providerAPIListRecycleStreamStream) Context() context.Context { + return x.stream.Context() +} + +func (x *providerAPIListRecycleStreamStream) SendMsg(m interface{}) error { + return x.stream.Send(m) +} + +func (x *providerAPIListRecycleStreamStream) RecvMsg(m interface{}) error { + return x.stream.Recv(m) +} + +func (x *providerAPIListRecycleStreamStream) Send(m *ListRecycleStreamResponse) error { + return x.stream.Send(m) +} + +func (h *providerAPIHandler) ListRecycle(ctx context.Context, in *ListRecycleRequest, out *ListRecycleResponse) error { + return h.ProviderAPIHandler.ListRecycle(ctx, in, out) +} + +func (h *providerAPIHandler) Move(ctx context.Context, in *MoveRequest, out *MoveResponse) error { + return h.ProviderAPIHandler.Move(ctx, in, out) +} + +func (h *providerAPIHandler) RemoveGrant(ctx context.Context, in *RemoveGrantRequest, out *RemoveGrantResponse) error { + return h.ProviderAPIHandler.RemoveGrant(ctx, in, out) +} + +func (h *providerAPIHandler) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *PurgeRecycleResponse) error { + return h.ProviderAPIHandler.PurgeRecycle(ctx, in, out) +} + +func (h *providerAPIHandler) RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, out *RestoreFileVersionResponse) error { + return h.ProviderAPIHandler.RestoreFileVersion(ctx, in, out) +} + +func (h *providerAPIHandler) RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, out *RestoreRecycleItemResponse) error { + return h.ProviderAPIHandler.RestoreRecycleItem(ctx, in, out) +} + +func (h *providerAPIHandler) Stat(ctx context.Context, in *StatRequest, out *StatResponse) error { + return h.ProviderAPIHandler.Stat(ctx, in, out) +} + +func (h *providerAPIHandler) UpdateGrant(ctx context.Context, in *UpdateGrantRequest, out *UpdateGrantResponse) error { + return h.ProviderAPIHandler.UpdateGrant(ctx, in, out) +} + +func (h *providerAPIHandler) CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, out *CreateSymlinkResponse) error { + return h.ProviderAPIHandler.CreateSymlink(ctx, in, out) +} + +func (h *providerAPIHandler) CreateReference(ctx context.Context, in *CreateReferenceRequest, out *CreateReferenceResponse) error { + return h.ProviderAPIHandler.CreateReference(ctx, in, out) +} + +func (h *providerAPIHandler) SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, out *SetArbitraryMetadataResponse) error { + return h.ProviderAPIHandler.SetArbitraryMetadata(ctx, in, out) +} + +func (h *providerAPIHandler) UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, out *UnsetArbitraryMetadataResponse) error { + return h.ProviderAPIHandler.UnsetArbitraryMetadata(ctx, in, out) +} + +func (h *providerAPIHandler) CreateHome(ctx context.Context, in *CreateHomeRequest, out *CreateHomeResponse) error { + return h.ProviderAPIHandler.CreateHome(ctx, in, out) +} + +func (h *providerAPIHandler) GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error { + return h.ProviderAPIHandler.GetHome(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go new file mode 100644 index 00000000..fffdd2a7 --- /dev/null +++ b/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go @@ -0,0 +1,2025 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/storage/provider/v1beta1/resources.proto + +package providerv1beta1 + +import ( + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The available types of resources. +type ResourceType int32 + +const ( + ResourceType_RESOURCE_TYPE_INVALID ResourceType = 0 + // The file type represents a type + // that holds arbitrary data. + // Service implementors usually map this type + // to files (local filesystem) or objects + // (Amazon S3). + ResourceType_RESOURCE_TYPE_FILE ResourceType = 1 + // The container type represents a type + // that can contain another types. + // Service implementors usually map this type + // to folders (local filesystem) or buckets + // (Amazon S3). + ResourceType_RESOURCE_TYPE_CONTAINER ResourceType = 2 + // This represents a reference type which points + // to another resource where client MAY be redirected. + // Client SHOULD use the ResourceInfo.target + // reference for a subsequent call. + ResourceType_RESOURCE_TYPE_REFERENCE ResourceType = 3 + // This represents a symbolic link type if the underlying + // storage system supports it. + // Symlink target SHOULD NOT be interpreted by the clients. + ResourceType_RESOURCE_TYPE_SYMLINK ResourceType = 4 + // Internal resource type for some specific resources inside + // a storage implementation. + // For example, this type could be used to represent + // a device file on a Linux filesystem. + // Another example could be to represent an ongoing upload, + // where an hypothetically user interface could show a loading icon + // on this type of resources until the upload operation is completed. + // Internal resources SHOULD NOT be moved to a different storage + // provider. + ResourceType_RESOURCE_TYPE_INTERNAL ResourceType = 5 +) + +// Enum value maps for ResourceType. +var ( + ResourceType_name = map[int32]string{ + 0: "RESOURCE_TYPE_INVALID", + 1: "RESOURCE_TYPE_FILE", + 2: "RESOURCE_TYPE_CONTAINER", + 3: "RESOURCE_TYPE_REFERENCE", + 4: "RESOURCE_TYPE_SYMLINK", + 5: "RESOURCE_TYPE_INTERNAL", + } + ResourceType_value = map[string]int32{ + "RESOURCE_TYPE_INVALID": 0, + "RESOURCE_TYPE_FILE": 1, + "RESOURCE_TYPE_CONTAINER": 2, + "RESOURCE_TYPE_REFERENCE": 3, + "RESOURCE_TYPE_SYMLINK": 4, + "RESOURCE_TYPE_INTERNAL": 5, + } +) + +func (x ResourceType) Enum() *ResourceType { + p := new(ResourceType) + *p = x + return p +} + +func (x ResourceType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceType) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[0].Descriptor() +} + +func (ResourceType) Type() protoreflect.EnumType { + return &file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[0] +} + +func (x ResourceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceType.Descriptor instead. +func (ResourceType) EnumDescriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +// The type of checksum to use. +type ResourceChecksumType int32 + +const ( + ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_INVALID ResourceChecksumType = 0 + // unset means no checksum is set. + ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_UNSET ResourceChecksumType = 1 + // Use Adler32 checksum. + ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_ADLER32 ResourceChecksumType = 2 + // Use MD5 checksum. + ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_MD5 ResourceChecksumType = 3 + // Use SHA-1 checksum. + ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_SHA1 ResourceChecksumType = 4 +) + +// Enum value maps for ResourceChecksumType. +var ( + ResourceChecksumType_name = map[int32]string{ + 0: "RESOURCE_CHECKSUM_TYPE_INVALID", + 1: "RESOURCE_CHECKSUM_TYPE_UNSET", + 2: "RESOURCE_CHECKSUM_TYPE_ADLER32", + 3: "RESOURCE_CHECKSUM_TYPE_MD5", + 4: "RESOURCE_CHECKSUM_TYPE_SHA1", + } + ResourceChecksumType_value = map[string]int32{ + "RESOURCE_CHECKSUM_TYPE_INVALID": 0, + "RESOURCE_CHECKSUM_TYPE_UNSET": 1, + "RESOURCE_CHECKSUM_TYPE_ADLER32": 2, + "RESOURCE_CHECKSUM_TYPE_MD5": 3, + "RESOURCE_CHECKSUM_TYPE_SHA1": 4, + } +) + +func (x ResourceChecksumType) Enum() *ResourceChecksumType { + p := new(ResourceChecksumType) + *p = x + return p +} + +func (x ResourceChecksumType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceChecksumType) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[1].Descriptor() +} + +func (ResourceChecksumType) Type() protoreflect.EnumType { + return &file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[1] +} + +func (x ResourceChecksumType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceChecksumType.Descriptor instead. +func (ResourceChecksumType) EnumDescriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +// The type of the grantee. +type GranteeType int32 + +const ( + GranteeType_GRANTEE_TYPE_INVALID GranteeType = 0 + // This type represents an individual. + GranteeType_GRANTEE_TYPE_USER GranteeType = 1 + // This type represents a group of individuals. + GranteeType_GRANTEE_TYPE_GROUP GranteeType = 2 +) + +// Enum value maps for GranteeType. +var ( + GranteeType_name = map[int32]string{ + 0: "GRANTEE_TYPE_INVALID", + 1: "GRANTEE_TYPE_USER", + 2: "GRANTEE_TYPE_GROUP", + } + GranteeType_value = map[string]int32{ + "GRANTEE_TYPE_INVALID": 0, + "GRANTEE_TYPE_USER": 1, + "GRANTEE_TYPE_GROUP": 2, + } +) + +func (x GranteeType) Enum() *GranteeType { + p := new(GranteeType) + *p = x + return p +} + +func (x GranteeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GranteeType) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[2].Descriptor() +} + +func (GranteeType) Type() protoreflect.EnumType { + return &file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[2] +} + +func (x GranteeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GranteeType.Descriptor instead. +func (GranteeType) EnumDescriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{2} +} + +// Represents the information (metadata) about +// a storage resource organized in a hierarchical namespace (file, directory/container, reference, symlink, ...). +type ResourceInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The type of the resource (container, file, ...) + // See the enum ResourceType for all possible types. + Type ResourceType `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceType" json:"type,omitempty"` + // REQUIRED. + // Opaque unique identifier of the resource. + Id *ResourceId `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + // REQUIRED. + // The data checksum for the file resource. + // For all other resources, the checksum is unset. + Checksum *ResourceChecksum `protobuf:"bytes,4,opt,name=checksum,proto3" json:"checksum,omitempty"` + // REQUIRED. + // As decribed in https://tools.ietf.org/html/rfc7232#section-2.3 + // For file resources, the etag must change if data or metadata changes. + // For container types, the etag must change if etag of any of the (indirectly) contained resources change. + // For reference types, the etag must change if etag of the target changes and the target is on the same storage provider. + // In all other cases the etag does not change. + Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"` + // REQUIRED. + // As described in [RFC 2015](https://tools.ietf.org/html/rfc2045#page-7) + MimeType string `protobuf:"bytes,6,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + // REQUIRED. + // Last modification time (mtime) of file or directory contents. + // For reference types this is NOT the mtime of the target. + Mtime *v1beta1.Timestamp `protobuf:"bytes,7,opt,name=mtime,proto3" json:"mtime,omitempty"` + // REQUIRED. + // The path for the resource. + // It MUST start with the slash character (/). + Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"` + // REQUIRED. + // The set of permissions for the resource effective for the authenticated user. + PermissionSet *ResourcePermissions `protobuf:"bytes,9,opt,name=permission_set,json=permissionSet,proto3" json:"permission_set,omitempty"` + // REQUIRED. + // The size of the resource in bytes (file size) + // TODO(moscicki): This is undefined for container type. + // Is the accounting recursive?, could it be set to 0 for directories if recursive not supported? use another field? + // TODO(moscicki): This needs to be defined also for other types (such as a symlink to a directory or file) + Size uint64 `protobuf:"varint,10,opt,name=size,proto3" json:"size,omitempty"` + // REQUIRED: + // Identifier of the owner of the resource. + Owner *v1beta11.UserId `protobuf:"bytes,11,opt,name=owner,proto3" json:"owner,omitempty"` + // REQUIRED if ResourceType is either RESOURCE_TYPE_SYMLINK or RESOURCE_TYPE_REFERENCE + Target string `protobuf:"bytes,12,opt,name=target,proto3" json:"target,omitempty"` + // OPTIONAL. + // Additional metadata attached to the resource. + // If resource type is RESOURCE_TYPE_REFERENCE it MUST + // be specified. + CanonicalMetadata *CanonicalMetadata `protobuf:"bytes,13,opt,name=canonical_metadata,json=canonicalMetadata,proto3" json:"canonical_metadata,omitempty"` + // OPTIONAL. + // Arbitrary metadata attached to a resource. + ArbitraryMetadata *ArbitraryMetadata `protobuf:"bytes,14,opt,name=arbitrary_metadata,json=arbitraryMetadata,proto3" json:"arbitrary_metadata,omitempty"` +} + +func (x *ResourceInfo) Reset() { + *x = ResourceInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceInfo) ProtoMessage() {} + +func (x *ResourceInfo) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceInfo.ProtoReflect.Descriptor instead. +func (*ResourceInfo) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *ResourceInfo) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ResourceInfo) GetType() ResourceType { + if x != nil { + return x.Type + } + return ResourceType_RESOURCE_TYPE_INVALID +} + +func (x *ResourceInfo) GetId() *ResourceId { + if x != nil { + return x.Id + } + return nil +} + +func (x *ResourceInfo) GetChecksum() *ResourceChecksum { + if x != nil { + return x.Checksum + } + return nil +} + +func (x *ResourceInfo) GetEtag() string { + if x != nil { + return x.Etag + } + return "" +} + +func (x *ResourceInfo) GetMimeType() string { + if x != nil { + return x.MimeType + } + return "" +} + +func (x *ResourceInfo) GetMtime() *v1beta1.Timestamp { + if x != nil { + return x.Mtime + } + return nil +} + +func (x *ResourceInfo) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *ResourceInfo) GetPermissionSet() *ResourcePermissions { + if x != nil { + return x.PermissionSet + } + return nil +} + +func (x *ResourceInfo) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *ResourceInfo) GetOwner() *v1beta11.UserId { + if x != nil { + return x.Owner + } + return nil +} + +func (x *ResourceInfo) GetTarget() string { + if x != nil { + return x.Target + } + return "" +} + +func (x *ResourceInfo) GetCanonicalMetadata() *CanonicalMetadata { + if x != nil { + return x.CanonicalMetadata + } + return nil +} + +func (x *ResourceInfo) GetArbitraryMetadata() *ArbitraryMetadata { + if x != nil { + return x.ArbitraryMetadata + } + return nil +} + +// CanonicalMetadata contains extra metadata +// attached to a resource. This message and the Opaque +// message differ in that Opaque allows service implementors +// to include any extra metadata in any format and most clients +// will ignore it. However, the CanonicalMetadata message +// contains well defined fileds that clients MUST understand if +// they are specified. +type CanonicalMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED if resource type is RESOURCE_TYPE_REFERENCE. + // The target reference the resource points to. + Target *Reference `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` +} + +func (x *CanonicalMetadata) Reset() { + *x = CanonicalMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CanonicalMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CanonicalMetadata) ProtoMessage() {} + +func (x *CanonicalMetadata) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 CanonicalMetadata.ProtoReflect.Descriptor instead. +func (*CanonicalMetadata) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *CanonicalMetadata) GetTarget() *Reference { + if x != nil { + return x.Target + } + return nil +} + +// Arbitrary metadata than can be set to the resource. +type ArbitraryMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata map[string]string `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ArbitraryMetadata) Reset() { + *x = ArbitraryMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArbitraryMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArbitraryMetadata) ProtoMessage() {} + +func (x *ArbitraryMetadata) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 ArbitraryMetadata.ProtoReflect.Descriptor instead. +func (*ArbitraryMetadata) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{2} +} + +func (x *ArbitraryMetadata) GetMetadata() map[string]string { + if x != nil { + return x.Metadata + } + return nil +} + +// The checksum to verify +// the integrity of a resource. +type ResourceChecksum struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The type of checksum to use. + // If no checksum is provided, + // type MUST be RESOURCE_CHECKSUM_TYPE_UNSET. + Type ResourceChecksumType `protobuf:"varint,1,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceChecksumType" json:"type,omitempty"` + // MUST be specified if type is not + // RESOURCE_CHECKSUM_TYPE_UNSET or type is not + // RESOURCE_CHECKSUM_TYPE_INVALID. + // MUST be the hexadecimal representation of the cheksum. + // The value is case-insensitive, so + // "1E603A8", "1e603a8" or "1e603A8" are the same. + Sum string `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"` +} + +func (x *ResourceChecksum) Reset() { + *x = ResourceChecksum{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceChecksum) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceChecksum) ProtoMessage() {} + +func (x *ResourceChecksum) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceChecksum.ProtoReflect.Descriptor instead. +func (*ResourceChecksum) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{3} +} + +func (x *ResourceChecksum) GetType() ResourceChecksumType { + if x != nil { + return x.Type + } + return ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_INVALID +} + +func (x *ResourceChecksum) GetSum() string { + if x != nil { + return x.Sum + } + return "" +} + +// When negotiating the user of checksum types +// between client and server, this structure +// defines the priority of the checksum. +// Priority 0 means highest priority. +type ResourceChecksumPriority struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type ResourceChecksumType `protobuf:"varint,1,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceChecksumType" json:"type,omitempty"` + Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` +} + +func (x *ResourceChecksumPriority) Reset() { + *x = ResourceChecksumPriority{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceChecksumPriority) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceChecksumPriority) ProtoMessage() {} + +func (x *ResourceChecksumPriority) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceChecksumPriority.ProtoReflect.Descriptor instead. +func (*ResourceChecksumPriority) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{4} +} + +func (x *ResourceChecksumPriority) GetType() ResourceChecksumType { + if x != nil { + return x.Type + } + return ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_INVALID +} + +func (x *ResourceChecksumPriority) GetPriority() uint32 { + if x != nil { + return x.Priority + } + return 0 +} + +// The mechanism to identify a resource +// in the storage provider namespace. Note that the path OR the resourceId must be specifed, not both. +type Reference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // One of the specifications MUST be specified. + // + // Types that are assignable to Spec: + // *Reference_Path + // *Reference_Id + Spec isReference_Spec `protobuf_oneof:"spec"` +} + +func (x *Reference) Reset() { + *x = Reference{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Reference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Reference) ProtoMessage() {} + +func (x *Reference) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 Reference.ProtoReflect.Descriptor instead. +func (*Reference) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{5} +} + +func (m *Reference) GetSpec() isReference_Spec { + if m != nil { + return m.Spec + } + return nil +} + +func (x *Reference) GetPath() string { + if x, ok := x.GetSpec().(*Reference_Path); ok { + return x.Path + } + return "" +} + +func (x *Reference) GetId() *ResourceId { + if x, ok := x.GetSpec().(*Reference_Id); ok { + return x.Id + } + return nil +} + +type isReference_Spec interface { + isReference_Spec() +} + +type Reference_Path struct { + // The path to the resource. + // MUST start with the slash character (/). + Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"` +} + +type Reference_Id struct { + // The id for the resource. + // MUST NOT start with the slash character (/). + Id *ResourceId `protobuf:"bytes,2,opt,name=id,proto3,oneof"` +} + +func (*Reference_Path) isReference_Spec() {} + +func (*Reference_Id) isReference_Spec() {} + +// A resource id identifies uniquely a +// resource in the storage provider namespace. +// A ResourceId MUST be unique in the storage provider. +type ResourceId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The storage id of the storage provider. + StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"` + // REQUIRED. + // The internal id used by service implementor to + // uniquely identity the resource in the internal + // implementation of the service. + OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` +} + +func (x *ResourceId) Reset() { + *x = ResourceId{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceId) ProtoMessage() {} + +func (x *ResourceId) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceId.ProtoReflect.Descriptor instead. +func (*ResourceId) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{6} +} + +func (x *ResourceId) GetStorageId() string { + if x != nil { + return x.StorageId + } + return "" +} + +func (x *ResourceId) GetOpaqueId() string { + if x != nil { + return x.OpaqueId + } + return "" +} + +// The representation of permissions attached to a resource. +type ResourcePermissions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AddGrant bool `protobuf:"varint,1,opt,name=add_grant,json=addGrant,proto3" json:"add_grant,omitempty"` + CreateContainer bool `protobuf:"varint,2,opt,name=create_container,json=createContainer,proto3" json:"create_container,omitempty"` + Delete bool `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"` + GetPath bool `protobuf:"varint,5,opt,name=get_path,json=getPath,proto3" json:"get_path,omitempty"` + GetQuota bool `protobuf:"varint,6,opt,name=get_quota,json=getQuota,proto3" json:"get_quota,omitempty"` + InitiateFileDownload bool `protobuf:"varint,7,opt,name=initiate_file_download,json=initiateFileDownload,proto3" json:"initiate_file_download,omitempty"` + InitiateFileUpload bool `protobuf:"varint,8,opt,name=initiate_file_upload,json=initiateFileUpload,proto3" json:"initiate_file_upload,omitempty"` + ListGrants bool `protobuf:"varint,9,opt,name=list_grants,json=listGrants,proto3" json:"list_grants,omitempty"` + ListContainer bool `protobuf:"varint,10,opt,name=list_container,json=listContainer,proto3" json:"list_container,omitempty"` + ListFileVersions bool `protobuf:"varint,11,opt,name=list_file_versions,json=listFileVersions,proto3" json:"list_file_versions,omitempty"` + ListRecycle bool `protobuf:"varint,12,opt,name=list_recycle,json=listRecycle,proto3" json:"list_recycle,omitempty"` + Move bool `protobuf:"varint,13,opt,name=move,proto3" json:"move,omitempty"` + RemoveGrant bool `protobuf:"varint,14,opt,name=remove_grant,json=removeGrant,proto3" json:"remove_grant,omitempty"` + PurgeRecycle bool `protobuf:"varint,15,opt,name=purge_recycle,json=purgeRecycle,proto3" json:"purge_recycle,omitempty"` + RestoreFileVersion bool `protobuf:"varint,16,opt,name=restore_file_version,json=restoreFileVersion,proto3" json:"restore_file_version,omitempty"` + RestoreRecycleItem bool `protobuf:"varint,17,opt,name=restore_recycle_item,json=restoreRecycleItem,proto3" json:"restore_recycle_item,omitempty"` + Stat bool `protobuf:"varint,18,opt,name=stat,proto3" json:"stat,omitempty"` + UpdateGrant bool `protobuf:"varint,19,opt,name=update_grant,json=updateGrant,proto3" json:"update_grant,omitempty"` +} + +func (x *ResourcePermissions) Reset() { + *x = ResourcePermissions{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourcePermissions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourcePermissions) ProtoMessage() {} + +func (x *ResourcePermissions) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourcePermissions.ProtoReflect.Descriptor instead. +func (*ResourcePermissions) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{7} +} + +func (x *ResourcePermissions) GetAddGrant() bool { + if x != nil { + return x.AddGrant + } + return false +} + +func (x *ResourcePermissions) GetCreateContainer() bool { + if x != nil { + return x.CreateContainer + } + return false +} + +func (x *ResourcePermissions) GetDelete() bool { + if x != nil { + return x.Delete + } + return false +} + +func (x *ResourcePermissions) GetGetPath() bool { + if x != nil { + return x.GetPath + } + return false +} + +func (x *ResourcePermissions) GetGetQuota() bool { + if x != nil { + return x.GetQuota + } + return false +} + +func (x *ResourcePermissions) GetInitiateFileDownload() bool { + if x != nil { + return x.InitiateFileDownload + } + return false +} + +func (x *ResourcePermissions) GetInitiateFileUpload() bool { + if x != nil { + return x.InitiateFileUpload + } + return false +} + +func (x *ResourcePermissions) GetListGrants() bool { + if x != nil { + return x.ListGrants + } + return false +} + +func (x *ResourcePermissions) GetListContainer() bool { + if x != nil { + return x.ListContainer + } + return false +} + +func (x *ResourcePermissions) GetListFileVersions() bool { + if x != nil { + return x.ListFileVersions + } + return false +} + +func (x *ResourcePermissions) GetListRecycle() bool { + if x != nil { + return x.ListRecycle + } + return false +} + +func (x *ResourcePermissions) GetMove() bool { + if x != nil { + return x.Move + } + return false +} + +func (x *ResourcePermissions) GetRemoveGrant() bool { + if x != nil { + return x.RemoveGrant + } + return false +} + +func (x *ResourcePermissions) GetPurgeRecycle() bool { + if x != nil { + return x.PurgeRecycle + } + return false +} + +func (x *ResourcePermissions) GetRestoreFileVersion() bool { + if x != nil { + return x.RestoreFileVersion + } + return false +} + +func (x *ResourcePermissions) GetRestoreRecycleItem() bool { + if x != nil { + return x.RestoreRecycleItem + } + return false +} + +func (x *ResourcePermissions) GetStat() bool { + if x != nil { + return x.Stat + } + return false +} + +func (x *ResourcePermissions) GetUpdateGrant() bool { + if x != nil { + return x.UpdateGrant + } + return false +} + +// A grant grants permissions +// to a resource to a grantee. +type Grant struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The grantee of the grant. + Grantee *Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` + // REQUIRED. + // The permissions for the grant. + Permissions *ResourcePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` +} + +func (x *Grant) Reset() { + *x = Grant{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Grant) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Grant) ProtoMessage() {} + +func (x *Grant) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_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 Grant.ProtoReflect.Descriptor instead. +func (*Grant) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{8} +} + +func (x *Grant) GetGrantee() *Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +func (x *Grant) GetPermissions() *ResourcePermissions { + if x != nil { + return x.Permissions + } + return nil +} + +// A grantee is the receiver of a grant. +type Grantee struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The type of the grantee. + Type GranteeType `protobuf:"varint,1,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.GranteeType" json:"type,omitempty"` + // The unique id for the grantee. + // For example, a group name, user name or uuid. + Id *v1beta11.UserId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // OPTIONAL. + // Opaque information such as UID or GID. + Opaque *v1beta1.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *Grantee) Reset() { + *x = Grantee{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Grantee) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Grantee) ProtoMessage() {} + +func (x *Grantee) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[9] + 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 Grantee.ProtoReflect.Descriptor instead. +func (*Grantee) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{9} +} + +func (x *Grantee) GetType() GranteeType { + if x != nil { + return x.Type + } + return GranteeType_GRANTEE_TYPE_INVALID +} + +func (x *Grantee) GetId() *v1beta11.UserId { + if x != nil { + return x.Id + } + return nil +} + +func (x *Grantee) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +// The information for a file version. +// TODO(labkode): make size and mtime OPTIONAL? +type FileVersion struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // MUST the specified. + // The key to identify the version. + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // REQUIRED. + // The size in bytes of the file version. + Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + // REQUIRED. + // The Unix Epoch timestamp in seconds. + Mtime uint64 `protobuf:"varint,5,opt,name=mtime,proto3" json:"mtime,omitempty"` +} + +func (x *FileVersion) Reset() { + *x = FileVersion{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileVersion) ProtoMessage() {} + +func (x *FileVersion) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[10] + 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 FileVersion.ProtoReflect.Descriptor instead. +func (*FileVersion) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{10} +} + +func (x *FileVersion) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FileVersion) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *FileVersion) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *FileVersion) GetMtime() uint64 { + if x != nil { + return x.Mtime + } + return 0 +} + +// A recycle item represents the information +// of a deleted resource. +type RecycleItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The type of the resource. + Type ResourceType `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceType" json:"type,omitempty"` + // REQUIRED. + // The key to identify the deleted resource. + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // REQUIRED. + // The original path of the deleted resource. + Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + // OPTIONAL. + // The size of the deleted resource. + Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` + // REQUIRED. + // The deletion time of the resource + // in Unix Epoch timestamp in seconds. + DeletionTime *v1beta1.Timestamp `protobuf:"bytes,6,opt,name=deletion_time,json=deletionTime,proto3" json:"deletion_time,omitempty"` +} + +func (x *RecycleItem) Reset() { + *x = RecycleItem{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RecycleItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecycleItem) ProtoMessage() {} + +func (x *RecycleItem) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[11] + 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 RecycleItem.ProtoReflect.Descriptor instead. +func (*RecycleItem) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{11} +} + +func (x *RecycleItem) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *RecycleItem) GetType() ResourceType { + if x != nil { + return x.Type + } + return ResourceType_RESOURCE_TYPE_INVALID +} + +func (x *RecycleItem) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *RecycleItem) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *RecycleItem) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *RecycleItem) GetDeletionTime() *v1beta1.Timestamp { + if x != nil { + return x.DeletionTime + } + return nil +} + +// A file upload protocol object stores information about +// uploading resources using a specific protocol. +type FileUploadProtocol struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocol to be followed. + Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` + // REQUIRED. + // The endpoint where to upload the data. + // The value MUST be a Uniform Resource Identifier (URI) + // as specified in RFC 3986. + UploadEndpoint string `protobuf:"bytes,3,opt,name=upload_endpoint,json=uploadEndpoint,proto3" json:"upload_endpoint,omitempty"` + // REQUIRED. + // List of available checksums + // the client can use when sending + // the file. + AvailableChecksums []*ResourceChecksumPriority `protobuf:"bytes,4,rep,name=available_checksums,json=availableChecksums,proto3" json:"available_checksums,omitempty"` + // REQUIRED. + // Tells to the gateway if the client should be exposed directly to the upload_endpoint. + Expose bool `protobuf:"varint,5,opt,name=expose,proto3" json:"expose,omitempty"` +} + +func (x *FileUploadProtocol) Reset() { + *x = FileUploadProtocol{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileUploadProtocol) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileUploadProtocol) ProtoMessage() {} + +func (x *FileUploadProtocol) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[12] + 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 FileUploadProtocol.ProtoReflect.Descriptor instead. +func (*FileUploadProtocol) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{12} +} + +func (x *FileUploadProtocol) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FileUploadProtocol) GetProtocol() string { + if x != nil { + return x.Protocol + } + return "" +} + +func (x *FileUploadProtocol) GetUploadEndpoint() string { + if x != nil { + return x.UploadEndpoint + } + return "" +} + +func (x *FileUploadProtocol) GetAvailableChecksums() []*ResourceChecksumPriority { + if x != nil { + return x.AvailableChecksums + } + return nil +} + +func (x *FileUploadProtocol) GetExpose() bool { + if x != nil { + return x.Expose + } + return false +} + +// A file download protocol object stores information about +// downloading resources using a specific protocol. +type FileDownloadProtocol struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The protocol to be followed. + Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` + // REQUIRED. + // The endpoint where to download the data. + // The value MUST be a Uniform Resource Identifier (URI) + // as specified in RFC 3986. + DownloadEndpoint string `protobuf:"bytes,3,opt,name=download_endpoint,json=downloadEndpoint,proto3" json:"download_endpoint,omitempty"` + // REQUIRED. + // Tells to the gateway if the client should be exposed directly to the download_endpoint. + Expose bool `protobuf:"varint,4,opt,name=expose,proto3" json:"expose,omitempty"` +} + +func (x *FileDownloadProtocol) Reset() { + *x = FileDownloadProtocol{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileDownloadProtocol) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileDownloadProtocol) ProtoMessage() {} + +func (x *FileDownloadProtocol) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[13] + 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 FileDownloadProtocol.ProtoReflect.Descriptor instead. +func (*FileDownloadProtocol) Descriptor() ([]byte, []int) { + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{13} +} + +func (x *FileDownloadProtocol) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *FileDownloadProtocol) GetProtocol() string { + if x != nil { + return x.Protocol + } + return "" +} + +func (x *FileDownloadProtocol) GetDownloadEndpoint() string { + if x != nil { + return x.DownloadEndpoint + } + return "" +} + +func (x *FileDownloadProtocol) GetExpose() bool { + if x != nil { + return x.Expose + } + return false +} + +var File_cs3_storage_provider_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_storage_provider_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, + 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x05, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x4a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, + 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x65, 0x74, 0x61, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x32, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, + 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x58, 0x0a, 0x0e, 0x70, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x5e, 0x0a, 0x12, 0x63, 0x61, 0x6e, 0x6f, + 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5e, 0x0a, 0x12, 0x61, 0x72, 0x62, 0x69, + 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x54, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x6f, + 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xab, + 0x01, 0x0a, 0x11, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x59, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, + 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6c, 0x0a, 0x10, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, + 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x7e, 0x0a, 0x18, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x50, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x65, 0x0a, 0x09, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x3a, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, + 0x63, 0x22, 0x48, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xa5, 0x05, 0x0a, 0x13, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x64, 0x64, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x12, 0x29, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x67, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1b, + 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x67, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x16, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x77, + 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, + 0x6c, 0x65, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, + 0x6f, 0x61, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, + 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6c, 0x69, + 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x6c, + 0x69, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x69, 0x73, + 0x74, 0x5f, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6d, 0x6f, 0x76, 0x65, + 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x72, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, + 0x79, 0x63, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x70, 0x75, 0x72, 0x67, + 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, + 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x74, + 0x65, 0x6d, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x74, 0x61, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, + 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x22, 0x9d, 0x01, 0x0a, 0x05, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3f, 0x0a, + 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x53, + 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0xae, 0x01, 0x0a, 0x07, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, + 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, + 0x6e, 0x74, 0x65, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x31, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x22, 0x7c, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6d, 0x74, 0x69, + 0x6d, 0x65, 0x22, 0xfd, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, + 0x65, 0x6d, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, + 0x41, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, + 0x6d, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x70, 0x6c, 0x6f, + 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0x67, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x50, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, + 0x70, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x70, 0x6f, + 0x73, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x14, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x45, + 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x73, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x2a, + 0xb2, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x52, + 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4c, + 0x45, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x45, 0x52, 0x10, 0x02, + 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x19, 0x0a, + 0x15, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x59, 0x4d, 0x4c, 0x49, 0x4e, 0x4b, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, + 0x41, 0x4c, 0x10, 0x05, 0x2a, 0xc1, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, + 0x1e, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, + 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, + 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x45, + 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x44, + 0x4c, 0x45, 0x52, 0x33, 0x32, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, 0x55, + 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x53, 0x4f, 0x55, + 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x53, 0x48, 0x41, 0x31, 0x10, 0x04, 0x2a, 0x56, 0x0a, 0x0b, 0x47, 0x72, 0x61, 0x6e, + 0x74, 0x65, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x52, 0x41, 0x4e, 0x54, + 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x15, 0x0a, 0x11, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x47, 0x52, 0x41, 0x4e, + 0x54, 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x02, + 0x42, 0x89, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x50, 0xaa, 0x02, + 0x1c, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, + 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5c, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_storage_provider_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_storage_provider_v1beta1_resources_proto_rawDescData = file_cs3_storage_provider_v1beta1_resources_proto_rawDesc +) + +func file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_storage_provider_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_storage_provider_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_provider_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_storage_provider_v1beta1_resources_proto_rawDescData +} + +var file_cs3_storage_provider_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_cs3_storage_provider_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_cs3_storage_provider_v1beta1_resources_proto_goTypes = []interface{}{ + (ResourceType)(0), // 0: cs3.storage.provider.v1beta1.ResourceType + (ResourceChecksumType)(0), // 1: cs3.storage.provider.v1beta1.ResourceChecksumType + (GranteeType)(0), // 2: cs3.storage.provider.v1beta1.GranteeType + (*ResourceInfo)(nil), // 3: cs3.storage.provider.v1beta1.ResourceInfo + (*CanonicalMetadata)(nil), // 4: cs3.storage.provider.v1beta1.CanonicalMetadata + (*ArbitraryMetadata)(nil), // 5: cs3.storage.provider.v1beta1.ArbitraryMetadata + (*ResourceChecksum)(nil), // 6: cs3.storage.provider.v1beta1.ResourceChecksum + (*ResourceChecksumPriority)(nil), // 7: cs3.storage.provider.v1beta1.ResourceChecksumPriority + (*Reference)(nil), // 8: cs3.storage.provider.v1beta1.Reference + (*ResourceId)(nil), // 9: cs3.storage.provider.v1beta1.ResourceId + (*ResourcePermissions)(nil), // 10: cs3.storage.provider.v1beta1.ResourcePermissions + (*Grant)(nil), // 11: cs3.storage.provider.v1beta1.Grant + (*Grantee)(nil), // 12: cs3.storage.provider.v1beta1.Grantee + (*FileVersion)(nil), // 13: cs3.storage.provider.v1beta1.FileVersion + (*RecycleItem)(nil), // 14: cs3.storage.provider.v1beta1.RecycleItem + (*FileUploadProtocol)(nil), // 15: cs3.storage.provider.v1beta1.FileUploadProtocol + (*FileDownloadProtocol)(nil), // 16: cs3.storage.provider.v1beta1.FileDownloadProtocol + nil, // 17: cs3.storage.provider.v1beta1.ArbitraryMetadata.MetadataEntry + (*v1beta1.Opaque)(nil), // 18: cs3.types.v1beta1.Opaque + (*v1beta1.Timestamp)(nil), // 19: cs3.types.v1beta1.Timestamp + (*v1beta11.UserId)(nil), // 20: cs3.identity.user.v1beta1.UserId +} +var file_cs3_storage_provider_v1beta1_resources_proto_depIdxs = []int32{ + 18, // 0: cs3.storage.provider.v1beta1.ResourceInfo.opaque:type_name -> cs3.types.v1beta1.Opaque + 0, // 1: cs3.storage.provider.v1beta1.ResourceInfo.type:type_name -> cs3.storage.provider.v1beta1.ResourceType + 9, // 2: cs3.storage.provider.v1beta1.ResourceInfo.id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 6, // 3: cs3.storage.provider.v1beta1.ResourceInfo.checksum:type_name -> cs3.storage.provider.v1beta1.ResourceChecksum + 19, // 4: cs3.storage.provider.v1beta1.ResourceInfo.mtime:type_name -> cs3.types.v1beta1.Timestamp + 10, // 5: cs3.storage.provider.v1beta1.ResourceInfo.permission_set:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions + 20, // 6: cs3.storage.provider.v1beta1.ResourceInfo.owner:type_name -> cs3.identity.user.v1beta1.UserId + 4, // 7: cs3.storage.provider.v1beta1.ResourceInfo.canonical_metadata:type_name -> cs3.storage.provider.v1beta1.CanonicalMetadata + 5, // 8: cs3.storage.provider.v1beta1.ResourceInfo.arbitrary_metadata:type_name -> cs3.storage.provider.v1beta1.ArbitraryMetadata + 8, // 9: cs3.storage.provider.v1beta1.CanonicalMetadata.target:type_name -> cs3.storage.provider.v1beta1.Reference + 17, // 10: cs3.storage.provider.v1beta1.ArbitraryMetadata.metadata:type_name -> cs3.storage.provider.v1beta1.ArbitraryMetadata.MetadataEntry + 1, // 11: cs3.storage.provider.v1beta1.ResourceChecksum.type:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumType + 1, // 12: cs3.storage.provider.v1beta1.ResourceChecksumPriority.type:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumType + 9, // 13: cs3.storage.provider.v1beta1.Reference.id:type_name -> cs3.storage.provider.v1beta1.ResourceId + 12, // 14: cs3.storage.provider.v1beta1.Grant.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 10, // 15: cs3.storage.provider.v1beta1.Grant.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions + 2, // 16: cs3.storage.provider.v1beta1.Grantee.type:type_name -> cs3.storage.provider.v1beta1.GranteeType + 20, // 17: cs3.storage.provider.v1beta1.Grantee.id:type_name -> cs3.identity.user.v1beta1.UserId + 18, // 18: cs3.storage.provider.v1beta1.Grantee.opaque:type_name -> cs3.types.v1beta1.Opaque + 18, // 19: cs3.storage.provider.v1beta1.FileVersion.opaque:type_name -> cs3.types.v1beta1.Opaque + 18, // 20: cs3.storage.provider.v1beta1.RecycleItem.opaque:type_name -> cs3.types.v1beta1.Opaque + 0, // 21: cs3.storage.provider.v1beta1.RecycleItem.type:type_name -> cs3.storage.provider.v1beta1.ResourceType + 19, // 22: cs3.storage.provider.v1beta1.RecycleItem.deletion_time:type_name -> cs3.types.v1beta1.Timestamp + 18, // 23: cs3.storage.provider.v1beta1.FileUploadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 24: cs3.storage.provider.v1beta1.FileUploadProtocol.available_checksums:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumPriority + 18, // 25: cs3.storage.provider.v1beta1.FileDownloadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque + 26, // [26:26] is the sub-list for method output_type + 26, // [26:26] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name +} + +func init() { file_cs3_storage_provider_v1beta1_resources_proto_init() } +func file_cs3_storage_provider_v1beta1_resources_proto_init() { + if File_cs3_storage_provider_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CanonicalMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArbitraryMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceChecksum); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceChecksumPriority); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Reference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourcePermissions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Grant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Grantee); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileVersion); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecycleItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileUploadProtocol); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileDownloadProtocol); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*Reference_Path)(nil), + (*Reference_Id)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cs3_storage_provider_v1beta1_resources_proto_rawDesc, + NumEnums: 3, + NumMessages: 15, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_storage_provider_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_storage_provider_v1beta1_resources_proto_depIdxs, + EnumInfos: file_cs3_storage_provider_v1beta1_resources_proto_enumTypes, + MessageInfos: file_cs3_storage_provider_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_storage_provider_v1beta1_resources_proto = out.File + file_cs3_storage_provider_v1beta1_resources_proto_rawDesc = nil + file_cs3_storage_provider_v1beta1_resources_proto_goTypes = nil + file_cs3_storage_provider_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..4061e821 --- /dev/null +++ b/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go @@ -0,0 +1,23 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/storage/provider/v1beta1/resources.proto + +package providerv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go new file mode 100644 index 00000000..e590af4a --- /dev/null +++ b/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go @@ -0,0 +1,839 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/storage/registry/v1beta1/registry_api.proto + +package registryv1beta1 + +import ( + context "context" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GetHomeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *GetHomeRequest) Reset() { + *x = GetHomeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetHomeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetHomeRequest) ProtoMessage() {} + +func (x *GetHomeRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetHomeRequest.ProtoReflect.Descriptor instead. +func (*GetHomeRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{0} +} + +func (x *GetHomeRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetHomeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The storage provider for the user home. + Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` +} + +func (x *GetHomeResponse) Reset() { + *x = GetHomeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetHomeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetHomeResponse) ProtoMessage() {} + +func (x *GetHomeResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetHomeResponse.ProtoReflect.Descriptor instead. +func (*GetHomeResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{1} +} + +func (x *GetHomeResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetHomeResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetHomeResponse) GetProvider() *ProviderInfo { + if x != nil { + return x.Provider + } + return nil +} + +type GetStorageProviderRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The reference for the resource. + Ref *v1beta12.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (x *GetStorageProviderRequest) Reset() { + *x = GetStorageProviderRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetStorageProviderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetStorageProviderRequest) ProtoMessage() {} + +func (x *GetStorageProviderRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetStorageProviderRequest.ProtoReflect.Descriptor instead. +func (*GetStorageProviderRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{2} +} + +func (x *GetStorageProviderRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetStorageProviderRequest) GetRef() *v1beta12.Reference { + if x != nil { + return x.Ref + } + return nil +} + +type GetStorageProviderResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The storage provider handling the requested storage resource. + Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` +} + +func (x *GetStorageProviderResponse) Reset() { + *x = GetStorageProviderResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetStorageProviderResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetStorageProviderResponse) ProtoMessage() {} + +func (x *GetStorageProviderResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetStorageProviderResponse.ProtoReflect.Descriptor instead. +func (*GetStorageProviderResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{3} +} + +func (x *GetStorageProviderResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetStorageProviderResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *GetStorageProviderResponse) GetProvider() *ProviderInfo { + if x != nil { + return x.Provider + } + return nil +} + +type ListStorageProvidersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter? +} + +func (x *ListStorageProvidersRequest) Reset() { + *x = ListStorageProvidersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListStorageProvidersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStorageProvidersRequest) ProtoMessage() {} + +func (x *ListStorageProvidersRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_registry_api_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 ListStorageProvidersRequest.ProtoReflect.Descriptor instead. +func (*ListStorageProvidersRequest) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{4} +} + +func (x *ListStorageProvidersRequest) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type ListStorageProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The list of storage providers this registry knows about. + Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` +} + +func (x *ListStorageProvidersResponse) Reset() { + *x = ListStorageProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListStorageProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStorageProvidersResponse) ProtoMessage() {} + +func (x *ListStorageProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_registry_api_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 ListStorageProvidersResponse.ProtoReflect.Descriptor instead. +func (*ListStorageProvidersResponse) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{5} +} + +func (x *ListStorageProvidersResponse) GetStatus() *v1beta11.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ListStorageProvidersResponse) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ListStorageProvidersResponse) GetProviders() []*ProviderInfo { + if x != nil { + return x.Providers + } + return nil +} + +var File_cs3_storage_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor + +var file_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x1c, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, + 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, + 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, + 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x48, + 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xbd, 0x01, + 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x89, 0x01, + 0x0a, 0x19, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xc8, 0x01, 0x0a, 0x1a, 0x47, 0x65, + 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, + 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x08, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x22, 0x50, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, 0x8f, 0x03, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x41, 0x50, 0x49, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x37, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x8d, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x66, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x8b, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x52, 0xaa, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, + 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescOnce sync.Once + file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData = file_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc +) + +func file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP() []byte { + file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescOnce.Do(func() { + file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData) + }) + return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData +} + +var file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_cs3_storage_registry_v1beta1_registry_api_proto_goTypes = []interface{}{ + (*GetHomeRequest)(nil), // 0: cs3.storage.registry.v1beta1.GetHomeRequest + (*GetHomeResponse)(nil), // 1: cs3.storage.registry.v1beta1.GetHomeResponse + (*GetStorageProviderRequest)(nil), // 2: cs3.storage.registry.v1beta1.GetStorageProviderRequest + (*GetStorageProviderResponse)(nil), // 3: cs3.storage.registry.v1beta1.GetStorageProviderResponse + (*ListStorageProvidersRequest)(nil), // 4: cs3.storage.registry.v1beta1.ListStorageProvidersRequest + (*ListStorageProvidersResponse)(nil), // 5: cs3.storage.registry.v1beta1.ListStorageProvidersResponse + (*v1beta1.Opaque)(nil), // 6: cs3.types.v1beta1.Opaque + (*v1beta11.Status)(nil), // 7: cs3.rpc.v1beta1.Status + (*ProviderInfo)(nil), // 8: cs3.storage.registry.v1beta1.ProviderInfo + (*v1beta12.Reference)(nil), // 9: cs3.storage.provider.v1beta1.Reference +} +var file_cs3_storage_registry_v1beta1_registry_api_proto_depIdxs = []int32{ + 6, // 0: cs3.storage.registry.v1beta1.GetHomeRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 1: cs3.storage.registry.v1beta1.GetHomeResponse.status:type_name -> cs3.rpc.v1beta1.Status + 6, // 2: cs3.storage.registry.v1beta1.GetHomeResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 8, // 3: cs3.storage.registry.v1beta1.GetHomeResponse.provider:type_name -> cs3.storage.registry.v1beta1.ProviderInfo + 6, // 4: cs3.storage.registry.v1beta1.GetStorageProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 9, // 5: cs3.storage.registry.v1beta1.GetStorageProviderRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 7, // 6: cs3.storage.registry.v1beta1.GetStorageProviderResponse.status:type_name -> cs3.rpc.v1beta1.Status + 6, // 7: cs3.storage.registry.v1beta1.GetStorageProviderResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 8, // 8: cs3.storage.registry.v1beta1.GetStorageProviderResponse.provider:type_name -> cs3.storage.registry.v1beta1.ProviderInfo + 6, // 9: cs3.storage.registry.v1beta1.ListStorageProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 7, // 10: cs3.storage.registry.v1beta1.ListStorageProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status + 6, // 11: cs3.storage.registry.v1beta1.ListStorageProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 8, // 12: cs3.storage.registry.v1beta1.ListStorageProvidersResponse.providers:type_name -> cs3.storage.registry.v1beta1.ProviderInfo + 2, // 13: cs3.storage.registry.v1beta1.RegistryAPI.GetStorageProvider:input_type -> cs3.storage.registry.v1beta1.GetStorageProviderRequest + 4, // 14: cs3.storage.registry.v1beta1.RegistryAPI.ListStorageProviders:input_type -> cs3.storage.registry.v1beta1.ListStorageProvidersRequest + 0, // 15: cs3.storage.registry.v1beta1.RegistryAPI.GetHome:input_type -> cs3.storage.registry.v1beta1.GetHomeRequest + 3, // 16: cs3.storage.registry.v1beta1.RegistryAPI.GetStorageProvider:output_type -> cs3.storage.registry.v1beta1.GetStorageProviderResponse + 5, // 17: cs3.storage.registry.v1beta1.RegistryAPI.ListStorageProviders:output_type -> cs3.storage.registry.v1beta1.ListStorageProvidersResponse + 1, // 18: cs3.storage.registry.v1beta1.RegistryAPI.GetHome:output_type -> cs3.storage.registry.v1beta1.GetHomeResponse + 16, // [16:19] is the sub-list for method output_type + 13, // [13:16] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_cs3_storage_registry_v1beta1_registry_api_proto_init() } +func file_cs3_storage_registry_v1beta1_registry_api_proto_init() { + if File_cs3_storage_registry_v1beta1_registry_api_proto != nil { + return + } + file_cs3_storage_registry_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHomeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHomeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetStorageProviderRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetStorageProviderResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListStorageProvidersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListStorageProvidersResponse); 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_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_storage_registry_v1beta1_registry_api_proto_goTypes, + DependencyIndexes: file_cs3_storage_registry_v1beta1_registry_api_proto_depIdxs, + MessageInfos: file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes, + }.Build() + File_cs3_storage_registry_v1beta1_registry_api_proto = out.File + file_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc = nil + file_cs3_storage_registry_v1beta1_registry_api_proto_goTypes = nil + file_cs3_storage_registry_v1beta1_registry_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// RegistryAPIClient is the client API for RegistryAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type RegistryAPIClient interface { + // Returns the storage provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...grpc.CallOption) (*GetStorageProviderResponse, error) + // Returns a list of the available storage providers known by this registry. + ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...grpc.CallOption) (*ListStorageProvidersResponse, error) + // Gets the user home storage provider. + GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) +} + +type registryAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient { + return ®istryAPIClient{cc} +} + +func (c *registryAPIClient) GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...grpc.CallOption) (*GetStorageProviderResponse, error) { + out := new(GetStorageProviderResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIClient) ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...grpc.CallOption) (*ListStorageProvidersResponse, error) { + out := new(ListStorageProvidersResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIClient) GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) { + out := new(GetHomeResponse) + err := c.cc.Invoke(ctx, "/cs3.storage.registry.v1beta1.RegistryAPI/GetHome", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RegistryAPIServer is the server API for RegistryAPI service. +type RegistryAPIServer interface { + // Returns the storage provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetStorageProvider(context.Context, *GetStorageProviderRequest) (*GetStorageProviderResponse, error) + // Returns a list of the available storage providers known by this registry. + ListStorageProviders(context.Context, *ListStorageProvidersRequest) (*ListStorageProvidersResponse, error) + // Gets the user home storage provider. + GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) +} + +// UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations. +type UnimplementedRegistryAPIServer struct { +} + +func (*UnimplementedRegistryAPIServer) GetStorageProvider(context.Context, *GetStorageProviderRequest) (*GetStorageProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStorageProvider not implemented") +} +func (*UnimplementedRegistryAPIServer) ListStorageProviders(context.Context, *ListStorageProvidersRequest) (*ListStorageProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListStorageProviders not implemented") +} +func (*UnimplementedRegistryAPIServer) GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented") +} + +func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer) { + s.RegisterService(&_RegistryAPI_serviceDesc, srv) +} + +func _RegistryAPI_GetStorageProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStorageProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryAPIServer).GetStorageProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryAPIServer).GetStorageProvider(ctx, req.(*GetStorageProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegistryAPI_ListStorageProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListStorageProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryAPIServer).ListStorageProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryAPIServer).ListStorageProviders(ctx, req.(*ListStorageProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegistryAPI_GetHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetHomeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryAPIServer).GetHome(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.storage.registry.v1beta1.RegistryAPI/GetHome", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryAPIServer).GetHome(ctx, req.(*GetHomeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RegistryAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.storage.registry.v1beta1.RegistryAPI", + HandlerType: (*RegistryAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetStorageProvider", + Handler: _RegistryAPI_GetStorageProvider_Handler, + }, + { + MethodName: "ListStorageProviders", + Handler: _RegistryAPI_ListStorageProviders_Handler, + }, + { + MethodName: "GetHome", + Handler: _RegistryAPI_GetHome_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/storage/registry/v1beta1/registry_api.proto", +} diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go new file mode 100644 index 00000000..cc8d99ed --- /dev/null +++ b/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/storage/registry/v1beta1/registry_api.proto + +package registryv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for RegistryAPI service + +func NewRegistryAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for RegistryAPI service + +type RegistryAPIService interface { + // Returns the storage provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...client.CallOption) (*GetStorageProviderResponse, error) + // Returns a list of the available storage providers known by this registry. + ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...client.CallOption) (*ListStorageProvidersResponse, error) + // Gets the user home storage provider. + GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) +} + +type registryAPIService struct { + c client.Client + name string +} + +func NewRegistryAPIService(name string, c client.Client) RegistryAPIService { + return ®istryAPIService{ + c: c, + name: name, + } +} + +func (c *registryAPIService) GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...client.CallOption) (*GetStorageProviderResponse, error) { + req := c.c.NewRequest(c.name, "RegistryAPI.GetStorageProvider", in) + out := new(GetStorageProviderResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIService) ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...client.CallOption) (*ListStorageProvidersResponse, error) { + req := c.c.NewRequest(c.name, "RegistryAPI.ListStorageProviders", in) + out := new(ListStorageProvidersResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *registryAPIService) GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) { + req := c.c.NewRequest(c.name, "RegistryAPI.GetHome", in) + out := new(GetHomeResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for RegistryAPI service + +type RegistryAPIHandler interface { + // Returns the storage provider that is reponsible for the given + // resource reference. + // MUST return CODE_NOT_FOUND if the reference does not exist. + GetStorageProvider(context.Context, *GetStorageProviderRequest, *GetStorageProviderResponse) error + // Returns a list of the available storage providers known by this registry. + ListStorageProviders(context.Context, *ListStorageProvidersRequest, *ListStorageProvidersResponse) error + // Gets the user home storage provider. + GetHome(context.Context, *GetHomeRequest, *GetHomeResponse) error +} + +func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error { + type registryAPI interface { + GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, out *GetStorageProviderResponse) error + ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, out *ListStorageProvidersResponse) error + GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error + } + type RegistryAPI struct { + registryAPI + } + h := ®istryAPIHandler{hdlr} + return s.Handle(s.NewHandler(&RegistryAPI{h}, opts...)) +} + +type registryAPIHandler struct { + RegistryAPIHandler +} + +func (h *registryAPIHandler) GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, out *GetStorageProviderResponse) error { + return h.RegistryAPIHandler.GetStorageProvider(ctx, in, out) +} + +func (h *registryAPIHandler) ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, out *ListStorageProvidersResponse) error { + return h.RegistryAPIHandler.ListStorageProviders(ctx, in, out) +} + +func (h *registryAPIHandler) GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error { + return h.RegistryAPIHandler.GetHome(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go new file mode 100644 index 00000000..a0ab9c74 --- /dev/null +++ b/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go @@ -0,0 +1,337 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/storage/registry/v1beta1/resources.proto + +package registryv1beta1 + +import ( + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// The information for the storage provider. +type ProviderInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // OPTIONAL. + // Opaque information (containing storage-specific information). + // For example, additional metadata attached to the resource. + Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` + // REQUIRED. + // The storage provider id that will become part of the + // resource id. + // For example, if the provider_id is "home", resources obtained + // from this storage provider will have a resource id like "home:1234". + ProviderId string `protobuf:"bytes,2,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` + // REQUIRED. + // The public path prefix this storage provider handles. + // In Unix literature, the mount path. + // For example, if the provider_path is "/home", resources obtained + // from this storage provier will have a resource path lik "/home/docs". + ProviderPath string `protobuf:"bytes,3,opt,name=provider_path,json=providerPath,proto3" json:"provider_path,omitempty"` + // REQUIRED. + // The address where the storage provider can be reached. + // For example, tcp://localhost:1099. + Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + // OPTIONAL. + // Information to describe the functionalities + // offered by the storage provider. Meant to be read + // by humans. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // REQUIRED. + // List of available methods. + Features *ProviderInfo_Features `protobuf:"bytes,6,opt,name=features,proto3" json:"features,omitempty"` +} + +func (x *ProviderInfo) Reset() { + *x = ProviderInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderInfo) ProtoMessage() {} + +func (x *ProviderInfo) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. +func (*ProviderInfo) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +func (x *ProviderInfo) GetProviderId() string { + if x != nil { + return x.ProviderId + } + return "" +} + +func (x *ProviderInfo) GetProviderPath() string { + if x != nil { + return x.ProviderPath + } + return "" +} + +func (x *ProviderInfo) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *ProviderInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ProviderInfo) GetFeatures() *ProviderInfo_Features { + if x != nil { + return x.Features + } + return nil +} + +// REQUIRED. +// Represents the list of features available +// on this storage provider. If the feature is not supported, +// the related service methods MUST return CODE_UNIMPLEMENTED. +type ProviderInfo_Features struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Recycle bool `protobuf:"varint,1,opt,name=recycle,proto3" json:"recycle,omitempty"` + FileVersions bool `protobuf:"varint,2,opt,name=file_versions,json=fileVersions,proto3" json:"file_versions,omitempty"` +} + +func (x *ProviderInfo_Features) Reset() { + *x = ProviderInfo_Features{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderInfo_Features) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderInfo_Features) ProtoMessage() {} + +func (x *ProviderInfo_Features) ProtoReflect() protoreflect.Message { + mi := &file_cs3_storage_registry_v1beta1_resources_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 ProviderInfo_Features.ProtoReflect.Descriptor instead. +func (*ProviderInfo_Features) Descriptor() ([]byte, []int) { + return file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *ProviderInfo_Features) GetRecycle() bool { + if x != nil { + return x.Recycle + } + return false +} + +func (x *ProviderInfo_Features) GetFileVersions() bool { + if x != nil { + return x.FileVersions + } + return false +} + +var File_cs3_storage_registry_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_storage_registry_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, + 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, + 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x02, 0x0a, 0x0c, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, + 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x4f, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x73, 0x1a, 0x49, 0x0a, 0x08, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x18, + 0x0a, 0x07, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x89, 0x01, + 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x52, 0xaa, 0x02, 0x1c, 0x43, 0x73, + 0x33, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x43, 0x73, 0x33, + 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_cs3_storage_registry_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_storage_registry_v1beta1_resources_proto_rawDescData = file_cs3_storage_registry_v1beta1_resources_proto_rawDesc +) + +func file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_storage_registry_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_storage_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_registry_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_storage_registry_v1beta1_resources_proto_rawDescData +} + +var file_cs3_storage_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cs3_storage_registry_v1beta1_resources_proto_goTypes = []interface{}{ + (*ProviderInfo)(nil), // 0: cs3.storage.registry.v1beta1.ProviderInfo + (*ProviderInfo_Features)(nil), // 1: cs3.storage.registry.v1beta1.ProviderInfo.Features + (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque +} +var file_cs3_storage_registry_v1beta1_resources_proto_depIdxs = []int32{ + 2, // 0: cs3.storage.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque + 1, // 1: cs3.storage.registry.v1beta1.ProviderInfo.features:type_name -> cs3.storage.registry.v1beta1.ProviderInfo.Features + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_cs3_storage_registry_v1beta1_resources_proto_init() } +func file_cs3_storage_registry_v1beta1_resources_proto_init() { + if File_cs3_storage_registry_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderInfo_Features); 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_cs3_storage_registry_v1beta1_resources_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_storage_registry_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_storage_registry_v1beta1_resources_proto_depIdxs, + MessageInfos: file_cs3_storage_registry_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_storage_registry_v1beta1_resources_proto = out.File + file_cs3_storage_registry_v1beta1_resources_proto_rawDesc = nil + file_cs3_storage_registry_v1beta1_resources_proto_goTypes = nil + file_cs3_storage_registry_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..6681efc5 --- /dev/null +++ b/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go @@ -0,0 +1,22 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/storage/registry/v1beta1/resources.proto + +package registryv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go new file mode 100644 index 00000000..c619883e --- /dev/null +++ b/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go @@ -0,0 +1,455 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/tx/v1beta1/resources.proto + +package txv1beta1 + +import ( + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Status represents transfer status. +type TxInfo_Status int32 + +const ( + TxInfo_STATUS_INVALID TxInfo_Status = 0 + // The destination could not be found. + TxInfo_STATUS_DESTINATION_NOT_FOUND TxInfo_Status = 1 + // A new data transfer + TxInfo_STATUS_TRANSFER_NEW TxInfo_Status = 2 + // The data transfer is awaiting acceptance from the destination + TxInfo_STATUS_TRANSFER_AWAITING_ACCEPTANCE TxInfo_Status = 3 + // The data transfer is accepted by the destination. + TxInfo_STATUS_TRANSFER_ACCEPTED TxInfo_Status = 4 + // The data transfer has started and not yet completed. + TxInfo_STATUS_TRANSFER_IN_PROGRESS TxInfo_Status = 5 + // The data transfer has completed. + TxInfo_STATUS_TRANSFER_COMPLETE TxInfo_Status = 6 + // The data transfer has failed. + TxInfo_STATUS_TRANSFER_FAILED TxInfo_Status = 7 + // The data transfer had been cancelled. + TxInfo_STATUS_TRANSFER_CANCELLED TxInfo_Status = 8 + // The request for cancelling the data transfer has failed. + TxInfo_STATUS_TRANSFER_CANCEL_FAILED TxInfo_Status = 9 + // The transfer has expired somewhere down the line. + TxInfo_STATUS_TRANSFER_EXPIRED TxInfo_Status = 10 +) + +// Enum value maps for TxInfo_Status. +var ( + TxInfo_Status_name = map[int32]string{ + 0: "STATUS_INVALID", + 1: "STATUS_DESTINATION_NOT_FOUND", + 2: "STATUS_TRANSFER_NEW", + 3: "STATUS_TRANSFER_AWAITING_ACCEPTANCE", + 4: "STATUS_TRANSFER_ACCEPTED", + 5: "STATUS_TRANSFER_IN_PROGRESS", + 6: "STATUS_TRANSFER_COMPLETE", + 7: "STATUS_TRANSFER_FAILED", + 8: "STATUS_TRANSFER_CANCELLED", + 9: "STATUS_TRANSFER_CANCEL_FAILED", + 10: "STATUS_TRANSFER_EXPIRED", + } + TxInfo_Status_value = map[string]int32{ + "STATUS_INVALID": 0, + "STATUS_DESTINATION_NOT_FOUND": 1, + "STATUS_TRANSFER_NEW": 2, + "STATUS_TRANSFER_AWAITING_ACCEPTANCE": 3, + "STATUS_TRANSFER_ACCEPTED": 4, + "STATUS_TRANSFER_IN_PROGRESS": 5, + "STATUS_TRANSFER_COMPLETE": 6, + "STATUS_TRANSFER_FAILED": 7, + "STATUS_TRANSFER_CANCELLED": 8, + "STATUS_TRANSFER_CANCEL_FAILED": 9, + "STATUS_TRANSFER_EXPIRED": 10, + } +) + +func (x TxInfo_Status) Enum() *TxInfo_Status { + p := new(TxInfo_Status) + *p = x + return p +} + +func (x TxInfo_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TxInfo_Status) Descriptor() protoreflect.EnumDescriptor { + return file_cs3_tx_v1beta1_resources_proto_enumTypes[0].Descriptor() +} + +func (TxInfo_Status) Type() protoreflect.EnumType { + return &file_cs3_tx_v1beta1_resources_proto_enumTypes[0] +} + +func (x TxInfo_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TxInfo_Status.Descriptor instead. +func (TxInfo_Status) EnumDescriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{1, 0} +} + +// TxId uniquely identifies a transfer in the transfer provider namespace. +type TxId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The internal transfer id used by the service implementor + // to uniquely identity the transfer in the internal + // implementation of the service. + OpaqueId string `protobuf:"bytes,1,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` +} + +func (x *TxId) Reset() { + *x = TxId{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TxId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TxId) ProtoMessage() {} + +func (x *TxId) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_resources_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 TxId.ProtoReflect.Descriptor instead. +func (*TxId) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{0} +} + +func (x *TxId) GetOpaqueId() string { + if x != nil { + return x.OpaqueId + } + return "" +} + +// TxInfo represents information about a transfer. +type TxInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The transfer identifier. + Id *TxId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // REQUIRED. + // Reference of the resource to be transfered. + Ref *v1beta1.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The transfer status. Eg.: STATUS_TRANSFER_FAILED. + // Note: the description field may provide additional information on the transfer status. + Status TxInfo_Status `protobuf:"varint,3,opt,name=status,proto3,enum=cs3.tx.v1beta1.TxInfo_Status" json:"status,omitempty"` + // REQUIRED. + // The destination (receiver of the transfer) + Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` + // REQUIRED. + // Uniquely identifies a principal who initiates the transfer creation. + Creator *v1beta11.UserId `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` + // REQUIRED. + // Creation time of the transfer. + Ctime *v1beta12.Timestamp `protobuf:"bytes,6,opt,name=ctime,proto3" json:"ctime,omitempty"` + // OPTIONAL. + // Information to describe the transfer status. + // Eg. may contain information about a transfer failure. + // Meant to be human-readable. + Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *TxInfo) Reset() { + *x = TxInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TxInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TxInfo) ProtoMessage() {} + +func (x *TxInfo) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_resources_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 TxInfo.ProtoReflect.Descriptor instead. +func (*TxInfo) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{1} +} + +func (x *TxInfo) GetId() *TxId { + if x != nil { + return x.Id + } + return nil +} + +func (x *TxInfo) GetRef() *v1beta1.Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *TxInfo) GetStatus() TxInfo_Status { + if x != nil { + return x.Status + } + return TxInfo_STATUS_INVALID +} + +func (x *TxInfo) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +func (x *TxInfo) GetCreator() *v1beta11.UserId { + if x != nil { + return x.Creator + } + return nil +} + +func (x *TxInfo) GetCtime() *v1beta12.Timestamp { + if x != nil { + return x.Ctime + } + return nil +} + +func (x *TxInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +var File_cs3_tx_v1beta1_resources_proto protoreflect.FileDescriptor + +var file_cs3_tx_v1beta1_resources_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, + 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x23, 0x0a, 0x04, 0x54, 0x78, 0x49, 0x64, + 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xcf, 0x05, + 0x0a, 0x06, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, + 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x6e, 0x66, + 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, + 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, + 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, + 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd8, 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, + 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, + 0x55, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x4e, 0x45, 0x57, 0x10, 0x02, 0x12, 0x27, + 0x0a, 0x23, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, + 0x52, 0x5f, 0x41, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, + 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, + 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, + 0x52, 0x45, 0x53, 0x53, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, + 0x54, 0x45, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, + 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x07, + 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, + 0x46, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x08, 0x12, + 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, + 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, + 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, + 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x0a, 0x42, + 0x59, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, 0x74, 0x78, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x2e, 0x54, + 0x78, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x5c, + 0x54, 0x78, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_cs3_tx_v1beta1_resources_proto_rawDescOnce sync.Once + file_cs3_tx_v1beta1_resources_proto_rawDescData = file_cs3_tx_v1beta1_resources_proto_rawDesc +) + +func file_cs3_tx_v1beta1_resources_proto_rawDescGZIP() []byte { + file_cs3_tx_v1beta1_resources_proto_rawDescOnce.Do(func() { + file_cs3_tx_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_tx_v1beta1_resources_proto_rawDescData) + }) + return file_cs3_tx_v1beta1_resources_proto_rawDescData +} + +var file_cs3_tx_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cs3_tx_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_cs3_tx_v1beta1_resources_proto_goTypes = []interface{}{ + (TxInfo_Status)(0), // 0: cs3.tx.v1beta1.TxInfo.Status + (*TxId)(nil), // 1: cs3.tx.v1beta1.TxId + (*TxInfo)(nil), // 2: cs3.tx.v1beta1.TxInfo + (*v1beta1.Reference)(nil), // 3: cs3.storage.provider.v1beta1.Reference + (*v1beta1.Grantee)(nil), // 4: cs3.storage.provider.v1beta1.Grantee + (*v1beta11.UserId)(nil), // 5: cs3.identity.user.v1beta1.UserId + (*v1beta12.Timestamp)(nil), // 6: cs3.types.v1beta1.Timestamp +} +var file_cs3_tx_v1beta1_resources_proto_depIdxs = []int32{ + 1, // 0: cs3.tx.v1beta1.TxInfo.id:type_name -> cs3.tx.v1beta1.TxId + 3, // 1: cs3.tx.v1beta1.TxInfo.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 0, // 2: cs3.tx.v1beta1.TxInfo.status:type_name -> cs3.tx.v1beta1.TxInfo.Status + 4, // 3: cs3.tx.v1beta1.TxInfo.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 5, // 4: cs3.tx.v1beta1.TxInfo.creator:type_name -> cs3.identity.user.v1beta1.UserId + 6, // 5: cs3.tx.v1beta1.TxInfo.ctime:type_name -> cs3.types.v1beta1.Timestamp + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_cs3_tx_v1beta1_resources_proto_init() } +func file_cs3_tx_v1beta1_resources_proto_init() { + if File_cs3_tx_v1beta1_resources_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_tx_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_tx_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TxInfo); 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_cs3_tx_v1beta1_resources_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_tx_v1beta1_resources_proto_goTypes, + DependencyIndexes: file_cs3_tx_v1beta1_resources_proto_depIdxs, + EnumInfos: file_cs3_tx_v1beta1_resources_proto_enumTypes, + MessageInfos: file_cs3_tx_v1beta1_resources_proto_msgTypes, + }.Build() + File_cs3_tx_v1beta1_resources_proto = out.File + file_cs3_tx_v1beta1_resources_proto_rawDesc = nil + file_cs3_tx_v1beta1_resources_proto_goTypes = nil + file_cs3_tx_v1beta1_resources_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go new file mode 100644 index 00000000..664f67b4 --- /dev/null +++ b/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go @@ -0,0 +1,24 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/tx/v1beta1/resources.proto + +package txv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go b/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go new file mode 100644 index 00000000..9e38f47a --- /dev/null +++ b/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go @@ -0,0 +1,865 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/tx/v1beta1/tx_api.proto + +package txv1beta1 + +import ( + context "context" + v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type CreateTransferRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // Reference of the resource to be transfered. + Ref *v1beta1.Reference `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` + // REQUIRED. + // The destination (receiver of the transfer) + Grantee *v1beta1.Grantee `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CreateTransferRequest) Reset() { + *x = CreateTransferRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateTransferRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTransferRequest) ProtoMessage() {} + +func (x *CreateTransferRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_tx_api_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 CreateTransferRequest.ProtoReflect.Descriptor instead. +func (*CreateTransferRequest) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateTransferRequest) GetRef() *v1beta1.Reference { + if x != nil { + return x.Ref + } + return nil +} + +func (x *CreateTransferRequest) GetGrantee() *v1beta1.Grantee { + if x != nil { + return x.Grantee + } + return nil +} + +func (x *CreateTransferRequest) GetOpaque() *v1beta11.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CreateTransferResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // REQUIRED. + // TxInfo, includes transfer id, status, description. + TxInfo *TxInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CreateTransferResponse) Reset() { + *x = CreateTransferResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateTransferResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTransferResponse) ProtoMessage() {} + +func (x *CreateTransferResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_tx_api_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 CreateTransferResponse.ProtoReflect.Descriptor instead. +func (*CreateTransferResponse) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateTransferResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CreateTransferResponse) GetTxInfo() *TxInfo { + if x != nil { + return x.TxInfo + } + return nil +} + +func (x *CreateTransferResponse) GetOpaque() *v1beta11.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetTransferStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The transfer identifier. + TxId *TxId `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta11.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *GetTransferStatusRequest) Reset() { + *x = GetTransferStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTransferStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTransferStatusRequest) ProtoMessage() {} + +func (x *GetTransferStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_tx_api_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 GetTransferStatusRequest.ProtoReflect.Descriptor instead. +func (*GetTransferStatusRequest) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{2} +} + +func (x *GetTransferStatusRequest) GetTxId() *TxId { + if x != nil { + return x.TxId + } + return nil +} + +func (x *GetTransferStatusRequest) GetOpaque() *v1beta11.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type GetTransferStatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // REQUIRED. + // TxInfo, includes ao. transfer id, status, description. + TxInfo *TxInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *GetTransferStatusResponse) Reset() { + *x = GetTransferStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTransferStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTransferStatusResponse) ProtoMessage() {} + +func (x *GetTransferStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_tx_api_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 GetTransferStatusResponse.ProtoReflect.Descriptor instead. +func (*GetTransferStatusResponse) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{3} +} + +func (x *GetTransferStatusResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *GetTransferStatusResponse) GetTxInfo() *TxInfo { + if x != nil { + return x.TxInfo + } + return nil +} + +func (x *GetTransferStatusResponse) GetOpaque() *v1beta11.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CancelTransferRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The transfer identifier. + TxId *TxId `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta11.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CancelTransferRequest) Reset() { + *x = CancelTransferRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelTransferRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelTransferRequest) ProtoMessage() {} + +func (x *CancelTransferRequest) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_tx_api_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 CancelTransferRequest.ProtoReflect.Descriptor instead. +func (*CancelTransferRequest) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{4} +} + +func (x *CancelTransferRequest) GetTxId() *TxId { + if x != nil { + return x.TxId + } + return nil +} + +func (x *CancelTransferRequest) GetOpaque() *v1beta11.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +type CancelTransferResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The response status. + Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + // REQUIRED. + // TxInfo, includes ao. transfer id, status, description. + TxInfo *TxInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` + // OPTIONAL. + // Opaque information. + Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` +} + +func (x *CancelTransferResponse) Reset() { + *x = CancelTransferResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelTransferResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelTransferResponse) ProtoMessage() {} + +func (x *CancelTransferResponse) ProtoReflect() protoreflect.Message { + mi := &file_cs3_tx_v1beta1_tx_api_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 CancelTransferResponse.ProtoReflect.Descriptor instead. +func (*CancelTransferResponse) Descriptor() ([]byte, []int) { + return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{5} +} + +func (x *CancelTransferResponse) GetStatus() *v1beta12.Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *CancelTransferResponse) GetTxInfo() *TxInfo { + if x != nil { + return x.TxInfo + } + return nil +} + +func (x *CancelTransferResponse) GetOpaque() *v1beta11.Opaque { + if x != nil { + return x.Opaque + } + return nil +} + +var File_cs3_tx_v1beta1_tx_api_proto protoreflect.FileDescriptor + +var file_cs3_tx_v1beta1_tx_api_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x74, 0x78, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, + 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, + 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x73, 0x33, 0x2f, 0x74, + 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x3f, 0x0a, + 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x31, + 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x22, 0xad, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, + 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, + 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, + 0x65, 0x22, 0x78, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, + 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, + 0x49, 0x64, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, + 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x19, + 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x74, 0x78, + 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, + 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x75, + 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x64, 0x52, 0x04, 0x74, 0x78, + 0x49, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x32, 0xb3, 0x02, 0x0a, 0x05, 0x54, 0x78, 0x41, 0x50, 0x49, 0x12, + 0x5f, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, + 0x72, 0x12, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, + 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0e, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x55, 0x0a, 0x12, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x42, 0x0a, 0x54, 0x78, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x09, 0x74, 0x78, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, + 0xaa, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x2e, 0x54, 0x78, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, + 0x31, 0xca, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x5c, 0x54, 0x78, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, + 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cs3_tx_v1beta1_tx_api_proto_rawDescOnce sync.Once + file_cs3_tx_v1beta1_tx_api_proto_rawDescData = file_cs3_tx_v1beta1_tx_api_proto_rawDesc +) + +func file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP() []byte { + file_cs3_tx_v1beta1_tx_api_proto_rawDescOnce.Do(func() { + file_cs3_tx_v1beta1_tx_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_tx_v1beta1_tx_api_proto_rawDescData) + }) + return file_cs3_tx_v1beta1_tx_api_proto_rawDescData +} + +var file_cs3_tx_v1beta1_tx_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_cs3_tx_v1beta1_tx_api_proto_goTypes = []interface{}{ + (*CreateTransferRequest)(nil), // 0: cs3.tx.v1beta1.CreateTransferRequest + (*CreateTransferResponse)(nil), // 1: cs3.tx.v1beta1.CreateTransferResponse + (*GetTransferStatusRequest)(nil), // 2: cs3.tx.v1beta1.GetTransferStatusRequest + (*GetTransferStatusResponse)(nil), // 3: cs3.tx.v1beta1.GetTransferStatusResponse + (*CancelTransferRequest)(nil), // 4: cs3.tx.v1beta1.CancelTransferRequest + (*CancelTransferResponse)(nil), // 5: cs3.tx.v1beta1.CancelTransferResponse + (*v1beta1.Reference)(nil), // 6: cs3.storage.provider.v1beta1.Reference + (*v1beta1.Grantee)(nil), // 7: cs3.storage.provider.v1beta1.Grantee + (*v1beta11.Opaque)(nil), // 8: cs3.types.v1beta1.Opaque + (*v1beta12.Status)(nil), // 9: cs3.rpc.v1beta1.Status + (*TxInfo)(nil), // 10: cs3.tx.v1beta1.TxInfo + (*TxId)(nil), // 11: cs3.tx.v1beta1.TxId +} +var file_cs3_tx_v1beta1_tx_api_proto_depIdxs = []int32{ + 6, // 0: cs3.tx.v1beta1.CreateTransferRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference + 7, // 1: cs3.tx.v1beta1.CreateTransferRequest.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee + 8, // 2: cs3.tx.v1beta1.CreateTransferRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 9, // 3: cs3.tx.v1beta1.CreateTransferResponse.status:type_name -> cs3.rpc.v1beta1.Status + 10, // 4: cs3.tx.v1beta1.CreateTransferResponse.tx_info:type_name -> cs3.tx.v1beta1.TxInfo + 8, // 5: cs3.tx.v1beta1.CreateTransferResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 11, // 6: cs3.tx.v1beta1.GetTransferStatusRequest.tx_id:type_name -> cs3.tx.v1beta1.TxId + 8, // 7: cs3.tx.v1beta1.GetTransferStatusRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 9, // 8: cs3.tx.v1beta1.GetTransferStatusResponse.status:type_name -> cs3.rpc.v1beta1.Status + 10, // 9: cs3.tx.v1beta1.GetTransferStatusResponse.tx_info:type_name -> cs3.tx.v1beta1.TxInfo + 8, // 10: cs3.tx.v1beta1.GetTransferStatusResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 11, // 11: cs3.tx.v1beta1.CancelTransferRequest.tx_id:type_name -> cs3.tx.v1beta1.TxId + 8, // 12: cs3.tx.v1beta1.CancelTransferRequest.opaque:type_name -> cs3.types.v1beta1.Opaque + 9, // 13: cs3.tx.v1beta1.CancelTransferResponse.status:type_name -> cs3.rpc.v1beta1.Status + 10, // 14: cs3.tx.v1beta1.CancelTransferResponse.tx_info:type_name -> cs3.tx.v1beta1.TxInfo + 8, // 15: cs3.tx.v1beta1.CancelTransferResponse.opaque:type_name -> cs3.types.v1beta1.Opaque + 0, // 16: cs3.tx.v1beta1.TxAPI.CreateTransfer:input_type -> cs3.tx.v1beta1.CreateTransferRequest + 2, // 17: cs3.tx.v1beta1.TxAPI.GetTransferStatus:input_type -> cs3.tx.v1beta1.GetTransferStatusRequest + 4, // 18: cs3.tx.v1beta1.TxAPI.CancelTransfer:input_type -> cs3.tx.v1beta1.CancelTransferRequest + 1, // 19: cs3.tx.v1beta1.TxAPI.CreateTransfer:output_type -> cs3.tx.v1beta1.CreateTransferResponse + 3, // 20: cs3.tx.v1beta1.TxAPI.GetTransferStatus:output_type -> cs3.tx.v1beta1.GetTransferStatusResponse + 5, // 21: cs3.tx.v1beta1.TxAPI.CancelTransfer:output_type -> cs3.tx.v1beta1.CancelTransferResponse + 19, // [19:22] is the sub-list for method output_type + 16, // [16:19] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name +} + +func init() { file_cs3_tx_v1beta1_tx_api_proto_init() } +func file_cs3_tx_v1beta1_tx_api_proto_init() { + if File_cs3_tx_v1beta1_tx_api_proto != nil { + return + } + file_cs3_tx_v1beta1_resources_proto_init() + if !protoimpl.UnsafeEnabled { + file_cs3_tx_v1beta1_tx_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateTransferRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_tx_v1beta1_tx_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateTransferResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_tx_v1beta1_tx_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTransferStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_tx_v1beta1_tx_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTransferStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_tx_v1beta1_tx_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelTransferRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_tx_v1beta1_tx_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelTransferResponse); 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_cs3_tx_v1beta1_tx_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_cs3_tx_v1beta1_tx_api_proto_goTypes, + DependencyIndexes: file_cs3_tx_v1beta1_tx_api_proto_depIdxs, + MessageInfos: file_cs3_tx_v1beta1_tx_api_proto_msgTypes, + }.Build() + File_cs3_tx_v1beta1_tx_api_proto = out.File + file_cs3_tx_v1beta1_tx_api_proto_rawDesc = nil + file_cs3_tx_v1beta1_tx_api_proto_goTypes = nil + file_cs3_tx_v1beta1_tx_api_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// TxAPIClient is the client API for TxAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TxAPIClient interface { + // Creates (requests the destination to accept) a transfer. + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...grpc.CallOption) (*CreateTransferResponse, error) + // Requests a transfer status. + GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...grpc.CallOption) (*GetTransferStatusResponse, error) + // Requests to cancel a transfer. + CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...grpc.CallOption) (*CancelTransferResponse, error) +} + +type txAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewTxAPIClient(cc grpc.ClientConnInterface) TxAPIClient { + return &txAPIClient{cc} +} + +func (c *txAPIClient) CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...grpc.CallOption) (*CreateTransferResponse, error) { + out := new(CreateTransferResponse) + err := c.cc.Invoke(ctx, "/cs3.tx.v1beta1.TxAPI/CreateTransfer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *txAPIClient) GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...grpc.CallOption) (*GetTransferStatusResponse, error) { + out := new(GetTransferStatusResponse) + err := c.cc.Invoke(ctx, "/cs3.tx.v1beta1.TxAPI/GetTransferStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *txAPIClient) CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...grpc.CallOption) (*CancelTransferResponse, error) { + out := new(CancelTransferResponse) + err := c.cc.Invoke(ctx, "/cs3.tx.v1beta1.TxAPI/CancelTransfer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TxAPIServer is the server API for TxAPI service. +type TxAPIServer interface { + // Creates (requests the destination to accept) a transfer. + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(context.Context, *CreateTransferRequest) (*CreateTransferResponse, error) + // Requests a transfer status. + GetTransferStatus(context.Context, *GetTransferStatusRequest) (*GetTransferStatusResponse, error) + // Requests to cancel a transfer. + CancelTransfer(context.Context, *CancelTransferRequest) (*CancelTransferResponse, error) +} + +// UnimplementedTxAPIServer can be embedded to have forward compatible implementations. +type UnimplementedTxAPIServer struct { +} + +func (*UnimplementedTxAPIServer) CreateTransfer(context.Context, *CreateTransferRequest) (*CreateTransferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTransfer not implemented") +} +func (*UnimplementedTxAPIServer) GetTransferStatus(context.Context, *GetTransferStatusRequest) (*GetTransferStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTransferStatus not implemented") +} +func (*UnimplementedTxAPIServer) CancelTransfer(context.Context, *CancelTransferRequest) (*CancelTransferResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelTransfer not implemented") +} + +func RegisterTxAPIServer(s *grpc.Server, srv TxAPIServer) { + s.RegisterService(&_TxAPI_serviceDesc, srv) +} + +func _TxAPI_CreateTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateTransferRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TxAPIServer).CreateTransfer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.tx.v1beta1.TxAPI/CreateTransfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TxAPIServer).CreateTransfer(ctx, req.(*CreateTransferRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TxAPI_GetTransferStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTransferStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TxAPIServer).GetTransferStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.tx.v1beta1.TxAPI/GetTransferStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TxAPIServer).GetTransferStatus(ctx, req.(*GetTransferStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TxAPI_CancelTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelTransferRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TxAPIServer).CancelTransfer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/cs3.tx.v1beta1.TxAPI/CancelTransfer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TxAPIServer).CancelTransfer(ctx, req.(*CancelTransferRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _TxAPI_serviceDesc = grpc.ServiceDesc{ + ServiceName: "cs3.tx.v1beta1.TxAPI", + HandlerType: (*TxAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTransfer", + Handler: _TxAPI_CreateTransfer_Handler, + }, + { + MethodName: "GetTransferStatus", + Handler: _TxAPI_GetTransferStatus_Handler, + }, + { + MethodName: "CancelTransfer", + Handler: _TxAPI_CancelTransfer_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "cs3/tx/v1beta1/tx_api.proto", +} diff --git a/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go b/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go new file mode 100644 index 00000000..dd8abccd --- /dev/null +++ b/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go @@ -0,0 +1,138 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/tx/v1beta1/tx_api.proto + +package txv1beta1 + +import ( + fmt "fmt" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" + _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" + proto "github.com/golang/protobuf/proto" + math "math" +) + +import ( + context "context" + api "github.com/asim/go-micro/v3/api" + client "github.com/asim/go-micro/v3/client" + server "github.com/asim/go-micro/v3/server" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ api.Endpoint +var _ context.Context +var _ client.Option +var _ server.Option + +// Api Endpoints for TxAPI service + +func NewTxAPIEndpoints() []*api.Endpoint { + return []*api.Endpoint{} +} + +// Client API for TxAPI service + +type TxAPIService interface { + // Creates (requests the destination to accept) a transfer. + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...client.CallOption) (*CreateTransferResponse, error) + // Requests a transfer status. + GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...client.CallOption) (*GetTransferStatusResponse, error) + // Requests to cancel a transfer. + CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...client.CallOption) (*CancelTransferResponse, error) +} + +type txAPIService struct { + c client.Client + name string +} + +func NewTxAPIService(name string, c client.Client) TxAPIService { + return &txAPIService{ + c: c, + name: name, + } +} + +func (c *txAPIService) CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...client.CallOption) (*CreateTransferResponse, error) { + req := c.c.NewRequest(c.name, "TxAPI.CreateTransfer", in) + out := new(CreateTransferResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *txAPIService) GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...client.CallOption) (*GetTransferStatusResponse, error) { + req := c.c.NewRequest(c.name, "TxAPI.GetTransferStatus", in) + out := new(GetTransferStatusResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *txAPIService) CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...client.CallOption) (*CancelTransferResponse, error) { + req := c.c.NewRequest(c.name, "TxAPI.CancelTransfer", in) + out := new(CancelTransferResponse) + err := c.c.Call(ctx, req, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for TxAPI service + +type TxAPIHandler interface { + // Creates (requests the destination to accept) a transfer. + // Returns a response containing a TxInfo (transfer info) object. + CreateTransfer(context.Context, *CreateTransferRequest, *CreateTransferResponse) error + // Requests a transfer status. + GetTransferStatus(context.Context, *GetTransferStatusRequest, *GetTransferStatusResponse) error + // Requests to cancel a transfer. + CancelTransfer(context.Context, *CancelTransferRequest, *CancelTransferResponse) error +} + +func RegisterTxAPIHandler(s server.Server, hdlr TxAPIHandler, opts ...server.HandlerOption) error { + type txAPI interface { + CreateTransfer(ctx context.Context, in *CreateTransferRequest, out *CreateTransferResponse) error + GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, out *GetTransferStatusResponse) error + CancelTransfer(ctx context.Context, in *CancelTransferRequest, out *CancelTransferResponse) error + } + type TxAPI struct { + txAPI + } + h := &txAPIHandler{hdlr} + return s.Handle(s.NewHandler(&TxAPI{h}, opts...)) +} + +type txAPIHandler struct { + TxAPIHandler +} + +func (h *txAPIHandler) CreateTransfer(ctx context.Context, in *CreateTransferRequest, out *CreateTransferResponse) error { + return h.TxAPIHandler.CreateTransfer(ctx, in, out) +} + +func (h *txAPIHandler) GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, out *GetTransferStatusResponse) error { + return h.TxAPIHandler.GetTransferStatus(ctx, in, out) +} + +func (h *txAPIHandler) CancelTransfer(ctx context.Context, in *CancelTransferRequest, out *CancelTransferResponse) error { + return h.TxAPIHandler.CancelTransfer(ctx, in, out) +} diff --git a/build/go-cs3apis/cs3/types/v1beta1/types.pb.go b/build/go-cs3apis/cs3/types/v1beta1/types.pb.go new file mode 100644 index 00000000..f2f8dec1 --- /dev/null +++ b/build/go-cs3apis/cs3/types/v1beta1/types.pb.go @@ -0,0 +1,357 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.23.0 +// protoc v3.11.0 +// source: cs3/types/v1beta1/types.proto + +package typesv1beta1 + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Opaque represents opaque information +// in a form on a map. +// For example, a local filesystem can +// use this message to include filesystem +// extended attributes. +type Opaque struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + Map map[string]*OpaqueEntry `protobuf:"bytes,1,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Opaque) Reset() { + *x = Opaque{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_types_v1beta1_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Opaque) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Opaque) ProtoMessage() {} + +func (x *Opaque) ProtoReflect() protoreflect.Message { + mi := &file_cs3_types_v1beta1_types_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 Opaque.ProtoReflect.Descriptor instead. +func (*Opaque) Descriptor() ([]byte, []int) { + return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{0} +} + +func (x *Opaque) GetMap() map[string]*OpaqueEntry { + if x != nil { + return x.Map + } + return nil +} + +// OpaqueEntry represents the encoded +// opaque value. +type OpaqueEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // REQUIRED. + // The decoder to use: json, xml, toml, ... + // TODO(labkode): make encoder a fixed set using a enum type? + Decoder string `protobuf:"bytes,1,opt,name=decoder,proto3" json:"decoder,omitempty"` + // REQUIRED. + // The encoded value. + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *OpaqueEntry) Reset() { + *x = OpaqueEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_types_v1beta1_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpaqueEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpaqueEntry) ProtoMessage() {} + +func (x *OpaqueEntry) ProtoReflect() protoreflect.Message { + mi := &file_cs3_types_v1beta1_types_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 OpaqueEntry.ProtoReflect.Descriptor instead. +func (*OpaqueEntry) Descriptor() ([]byte, []int) { + return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{1} +} + +func (x *OpaqueEntry) GetDecoder() string { + if x != nil { + return x.Decoder + } + return "" +} + +func (x *OpaqueEntry) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +// Adapted from Google google/protobuf/timestamp.proto. +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// The range MUST be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. +// Restricting to this range ensures the conversion from and to [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +type Timestamp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + Seconds uint64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. + // Value MUST be from 0 to 999,999,999 + // inclusive. + Nanos uint32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +func (x *Timestamp) Reset() { + *x = Timestamp{} + if protoimpl.UnsafeEnabled { + mi := &file_cs3_types_v1beta1_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Timestamp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Timestamp) ProtoMessage() {} + +func (x *Timestamp) ProtoReflect() protoreflect.Message { + mi := &file_cs3_types_v1beta1_types_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 Timestamp.ProtoReflect.Descriptor instead. +func (*Timestamp) Descriptor() ([]byte, []int) { + return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{2} +} + +func (x *Timestamp) GetSeconds() uint64 { + if x != nil { + return x.Seconds + } + return 0 +} + +func (x *Timestamp) GetNanos() uint32 { + if x != nil { + return x.Nanos + } + return 0 +} + +var File_cs3_types_v1beta1_types_proto protoreflect.FileDescriptor + +var file_cs3_types_v1beta1_types_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x11, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x22, 0x96, 0x01, 0x0a, 0x06, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a, + 0x03, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x73, 0x33, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, + 0x6d, 0x61, 0x70, 0x1a, 0x56, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0b, 0x4f, + 0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, + 0x63, 0x6f, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x63, + 0x6f, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x61, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0c, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, + 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x73, 0x33, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x11, 0x43, 0x73, 0x33, 0x5c, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_cs3_types_v1beta1_types_proto_rawDescOnce sync.Once + file_cs3_types_v1beta1_types_proto_rawDescData = file_cs3_types_v1beta1_types_proto_rawDesc +) + +func file_cs3_types_v1beta1_types_proto_rawDescGZIP() []byte { + file_cs3_types_v1beta1_types_proto_rawDescOnce.Do(func() { + file_cs3_types_v1beta1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_types_v1beta1_types_proto_rawDescData) + }) + return file_cs3_types_v1beta1_types_proto_rawDescData +} + +var file_cs3_types_v1beta1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_cs3_types_v1beta1_types_proto_goTypes = []interface{}{ + (*Opaque)(nil), // 0: cs3.types.v1beta1.Opaque + (*OpaqueEntry)(nil), // 1: cs3.types.v1beta1.OpaqueEntry + (*Timestamp)(nil), // 2: cs3.types.v1beta1.Timestamp + nil, // 3: cs3.types.v1beta1.Opaque.MapEntry +} +var file_cs3_types_v1beta1_types_proto_depIdxs = []int32{ + 3, // 0: cs3.types.v1beta1.Opaque.map:type_name -> cs3.types.v1beta1.Opaque.MapEntry + 1, // 1: cs3.types.v1beta1.Opaque.MapEntry.value:type_name -> cs3.types.v1beta1.OpaqueEntry + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_cs3_types_v1beta1_types_proto_init() } +func file_cs3_types_v1beta1_types_proto_init() { + if File_cs3_types_v1beta1_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cs3_types_v1beta1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Opaque); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_types_v1beta1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpaqueEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cs3_types_v1beta1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Timestamp); 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_cs3_types_v1beta1_types_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cs3_types_v1beta1_types_proto_goTypes, + DependencyIndexes: file_cs3_types_v1beta1_types_proto_depIdxs, + MessageInfos: file_cs3_types_v1beta1_types_proto_msgTypes, + }.Build() + File_cs3_types_v1beta1_types_proto = out.File + file_cs3_types_v1beta1_types_proto_rawDesc = nil + file_cs3_types_v1beta1_types_proto_goTypes = nil + file_cs3_types_v1beta1_types_proto_depIdxs = nil +} diff --git a/build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go b/build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go new file mode 100644 index 00000000..a3b4c6a7 --- /dev/null +++ b/build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go @@ -0,0 +1,21 @@ +// Code generated by protoc-gen-micro. DO NOT EDIT. +// source: cs3/types/v1beta1/types.proto + +package typesv1beta1 + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package From d80dad54f9124df7693d88859b3b0019802a95c4 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 11:45:13 +0200 Subject: [PATCH 04/17] first draft of management api for users and groups --- cs3/admin/group/v1beta1/group_api.proto | 103 ++++++++++++++++++++++++ cs3/admin/user/v1beta1/admin_api.proto | 79 ++++++++++++++++++ 2 files changed, 182 insertions(+) create mode 100644 cs3/admin/group/v1beta1/group_api.proto create mode 100644 cs3/admin/user/v1beta1/admin_api.proto diff --git a/cs3/admin/group/v1beta1/group_api.proto b/cs3/admin/group/v1beta1/group_api.proto new file mode 100644 index 00000000..bce264d9 --- /dev/null +++ b/cs3/admin/group/v1beta1/group_api.proto @@ -0,0 +1,103 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +syntax = "proto3"; + +package cs3.admin.group.v1beta1; + +option csharp_namespace = "Cs3.Admin.Group.V1Beta1"; +option go_package = "admingroupv1beta1"; +option java_multiple_files = true; +option java_outer_classname = "AdminGroupApiProto"; +option java_package = "com.cs3.admin.group.v1beta1"; +option objc_class_prefix = "CIU"; +option php_namespace = "Cs3\\Admin\\Group\\V1Beta1"; + +import "cs3/identity/group/v1beta1/resources.proto"; +import "cs3/identity/user/v1beta1/resources.proto"; +import "cs3/rpc/v1beta1/status.proto"; +import "cs3/types/v1beta1/types.proto"; + +service GroupAPI { + // Create a group. + rpc Create(CreateGroupRequest) returns (CreateGroupResponse); + // Delete a group. + rpc Delete(DeleteGroupRequest) returns (DeleteGroupResponse); + // Add a user to a group. + rpc AddUser(AddUserRequest) returns (AddUserResponse); +} + +message CreateGroupRequest { + // OPTIONAL. + // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries + cs3.types.v1beta1.Opaque opaque = 1; + // REQUIRED. + // The information of group to be created. + cs3.identity.group.v1beta1.Group group = 3; +} + +message CreateGroupResponse { + // REQUIRED. + // The response status. + cs3.rpc.v1beta1.Status status = 1; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 2; + // REQUIRED. + // The group information. + cs3.identity.group.v1beta1.Group group = 3; +} + +message DeleteGroupRequest { + // OPTIONAL. + // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries. + cs3.types.v1beta1.Opaque opaque = 1; + // REQUIRED. + // The group to be deleted, given their ID. + cs3.identity.group.v1beta1.GroupId groupid = 2; +} + +message DeleteGroupResponse { + // REQUIRED. + // The response status. + cs3.rpc.v1beta1.Status status = 1; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 2; +} + +message AddUserRequest { + // REQUIRED. + // ID of the user to add to the group + cs3.identity.user.v1beta1.UserId userid = 1; + // REQUIRED. + // ID of the target group. + cs3.identity.group.v1beta1.GroupId groupid = 2; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 3; +} + +message AddUserResponse { + // REQUIRED. + // The response status. + cs3.rpc.v1beta1.Status status = 1; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 2; +} \ No newline at end of file diff --git a/cs3/admin/user/v1beta1/admin_api.proto b/cs3/admin/user/v1beta1/admin_api.proto new file mode 100644 index 00000000..c15b64f6 --- /dev/null +++ b/cs3/admin/user/v1beta1/admin_api.proto @@ -0,0 +1,79 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +syntax = "proto3"; + +package cs3.admin.user.v1beta1; + +option csharp_namespace = "Cs3.Admin.User.V1Beta1"; +option go_package = "adminuserv1beta1"; +option java_multiple_files = true; +option java_outer_classname = "AdminUserApiProto"; +option java_package = "com.cs3.admin.user.v1beta1"; +option objc_class_prefix = "CIU"; +option php_namespace = "Cs3\\Admin\\User\\V1Beta1"; + +import "cs3/identity/user/v1beta1/resources.proto"; +import "cs3/rpc/v1beta1/status.proto"; +import "cs3/types/v1beta1/types.proto"; + +service UserAPI { + // Create a user account. + rpc Create(CreateUserRequest) returns (CreateUserResponse); + // Delete a user account. + rpc Delete(DeleteUserRequest) returns (DeleteUserResponse); +} + +message CreateUserRequest { + // OPTIONAL. + // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries + cs3.types.v1beta1.Opaque opaque = 1; + // REQUIRED. + // The information of user to be created. + cs3.identity.user.v1beta1.User user = 3; +} + +message CreateUserResponse { + // REQUIRED. + // The response status. + cs3.rpc.v1beta1.Status status = 1; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 2; + // REQUIRED. + // The user information. + cs3.identity.user.v1beta1.User user = 3; +} + +message DeleteUserRequest { + // OPTIONAL. + // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries + cs3.types.v1beta1.Opaque opaque = 1; + // REQUIRED. + // The user to be deleted, given their ID. + cs3.identity.user.v1beta1.UserId userid = 2; +} + +message DeleteUserResponse { + // REQUIRED. + // The response status. + cs3.rpc.v1beta1.Status status = 1; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 2; +} \ No newline at end of file From b2d35afbdf2d98d748dd186d7949b97e85a9eeeb Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 11:53:16 +0200 Subject: [PATCH 05/17] remove build folder --- .../app/provider/v1beta1/provider_api.pb.go | 506 -- .../provider/v1beta1/provider_api.pb.micro.go | 100 - .../app/registry/v1beta1/registry_api.pb.go | 623 -- .../registry/v1beta1/registry_api.pb.micro.go | 119 - .../cs3/app/registry/v1beta1/resources.pb.go | 223 - .../registry/v1beta1/resources.pb.micro.go | 22 - .../auth/provider/v1beta1/provider_api.pb.go | 385 - .../provider/v1beta1/provider_api.pb.micro.go | 98 - .../auth/registry/v1beta1/registry_api.pb.go | 616 -- .../registry/v1beta1/registry_api.pb.micro.go | 120 - .../cs3/auth/registry/v1beta1/resources.pb.go | 228 - .../registry/v1beta1/resources.pb.micro.go | 22 - .../cs3/gateway/v1beta1/gateway_api.pb.go | 5018 ------------- .../gateway/v1beta1/gateway_api.pb.micro.go | 1679 ----- .../cs3/gateway/v1beta1/resources.pb.go | 359 - .../cs3/gateway/v1beta1/resources.pb.micro.go | 24 - .../cs3/identity/user/v1beta1/resources.pb.go | 321 - .../user/v1beta1/resources.pb.micro.go | 22 - .../cs3/identity/user/v1beta1/user_api.pb.go | 1531 ---- .../user/v1beta1/user_api.pb.micro.go | 194 - .../cs3/ocm/core/v1beta1/ocm_core_api.pb.go | 484 -- .../ocm/core/v1beta1/ocm_core_api.pb.micro.go | 98 - .../cs3/ocm/core/v1beta1/resources.pb.go | 195 - .../ocm/core/v1beta1/resources.pb.micro.go | 22 - .../cs3/ocm/invite/v1beta1/invite_api.pb.go | 1080 --- .../ocm/invite/v1beta1/invite_api.pb.micro.go | 156 - .../cs3/ocm/invite/v1beta1/resources.pb.go | 220 - .../ocm/invite/v1beta1/resources.pb.micro.go | 24 - .../ocm/provider/v1beta1/provider_api.pb.go | 829 --- .../provider/v1beta1/provider_api.pb.micro.go | 139 - .../cs3/ocm/provider/v1beta1/resources.pb.go | 597 -- .../provider/v1beta1/resources.pb.micro.go | 21 - .../preferences/v1beta1/preferences_api.pb.go | 542 -- .../v1beta1/preferences_api.pb.micro.go | 117 - build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go | 367 - .../cs3/rpc/v1beta1/code.pb.micro.go | 21 - build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go | 221 - .../cs3/rpc/v1beta1/status.pb.micro.go | 21 - .../v1beta1/collaboration_api.pb.go | 2466 ------- .../v1beta1/collaboration_api.pb.micro.go | 254 - .../collaboration/v1beta1/resources.pb.go | 920 --- .../v1beta1/resources.pb.micro.go | 24 - .../cs3/sharing/link/v1beta1/link_api.pb.go | 1963 ------ .../sharing/link/v1beta1/link_api.pb.micro.go | 214 - .../cs3/sharing/link/v1beta1/resources.pb.go | 700 -- .../link/v1beta1/resources.pb.micro.go | 24 - .../cs3/sharing/ocm/v1beta1/ocm_api.pb.go | 2477 ------- .../sharing/ocm/v1beta1/ocm_api.pb.micro.go | 255 - .../cs3/sharing/ocm/v1beta1/resources.pb.go | 933 --- .../sharing/ocm/v1beta1/resources.pb.micro.go | 24 - .../provider/v1beta1/provider_api.pb.go | 6205 ----------------- .../provider/v1beta1/provider_api.pb.micro.go | 808 --- .../storage/provider/v1beta1/resources.pb.go | 2025 ------ .../provider/v1beta1/resources.pb.micro.go | 23 - .../registry/v1beta1/registry_api.pb.go | 839 --- .../registry/v1beta1/registry_api.pb.micro.go | 140 - .../storage/registry/v1beta1/resources.pb.go | 337 - .../registry/v1beta1/resources.pb.micro.go | 22 - .../go-cs3apis/cs3/tx/v1beta1/resources.pb.go | 455 -- .../cs3/tx/v1beta1/resources.pb.micro.go | 24 - build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go | 865 --- .../cs3/tx/v1beta1/tx_api.pb.micro.go | 138 - .../go-cs3apis/cs3/types/v1beta1/types.pb.go | 357 - .../cs3/types/v1beta1/types.pb.micro.go | 21 - 64 files changed, 39877 deletions(-) delete mode 100644 build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go delete mode 100644 build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go delete mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go delete mode 100644 build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go delete mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go delete mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go delete mode 100644 build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go delete mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go delete mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go delete mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go delete mode 100644 build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go delete mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go delete mode 100644 build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go delete mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go delete mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go delete mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go delete mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go delete mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go delete mode 100644 build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go delete mode 100644 build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go delete mode 100644 build/go-cs3apis/cs3/types/v1beta1/types.pb.go delete mode 100644 build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go diff --git a/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go deleted file mode 100644 index ef2c0848..00000000 --- a/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.go +++ /dev/null @@ -1,506 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/app/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - context "context" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// REQUIRED. -// View mode. -type OpenFileInAppProviderRequest_ViewMode int32 - -const ( - OpenFileInAppProviderRequest_VIEW_MODE_INVALID OpenFileInAppProviderRequest_ViewMode = 0 - // The file can be opened but not downloaded. - OpenFileInAppProviderRequest_VIEW_MODE_VIEW_ONLY OpenFileInAppProviderRequest_ViewMode = 1 - // The file can be downloaded. - OpenFileInAppProviderRequest_VIEW_MODE_READ_ONLY OpenFileInAppProviderRequest_ViewMode = 2 - // The file can be downloaded and updated. - OpenFileInAppProviderRequest_VIEW_MODE_READ_WRITE OpenFileInAppProviderRequest_ViewMode = 3 -) - -// Enum value maps for OpenFileInAppProviderRequest_ViewMode. -var ( - OpenFileInAppProviderRequest_ViewMode_name = map[int32]string{ - 0: "VIEW_MODE_INVALID", - 1: "VIEW_MODE_VIEW_ONLY", - 2: "VIEW_MODE_READ_ONLY", - 3: "VIEW_MODE_READ_WRITE", - } - OpenFileInAppProviderRequest_ViewMode_value = map[string]int32{ - "VIEW_MODE_INVALID": 0, - "VIEW_MODE_VIEW_ONLY": 1, - "VIEW_MODE_READ_ONLY": 2, - "VIEW_MODE_READ_WRITE": 3, - } -) - -func (x OpenFileInAppProviderRequest_ViewMode) Enum() *OpenFileInAppProviderRequest_ViewMode { - p := new(OpenFileInAppProviderRequest_ViewMode) - *p = x - return p -} - -func (x OpenFileInAppProviderRequest_ViewMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OpenFileInAppProviderRequest_ViewMode) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes[0].Descriptor() -} - -func (OpenFileInAppProviderRequest_ViewMode) Type() protoreflect.EnumType { - return &file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes[0] -} - -func (x OpenFileInAppProviderRequest_ViewMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OpenFileInAppProviderRequest_ViewMode.Descriptor instead. -func (OpenFileInAppProviderRequest_ViewMode) EnumDescriptor() ([]byte, []int) { - return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0, 0} -} - -type OpenFileInAppProviderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The resourceInfo to be opened. The gateway grpc message has a ref instead. - ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` - ViewMode OpenFileInAppProviderRequest_ViewMode `protobuf:"varint,3,opt,name=view_mode,json=viewMode,proto3,enum=cs3.app.provider.v1beta1.OpenFileInAppProviderRequest_ViewMode" json:"view_mode,omitempty"` - // REQUIRED. - // The access token this application provider will use when contacting - // the storage provider to read and write. - // Service implementors MUST make sure that the access token only grants - // access to the requested resource. - // Service implementors should use a ResourceId rather than a filename to grant access, as - // ResourceIds MUST NOT change when a resource is renamed. - // The access token MUST be short-lived. - // TODO(labkode): investigate token derivation techniques. - AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` -} - -func (x *OpenFileInAppProviderRequest) Reset() { - *x = OpenFileInAppProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenFileInAppProviderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenFileInAppProviderRequest) ProtoMessage() {} - -func (x *OpenFileInAppProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_app_provider_v1beta1_provider_api_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 OpenFileInAppProviderRequest.ProtoReflect.Descriptor instead. -func (*OpenFileInAppProviderRequest) Descriptor() ([]byte, []int) { - return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} -} - -func (x *OpenFileInAppProviderRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *OpenFileInAppProviderRequest) GetResourceInfo() *v1beta11.ResourceInfo { - if x != nil { - return x.ResourceInfo - } - return nil -} - -func (x *OpenFileInAppProviderRequest) GetViewMode() OpenFileInAppProviderRequest_ViewMode { - if x != nil { - return x.ViewMode - } - return OpenFileInAppProviderRequest_VIEW_MODE_INVALID -} - -func (x *OpenFileInAppProviderRequest) GetAccessToken() string { - if x != nil { - return x.AccessToken - } - return "" -} - -type OpenFileInAppProviderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The url that user agents will render to clients. - // Usually the rendering happens by using HTML iframes or in separate browser tabs. - AppProviderUrl string `protobuf:"bytes,3,opt,name=app_provider_url,json=appProviderUrl,proto3" json:"app_provider_url,omitempty"` -} - -func (x *OpenFileInAppProviderResponse) Reset() { - *x = OpenFileInAppProviderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenFileInAppProviderResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenFileInAppProviderResponse) ProtoMessage() {} - -func (x *OpenFileInAppProviderResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_app_provider_v1beta1_provider_api_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 OpenFileInAppProviderResponse.ProtoReflect.Descriptor instead. -func (*OpenFileInAppProviderResponse) Descriptor() ([]byte, []int) { - return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} -} - -func (x *OpenFileInAppProviderResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *OpenFileInAppProviderResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *OpenFileInAppProviderResponse) GetAppProviderUrl() string { - if x != nil { - return x.AppProviderUrl - } - return "" -} - -var File_cs3_app_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor - -var file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, - 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x92, 0x03, 0x0a, 0x1c, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, - 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5c, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, - 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3f, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, - 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x76, 0x69, 0x65, - 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6d, 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, - 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, - 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x56, - 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4f, 0x4e, - 0x4c, 0x59, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, - 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x18, 0x0a, - 0x14, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, - 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x03, 0x22, 0xad, 0x01, 0x0a, 0x1d, 0x4f, 0x70, 0x65, 0x6e, - 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x28, 0x0a, - 0x10, 0x61, 0x70, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x75, 0x72, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x32, 0x98, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, - 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, - 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, - 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0x7f, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x42, 0x10, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa, 0x02, 0x18, - 0x43, 0x73, 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41, - 0x70, 0x70, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, - 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_app_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once - file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc -) - -func file_cs3_app_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { - file_cs3_app_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { - file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData) - }) - return file_cs3_app_provider_v1beta1_provider_api_proto_rawDescData -} - -var file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cs3_app_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ - (OpenFileInAppProviderRequest_ViewMode)(0), // 0: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.ViewMode - (*OpenFileInAppProviderRequest)(nil), // 1: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest - (*OpenFileInAppProviderResponse)(nil), // 2: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse - (*v1beta1.Opaque)(nil), // 3: cs3.types.v1beta1.Opaque - (*v1beta11.ResourceInfo)(nil), // 4: cs3.storage.provider.v1beta1.ResourceInfo - (*v1beta12.Status)(nil), // 5: cs3.rpc.v1beta1.Status -} -var file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs = []int32{ - 3, // 0: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 4, // 1: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo - 0, // 2: cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.view_mode:type_name -> cs3.app.provider.v1beta1.OpenFileInAppProviderRequest.ViewMode - 5, // 3: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse.status:type_name -> cs3.rpc.v1beta1.Status - 3, // 4: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 1, // 5: cs3.app.provider.v1beta1.ProviderAPI.OpenFileInAppProvider:input_type -> cs3.app.provider.v1beta1.OpenFileInAppProviderRequest - 2, // 6: cs3.app.provider.v1beta1.ProviderAPI.OpenFileInAppProvider:output_type -> cs3.app.provider.v1beta1.OpenFileInAppProviderResponse - 6, // [6:7] is the sub-list for method output_type - 5, // [5:6] 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_cs3_app_provider_v1beta1_provider_api_proto_init() } -func file_cs3_app_provider_v1beta1_provider_api_proto_init() { - if File_cs3_app_provider_v1beta1_provider_api_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenFileInAppProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenFileInAppProviderResponse); 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_cs3_app_provider_v1beta1_provider_api_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_app_provider_v1beta1_provider_api_proto_goTypes, - DependencyIndexes: file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs, - EnumInfos: file_cs3_app_provider_v1beta1_provider_api_proto_enumTypes, - MessageInfos: file_cs3_app_provider_v1beta1_provider_api_proto_msgTypes, - }.Build() - File_cs3_app_provider_v1beta1_provider_api_proto = out.File - file_cs3_app_provider_v1beta1_provider_api_proto_rawDesc = nil - file_cs3_app_provider_v1beta1_provider_api_proto_goTypes = nil - file_cs3_app_provider_v1beta1_provider_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ProviderAPIClient is the client API for ProviderAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProviderAPIClient interface { - // Returns the App provider URL - // MUST return CODE_NOT_FOUND if the resource does not exist. - OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*OpenFileInAppProviderResponse, error) -} - -type providerAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { - return &providerAPIClient{cc} -} - -func (c *providerAPIClient) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*OpenFileInAppProviderResponse, error) { - out := new(OpenFileInAppProviderResponse) - err := c.cc.Invoke(ctx, "/cs3.app.provider.v1beta1.ProviderAPI/OpenFileInAppProvider", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProviderAPIServer is the server API for ProviderAPI service. -type ProviderAPIServer interface { - // Returns the App provider URL - // MUST return CODE_NOT_FOUND if the resource does not exist. - OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*OpenFileInAppProviderResponse, error) -} - -// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. -type UnimplementedProviderAPIServer struct { -} - -func (*UnimplementedProviderAPIServer) OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*OpenFileInAppProviderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenFileInAppProvider not implemented") -} - -func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { - s.RegisterService(&_ProviderAPI_serviceDesc, srv) -} - -func _ProviderAPI_OpenFileInAppProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenFileInAppProviderRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).OpenFileInAppProvider(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.app.provider.v1beta1.ProviderAPI/OpenFileInAppProvider", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).OpenFileInAppProvider(ctx, req.(*OpenFileInAppProviderRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.app.provider.v1beta1.ProviderAPI", - HandlerType: (*ProviderAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "OpenFileInAppProvider", - Handler: _ProviderAPI_OpenFileInAppProvider_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/app/provider/v1beta1/provider_api.proto", -} diff --git a/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go deleted file mode 100644 index 2cf9cdd1..00000000 --- a/build/go-cs3apis/cs3/app/provider/v1beta1/provider_api.pb.micro.go +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/app/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for ProviderAPI service - -func NewProviderAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for ProviderAPI service - -type ProviderAPIService interface { - // Returns the App provider URL - // MUST return CODE_NOT_FOUND if the resource does not exist. - OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*OpenFileInAppProviderResponse, error) -} - -type providerAPIService struct { - c client.Client - name string -} - -func NewProviderAPIService(name string, c client.Client) ProviderAPIService { - return &providerAPIService{ - c: c, - name: name, - } -} - -func (c *providerAPIService) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*OpenFileInAppProviderResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.OpenFileInAppProvider", in) - out := new(OpenFileInAppProviderResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for ProviderAPI service - -type ProviderAPIHandler interface { - // Returns the App provider URL - // MUST return CODE_NOT_FOUND if the resource does not exist. - OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest, *OpenFileInAppProviderResponse) error -} - -func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { - type providerAPI interface { - OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *OpenFileInAppProviderResponse) error - } - type ProviderAPI struct { - providerAPI - } - h := &providerAPIHandler{hdlr} - return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) -} - -type providerAPIHandler struct { - ProviderAPIHandler -} - -func (h *providerAPIHandler) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *OpenFileInAppProviderResponse) error { - return h.ProviderAPIHandler.OpenFileInAppProvider(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go b/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go deleted file mode 100644 index 56fb9e7b..00000000 --- a/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.go +++ /dev/null @@ -1,623 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/app/registry/v1beta1/registry_api.proto - -package registryv1beta1 - -import ( - context "context" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type GetAppProvidersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The resource information. - ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` -} - -func (x *GetAppProvidersRequest) Reset() { - *x = GetAppProvidersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAppProvidersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAppProvidersRequest) ProtoMessage() {} - -func (x *GetAppProvidersRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_app_registry_v1beta1_registry_api_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 GetAppProvidersRequest.ProtoReflect.Descriptor instead. -func (*GetAppProvidersRequest) Descriptor() ([]byte, []int) { - return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{0} -} - -func (x *GetAppProvidersRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetAppProvidersRequest) GetResourceInfo() *v1beta11.ResourceInfo { - if x != nil { - return x.ResourceInfo - } - return nil -} - -type GetAppProvidersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The app providers available for the given resource info. - Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` -} - -func (x *GetAppProvidersResponse) Reset() { - *x = GetAppProvidersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAppProvidersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAppProvidersResponse) ProtoMessage() {} - -func (x *GetAppProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_app_registry_v1beta1_registry_api_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 GetAppProvidersResponse.ProtoReflect.Descriptor instead. -func (*GetAppProvidersResponse) Descriptor() ([]byte, []int) { - return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{1} -} - -func (x *GetAppProvidersResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetAppProvidersResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetAppProvidersResponse) GetProviders() []*ProviderInfo { - if x != nil { - return x.Providers - } - return nil -} - -type ListAppProvidersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter? -} - -func (x *ListAppProvidersRequest) Reset() { - *x = ListAppProvidersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAppProvidersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAppProvidersRequest) ProtoMessage() {} - -func (x *ListAppProvidersRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_app_registry_v1beta1_registry_api_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 ListAppProvidersRequest.ProtoReflect.Descriptor instead. -func (*ListAppProvidersRequest) Descriptor() ([]byte, []int) { - return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{2} -} - -func (x *ListAppProvidersRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListAppProvidersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of app providers this registry knows about. - Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` -} - -func (x *ListAppProvidersResponse) Reset() { - *x = ListAppProvidersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAppProvidersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAppProvidersResponse) ProtoMessage() {} - -func (x *ListAppProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_app_registry_v1beta1_registry_api_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 ListAppProvidersResponse.ProtoReflect.Descriptor instead. -func (*ListAppProvidersResponse) Descriptor() ([]byte, []int) { - return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{3} -} - -func (x *ListAppProvidersResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListAppProvidersResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListAppProvidersResponse) GetProviders() []*ProviderInfo { - if x != nil { - return x.Providers - } - return nil -} - -var File_cs3_app_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor - -var file_cs3_app_registry_v1beta1_registry_api_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, - 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, - 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, - 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x01, 0x0a, - 0x16, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x17, - 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x73, 0x22, 0x4c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, - 0xc4, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x12, 0x44, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, 0x80, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x41, 0x50, 0x49, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, - 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x7f, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, - 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_cs3_app_registry_v1beta1_registry_api_proto_rawDescOnce sync.Once - file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData = file_cs3_app_registry_v1beta1_registry_api_proto_rawDesc -) - -func file_cs3_app_registry_v1beta1_registry_api_proto_rawDescGZIP() []byte { - file_cs3_app_registry_v1beta1_registry_api_proto_rawDescOnce.Do(func() { - file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData) - }) - return file_cs3_app_registry_v1beta1_registry_api_proto_rawDescData -} - -var file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cs3_app_registry_v1beta1_registry_api_proto_goTypes = []interface{}{ - (*GetAppProvidersRequest)(nil), // 0: cs3.app.registry.v1beta1.GetAppProvidersRequest - (*GetAppProvidersResponse)(nil), // 1: cs3.app.registry.v1beta1.GetAppProvidersResponse - (*ListAppProvidersRequest)(nil), // 2: cs3.app.registry.v1beta1.ListAppProvidersRequest - (*ListAppProvidersResponse)(nil), // 3: cs3.app.registry.v1beta1.ListAppProvidersResponse - (*v1beta1.Opaque)(nil), // 4: cs3.types.v1beta1.Opaque - (*v1beta11.ResourceInfo)(nil), // 5: cs3.storage.provider.v1beta1.ResourceInfo - (*v1beta12.Status)(nil), // 6: cs3.rpc.v1beta1.Status - (*ProviderInfo)(nil), // 7: cs3.app.registry.v1beta1.ProviderInfo -} -var file_cs3_app_registry_v1beta1_registry_api_proto_depIdxs = []int32{ - 4, // 0: cs3.app.registry.v1beta1.GetAppProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 5, // 1: cs3.app.registry.v1beta1.GetAppProvidersRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo - 6, // 2: cs3.app.registry.v1beta1.GetAppProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status - 4, // 3: cs3.app.registry.v1beta1.GetAppProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 4: cs3.app.registry.v1beta1.GetAppProvidersResponse.providers:type_name -> cs3.app.registry.v1beta1.ProviderInfo - 4, // 5: cs3.app.registry.v1beta1.ListAppProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 6, // 6: cs3.app.registry.v1beta1.ListAppProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status - 4, // 7: cs3.app.registry.v1beta1.ListAppProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 8: cs3.app.registry.v1beta1.ListAppProvidersResponse.providers:type_name -> cs3.app.registry.v1beta1.ProviderInfo - 0, // 9: cs3.app.registry.v1beta1.RegistryAPI.GetAppProviders:input_type -> cs3.app.registry.v1beta1.GetAppProvidersRequest - 2, // 10: cs3.app.registry.v1beta1.RegistryAPI.ListAppProviders:input_type -> cs3.app.registry.v1beta1.ListAppProvidersRequest - 1, // 11: cs3.app.registry.v1beta1.RegistryAPI.GetAppProviders:output_type -> cs3.app.registry.v1beta1.GetAppProvidersResponse - 3, // 12: cs3.app.registry.v1beta1.RegistryAPI.ListAppProviders:output_type -> cs3.app.registry.v1beta1.ListAppProvidersResponse - 11, // [11:13] is the sub-list for method output_type - 9, // [9:11] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_cs3_app_registry_v1beta1_registry_api_proto_init() } -func file_cs3_app_registry_v1beta1_registry_api_proto_init() { - if File_cs3_app_registry_v1beta1_registry_api_proto != nil { - return - } - file_cs3_app_registry_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAppProvidersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAppProvidersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAppProvidersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAppProvidersResponse); 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_cs3_app_registry_v1beta1_registry_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_app_registry_v1beta1_registry_api_proto_goTypes, - DependencyIndexes: file_cs3_app_registry_v1beta1_registry_api_proto_depIdxs, - MessageInfos: file_cs3_app_registry_v1beta1_registry_api_proto_msgTypes, - }.Build() - File_cs3_app_registry_v1beta1_registry_api_proto = out.File - file_cs3_app_registry_v1beta1_registry_api_proto_rawDesc = nil - file_cs3_app_registry_v1beta1_registry_api_proto_goTypes = nil - file_cs3_app_registry_v1beta1_registry_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// RegistryAPIClient is the client API for RegistryAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RegistryAPIClient interface { - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...grpc.CallOption) (*GetAppProvidersResponse, error) - // Returns a list of the available app providers known by this registry. - ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error) -} - -type registryAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient { - return ®istryAPIClient{cc} -} - -func (c *registryAPIClient) GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...grpc.CallOption) (*GetAppProvidersResponse, error) { - out := new(GetAppProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.app.registry.v1beta1.RegistryAPI/GetAppProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIClient) ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error) { - out := new(ListAppProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.app.registry.v1beta1.RegistryAPI/ListAppProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RegistryAPIServer is the server API for RegistryAPI service. -type RegistryAPIServer interface { - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error) - // Returns a list of the available app providers known by this registry. - ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error) -} - -// UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations. -type UnimplementedRegistryAPIServer struct { -} - -func (*UnimplementedRegistryAPIServer) GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAppProviders not implemented") -} -func (*UnimplementedRegistryAPIServer) ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAppProviders not implemented") -} - -func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer) { - s.RegisterService(&_RegistryAPI_serviceDesc, srv) -} - -func _RegistryAPI_GetAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAppProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RegistryAPIServer).GetAppProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.app.registry.v1beta1.RegistryAPI/GetAppProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RegistryAPIServer).GetAppProviders(ctx, req.(*GetAppProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RegistryAPI_ListAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListAppProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RegistryAPIServer).ListAppProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.app.registry.v1beta1.RegistryAPI/ListAppProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RegistryAPIServer).ListAppProviders(ctx, req.(*ListAppProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RegistryAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.app.registry.v1beta1.RegistryAPI", - HandlerType: (*RegistryAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetAppProviders", - Handler: _RegistryAPI_GetAppProviders_Handler, - }, - { - MethodName: "ListAppProviders", - Handler: _RegistryAPI_ListAppProviders_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/app/registry/v1beta1/registry_api.proto", -} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go b/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go deleted file mode 100644 index e75e750d..00000000 --- a/build/go-cs3apis/cs3/app/registry/v1beta1/registry_api.pb.micro.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/app/registry/v1beta1/registry_api.proto - -package registryv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for RegistryAPI service - -func NewRegistryAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for RegistryAPI service - -type RegistryAPIService interface { - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...client.CallOption) (*GetAppProvidersResponse, error) - // Returns a list of the available app providers known by this registry. - ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...client.CallOption) (*ListAppProvidersResponse, error) -} - -type registryAPIService struct { - c client.Client - name string -} - -func NewRegistryAPIService(name string, c client.Client) RegistryAPIService { - return ®istryAPIService{ - c: c, - name: name, - } -} - -func (c *registryAPIService) GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...client.CallOption) (*GetAppProvidersResponse, error) { - req := c.c.NewRequest(c.name, "RegistryAPI.GetAppProviders", in) - out := new(GetAppProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIService) ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...client.CallOption) (*ListAppProvidersResponse, error) { - req := c.c.NewRequest(c.name, "RegistryAPI.ListAppProviders", in) - out := new(ListAppProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for RegistryAPI service - -type RegistryAPIHandler interface { - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(context.Context, *GetAppProvidersRequest, *GetAppProvidersResponse) error - // Returns a list of the available app providers known by this registry. - ListAppProviders(context.Context, *ListAppProvidersRequest, *ListAppProvidersResponse) error -} - -func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error { - type registryAPI interface { - GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, out *GetAppProvidersResponse) error - ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, out *ListAppProvidersResponse) error - } - type RegistryAPI struct { - registryAPI - } - h := ®istryAPIHandler{hdlr} - return s.Handle(s.NewHandler(&RegistryAPI{h}, opts...)) -} - -type registryAPIHandler struct { - RegistryAPIHandler -} - -func (h *registryAPIHandler) GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, out *GetAppProvidersResponse) error { - return h.RegistryAPIHandler.GetAppProviders(ctx, in, out) -} - -func (h *registryAPIHandler) ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, out *ListAppProvidersResponse) error { - return h.RegistryAPIHandler.ListAppProviders(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go deleted file mode 100644 index c03ac45b..00000000 --- a/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.go +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/app/registry/v1beta1/resources.proto - -package registryv1beta1 - -import ( - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Represents the information of the app provider. -type ProviderInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The mimetypes handled by this provider. - MimeTypes []string `protobuf:"bytes,2,rep,name=mime_types,json=mimeTypes,proto3" json:"mime_types,omitempty"` - // REQUIRED. - // The address where the app provider can be reached. - // For example, tcp://localhost:1099. - Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` - // OPTIONAL. - // Information to describe the functionalities - // offered by the app provider. Meant to be read - // by humans. - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *ProviderInfo) Reset() { - *x = ProviderInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_app_registry_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderInfo) ProtoMessage() {} - -func (x *ProviderInfo) ProtoReflect() protoreflect.Message { - mi := &file_cs3_app_registry_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. -func (*ProviderInfo) Descriptor() ([]byte, []int) { - return file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ProviderInfo) GetMimeTypes() []string { - if x != nil { - return x.MimeTypes - } - return nil -} - -func (x *ProviderInfo) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *ProviderInfo) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_cs3_app_registry_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_app_registry_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, - 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x01, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6d, 0x65, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6d, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x42, 0x7d, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, - 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x18, 0x43, 0x73, - 0x33, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, - 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x70, 0x70, - 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_app_registry_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_app_registry_v1beta1_resources_proto_rawDescData = file_cs3_app_registry_v1beta1_resources_proto_rawDesc -) - -func file_cs3_app_registry_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_app_registry_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_app_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_app_registry_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_app_registry_v1beta1_resources_proto_rawDescData -} - -var file_cs3_app_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cs3_app_registry_v1beta1_resources_proto_goTypes = []interface{}{ - (*ProviderInfo)(nil), // 0: cs3.app.registry.v1beta1.ProviderInfo - (*v1beta1.Opaque)(nil), // 1: cs3.types.v1beta1.Opaque -} -var file_cs3_app_registry_v1beta1_resources_proto_depIdxs = []int32{ - 1, // 0: cs3.app.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cs3_app_registry_v1beta1_resources_proto_init() } -func file_cs3_app_registry_v1beta1_resources_proto_init() { - if File_cs3_app_registry_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_app_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInfo); 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_cs3_app_registry_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_app_registry_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_app_registry_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_app_registry_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_app_registry_v1beta1_resources_proto = out.File - file_cs3_app_registry_v1beta1_resources_proto_rawDesc = nil - file_cs3_app_registry_v1beta1_resources_proto_goTypes = nil - file_cs3_app_registry_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go deleted file mode 100644 index 5d296f9d..00000000 --- a/build/go-cs3apis/cs3/app/registry/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/app/registry/v1beta1/resources.proto - -package registryv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go deleted file mode 100644 index 437e0bc9..00000000 --- a/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.go +++ /dev/null @@ -1,385 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/auth/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - context "context" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type AuthenticateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` -} - -func (x *AuthenticateRequest) Reset() { - *x = AuthenticateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthenticateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthenticateRequest) ProtoMessage() {} - -func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_auth_provider_v1beta1_provider_api_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 AuthenticateRequest.ProtoReflect.Descriptor instead. -func (*AuthenticateRequest) Descriptor() ([]byte, []int) { - return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} -} - -func (x *AuthenticateRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *AuthenticateRequest) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *AuthenticateRequest) GetClientSecret() string { - if x != nil { - return x.ClientSecret - } - return "" -} - -type AuthenticateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - User *v1beta12.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *AuthenticateResponse) Reset() { - *x = AuthenticateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthenticateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthenticateResponse) ProtoMessage() {} - -func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_auth_provider_v1beta1_provider_api_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 AuthenticateResponse.ProtoReflect.Descriptor instead. -func (*AuthenticateResponse) Descriptor() ([]byte, []int) { - return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} -} - -func (x *AuthenticateResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *AuthenticateResponse) GetUser() *v1beta12.User { - if x != nil { - return x.User - } - return nil -} - -var File_cs3_auth_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor - -var file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc = []byte{ - 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, - 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x8a, 0x01, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x7c, - 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x7e, 0x0a, 0x0b, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x6f, 0x0a, 0x0c, 0x41, - 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x82, 0x01, 0x0a, - 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x41, 0x50, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, - 0x41, 0x75, 0x74, 0x68, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, - 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, - 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once - file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc -) - -func file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { - file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { - file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData) - }) - return file_cs3_auth_provider_v1beta1_provider_api_proto_rawDescData -} - -var file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ - (*AuthenticateRequest)(nil), // 0: cs3.auth.provider.v1beta1.AuthenticateRequest - (*AuthenticateResponse)(nil), // 1: cs3.auth.provider.v1beta1.AuthenticateResponse - (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque - (*v1beta11.Status)(nil), // 3: cs3.rpc.v1beta1.Status - (*v1beta12.User)(nil), // 4: cs3.identity.user.v1beta1.User -} -var file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs = []int32{ - 2, // 0: cs3.auth.provider.v1beta1.AuthenticateRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 3, // 1: cs3.auth.provider.v1beta1.AuthenticateResponse.status:type_name -> cs3.rpc.v1beta1.Status - 4, // 2: cs3.auth.provider.v1beta1.AuthenticateResponse.user:type_name -> cs3.identity.user.v1beta1.User - 0, // 3: cs3.auth.provider.v1beta1.ProviderAPI.Authenticate:input_type -> cs3.auth.provider.v1beta1.AuthenticateRequest - 1, // 4: cs3.auth.provider.v1beta1.ProviderAPI.Authenticate:output_type -> cs3.auth.provider.v1beta1.AuthenticateResponse - 4, // [4:5] is the sub-list for method output_type - 3, // [3:4] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cs3_auth_provider_v1beta1_provider_api_proto_init() } -func file_cs3_auth_provider_v1beta1_provider_api_proto_init() { - if File_cs3_auth_provider_v1beta1_provider_api_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthenticateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthenticateResponse); 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_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes, - DependencyIndexes: file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs, - MessageInfos: file_cs3_auth_provider_v1beta1_provider_api_proto_msgTypes, - }.Build() - File_cs3_auth_provider_v1beta1_provider_api_proto = out.File - file_cs3_auth_provider_v1beta1_provider_api_proto_rawDesc = nil - file_cs3_auth_provider_v1beta1_provider_api_proto_goTypes = nil - file_cs3_auth_provider_v1beta1_provider_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ProviderAPIClient is the client API for ProviderAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProviderAPIClient interface { - // Authenticate authenticates a client. - Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) -} - -type providerAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { - return &providerAPIClient{cc} -} - -func (c *providerAPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { - out := new(AuthenticateResponse) - err := c.cc.Invoke(ctx, "/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProviderAPIServer is the server API for ProviderAPI service. -type ProviderAPIServer interface { - // Authenticate authenticates a client. - Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) -} - -// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. -type UnimplementedProviderAPIServer struct { -} - -func (*UnimplementedProviderAPIServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented") -} - -func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { - s.RegisterService(&_ProviderAPI_serviceDesc, srv) -} - -func _ProviderAPI_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AuthenticateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).Authenticate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).Authenticate(ctx, req.(*AuthenticateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.auth.provider.v1beta1.ProviderAPI", - HandlerType: (*ProviderAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Authenticate", - Handler: _ProviderAPI_Authenticate_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/auth/provider/v1beta1/provider_api.proto", -} diff --git a/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go deleted file mode 100644 index 54017621..00000000 --- a/build/go-cs3apis/cs3/auth/provider/v1beta1/provider_api.pb.micro.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/auth/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for ProviderAPI service - -func NewProviderAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for ProviderAPI service - -type ProviderAPIService interface { - // Authenticate authenticates a client. - Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) -} - -type providerAPIService struct { - c client.Client - name string -} - -func NewProviderAPIService(name string, c client.Client) ProviderAPIService { - return &providerAPIService{ - c: c, - name: name, - } -} - -func (c *providerAPIService) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.Authenticate", in) - out := new(AuthenticateResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for ProviderAPI service - -type ProviderAPIHandler interface { - // Authenticate authenticates a client. - Authenticate(context.Context, *AuthenticateRequest, *AuthenticateResponse) error -} - -func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { - type providerAPI interface { - Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error - } - type ProviderAPI struct { - providerAPI - } - h := &providerAPIHandler{hdlr} - return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) -} - -type providerAPIHandler struct { - ProviderAPIHandler -} - -func (h *providerAPIHandler) Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error { - return h.ProviderAPIHandler.Authenticate(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go deleted file mode 100644 index 56c65a2f..00000000 --- a/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.go +++ /dev/null @@ -1,616 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/auth/registry/v1beta1/registry_api.proto - -package registryv1beta1 - -import ( - context "context" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type GetAuthProviderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The type of authentication provider. - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` -} - -func (x *GetAuthProviderRequest) Reset() { - *x = GetAuthProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAuthProviderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAuthProviderRequest) ProtoMessage() {} - -func (x *GetAuthProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_auth_registry_v1beta1_registry_api_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 GetAuthProviderRequest.ProtoReflect.Descriptor instead. -func (*GetAuthProviderRequest) Descriptor() ([]byte, []int) { - return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{0} -} - -func (x *GetAuthProviderRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetAuthProviderRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -type GetAuthProviderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The auth provider handling the requested auth call. - Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` -} - -func (x *GetAuthProviderResponse) Reset() { - *x = GetAuthProviderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAuthProviderResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAuthProviderResponse) ProtoMessage() {} - -func (x *GetAuthProviderResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_auth_registry_v1beta1_registry_api_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 GetAuthProviderResponse.ProtoReflect.Descriptor instead. -func (*GetAuthProviderResponse) Descriptor() ([]byte, []int) { - return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{1} -} - -func (x *GetAuthProviderResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetAuthProviderResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetAuthProviderResponse) GetProvider() *ProviderInfo { - if x != nil { - return x.Provider - } - return nil -} - -type ListAuthProvidersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter? -} - -func (x *ListAuthProvidersRequest) Reset() { - *x = ListAuthProvidersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAuthProvidersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAuthProvidersRequest) ProtoMessage() {} - -func (x *ListAuthProvidersRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_auth_registry_v1beta1_registry_api_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 ListAuthProvidersRequest.ProtoReflect.Descriptor instead. -func (*ListAuthProvidersRequest) Descriptor() ([]byte, []int) { - return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{2} -} - -func (x *ListAuthProvidersRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListAuthProvidersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of auth providers this registry knows about. - Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` -} - -func (x *ListAuthProvidersResponse) Reset() { - *x = ListAuthProvidersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAuthProvidersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAuthProvidersResponse) ProtoMessage() {} - -func (x *ListAuthProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_auth_registry_v1beta1_registry_api_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 ListAuthProvidersResponse.ProtoReflect.Descriptor instead. -func (*ListAuthProvidersResponse) Descriptor() ([]byte, []int) { - return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{3} -} - -func (x *ListAuthProvidersResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListAuthProvidersResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListAuthProvidersResponse) GetProviders() []*ProviderInfo { - if x != nil { - return x.Providers - } - return nil -} - -var File_cs3_auth_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor - -var file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc = []byte{ - 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, - 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61, - 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x5f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x43, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x4d, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x41, - 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, - 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, - 0x87, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x50, 0x49, 0x12, - 0x78, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x11, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x33, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, - 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x82, 0x01, 0x0a, 0x1d, 0x63, 0x6f, - 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xa2, 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, - 0x68, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, - 0x61, 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescOnce sync.Once - file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData = file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc -) - -func file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescGZIP() []byte { - file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescOnce.Do(func() { - file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData) - }) - return file_cs3_auth_registry_v1beta1_registry_api_proto_rawDescData -} - -var file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes = []interface{}{ - (*GetAuthProviderRequest)(nil), // 0: cs3.auth.registry.v1beta1.GetAuthProviderRequest - (*GetAuthProviderResponse)(nil), // 1: cs3.auth.registry.v1beta1.GetAuthProviderResponse - (*ListAuthProvidersRequest)(nil), // 2: cs3.auth.registry.v1beta1.ListAuthProvidersRequest - (*ListAuthProvidersResponse)(nil), // 3: cs3.auth.registry.v1beta1.ListAuthProvidersResponse - (*v1beta1.Opaque)(nil), // 4: cs3.types.v1beta1.Opaque - (*v1beta11.Status)(nil), // 5: cs3.rpc.v1beta1.Status - (*ProviderInfo)(nil), // 6: cs3.auth.registry.v1beta1.ProviderInfo -} -var file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs = []int32{ - 4, // 0: cs3.auth.registry.v1beta1.GetAuthProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 5, // 1: cs3.auth.registry.v1beta1.GetAuthProviderResponse.status:type_name -> cs3.rpc.v1beta1.Status - 4, // 2: cs3.auth.registry.v1beta1.GetAuthProviderResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 6, // 3: cs3.auth.registry.v1beta1.GetAuthProviderResponse.provider:type_name -> cs3.auth.registry.v1beta1.ProviderInfo - 4, // 4: cs3.auth.registry.v1beta1.ListAuthProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 5, // 5: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status - 4, // 6: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 6, // 7: cs3.auth.registry.v1beta1.ListAuthProvidersResponse.providers:type_name -> cs3.auth.registry.v1beta1.ProviderInfo - 0, // 8: cs3.auth.registry.v1beta1.RegistryAPI.GetAuthProvider:input_type -> cs3.auth.registry.v1beta1.GetAuthProviderRequest - 2, // 9: cs3.auth.registry.v1beta1.RegistryAPI.ListAuthProviders:input_type -> cs3.auth.registry.v1beta1.ListAuthProvidersRequest - 1, // 10: cs3.auth.registry.v1beta1.RegistryAPI.GetAuthProvider:output_type -> cs3.auth.registry.v1beta1.GetAuthProviderResponse - 3, // 11: cs3.auth.registry.v1beta1.RegistryAPI.ListAuthProviders:output_type -> cs3.auth.registry.v1beta1.ListAuthProvidersResponse - 10, // [10:12] is the sub-list for method output_type - 8, // [8:10] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_cs3_auth_registry_v1beta1_registry_api_proto_init() } -func file_cs3_auth_registry_v1beta1_registry_api_proto_init() { - if File_cs3_auth_registry_v1beta1_registry_api_proto != nil { - return - } - file_cs3_auth_registry_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAuthProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAuthProviderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAuthProvidersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAuthProvidersResponse); 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_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes, - DependencyIndexes: file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs, - MessageInfos: file_cs3_auth_registry_v1beta1_registry_api_proto_msgTypes, - }.Build() - File_cs3_auth_registry_v1beta1_registry_api_proto = out.File - file_cs3_auth_registry_v1beta1_registry_api_proto_rawDesc = nil - file_cs3_auth_registry_v1beta1_registry_api_proto_goTypes = nil - file_cs3_auth_registry_v1beta1_registry_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// RegistryAPIClient is the client API for RegistryAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RegistryAPIClient interface { - // Returns the auth provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...grpc.CallOption) (*GetAuthProviderResponse, error) - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) -} - -type registryAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient { - return ®istryAPIClient{cc} -} - -func (c *registryAPIClient) GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...grpc.CallOption) (*GetAuthProviderResponse, error) { - out := new(GetAuthProviderResponse) - err := c.cc.Invoke(ctx, "/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIClient) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) { - out := new(ListAuthProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.auth.registry.v1beta1.RegistryAPI/ListAuthProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RegistryAPIServer is the server API for RegistryAPI service. -type RegistryAPIServer interface { - // Returns the auth provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetAuthProvider(context.Context, *GetAuthProviderRequest) (*GetAuthProviderResponse, error) - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(context.Context, *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) -} - -// UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations. -type UnimplementedRegistryAPIServer struct { -} - -func (*UnimplementedRegistryAPIServer) GetAuthProvider(context.Context, *GetAuthProviderRequest) (*GetAuthProviderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAuthProvider not implemented") -} -func (*UnimplementedRegistryAPIServer) ListAuthProviders(context.Context, *ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAuthProviders not implemented") -} - -func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer) { - s.RegisterService(&_RegistryAPI_serviceDesc, srv) -} - -func _RegistryAPI_GetAuthProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAuthProviderRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RegistryAPIServer).GetAuthProvider(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RegistryAPIServer).GetAuthProvider(ctx, req.(*GetAuthProviderRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RegistryAPI_ListAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListAuthProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RegistryAPIServer).ListAuthProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.auth.registry.v1beta1.RegistryAPI/ListAuthProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RegistryAPIServer).ListAuthProviders(ctx, req.(*ListAuthProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RegistryAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.auth.registry.v1beta1.RegistryAPI", - HandlerType: (*RegistryAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetAuthProvider", - Handler: _RegistryAPI_GetAuthProvider_Handler, - }, - { - MethodName: "ListAuthProviders", - Handler: _RegistryAPI_ListAuthProviders_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/auth/registry/v1beta1/registry_api.proto", -} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go deleted file mode 100644 index 03743598..00000000 --- a/build/go-cs3apis/cs3/auth/registry/v1beta1/registry_api.pb.micro.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/auth/registry/v1beta1/registry_api.proto - -package registryv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for RegistryAPI service - -func NewRegistryAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for RegistryAPI service - -type RegistryAPIService interface { - // Returns the auth provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...client.CallOption) (*GetAuthProviderResponse, error) - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) -} - -type registryAPIService struct { - c client.Client - name string -} - -func NewRegistryAPIService(name string, c client.Client) RegistryAPIService { - return ®istryAPIService{ - c: c, - name: name, - } -} - -func (c *registryAPIService) GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, opts ...client.CallOption) (*GetAuthProviderResponse, error) { - req := c.c.NewRequest(c.name, "RegistryAPI.GetAuthProvider", in) - out := new(GetAuthProviderResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIService) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) { - req := c.c.NewRequest(c.name, "RegistryAPI.ListAuthProviders", in) - out := new(ListAuthProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for RegistryAPI service - -type RegistryAPIHandler interface { - // Returns the auth provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetAuthProvider(context.Context, *GetAuthProviderRequest, *GetAuthProviderResponse) error - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(context.Context, *ListAuthProvidersRequest, *ListAuthProvidersResponse) error -} - -func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error { - type registryAPI interface { - GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, out *GetAuthProviderResponse) error - ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, out *ListAuthProvidersResponse) error - } - type RegistryAPI struct { - registryAPI - } - h := ®istryAPIHandler{hdlr} - return s.Handle(s.NewHandler(&RegistryAPI{h}, opts...)) -} - -type registryAPIHandler struct { - RegistryAPIHandler -} - -func (h *registryAPIHandler) GetAuthProvider(ctx context.Context, in *GetAuthProviderRequest, out *GetAuthProviderResponse) error { - return h.RegistryAPIHandler.GetAuthProvider(ctx, in, out) -} - -func (h *registryAPIHandler) ListAuthProviders(ctx context.Context, in *ListAuthProvidersRequest, out *ListAuthProvidersResponse) error { - return h.RegistryAPIHandler.ListAuthProviders(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go deleted file mode 100644 index d38d71de..00000000 --- a/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.go +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/auth/registry/v1beta1/resources.proto - -package registryv1beta1 - -import ( - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// ProviderInfo provides the information about an authentication provider. -type ProviderInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information (containing storage-specific information). - // For example, additional metadata attached to the resource. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The storage provider id that will become part of the - // resource id. - // For example, if the provider_id is "home", resources obtained - // from this storage provider will have a resource id like "home:1234". - ProviderType string `protobuf:"bytes,2,opt,name=provider_type,json=providerType,proto3" json:"provider_type,omitempty"` - // REQUIRED. - // The address where the storage provider can be reached. - // For example, tcp://localhost:1099. - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - // OPTIONAL. - // Information to describe the functionalities - // offered by the storage provider. Meant to be read - // by humans. - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *ProviderInfo) Reset() { - *x = ProviderInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_auth_registry_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderInfo) ProtoMessage() {} - -func (x *ProviderInfo) ProtoReflect() protoreflect.Message { - mi := &file_cs3_auth_registry_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. -func (*ProviderInfo) Descriptor() ([]byte, []int) { - return file_cs3_auth_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ProviderInfo) GetProviderType() string { - if x != nil { - return x.ProviderType - } - return "" -} - -func (x *ProviderInfo) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *ProviderInfo) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_cs3_auth_registry_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_auth_registry_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33, - 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x01, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x80, 0x01, 0x0a, 0x1d, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, - 0x02, 0x03, 0x43, 0x41, 0x52, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x41, 0x75, 0x74, 0x68, - 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, - 0x31, 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x41, 0x75, 0x74, 0x68, 0x5c, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_auth_registry_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_auth_registry_v1beta1_resources_proto_rawDescData = file_cs3_auth_registry_v1beta1_resources_proto_rawDesc -) - -func file_cs3_auth_registry_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_auth_registry_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_auth_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_auth_registry_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_auth_registry_v1beta1_resources_proto_rawDescData -} - -var file_cs3_auth_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cs3_auth_registry_v1beta1_resources_proto_goTypes = []interface{}{ - (*ProviderInfo)(nil), // 0: cs3.auth.registry.v1beta1.ProviderInfo - (*v1beta1.Opaque)(nil), // 1: cs3.types.v1beta1.Opaque -} -var file_cs3_auth_registry_v1beta1_resources_proto_depIdxs = []int32{ - 1, // 0: cs3.auth.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cs3_auth_registry_v1beta1_resources_proto_init() } -func file_cs3_auth_registry_v1beta1_resources_proto_init() { - if File_cs3_auth_registry_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_auth_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInfo); 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_cs3_auth_registry_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_auth_registry_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_auth_registry_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_auth_registry_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_auth_registry_v1beta1_resources_proto = out.File - file_cs3_auth_registry_v1beta1_resources_proto_rawDesc = nil - file_cs3_auth_registry_v1beta1_resources_proto_goTypes = nil - file_cs3_auth_registry_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go deleted file mode 100644 index fa238608..00000000 --- a/build/go-cs3apis/cs3/auth/registry/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/auth/registry/v1beta1/resources.proto - -package registryv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go b/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go deleted file mode 100644 index 6d339a10..00000000 --- a/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.go +++ /dev/null @@ -1,5018 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/gateway/v1beta1/gateway_api.proto - -package gatewayv1beta1 - -import ( - context "context" - v1beta114 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/provider/v1beta1" - v1beta18 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/registry/v1beta1" - v1beta19 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/auth/registry/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta112 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/core/v1beta1" - v1beta110 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/invite/v1beta1" - v1beta111 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" - v1beta15 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/preferences/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta14 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/collaboration/v1beta1" - v1beta16 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/link/v1beta1" - v1beta17 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/ocm/v1beta1" - v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta113 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/tx/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// REQUIRED. -// View mode. -type OpenFileInAppProviderRequest_ViewMode int32 - -const ( - OpenFileInAppProviderRequest_VIEW_MODE_INVALID OpenFileInAppProviderRequest_ViewMode = 0 - // The file can be opened but not downloaded. - OpenFileInAppProviderRequest_VIEW_MODE_VIEW_ONLY OpenFileInAppProviderRequest_ViewMode = 1 - // The file can be downloaded. - OpenFileInAppProviderRequest_VIEW_MODE_READ_ONLY OpenFileInAppProviderRequest_ViewMode = 2 - // The file can be downloaded and updated. - OpenFileInAppProviderRequest_VIEW_MODE_READ_WRITE OpenFileInAppProviderRequest_ViewMode = 3 -) - -// Enum value maps for OpenFileInAppProviderRequest_ViewMode. -var ( - OpenFileInAppProviderRequest_ViewMode_name = map[int32]string{ - 0: "VIEW_MODE_INVALID", - 1: "VIEW_MODE_VIEW_ONLY", - 2: "VIEW_MODE_READ_ONLY", - 3: "VIEW_MODE_READ_WRITE", - } - OpenFileInAppProviderRequest_ViewMode_value = map[string]int32{ - "VIEW_MODE_INVALID": 0, - "VIEW_MODE_VIEW_ONLY": 1, - "VIEW_MODE_READ_ONLY": 2, - "VIEW_MODE_READ_WRITE": 3, - } -) - -func (x OpenFileInAppProviderRequest_ViewMode) Enum() *OpenFileInAppProviderRequest_ViewMode { - p := new(OpenFileInAppProviderRequest_ViewMode) - *p = x - return p -} - -func (x OpenFileInAppProviderRequest_ViewMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OpenFileInAppProviderRequest_ViewMode) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes[0].Descriptor() -} - -func (OpenFileInAppProviderRequest_ViewMode) Type() protoreflect.EnumType { - return &file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes[0] -} - -func (x OpenFileInAppProviderRequest_ViewMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OpenFileInAppProviderRequest_ViewMode.Descriptor instead. -func (OpenFileInAppProviderRequest_ViewMode) EnumDescriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{11, 0} -} - -type AuthenticateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The type of authentication to use. - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // OPTIONAL. - // The id of the client. - // For basic authentication with username and password - // both client_id and client_secret are expected to be filled. - // However, for example, for OIDC only a token is necessary. - ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - // OPTIONAL. - // The secret of the client. - ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` -} - -func (x *AuthenticateRequest) Reset() { - *x = AuthenticateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthenticateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthenticateRequest) ProtoMessage() {} - -func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 AuthenticateRequest.ProtoReflect.Descriptor instead. -func (*AuthenticateRequest) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{0} -} - -func (x *AuthenticateRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *AuthenticateRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *AuthenticateRequest) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *AuthenticateRequest) GetClientSecret() string { - if x != nil { - return x.ClientSecret - } - return "" -} - -type AuthenticateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The access token. - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // REQUIRED. - // The user. - User *v1beta12.User `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *AuthenticateResponse) Reset() { - *x = AuthenticateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthenticateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthenticateResponse) ProtoMessage() {} - -func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 AuthenticateResponse.ProtoReflect.Descriptor instead. -func (*AuthenticateResponse) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{1} -} - -func (x *AuthenticateResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *AuthenticateResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *AuthenticateResponse) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *AuthenticateResponse) GetUser() *v1beta12.User { - if x != nil { - return x.User - } - return nil -} - -type WhoAmIRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The access token. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *WhoAmIRequest) Reset() { - *x = WhoAmIRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WhoAmIRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WhoAmIRequest) ProtoMessage() {} - -func (x *WhoAmIRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 WhoAmIRequest.ProtoReflect.Descriptor instead. -func (*WhoAmIRequest) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{2} -} - -func (x *WhoAmIRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *WhoAmIRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -type WhoAmIResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The user information. - User *v1beta12.User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *WhoAmIResponse) Reset() { - *x = WhoAmIResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WhoAmIResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WhoAmIResponse) ProtoMessage() {} - -func (x *WhoAmIResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 WhoAmIResponse.ProtoReflect.Descriptor instead. -func (*WhoAmIResponse) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{3} -} - -func (x *WhoAmIResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *WhoAmIResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *WhoAmIResponse) GetUser() *v1beta12.User { - if x != nil { - return x.User - } - return nil -} - -type GetQuotaRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *GetQuotaRequest) Reset() { - *x = GetQuotaRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetQuotaRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetQuotaRequest) ProtoMessage() {} - -func (x *GetQuotaRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 GetQuotaRequest.ProtoReflect.Descriptor instead. -func (*GetQuotaRequest) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{4} -} - -func (x *GetQuotaRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetQuotaRequest) GetRef() *v1beta13.Reference { - if x != nil { - return x.Ref - } - return nil -} - -type ListRecycleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The start time range to query for recycle items. - // The value is the Unix Epoch timestamp in seconds. - FromTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The end time range to query for recycle items. - // The value is Unix Epoch timestamp in seconds. - ToTs *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` -} - -func (x *ListRecycleRequest) Reset() { - *x = ListRecycleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRecycleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecycleRequest) ProtoMessage() {} - -func (x *ListRecycleRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 ListRecycleRequest.ProtoReflect.Descriptor instead. -func (*ListRecycleRequest) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{5} -} - -func (x *ListRecycleRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListRecycleRequest) GetRef() *v1beta13.Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *ListRecycleRequest) GetFromTs() *v1beta1.Timestamp { - if x != nil { - return x.FromTs - } - return nil -} - -func (x *ListRecycleRequest) GetToTs() *v1beta1.Timestamp { - if x != nil { - return x.ToTs - } - return nil -} - -type ListRecycleStreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The start time range to query for recycle items. - // The value is the Unix Epoch timestamp in seconds. - FromTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The end time range to query for recycle items. - // The value is Unix Epoch timestamp in seconds. - ToTs *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` -} - -func (x *ListRecycleStreamRequest) Reset() { - *x = ListRecycleStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRecycleStreamRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecycleStreamRequest) ProtoMessage() {} - -func (x *ListRecycleStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 ListRecycleStreamRequest.ProtoReflect.Descriptor instead. -func (*ListRecycleStreamRequest) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{6} -} - -func (x *ListRecycleStreamRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListRecycleStreamRequest) GetRef() *v1beta13.Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *ListRecycleStreamRequest) GetFromTs() *v1beta1.Timestamp { - if x != nil { - return x.FromTs - } - return nil -} - -func (x *ListRecycleStreamRequest) GetToTs() *v1beta1.Timestamp { - if x != nil { - return x.ToTs - } - return nil -} - -type PurgeRecycleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *PurgeRecycleRequest) Reset() { - *x = PurgeRecycleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PurgeRecycleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PurgeRecycleRequest) ProtoMessage() {} - -func (x *PurgeRecycleRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 PurgeRecycleRequest.ProtoReflect.Descriptor instead. -func (*PurgeRecycleRequest) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{7} -} - -func (x *PurgeRecycleRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *PurgeRecycleRequest) GetRef() *v1beta13.Reference { - if x != nil { - return x.Ref - } - return nil -} - -type InitiateFileDownloadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocols through which data can be downloaded. - Protocols []*FileDownloadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` -} - -func (x *InitiateFileDownloadResponse) Reset() { - *x = InitiateFileDownloadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateFileDownloadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateFileDownloadResponse) ProtoMessage() {} - -func (x *InitiateFileDownloadResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_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 InitiateFileDownloadResponse.ProtoReflect.Descriptor instead. -func (*InitiateFileDownloadResponse) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{8} -} - -func (x *InitiateFileDownloadResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *InitiateFileDownloadResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *InitiateFileDownloadResponse) GetProtocols() []*FileDownloadProtocol { - if x != nil { - return x.Protocols - } - return nil -} - -type InitiateFileUploadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocols through which data can be uploaded. - Protocols []*FileUploadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` -} - -func (x *InitiateFileUploadResponse) Reset() { - *x = InitiateFileUploadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateFileUploadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateFileUploadResponse) ProtoMessage() {} - -func (x *InitiateFileUploadResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[9] - 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 InitiateFileUploadResponse.ProtoReflect.Descriptor instead. -func (*InitiateFileUploadResponse) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{9} -} - -func (x *InitiateFileUploadResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *InitiateFileUploadResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *InitiateFileUploadResponse) GetProtocols() []*FileUploadProtocol { - if x != nil { - return x.Protocols - } - return nil -} - -type ListAuthProvidersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of auth types. - // TODO(labkode): maybe add description? - Types []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` -} - -func (x *ListAuthProvidersResponse) Reset() { - *x = ListAuthProvidersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAuthProvidersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAuthProvidersResponse) ProtoMessage() {} - -func (x *ListAuthProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[10] - 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 ListAuthProvidersResponse.ProtoReflect.Descriptor instead. -func (*ListAuthProvidersResponse) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{10} -} - -func (x *ListAuthProvidersResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListAuthProvidersResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListAuthProvidersResponse) GetTypes() []string { - if x != nil { - return x.Types - } - return nil -} - -type OpenFileInAppProviderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The resource reference. If a path is given, it will be resolved via Stat() to a ResourceInfo - // when a call to the WOPI server is to be issued (cf. the provider grpc message) - Ref *v1beta13.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - ViewMode OpenFileInAppProviderRequest_ViewMode `protobuf:"varint,3,opt,name=view_mode,json=viewMode,proto3,enum=cs3.gateway.v1beta1.OpenFileInAppProviderRequest_ViewMode" json:"view_mode,omitempty"` -} - -func (x *OpenFileInAppProviderRequest) Reset() { - *x = OpenFileInAppProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenFileInAppProviderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenFileInAppProviderRequest) ProtoMessage() {} - -func (x *OpenFileInAppProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[11] - 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 OpenFileInAppProviderRequest.ProtoReflect.Descriptor instead. -func (*OpenFileInAppProviderRequest) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP(), []int{11} -} - -func (x *OpenFileInAppProviderRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *OpenFileInAppProviderRequest) GetRef() *v1beta13.Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *OpenFileInAppProviderRequest) GetViewMode() OpenFileInAppProviderRequest_ViewMode { - if x != nil { - return x.ViewMode - } - return OpenFileInAppProviderRequest_VIEW_MODE_INVALID -} - -var File_cs3_gateway_v1beta1_gateway_api_proto protoreflect.FileDescriptor - -var file_cs3_gateway_v1beta1_gateway_api_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x61, 0x70, - 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x2b, 0x63, 0x73, - 0x33, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, - 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x61, - 0x70, 0x70, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x61, 0x75, 0x74, 0x68, - 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, - 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, - 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x61, 0x70, - 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, - 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x63, - 0x73, 0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, - 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x39, 0x63, 0x73, 0x33, 0x2f, - 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, - 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x70, 0x69, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, - 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x61, 0x70, 0x69, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x78, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x9e, 0x01, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, - 0x74, 0x22, 0xc5, 0x01, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x58, 0x0a, 0x0d, 0x57, 0x68, 0x6f, - 0x41, 0x6d, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, - 0x7f, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, - 0x22, 0xec, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, - 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x54, 0x73, 0x12, 0x31, 0x0a, 0x05, - 0x74, 0x6f, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x6f, 0x54, 0x73, 0x22, - 0xf2, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x07, 0x66, 0x72, - 0x6f, 0x6d, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x54, - 0x73, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x6f, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, - 0x74, 0x6f, 0x54, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x13, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, 0x65, - 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xcb, 0x01, 0x0a, 0x1c, 0x49, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, - 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x47, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, - 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x09, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x1a, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xd4, 0x02, 0x0a, 0x1c, 0x4f, - 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, - 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x57, 0x0a, 0x09, 0x76, 0x69, 0x65, - 0x77, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4d, 0x6f, - 0x64, 0x65, 0x22, 0x6d, 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x15, - 0x0a, 0x11, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, - 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, - 0x44, 0x45, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x17, - 0x0a, 0x13, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, - 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x49, 0x45, 0x57, 0x5f, - 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, - 0x03, 0x32, 0x9b, 0x3f, 0x0a, 0x0a, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x50, 0x49, - 0x12, 0x63, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, 0x12, - 0x22, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x68, 0x6f, 0x41, 0x6d, 0x49, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x34, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, - 0x07, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, - 0x61, 0x12, 0x24, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, - 0x12, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, - 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, - 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, - 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, - 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8c, - 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x78, 0x0a, - 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x32, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, - 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x11, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x12, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, - 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x0b, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 0x65, 0x12, 0x29, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x76, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0c, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, - 0x79, 0x63, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, - 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, - 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, - 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, - 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, - 0x12, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, - 0x74, 0x65, 0x6d, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, - 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x29, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, - 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, - 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x8d, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, - 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x93, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, - 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, - 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, - 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, - 0x6f, 0x6d, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, 0x46, - 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, - 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, - 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, - 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, - 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x3c, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, - 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x94, 0x01, 0x0a, 0x13, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x3e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x59, 0x0a, 0x06, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x47, 0x65, - 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, - 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x73, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, - 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, - 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, - 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x68, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, - 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x4c, 0x69, - 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, - 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, - 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, - 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x33, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, - 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, - 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, - 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, - 0x73, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x47, 0x65, - 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x30, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, - 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x72, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x73, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x09, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, - 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x49, 0x6e, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, - 0x09, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x73, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x78, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x61, 0x75, 0x74, 0x68, - 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x07, 0x47, 0x65, - 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, - 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, - 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, - 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, - 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, - 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, - 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x69, 0x0a, 0x0c, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, - 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, - 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x49, 0x73, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, 0x32, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, - 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x12, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, - 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, - 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, - 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x12, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x6e, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, - 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x47, 0x61, 0x74, 0x65, - 0x77, 0x61, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0e, 0x67, - 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x43, 0x47, 0x58, 0xaa, 0x02, 0x13, 0x43, 0x73, 0x33, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, - 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x13, 0x43, 0x73, 0x33, 0x5c, - 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_gateway_v1beta1_gateway_api_proto_rawDescOnce sync.Once - file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData = file_cs3_gateway_v1beta1_gateway_api_proto_rawDesc -) - -func file_cs3_gateway_v1beta1_gateway_api_proto_rawDescGZIP() []byte { - file_cs3_gateway_v1beta1_gateway_api_proto_rawDescOnce.Do(func() { - file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData) - }) - return file_cs3_gateway_v1beta1_gateway_api_proto_rawDescData -} - -var file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_cs3_gateway_v1beta1_gateway_api_proto_goTypes = []interface{}{ - (OpenFileInAppProviderRequest_ViewMode)(0), // 0: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.ViewMode - (*AuthenticateRequest)(nil), // 1: cs3.gateway.v1beta1.AuthenticateRequest - (*AuthenticateResponse)(nil), // 2: cs3.gateway.v1beta1.AuthenticateResponse - (*WhoAmIRequest)(nil), // 3: cs3.gateway.v1beta1.WhoAmIRequest - (*WhoAmIResponse)(nil), // 4: cs3.gateway.v1beta1.WhoAmIResponse - (*GetQuotaRequest)(nil), // 5: cs3.gateway.v1beta1.GetQuotaRequest - (*ListRecycleRequest)(nil), // 6: cs3.gateway.v1beta1.ListRecycleRequest - (*ListRecycleStreamRequest)(nil), // 7: cs3.gateway.v1beta1.ListRecycleStreamRequest - (*PurgeRecycleRequest)(nil), // 8: cs3.gateway.v1beta1.PurgeRecycleRequest - (*InitiateFileDownloadResponse)(nil), // 9: cs3.gateway.v1beta1.InitiateFileDownloadResponse - (*InitiateFileUploadResponse)(nil), // 10: cs3.gateway.v1beta1.InitiateFileUploadResponse - (*ListAuthProvidersResponse)(nil), // 11: cs3.gateway.v1beta1.ListAuthProvidersResponse - (*OpenFileInAppProviderRequest)(nil), // 12: cs3.gateway.v1beta1.OpenFileInAppProviderRequest - (*v1beta1.Opaque)(nil), // 13: cs3.types.v1beta1.Opaque - (*v1beta11.Status)(nil), // 14: cs3.rpc.v1beta1.Status - (*v1beta12.User)(nil), // 15: cs3.identity.user.v1beta1.User - (*v1beta13.Reference)(nil), // 16: cs3.storage.provider.v1beta1.Reference - (*v1beta1.Timestamp)(nil), // 17: cs3.types.v1beta1.Timestamp - (*FileDownloadProtocol)(nil), // 18: cs3.gateway.v1beta1.FileDownloadProtocol - (*FileUploadProtocol)(nil), // 19: cs3.gateway.v1beta1.FileUploadProtocol - (*v1beta13.CreateContainerRequest)(nil), // 20: cs3.storage.provider.v1beta1.CreateContainerRequest - (*v1beta13.DeleteRequest)(nil), // 21: cs3.storage.provider.v1beta1.DeleteRequest - (*v1beta13.GetPathRequest)(nil), // 22: cs3.storage.provider.v1beta1.GetPathRequest - (*v1beta13.InitiateFileDownloadRequest)(nil), // 23: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest - (*v1beta13.InitiateFileUploadRequest)(nil), // 24: cs3.storage.provider.v1beta1.InitiateFileUploadRequest - (*v1beta13.ListContainerStreamRequest)(nil), // 25: cs3.storage.provider.v1beta1.ListContainerStreamRequest - (*v1beta13.ListContainerRequest)(nil), // 26: cs3.storage.provider.v1beta1.ListContainerRequest - (*v1beta13.ListFileVersionsRequest)(nil), // 27: cs3.storage.provider.v1beta1.ListFileVersionsRequest - (*v1beta13.MoveRequest)(nil), // 28: cs3.storage.provider.v1beta1.MoveRequest - (*v1beta13.RestoreFileVersionRequest)(nil), // 29: cs3.storage.provider.v1beta1.RestoreFileVersionRequest - (*v1beta13.RestoreRecycleItemRequest)(nil), // 30: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest - (*v1beta13.StatRequest)(nil), // 31: cs3.storage.provider.v1beta1.StatRequest - (*v1beta13.CreateSymlinkRequest)(nil), // 32: cs3.storage.provider.v1beta1.CreateSymlinkRequest - (*v1beta13.SetArbitraryMetadataRequest)(nil), // 33: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest - (*v1beta13.UnsetArbitraryMetadataRequest)(nil), // 34: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest - (*v1beta13.CreateHomeRequest)(nil), // 35: cs3.storage.provider.v1beta1.CreateHomeRequest - (*v1beta14.CreateShareRequest)(nil), // 36: cs3.sharing.collaboration.v1beta1.CreateShareRequest - (*v1beta14.RemoveShareRequest)(nil), // 37: cs3.sharing.collaboration.v1beta1.RemoveShareRequest - (*v1beta14.GetShareRequest)(nil), // 38: cs3.sharing.collaboration.v1beta1.GetShareRequest - (*v1beta14.ListSharesRequest)(nil), // 39: cs3.sharing.collaboration.v1beta1.ListSharesRequest - (*v1beta14.UpdateShareRequest)(nil), // 40: cs3.sharing.collaboration.v1beta1.UpdateShareRequest - (*v1beta14.ListReceivedSharesRequest)(nil), // 41: cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest - (*v1beta14.UpdateReceivedShareRequest)(nil), // 42: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest - (*v1beta14.GetReceivedShareRequest)(nil), // 43: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest - (*v1beta15.SetKeyRequest)(nil), // 44: cs3.preferences.v1beta1.SetKeyRequest - (*v1beta15.GetKeyRequest)(nil), // 45: cs3.preferences.v1beta1.GetKeyRequest - (*v1beta16.CreatePublicShareRequest)(nil), // 46: cs3.sharing.link.v1beta1.CreatePublicShareRequest - (*v1beta16.RemovePublicShareRequest)(nil), // 47: cs3.sharing.link.v1beta1.RemovePublicShareRequest - (*v1beta16.GetPublicShareRequest)(nil), // 48: cs3.sharing.link.v1beta1.GetPublicShareRequest - (*v1beta16.GetPublicShareByTokenRequest)(nil), // 49: cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest - (*v1beta16.ListPublicSharesRequest)(nil), // 50: cs3.sharing.link.v1beta1.ListPublicSharesRequest - (*v1beta16.UpdatePublicShareRequest)(nil), // 51: cs3.sharing.link.v1beta1.UpdatePublicShareRequest - (*v1beta17.CreateOCMShareRequest)(nil), // 52: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest - (*v1beta17.RemoveOCMShareRequest)(nil), // 53: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest - (*v1beta17.GetOCMShareRequest)(nil), // 54: cs3.sharing.ocm.v1beta1.GetOCMShareRequest - (*v1beta17.ListOCMSharesRequest)(nil), // 55: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest - (*v1beta17.UpdateOCMShareRequest)(nil), // 56: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest - (*v1beta17.ListReceivedOCMSharesRequest)(nil), // 57: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest - (*v1beta17.UpdateReceivedOCMShareRequest)(nil), // 58: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest - (*v1beta17.GetReceivedOCMShareRequest)(nil), // 59: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest - (*v1beta18.GetAppProvidersRequest)(nil), // 60: cs3.app.registry.v1beta1.GetAppProvidersRequest - (*v1beta18.ListAppProvidersRequest)(nil), // 61: cs3.app.registry.v1beta1.ListAppProvidersRequest - (*v1beta12.GetUserRequest)(nil), // 62: cs3.identity.user.v1beta1.GetUserRequest - (*v1beta12.GetUserByClaimRequest)(nil), // 63: cs3.identity.user.v1beta1.GetUserByClaimRequest - (*v1beta12.GetUserGroupsRequest)(nil), // 64: cs3.identity.user.v1beta1.GetUserGroupsRequest - (*v1beta12.IsInGroupRequest)(nil), // 65: cs3.identity.user.v1beta1.IsInGroupRequest - (*v1beta12.FindUsersRequest)(nil), // 66: cs3.identity.user.v1beta1.FindUsersRequest - (*v1beta12.FindGroupsRequest)(nil), // 67: cs3.identity.user.v1beta1.FindGroupsRequest - (*v1beta19.ListAuthProvidersRequest)(nil), // 68: cs3.auth.registry.v1beta1.ListAuthProvidersRequest - (*v1beta13.GetHomeRequest)(nil), // 69: cs3.storage.provider.v1beta1.GetHomeRequest - (*v1beta110.GenerateInviteTokenRequest)(nil), // 70: cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest - (*v1beta110.ForwardInviteRequest)(nil), // 71: cs3.ocm.invite.v1beta1.ForwardInviteRequest - (*v1beta110.AcceptInviteRequest)(nil), // 72: cs3.ocm.invite.v1beta1.AcceptInviteRequest - (*v1beta110.GetRemoteUserRequest)(nil), // 73: cs3.ocm.invite.v1beta1.GetRemoteUserRequest - (*v1beta111.IsProviderAllowedRequest)(nil), // 74: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest - (*v1beta111.GetInfoByDomainRequest)(nil), // 75: cs3.ocm.provider.v1beta1.GetInfoByDomainRequest - (*v1beta111.ListAllProvidersRequest)(nil), // 76: cs3.ocm.provider.v1beta1.ListAllProvidersRequest - (*v1beta112.CreateOCMCoreShareRequest)(nil), // 77: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest - (*v1beta113.CreateTransferRequest)(nil), // 78: cs3.tx.v1beta1.CreateTransferRequest - (*v1beta113.GetTransferStatusRequest)(nil), // 79: cs3.tx.v1beta1.GetTransferStatusRequest - (*v1beta113.CancelTransferRequest)(nil), // 80: cs3.tx.v1beta1.CancelTransferRequest - (*v1beta13.CreateContainerResponse)(nil), // 81: cs3.storage.provider.v1beta1.CreateContainerResponse - (*v1beta13.DeleteResponse)(nil), // 82: cs3.storage.provider.v1beta1.DeleteResponse - (*v1beta13.GetPathResponse)(nil), // 83: cs3.storage.provider.v1beta1.GetPathResponse - (*v1beta13.GetQuotaResponse)(nil), // 84: cs3.storage.provider.v1beta1.GetQuotaResponse - (*v1beta13.ListContainerStreamResponse)(nil), // 85: cs3.storage.provider.v1beta1.ListContainerStreamResponse - (*v1beta13.ListContainerResponse)(nil), // 86: cs3.storage.provider.v1beta1.ListContainerResponse - (*v1beta13.ListFileVersionsResponse)(nil), // 87: cs3.storage.provider.v1beta1.ListFileVersionsResponse - (*v1beta13.ListRecycleStreamResponse)(nil), // 88: cs3.storage.provider.v1beta1.ListRecycleStreamResponse - (*v1beta13.ListRecycleResponse)(nil), // 89: cs3.storage.provider.v1beta1.ListRecycleResponse - (*v1beta13.MoveResponse)(nil), // 90: cs3.storage.provider.v1beta1.MoveResponse - (*v1beta13.PurgeRecycleResponse)(nil), // 91: cs3.storage.provider.v1beta1.PurgeRecycleResponse - (*v1beta13.RestoreFileVersionResponse)(nil), // 92: cs3.storage.provider.v1beta1.RestoreFileVersionResponse - (*v1beta13.RestoreRecycleItemResponse)(nil), // 93: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse - (*v1beta13.StatResponse)(nil), // 94: cs3.storage.provider.v1beta1.StatResponse - (*v1beta13.CreateSymlinkResponse)(nil), // 95: cs3.storage.provider.v1beta1.CreateSymlinkResponse - (*v1beta13.SetArbitraryMetadataResponse)(nil), // 96: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse - (*v1beta13.UnsetArbitraryMetadataResponse)(nil), // 97: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse - (*v1beta13.CreateHomeResponse)(nil), // 98: cs3.storage.provider.v1beta1.CreateHomeResponse - (*v1beta114.OpenFileInAppProviderResponse)(nil), // 99: cs3.app.provider.v1beta1.OpenFileInAppProviderResponse - (*v1beta14.CreateShareResponse)(nil), // 100: cs3.sharing.collaboration.v1beta1.CreateShareResponse - (*v1beta14.RemoveShareResponse)(nil), // 101: cs3.sharing.collaboration.v1beta1.RemoveShareResponse - (*v1beta14.GetShareResponse)(nil), // 102: cs3.sharing.collaboration.v1beta1.GetShareResponse - (*v1beta14.ListSharesResponse)(nil), // 103: cs3.sharing.collaboration.v1beta1.ListSharesResponse - (*v1beta14.UpdateShareResponse)(nil), // 104: cs3.sharing.collaboration.v1beta1.UpdateShareResponse - (*v1beta14.ListReceivedSharesResponse)(nil), // 105: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse - (*v1beta14.UpdateReceivedShareResponse)(nil), // 106: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse - (*v1beta14.GetReceivedShareResponse)(nil), // 107: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse - (*v1beta15.SetKeyResponse)(nil), // 108: cs3.preferences.v1beta1.SetKeyResponse - (*v1beta15.GetKeyResponse)(nil), // 109: cs3.preferences.v1beta1.GetKeyResponse - (*v1beta16.CreatePublicShareResponse)(nil), // 110: cs3.sharing.link.v1beta1.CreatePublicShareResponse - (*v1beta16.RemovePublicShareResponse)(nil), // 111: cs3.sharing.link.v1beta1.RemovePublicShareResponse - (*v1beta16.GetPublicShareResponse)(nil), // 112: cs3.sharing.link.v1beta1.GetPublicShareResponse - (*v1beta16.GetPublicShareByTokenResponse)(nil), // 113: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse - (*v1beta16.ListPublicSharesResponse)(nil), // 114: cs3.sharing.link.v1beta1.ListPublicSharesResponse - (*v1beta16.UpdatePublicShareResponse)(nil), // 115: cs3.sharing.link.v1beta1.UpdatePublicShareResponse - (*v1beta17.CreateOCMShareResponse)(nil), // 116: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse - (*v1beta17.RemoveOCMShareResponse)(nil), // 117: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse - (*v1beta17.GetOCMShareResponse)(nil), // 118: cs3.sharing.ocm.v1beta1.GetOCMShareResponse - (*v1beta17.ListOCMSharesResponse)(nil), // 119: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse - (*v1beta17.UpdateOCMShareResponse)(nil), // 120: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse - (*v1beta17.ListReceivedOCMSharesResponse)(nil), // 121: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse - (*v1beta17.UpdateReceivedOCMShareResponse)(nil), // 122: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse - (*v1beta17.GetReceivedOCMShareResponse)(nil), // 123: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse - (*v1beta18.GetAppProvidersResponse)(nil), // 124: cs3.app.registry.v1beta1.GetAppProvidersResponse - (*v1beta18.ListAppProvidersResponse)(nil), // 125: cs3.app.registry.v1beta1.ListAppProvidersResponse - (*v1beta12.GetUserResponse)(nil), // 126: cs3.identity.user.v1beta1.GetUserResponse - (*v1beta12.GetUserByClaimResponse)(nil), // 127: cs3.identity.user.v1beta1.GetUserByClaimResponse - (*v1beta12.GetUserGroupsResponse)(nil), // 128: cs3.identity.user.v1beta1.GetUserGroupsResponse - (*v1beta12.IsInGroupResponse)(nil), // 129: cs3.identity.user.v1beta1.IsInGroupResponse - (*v1beta12.FindUsersResponse)(nil), // 130: cs3.identity.user.v1beta1.FindUsersResponse - (*v1beta12.FindGroupsResponse)(nil), // 131: cs3.identity.user.v1beta1.FindGroupsResponse - (*v1beta13.GetHomeResponse)(nil), // 132: cs3.storage.provider.v1beta1.GetHomeResponse - (*v1beta110.GenerateInviteTokenResponse)(nil), // 133: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse - (*v1beta110.ForwardInviteResponse)(nil), // 134: cs3.ocm.invite.v1beta1.ForwardInviteResponse - (*v1beta110.AcceptInviteResponse)(nil), // 135: cs3.ocm.invite.v1beta1.AcceptInviteResponse - (*v1beta110.GetRemoteUserResponse)(nil), // 136: cs3.ocm.invite.v1beta1.GetRemoteUserResponse - (*v1beta111.IsProviderAllowedResponse)(nil), // 137: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse - (*v1beta111.GetInfoByDomainResponse)(nil), // 138: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse - (*v1beta111.ListAllProvidersResponse)(nil), // 139: cs3.ocm.provider.v1beta1.ListAllProvidersResponse - (*v1beta112.CreateOCMCoreShareResponse)(nil), // 140: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse - (*v1beta113.CreateTransferResponse)(nil), // 141: cs3.tx.v1beta1.CreateTransferResponse - (*v1beta113.GetTransferStatusResponse)(nil), // 142: cs3.tx.v1beta1.GetTransferStatusResponse - (*v1beta113.CancelTransferResponse)(nil), // 143: cs3.tx.v1beta1.CancelTransferResponse -} -var file_cs3_gateway_v1beta1_gateway_api_proto_depIdxs = []int32{ - 13, // 0: cs3.gateway.v1beta1.AuthenticateRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 14, // 1: cs3.gateway.v1beta1.AuthenticateResponse.status:type_name -> cs3.rpc.v1beta1.Status - 13, // 2: cs3.gateway.v1beta1.AuthenticateResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 15, // 3: cs3.gateway.v1beta1.AuthenticateResponse.user:type_name -> cs3.identity.user.v1beta1.User - 13, // 4: cs3.gateway.v1beta1.WhoAmIRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 14, // 5: cs3.gateway.v1beta1.WhoAmIResponse.status:type_name -> cs3.rpc.v1beta1.Status - 13, // 6: cs3.gateway.v1beta1.WhoAmIResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 15, // 7: cs3.gateway.v1beta1.WhoAmIResponse.user:type_name -> cs3.identity.user.v1beta1.User - 13, // 8: cs3.gateway.v1beta1.GetQuotaRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 16, // 9: cs3.gateway.v1beta1.GetQuotaRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 13, // 10: cs3.gateway.v1beta1.ListRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 16, // 11: cs3.gateway.v1beta1.ListRecycleRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 17, // 12: cs3.gateway.v1beta1.ListRecycleRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp - 17, // 13: cs3.gateway.v1beta1.ListRecycleRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp - 13, // 14: cs3.gateway.v1beta1.ListRecycleStreamRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 16, // 15: cs3.gateway.v1beta1.ListRecycleStreamRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 17, // 16: cs3.gateway.v1beta1.ListRecycleStreamRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp - 17, // 17: cs3.gateway.v1beta1.ListRecycleStreamRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp - 13, // 18: cs3.gateway.v1beta1.PurgeRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 16, // 19: cs3.gateway.v1beta1.PurgeRecycleRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 14, // 20: cs3.gateway.v1beta1.InitiateFileDownloadResponse.status:type_name -> cs3.rpc.v1beta1.Status - 13, // 21: cs3.gateway.v1beta1.InitiateFileDownloadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 18, // 22: cs3.gateway.v1beta1.InitiateFileDownloadResponse.protocols:type_name -> cs3.gateway.v1beta1.FileDownloadProtocol - 14, // 23: cs3.gateway.v1beta1.InitiateFileUploadResponse.status:type_name -> cs3.rpc.v1beta1.Status - 13, // 24: cs3.gateway.v1beta1.InitiateFileUploadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 19, // 25: cs3.gateway.v1beta1.InitiateFileUploadResponse.protocols:type_name -> cs3.gateway.v1beta1.FileUploadProtocol - 14, // 26: cs3.gateway.v1beta1.ListAuthProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status - 13, // 27: cs3.gateway.v1beta1.ListAuthProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 13, // 28: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 16, // 29: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 0, // 30: cs3.gateway.v1beta1.OpenFileInAppProviderRequest.view_mode:type_name -> cs3.gateway.v1beta1.OpenFileInAppProviderRequest.ViewMode - 1, // 31: cs3.gateway.v1beta1.GatewayAPI.Authenticate:input_type -> cs3.gateway.v1beta1.AuthenticateRequest - 3, // 32: cs3.gateway.v1beta1.GatewayAPI.WhoAmI:input_type -> cs3.gateway.v1beta1.WhoAmIRequest - 20, // 33: cs3.gateway.v1beta1.GatewayAPI.CreateContainer:input_type -> cs3.storage.provider.v1beta1.CreateContainerRequest - 21, // 34: cs3.gateway.v1beta1.GatewayAPI.Delete:input_type -> cs3.storage.provider.v1beta1.DeleteRequest - 22, // 35: cs3.gateway.v1beta1.GatewayAPI.GetPath:input_type -> cs3.storage.provider.v1beta1.GetPathRequest - 5, // 36: cs3.gateway.v1beta1.GatewayAPI.GetQuota:input_type -> cs3.gateway.v1beta1.GetQuotaRequest - 23, // 37: cs3.gateway.v1beta1.GatewayAPI.InitiateFileDownload:input_type -> cs3.storage.provider.v1beta1.InitiateFileDownloadRequest - 24, // 38: cs3.gateway.v1beta1.GatewayAPI.InitiateFileUpload:input_type -> cs3.storage.provider.v1beta1.InitiateFileUploadRequest - 25, // 39: cs3.gateway.v1beta1.GatewayAPI.ListContainerStream:input_type -> cs3.storage.provider.v1beta1.ListContainerStreamRequest - 26, // 40: cs3.gateway.v1beta1.GatewayAPI.ListContainer:input_type -> cs3.storage.provider.v1beta1.ListContainerRequest - 27, // 41: cs3.gateway.v1beta1.GatewayAPI.ListFileVersions:input_type -> cs3.storage.provider.v1beta1.ListFileVersionsRequest - 7, // 42: cs3.gateway.v1beta1.GatewayAPI.ListRecycleStream:input_type -> cs3.gateway.v1beta1.ListRecycleStreamRequest - 6, // 43: cs3.gateway.v1beta1.GatewayAPI.ListRecycle:input_type -> cs3.gateway.v1beta1.ListRecycleRequest - 28, // 44: cs3.gateway.v1beta1.GatewayAPI.Move:input_type -> cs3.storage.provider.v1beta1.MoveRequest - 8, // 45: cs3.gateway.v1beta1.GatewayAPI.PurgeRecycle:input_type -> cs3.gateway.v1beta1.PurgeRecycleRequest - 29, // 46: cs3.gateway.v1beta1.GatewayAPI.RestoreFileVersion:input_type -> cs3.storage.provider.v1beta1.RestoreFileVersionRequest - 30, // 47: cs3.gateway.v1beta1.GatewayAPI.RestoreRecycleItem:input_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemRequest - 31, // 48: cs3.gateway.v1beta1.GatewayAPI.Stat:input_type -> cs3.storage.provider.v1beta1.StatRequest - 32, // 49: cs3.gateway.v1beta1.GatewayAPI.CreateSymlink:input_type -> cs3.storage.provider.v1beta1.CreateSymlinkRequest - 33, // 50: cs3.gateway.v1beta1.GatewayAPI.SetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest - 34, // 51: cs3.gateway.v1beta1.GatewayAPI.UnsetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest - 35, // 52: cs3.gateway.v1beta1.GatewayAPI.CreateHome:input_type -> cs3.storage.provider.v1beta1.CreateHomeRequest - 12, // 53: cs3.gateway.v1beta1.GatewayAPI.OpenFileInAppProvider:input_type -> cs3.gateway.v1beta1.OpenFileInAppProviderRequest - 36, // 54: cs3.gateway.v1beta1.GatewayAPI.CreateShare:input_type -> cs3.sharing.collaboration.v1beta1.CreateShareRequest - 37, // 55: cs3.gateway.v1beta1.GatewayAPI.RemoveShare:input_type -> cs3.sharing.collaboration.v1beta1.RemoveShareRequest - 38, // 56: cs3.gateway.v1beta1.GatewayAPI.GetShare:input_type -> cs3.sharing.collaboration.v1beta1.GetShareRequest - 39, // 57: cs3.gateway.v1beta1.GatewayAPI.ListShares:input_type -> cs3.sharing.collaboration.v1beta1.ListSharesRequest - 40, // 58: cs3.gateway.v1beta1.GatewayAPI.UpdateShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateShareRequest - 41, // 59: cs3.gateway.v1beta1.GatewayAPI.ListReceivedShares:input_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest - 42, // 60: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest - 43, // 61: cs3.gateway.v1beta1.GatewayAPI.GetReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest - 44, // 62: cs3.gateway.v1beta1.GatewayAPI.SetKey:input_type -> cs3.preferences.v1beta1.SetKeyRequest - 45, // 63: cs3.gateway.v1beta1.GatewayAPI.GetKey:input_type -> cs3.preferences.v1beta1.GetKeyRequest - 46, // 64: cs3.gateway.v1beta1.GatewayAPI.CreatePublicShare:input_type -> cs3.sharing.link.v1beta1.CreatePublicShareRequest - 47, // 65: cs3.gateway.v1beta1.GatewayAPI.RemovePublicShare:input_type -> cs3.sharing.link.v1beta1.RemovePublicShareRequest - 48, // 66: cs3.gateway.v1beta1.GatewayAPI.GetPublicShare:input_type -> cs3.sharing.link.v1beta1.GetPublicShareRequest - 49, // 67: cs3.gateway.v1beta1.GatewayAPI.GetPublicShareByToken:input_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest - 50, // 68: cs3.gateway.v1beta1.GatewayAPI.ListPublicShares:input_type -> cs3.sharing.link.v1beta1.ListPublicSharesRequest - 51, // 69: cs3.gateway.v1beta1.GatewayAPI.UpdatePublicShare:input_type -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest - 52, // 70: cs3.gateway.v1beta1.GatewayAPI.CreateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareRequest - 53, // 71: cs3.gateway.v1beta1.GatewayAPI.RemoveOCMShare:input_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest - 54, // 72: cs3.gateway.v1beta1.GatewayAPI.GetOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetOCMShareRequest - 55, // 73: cs3.gateway.v1beta1.GatewayAPI.ListOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest - 56, // 74: cs3.gateway.v1beta1.GatewayAPI.UpdateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest - 57, // 75: cs3.gateway.v1beta1.GatewayAPI.ListReceivedOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest - 58, // 76: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest - 59, // 77: cs3.gateway.v1beta1.GatewayAPI.GetReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest - 60, // 78: cs3.gateway.v1beta1.GatewayAPI.GetAppProviders:input_type -> cs3.app.registry.v1beta1.GetAppProvidersRequest - 61, // 79: cs3.gateway.v1beta1.GatewayAPI.ListAppProviders:input_type -> cs3.app.registry.v1beta1.ListAppProvidersRequest - 62, // 80: cs3.gateway.v1beta1.GatewayAPI.GetUser:input_type -> cs3.identity.user.v1beta1.GetUserRequest - 63, // 81: cs3.gateway.v1beta1.GatewayAPI.GetUserByClaim:input_type -> cs3.identity.user.v1beta1.GetUserByClaimRequest - 64, // 82: cs3.gateway.v1beta1.GatewayAPI.GetUserGroups:input_type -> cs3.identity.user.v1beta1.GetUserGroupsRequest - 65, // 83: cs3.gateway.v1beta1.GatewayAPI.IsInGroup:input_type -> cs3.identity.user.v1beta1.IsInGroupRequest - 66, // 84: cs3.gateway.v1beta1.GatewayAPI.FindUsers:input_type -> cs3.identity.user.v1beta1.FindUsersRequest - 67, // 85: cs3.gateway.v1beta1.GatewayAPI.FindGroups:input_type -> cs3.identity.user.v1beta1.FindGroupsRequest - 68, // 86: cs3.gateway.v1beta1.GatewayAPI.ListAuthProviders:input_type -> cs3.auth.registry.v1beta1.ListAuthProvidersRequest - 69, // 87: cs3.gateway.v1beta1.GatewayAPI.GetHome:input_type -> cs3.storage.provider.v1beta1.GetHomeRequest - 70, // 88: cs3.gateway.v1beta1.GatewayAPI.GenerateInviteToken:input_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest - 71, // 89: cs3.gateway.v1beta1.GatewayAPI.ForwardInvite:input_type -> cs3.ocm.invite.v1beta1.ForwardInviteRequest - 72, // 90: cs3.gateway.v1beta1.GatewayAPI.AcceptInvite:input_type -> cs3.ocm.invite.v1beta1.AcceptInviteRequest - 73, // 91: cs3.gateway.v1beta1.GatewayAPI.GetRemoteUser:input_type -> cs3.ocm.invite.v1beta1.GetRemoteUserRequest - 74, // 92: cs3.gateway.v1beta1.GatewayAPI.IsProviderAllowed:input_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedRequest - 75, // 93: cs3.gateway.v1beta1.GatewayAPI.GetInfoByDomain:input_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainRequest - 76, // 94: cs3.gateway.v1beta1.GatewayAPI.ListAllProviders:input_type -> cs3.ocm.provider.v1beta1.ListAllProvidersRequest - 77, // 95: cs3.gateway.v1beta1.GatewayAPI.CreateOCMCoreShare:input_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest - 78, // 96: cs3.gateway.v1beta1.GatewayAPI.CreateTransfer:input_type -> cs3.tx.v1beta1.CreateTransferRequest - 79, // 97: cs3.gateway.v1beta1.GatewayAPI.GetTransferStatus:input_type -> cs3.tx.v1beta1.GetTransferStatusRequest - 80, // 98: cs3.gateway.v1beta1.GatewayAPI.CancelTransfer:input_type -> cs3.tx.v1beta1.CancelTransferRequest - 2, // 99: cs3.gateway.v1beta1.GatewayAPI.Authenticate:output_type -> cs3.gateway.v1beta1.AuthenticateResponse - 4, // 100: cs3.gateway.v1beta1.GatewayAPI.WhoAmI:output_type -> cs3.gateway.v1beta1.WhoAmIResponse - 81, // 101: cs3.gateway.v1beta1.GatewayAPI.CreateContainer:output_type -> cs3.storage.provider.v1beta1.CreateContainerResponse - 82, // 102: cs3.gateway.v1beta1.GatewayAPI.Delete:output_type -> cs3.storage.provider.v1beta1.DeleteResponse - 83, // 103: cs3.gateway.v1beta1.GatewayAPI.GetPath:output_type -> cs3.storage.provider.v1beta1.GetPathResponse - 84, // 104: cs3.gateway.v1beta1.GatewayAPI.GetQuota:output_type -> cs3.storage.provider.v1beta1.GetQuotaResponse - 9, // 105: cs3.gateway.v1beta1.GatewayAPI.InitiateFileDownload:output_type -> cs3.gateway.v1beta1.InitiateFileDownloadResponse - 10, // 106: cs3.gateway.v1beta1.GatewayAPI.InitiateFileUpload:output_type -> cs3.gateway.v1beta1.InitiateFileUploadResponse - 85, // 107: cs3.gateway.v1beta1.GatewayAPI.ListContainerStream:output_type -> cs3.storage.provider.v1beta1.ListContainerStreamResponse - 86, // 108: cs3.gateway.v1beta1.GatewayAPI.ListContainer:output_type -> cs3.storage.provider.v1beta1.ListContainerResponse - 87, // 109: cs3.gateway.v1beta1.GatewayAPI.ListFileVersions:output_type -> cs3.storage.provider.v1beta1.ListFileVersionsResponse - 88, // 110: cs3.gateway.v1beta1.GatewayAPI.ListRecycleStream:output_type -> cs3.storage.provider.v1beta1.ListRecycleStreamResponse - 89, // 111: cs3.gateway.v1beta1.GatewayAPI.ListRecycle:output_type -> cs3.storage.provider.v1beta1.ListRecycleResponse - 90, // 112: cs3.gateway.v1beta1.GatewayAPI.Move:output_type -> cs3.storage.provider.v1beta1.MoveResponse - 91, // 113: cs3.gateway.v1beta1.GatewayAPI.PurgeRecycle:output_type -> cs3.storage.provider.v1beta1.PurgeRecycleResponse - 92, // 114: cs3.gateway.v1beta1.GatewayAPI.RestoreFileVersion:output_type -> cs3.storage.provider.v1beta1.RestoreFileVersionResponse - 93, // 115: cs3.gateway.v1beta1.GatewayAPI.RestoreRecycleItem:output_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemResponse - 94, // 116: cs3.gateway.v1beta1.GatewayAPI.Stat:output_type -> cs3.storage.provider.v1beta1.StatResponse - 95, // 117: cs3.gateway.v1beta1.GatewayAPI.CreateSymlink:output_type -> cs3.storage.provider.v1beta1.CreateSymlinkResponse - 96, // 118: cs3.gateway.v1beta1.GatewayAPI.SetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse - 97, // 119: cs3.gateway.v1beta1.GatewayAPI.UnsetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse - 98, // 120: cs3.gateway.v1beta1.GatewayAPI.CreateHome:output_type -> cs3.storage.provider.v1beta1.CreateHomeResponse - 99, // 121: cs3.gateway.v1beta1.GatewayAPI.OpenFileInAppProvider:output_type -> cs3.app.provider.v1beta1.OpenFileInAppProviderResponse - 100, // 122: cs3.gateway.v1beta1.GatewayAPI.CreateShare:output_type -> cs3.sharing.collaboration.v1beta1.CreateShareResponse - 101, // 123: cs3.gateway.v1beta1.GatewayAPI.RemoveShare:output_type -> cs3.sharing.collaboration.v1beta1.RemoveShareResponse - 102, // 124: cs3.gateway.v1beta1.GatewayAPI.GetShare:output_type -> cs3.sharing.collaboration.v1beta1.GetShareResponse - 103, // 125: cs3.gateway.v1beta1.GatewayAPI.ListShares:output_type -> cs3.sharing.collaboration.v1beta1.ListSharesResponse - 104, // 126: cs3.gateway.v1beta1.GatewayAPI.UpdateShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateShareResponse - 105, // 127: cs3.gateway.v1beta1.GatewayAPI.ListReceivedShares:output_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse - 106, // 128: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse - 107, // 129: cs3.gateway.v1beta1.GatewayAPI.GetReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse - 108, // 130: cs3.gateway.v1beta1.GatewayAPI.SetKey:output_type -> cs3.preferences.v1beta1.SetKeyResponse - 109, // 131: cs3.gateway.v1beta1.GatewayAPI.GetKey:output_type -> cs3.preferences.v1beta1.GetKeyResponse - 110, // 132: cs3.gateway.v1beta1.GatewayAPI.CreatePublicShare:output_type -> cs3.sharing.link.v1beta1.CreatePublicShareResponse - 111, // 133: cs3.gateway.v1beta1.GatewayAPI.RemovePublicShare:output_type -> cs3.sharing.link.v1beta1.RemovePublicShareResponse - 112, // 134: cs3.gateway.v1beta1.GatewayAPI.GetPublicShare:output_type -> cs3.sharing.link.v1beta1.GetPublicShareResponse - 113, // 135: cs3.gateway.v1beta1.GatewayAPI.GetPublicShareByToken:output_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse - 114, // 136: cs3.gateway.v1beta1.GatewayAPI.ListPublicShares:output_type -> cs3.sharing.link.v1beta1.ListPublicSharesResponse - 115, // 137: cs3.gateway.v1beta1.GatewayAPI.UpdatePublicShare:output_type -> cs3.sharing.link.v1beta1.UpdatePublicShareResponse - 116, // 138: cs3.gateway.v1beta1.GatewayAPI.CreateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareResponse - 117, // 139: cs3.gateway.v1beta1.GatewayAPI.RemoveOCMShare:output_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse - 118, // 140: cs3.gateway.v1beta1.GatewayAPI.GetOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetOCMShareResponse - 119, // 141: cs3.gateway.v1beta1.GatewayAPI.ListOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesResponse - 120, // 142: cs3.gateway.v1beta1.GatewayAPI.UpdateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse - 121, // 143: cs3.gateway.v1beta1.GatewayAPI.ListReceivedOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse - 122, // 144: cs3.gateway.v1beta1.GatewayAPI.UpdateReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse - 123, // 145: cs3.gateway.v1beta1.GatewayAPI.GetReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse - 124, // 146: cs3.gateway.v1beta1.GatewayAPI.GetAppProviders:output_type -> cs3.app.registry.v1beta1.GetAppProvidersResponse - 125, // 147: cs3.gateway.v1beta1.GatewayAPI.ListAppProviders:output_type -> cs3.app.registry.v1beta1.ListAppProvidersResponse - 126, // 148: cs3.gateway.v1beta1.GatewayAPI.GetUser:output_type -> cs3.identity.user.v1beta1.GetUserResponse - 127, // 149: cs3.gateway.v1beta1.GatewayAPI.GetUserByClaim:output_type -> cs3.identity.user.v1beta1.GetUserByClaimResponse - 128, // 150: cs3.gateway.v1beta1.GatewayAPI.GetUserGroups:output_type -> cs3.identity.user.v1beta1.GetUserGroupsResponse - 129, // 151: cs3.gateway.v1beta1.GatewayAPI.IsInGroup:output_type -> cs3.identity.user.v1beta1.IsInGroupResponse - 130, // 152: cs3.gateway.v1beta1.GatewayAPI.FindUsers:output_type -> cs3.identity.user.v1beta1.FindUsersResponse - 131, // 153: cs3.gateway.v1beta1.GatewayAPI.FindGroups:output_type -> cs3.identity.user.v1beta1.FindGroupsResponse - 11, // 154: cs3.gateway.v1beta1.GatewayAPI.ListAuthProviders:output_type -> cs3.gateway.v1beta1.ListAuthProvidersResponse - 132, // 155: cs3.gateway.v1beta1.GatewayAPI.GetHome:output_type -> cs3.storage.provider.v1beta1.GetHomeResponse - 133, // 156: cs3.gateway.v1beta1.GatewayAPI.GenerateInviteToken:output_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse - 134, // 157: cs3.gateway.v1beta1.GatewayAPI.ForwardInvite:output_type -> cs3.ocm.invite.v1beta1.ForwardInviteResponse - 135, // 158: cs3.gateway.v1beta1.GatewayAPI.AcceptInvite:output_type -> cs3.ocm.invite.v1beta1.AcceptInviteResponse - 136, // 159: cs3.gateway.v1beta1.GatewayAPI.GetRemoteUser:output_type -> cs3.ocm.invite.v1beta1.GetRemoteUserResponse - 137, // 160: cs3.gateway.v1beta1.GatewayAPI.IsProviderAllowed:output_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedResponse - 138, // 161: cs3.gateway.v1beta1.GatewayAPI.GetInfoByDomain:output_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainResponse - 139, // 162: cs3.gateway.v1beta1.GatewayAPI.ListAllProviders:output_type -> cs3.ocm.provider.v1beta1.ListAllProvidersResponse - 140, // 163: cs3.gateway.v1beta1.GatewayAPI.CreateOCMCoreShare:output_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse - 141, // 164: cs3.gateway.v1beta1.GatewayAPI.CreateTransfer:output_type -> cs3.tx.v1beta1.CreateTransferResponse - 142, // 165: cs3.gateway.v1beta1.GatewayAPI.GetTransferStatus:output_type -> cs3.tx.v1beta1.GetTransferStatusResponse - 143, // 166: cs3.gateway.v1beta1.GatewayAPI.CancelTransfer:output_type -> cs3.tx.v1beta1.CancelTransferResponse - 99, // [99:167] is the sub-list for method output_type - 31, // [31:99] is the sub-list for method input_type - 31, // [31:31] is the sub-list for extension type_name - 31, // [31:31] is the sub-list for extension extendee - 0, // [0:31] is the sub-list for field type_name -} - -func init() { file_cs3_gateway_v1beta1_gateway_api_proto_init() } -func file_cs3_gateway_v1beta1_gateway_api_proto_init() { - if File_cs3_gateway_v1beta1_gateway_api_proto != nil { - return - } - file_cs3_gateway_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthenticateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthenticateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WhoAmIRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WhoAmIResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetQuotaRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecycleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecycleStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeRecycleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateFileDownloadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateFileUploadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAuthProvidersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenFileInAppProviderRequest); 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_cs3_gateway_v1beta1_gateway_api_proto_rawDesc, - NumEnums: 1, - NumMessages: 12, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_gateway_v1beta1_gateway_api_proto_goTypes, - DependencyIndexes: file_cs3_gateway_v1beta1_gateway_api_proto_depIdxs, - EnumInfos: file_cs3_gateway_v1beta1_gateway_api_proto_enumTypes, - MessageInfos: file_cs3_gateway_v1beta1_gateway_api_proto_msgTypes, - }.Build() - File_cs3_gateway_v1beta1_gateway_api_proto = out.File - file_cs3_gateway_v1beta1_gateway_api_proto_rawDesc = nil - file_cs3_gateway_v1beta1_gateway_api_proto_goTypes = nil - file_cs3_gateway_v1beta1_gateway_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// GatewayAPIClient is the client API for GatewayAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type GatewayAPIClient interface { - // Authenticates a user. - Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) - // WhoAmI returns the information for a user. - WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(ctx context.Context, in *v1beta13.CreateContainerRequest, opts ...grpc.CallOption) (*v1beta13.CreateContainerResponse, error) - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(ctx context.Context, in *v1beta13.DeleteRequest, opts ...grpc.CallOption) (*v1beta13.DeleteResponse, error) - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(ctx context.Context, in *v1beta13.GetPathRequest, opts ...grpc.CallOption) (*v1beta13.GetPathResponse, error) - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*v1beta13.GetQuotaResponse, error) - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(ctx context.Context, in *v1beta13.InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(ctx context.Context, in *v1beta13.InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(ctx context.Context, in *v1beta13.ListContainerStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListContainerStreamClient, error) - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(ctx context.Context, in *v1beta13.ListContainerRequest, opts ...grpc.CallOption) (*v1beta13.ListContainerResponse, error) - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(ctx context.Context, in *v1beta13.ListFileVersionsRequest, opts ...grpc.CallOption) (*v1beta13.ListFileVersionsResponse, error) - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListRecycleStreamClient, error) - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*v1beta13.ListRecycleResponse, error) - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(ctx context.Context, in *v1beta13.MoveRequest, opts ...grpc.CallOption) (*v1beta13.MoveResponse, error) - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*v1beta13.PurgeRecycleResponse, error) - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(ctx context.Context, in *v1beta13.RestoreFileVersionRequest, opts ...grpc.CallOption) (*v1beta13.RestoreFileVersionResponse, error) - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(ctx context.Context, in *v1beta13.RestoreRecycleItemRequest, opts ...grpc.CallOption) (*v1beta13.RestoreRecycleItemResponse, error) - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(ctx context.Context, in *v1beta13.StatRequest, opts ...grpc.CallOption) (*v1beta13.StatResponse, error) - // Creates a symlink to another resource. - CreateSymlink(ctx context.Context, in *v1beta13.CreateSymlinkRequest, opts ...grpc.CallOption) (*v1beta13.CreateSymlinkResponse, error) - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - SetArbitraryMetadata(ctx context.Context, in *v1beta13.SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.SetArbitraryMetadataResponse, error) - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(ctx context.Context, in *v1beta13.UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.UnsetArbitraryMetadataResponse, error) - // Creates the home directory for a user. - CreateHome(ctx context.Context, in *v1beta13.CreateHomeRequest, opts ...grpc.CallOption) (*v1beta13.CreateHomeResponse, error) - // Returns the App provider URL, which lets the user open a file in the correct online document editor. - OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*v1beta114.OpenFileInAppProviderResponse, error) - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(ctx context.Context, in *v1beta14.CreateShareRequest, opts ...grpc.CallOption) (*v1beta14.CreateShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(ctx context.Context, in *v1beta14.RemoveShareRequest, opts ...grpc.CallOption) (*v1beta14.RemoveShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(ctx context.Context, in *v1beta14.GetShareRequest, opts ...grpc.CallOption) (*v1beta14.GetShareResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(ctx context.Context, in *v1beta14.ListSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(ctx context.Context, in *v1beta14.UpdateShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateShareResponse, error) - // List all shares the authproviderenticated principal has received. - ListReceivedShares(ctx context.Context, in *v1beta14.ListReceivedSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListReceivedSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(ctx context.Context, in *v1beta14.UpdateReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateReceivedShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(ctx context.Context, in *v1beta14.GetReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.GetReceivedShareResponse, error) - // Maps the key-value pair. - SetKey(ctx context.Context, in *v1beta15.SetKeyRequest, opts ...grpc.CallOption) (*v1beta15.SetKeyResponse, error) - // Returns the value associated with the - // requested key. - GetKey(ctx context.Context, in *v1beta15.GetKeyRequest, opts ...grpc.CallOption) (*v1beta15.GetKeyResponse, error) - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(ctx context.Context, in *v1beta16.CreatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.CreatePublicShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(ctx context.Context, in *v1beta16.RemovePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.RemovePublicShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(ctx context.Context, in *v1beta16.GetPublicShareRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareResponse, error) - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(ctx context.Context, in *v1beta16.GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareByTokenResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(ctx context.Context, in *v1beta16.ListPublicSharesRequest, opts ...grpc.CallOption) (*v1beta16.ListPublicSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(ctx context.Context, in *v1beta16.UpdatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.UpdatePublicShareResponse, error) - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(ctx context.Context, in *v1beta17.CreateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.CreateOCMShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(ctx context.Context, in *v1beta17.RemoveOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.RemoveOCMShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(ctx context.Context, in *v1beta17.GetOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetOCMShareResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(ctx context.Context, in *v1beta17.ListOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListOCMSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(ctx context.Context, in *v1beta17.UpdateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateOCMShareResponse, error) - // List all shares the authproviderenticated principal has received. - ListReceivedOCMShares(ctx context.Context, in *v1beta17.ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListReceivedOCMSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(ctx context.Context, in *v1beta17.UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateReceivedOCMShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(ctx context.Context, in *v1beta17.GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetReceivedOCMShareResponse, error) - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(ctx context.Context, in *v1beta18.GetAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.GetAppProvidersResponse, error) - // Returns a list of the available app providers known by this registry. - ListAppProviders(ctx context.Context, in *v1beta18.ListAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.ListAppProvidersResponse, error) - // Gets the information about a user by the user id. - GetUser(ctx context.Context, in *v1beta12.GetUserRequest, opts ...grpc.CallOption) (*v1beta12.GetUserResponse, error) - // Gets the information about a user based on a specified claim. - GetUserByClaim(ctx context.Context, in *v1beta12.GetUserByClaimRequest, opts ...grpc.CallOption) (*v1beta12.GetUserByClaimResponse, error) - // Gets the groups of a user. - GetUserGroups(ctx context.Context, in *v1beta12.GetUserGroupsRequest, opts ...grpc.CallOption) (*v1beta12.GetUserGroupsResponse, error) - // Tells if the user is in a certain group. - IsInGroup(ctx context.Context, in *v1beta12.IsInGroupRequest, opts ...grpc.CallOption) (*v1beta12.IsInGroupResponse, error) - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(ctx context.Context, in *v1beta12.FindUsersRequest, opts ...grpc.CallOption) (*v1beta12.FindUsersResponse, error) - // Finds groups whose names match the specified filter. - FindGroups(ctx context.Context, in *v1beta12.FindGroupsRequest, opts ...grpc.CallOption) (*v1beta12.FindGroupsResponse, error) - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(ctx context.Context, in *v1beta19.ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) - // Returns the home path for the given authenticated user. - // When a user has access to multiple storage providers, one of them is the home. - GetHome(ctx context.Context, in *v1beta13.GetHomeRequest, opts ...grpc.CallOption) (*v1beta13.GetHomeResponse, error) - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(ctx context.Context, in *v1beta110.GenerateInviteTokenRequest, opts ...grpc.CallOption) (*v1beta110.GenerateInviteTokenResponse, error) - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(ctx context.Context, in *v1beta110.ForwardInviteRequest, opts ...grpc.CallOption) (*v1beta110.ForwardInviteResponse, error) - // Completes an invitation acceptance. - AcceptInvite(ctx context.Context, in *v1beta110.AcceptInviteRequest, opts ...grpc.CallOption) (*v1beta110.AcceptInviteResponse, error) - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(ctx context.Context, in *v1beta110.GetRemoteUserRequest, opts ...grpc.CallOption) (*v1beta110.GetRemoteUserResponse, error) - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(ctx context.Context, in *v1beta111.IsProviderAllowedRequest, opts ...grpc.CallOption) (*v1beta111.IsProviderAllowedResponse, error) - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(ctx context.Context, in *v1beta111.GetInfoByDomainRequest, opts ...grpc.CallOption) (*v1beta111.GetInfoByDomainResponse, error) - // Get the information of all the providers registered in the mesh. - ListAllProviders(ctx context.Context, in *v1beta111.ListAllProvidersRequest, opts ...grpc.CallOption) (*v1beta111.ListAllProvidersResponse, error) - // Creates a new ocm share. - CreateOCMCoreShare(ctx context.Context, in *v1beta112.CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*v1beta112.CreateOCMCoreShareResponse, error) - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(ctx context.Context, in *v1beta113.CreateTransferRequest, opts ...grpc.CallOption) (*v1beta113.CreateTransferResponse, error) - // Requests a transfer status. - GetTransferStatus(ctx context.Context, in *v1beta113.GetTransferStatusRequest, opts ...grpc.CallOption) (*v1beta113.GetTransferStatusResponse, error) - // Requests to cancel a transfer. - CancelTransfer(ctx context.Context, in *v1beta113.CancelTransferRequest, opts ...grpc.CallOption) (*v1beta113.CancelTransferResponse, error) -} - -type gatewayAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewGatewayAPIClient(cc grpc.ClientConnInterface) GatewayAPIClient { - return &gatewayAPIClient{cc} -} - -func (c *gatewayAPIClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { - out := new(AuthenticateResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Authenticate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) { - out := new(WhoAmIResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/WhoAmI", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreateContainer(ctx context.Context, in *v1beta13.CreateContainerRequest, opts ...grpc.CallOption) (*v1beta13.CreateContainerResponse, error) { - out := new(v1beta13.CreateContainerResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) Delete(ctx context.Context, in *v1beta13.DeleteRequest, opts ...grpc.CallOption) (*v1beta13.DeleteResponse, error) { - out := new(v1beta13.DeleteResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Delete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetPath(ctx context.Context, in *v1beta13.GetPathRequest, opts ...grpc.CallOption) (*v1beta13.GetPathResponse, error) { - out := new(v1beta13.GetPathResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetPath", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*v1beta13.GetQuotaResponse, error) { - out := new(v1beta13.GetQuotaResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetQuota", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) InitiateFileDownload(ctx context.Context, in *v1beta13.InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) { - out := new(InitiateFileDownloadResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileDownload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) InitiateFileUpload(ctx context.Context, in *v1beta13.InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) { - out := new(InitiateFileUploadResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileUpload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListContainerStream(ctx context.Context, in *v1beta13.ListContainerStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListContainerStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_GatewayAPI_serviceDesc.Streams[0], "/cs3.gateway.v1beta1.GatewayAPI/ListContainerStream", opts...) - if err != nil { - return nil, err - } - x := &gatewayAPIListContainerStreamClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type GatewayAPI_ListContainerStreamClient interface { - Recv() (*v1beta13.ListContainerStreamResponse, error) - grpc.ClientStream -} - -type gatewayAPIListContainerStreamClient struct { - grpc.ClientStream -} - -func (x *gatewayAPIListContainerStreamClient) Recv() (*v1beta13.ListContainerStreamResponse, error) { - m := new(v1beta13.ListContainerStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *gatewayAPIClient) ListContainer(ctx context.Context, in *v1beta13.ListContainerRequest, opts ...grpc.CallOption) (*v1beta13.ListContainerResponse, error) { - out := new(v1beta13.ListContainerResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListFileVersions(ctx context.Context, in *v1beta13.ListFileVersionsRequest, opts ...grpc.CallOption) (*v1beta13.ListFileVersionsResponse, error) { - out := new(v1beta13.ListFileVersionsResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListFileVersions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (GatewayAPI_ListRecycleStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_GatewayAPI_serviceDesc.Streams[1], "/cs3.gateway.v1beta1.GatewayAPI/ListRecycleStream", opts...) - if err != nil { - return nil, err - } - x := &gatewayAPIListRecycleStreamClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type GatewayAPI_ListRecycleStreamClient interface { - Recv() (*v1beta13.ListRecycleStreamResponse, error) - grpc.ClientStream -} - -type gatewayAPIListRecycleStreamClient struct { - grpc.ClientStream -} - -func (x *gatewayAPIListRecycleStreamClient) Recv() (*v1beta13.ListRecycleStreamResponse, error) { - m := new(v1beta13.ListRecycleStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *gatewayAPIClient) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*v1beta13.ListRecycleResponse, error) { - out := new(v1beta13.ListRecycleResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListRecycle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) Move(ctx context.Context, in *v1beta13.MoveRequest, opts ...grpc.CallOption) (*v1beta13.MoveResponse, error) { - out := new(v1beta13.MoveResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Move", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*v1beta13.PurgeRecycleResponse, error) { - out := new(v1beta13.PurgeRecycleResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/PurgeRecycle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) RestoreFileVersion(ctx context.Context, in *v1beta13.RestoreFileVersionRequest, opts ...grpc.CallOption) (*v1beta13.RestoreFileVersionResponse, error) { - out := new(v1beta13.RestoreFileVersionResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RestoreFileVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) RestoreRecycleItem(ctx context.Context, in *v1beta13.RestoreRecycleItemRequest, opts ...grpc.CallOption) (*v1beta13.RestoreRecycleItemResponse, error) { - out := new(v1beta13.RestoreRecycleItemResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RestoreRecycleItem", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) Stat(ctx context.Context, in *v1beta13.StatRequest, opts ...grpc.CallOption) (*v1beta13.StatResponse, error) { - out := new(v1beta13.StatResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/Stat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreateSymlink(ctx context.Context, in *v1beta13.CreateSymlinkRequest, opts ...grpc.CallOption) (*v1beta13.CreateSymlinkResponse, error) { - out := new(v1beta13.CreateSymlinkResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateSymlink", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) SetArbitraryMetadata(ctx context.Context, in *v1beta13.SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.SetArbitraryMetadataResponse, error) { - out := new(v1beta13.SetArbitraryMetadataResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/SetArbitraryMetadata", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) UnsetArbitraryMetadata(ctx context.Context, in *v1beta13.UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*v1beta13.UnsetArbitraryMetadataResponse, error) { - out := new(v1beta13.UnsetArbitraryMetadataResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UnsetArbitraryMetadata", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreateHome(ctx context.Context, in *v1beta13.CreateHomeRequest, opts ...grpc.CallOption) (*v1beta13.CreateHomeResponse, error) { - out := new(v1beta13.CreateHomeResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateHome", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...grpc.CallOption) (*v1beta114.OpenFileInAppProviderResponse, error) { - out := new(v1beta114.OpenFileInAppProviderResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/OpenFileInAppProvider", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreateShare(ctx context.Context, in *v1beta14.CreateShareRequest, opts ...grpc.CallOption) (*v1beta14.CreateShareResponse, error) { - out := new(v1beta14.CreateShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) RemoveShare(ctx context.Context, in *v1beta14.RemoveShareRequest, opts ...grpc.CallOption) (*v1beta14.RemoveShareResponse, error) { - out := new(v1beta14.RemoveShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RemoveShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetShare(ctx context.Context, in *v1beta14.GetShareRequest, opts ...grpc.CallOption) (*v1beta14.GetShareResponse, error) { - out := new(v1beta14.GetShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListShares(ctx context.Context, in *v1beta14.ListSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListSharesResponse, error) { - out := new(v1beta14.ListSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) UpdateShare(ctx context.Context, in *v1beta14.UpdateShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateShareResponse, error) { - out := new(v1beta14.UpdateShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListReceivedShares(ctx context.Context, in *v1beta14.ListReceivedSharesRequest, opts ...grpc.CallOption) (*v1beta14.ListReceivedSharesResponse, error) { - out := new(v1beta14.ListReceivedSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) UpdateReceivedShare(ctx context.Context, in *v1beta14.UpdateReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.UpdateReceivedShareResponse, error) { - out := new(v1beta14.UpdateReceivedShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetReceivedShare(ctx context.Context, in *v1beta14.GetReceivedShareRequest, opts ...grpc.CallOption) (*v1beta14.GetReceivedShareResponse, error) { - out := new(v1beta14.GetReceivedShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) SetKey(ctx context.Context, in *v1beta15.SetKeyRequest, opts ...grpc.CallOption) (*v1beta15.SetKeyResponse, error) { - out := new(v1beta15.SetKeyResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/SetKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetKey(ctx context.Context, in *v1beta15.GetKeyRequest, opts ...grpc.CallOption) (*v1beta15.GetKeyResponse, error) { - out := new(v1beta15.GetKeyResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreatePublicShare(ctx context.Context, in *v1beta16.CreatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.CreatePublicShareResponse, error) { - out := new(v1beta16.CreatePublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreatePublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) RemovePublicShare(ctx context.Context, in *v1beta16.RemovePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.RemovePublicShareResponse, error) { - out := new(v1beta16.RemovePublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RemovePublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetPublicShare(ctx context.Context, in *v1beta16.GetPublicShareRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareResponse, error) { - out := new(v1beta16.GetPublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetPublicShareByToken(ctx context.Context, in *v1beta16.GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*v1beta16.GetPublicShareByTokenResponse, error) { - out := new(v1beta16.GetPublicShareByTokenResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShareByToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListPublicShares(ctx context.Context, in *v1beta16.ListPublicSharesRequest, opts ...grpc.CallOption) (*v1beta16.ListPublicSharesResponse, error) { - out := new(v1beta16.ListPublicSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListPublicShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) UpdatePublicShare(ctx context.Context, in *v1beta16.UpdatePublicShareRequest, opts ...grpc.CallOption) (*v1beta16.UpdatePublicShareResponse, error) { - out := new(v1beta16.UpdatePublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdatePublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreateOCMShare(ctx context.Context, in *v1beta17.CreateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.CreateOCMShareResponse, error) { - out := new(v1beta17.CreateOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) RemoveOCMShare(ctx context.Context, in *v1beta17.RemoveOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.RemoveOCMShareResponse, error) { - out := new(v1beta17.RemoveOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/RemoveOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetOCMShare(ctx context.Context, in *v1beta17.GetOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetOCMShareResponse, error) { - out := new(v1beta17.GetOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListOCMShares(ctx context.Context, in *v1beta17.ListOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListOCMSharesResponse, error) { - out := new(v1beta17.ListOCMSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListOCMShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) UpdateOCMShare(ctx context.Context, in *v1beta17.UpdateOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateOCMShareResponse, error) { - out := new(v1beta17.UpdateOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListReceivedOCMShares(ctx context.Context, in *v1beta17.ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*v1beta17.ListReceivedOCMSharesResponse, error) { - out := new(v1beta17.ListReceivedOCMSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) UpdateReceivedOCMShare(ctx context.Context, in *v1beta17.UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.UpdateReceivedOCMShareResponse, error) { - out := new(v1beta17.UpdateReceivedOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetReceivedOCMShare(ctx context.Context, in *v1beta17.GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*v1beta17.GetReceivedOCMShareResponse, error) { - out := new(v1beta17.GetReceivedOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetAppProviders(ctx context.Context, in *v1beta18.GetAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.GetAppProvidersResponse, error) { - out := new(v1beta18.GetAppProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetAppProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListAppProviders(ctx context.Context, in *v1beta18.ListAppProvidersRequest, opts ...grpc.CallOption) (*v1beta18.ListAppProvidersResponse, error) { - out := new(v1beta18.ListAppProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListAppProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetUser(ctx context.Context, in *v1beta12.GetUserRequest, opts ...grpc.CallOption) (*v1beta12.GetUserResponse, error) { - out := new(v1beta12.GetUserResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetUserByClaim(ctx context.Context, in *v1beta12.GetUserByClaimRequest, opts ...grpc.CallOption) (*v1beta12.GetUserByClaimResponse, error) { - out := new(v1beta12.GetUserByClaimResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetUserByClaim", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetUserGroups(ctx context.Context, in *v1beta12.GetUserGroupsRequest, opts ...grpc.CallOption) (*v1beta12.GetUserGroupsResponse, error) { - out := new(v1beta12.GetUserGroupsResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetUserGroups", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) IsInGroup(ctx context.Context, in *v1beta12.IsInGroupRequest, opts ...grpc.CallOption) (*v1beta12.IsInGroupResponse, error) { - out := new(v1beta12.IsInGroupResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/IsInGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) FindUsers(ctx context.Context, in *v1beta12.FindUsersRequest, opts ...grpc.CallOption) (*v1beta12.FindUsersResponse, error) { - out := new(v1beta12.FindUsersResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/FindUsers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) FindGroups(ctx context.Context, in *v1beta12.FindGroupsRequest, opts ...grpc.CallOption) (*v1beta12.FindGroupsResponse, error) { - out := new(v1beta12.FindGroupsResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/FindGroups", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListAuthProviders(ctx context.Context, in *v1beta19.ListAuthProvidersRequest, opts ...grpc.CallOption) (*ListAuthProvidersResponse, error) { - out := new(ListAuthProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListAuthProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetHome(ctx context.Context, in *v1beta13.GetHomeRequest, opts ...grpc.CallOption) (*v1beta13.GetHomeResponse, error) { - out := new(v1beta13.GetHomeResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetHome", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GenerateInviteToken(ctx context.Context, in *v1beta110.GenerateInviteTokenRequest, opts ...grpc.CallOption) (*v1beta110.GenerateInviteTokenResponse, error) { - out := new(v1beta110.GenerateInviteTokenResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GenerateInviteToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ForwardInvite(ctx context.Context, in *v1beta110.ForwardInviteRequest, opts ...grpc.CallOption) (*v1beta110.ForwardInviteResponse, error) { - out := new(v1beta110.ForwardInviteResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ForwardInvite", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) AcceptInvite(ctx context.Context, in *v1beta110.AcceptInviteRequest, opts ...grpc.CallOption) (*v1beta110.AcceptInviteResponse, error) { - out := new(v1beta110.AcceptInviteResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/AcceptInvite", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetRemoteUser(ctx context.Context, in *v1beta110.GetRemoteUserRequest, opts ...grpc.CallOption) (*v1beta110.GetRemoteUserResponse, error) { - out := new(v1beta110.GetRemoteUserResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetRemoteUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) IsProviderAllowed(ctx context.Context, in *v1beta111.IsProviderAllowedRequest, opts ...grpc.CallOption) (*v1beta111.IsProviderAllowedResponse, error) { - out := new(v1beta111.IsProviderAllowedResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/IsProviderAllowed", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetInfoByDomain(ctx context.Context, in *v1beta111.GetInfoByDomainRequest, opts ...grpc.CallOption) (*v1beta111.GetInfoByDomainResponse, error) { - out := new(v1beta111.GetInfoByDomainResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetInfoByDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) ListAllProviders(ctx context.Context, in *v1beta111.ListAllProvidersRequest, opts ...grpc.CallOption) (*v1beta111.ListAllProvidersResponse, error) { - out := new(v1beta111.ListAllProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/ListAllProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreateOCMCoreShare(ctx context.Context, in *v1beta112.CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*v1beta112.CreateOCMCoreShareResponse, error) { - out := new(v1beta112.CreateOCMCoreShareResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMCoreShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CreateTransfer(ctx context.Context, in *v1beta113.CreateTransferRequest, opts ...grpc.CallOption) (*v1beta113.CreateTransferResponse, error) { - out := new(v1beta113.CreateTransferResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CreateTransfer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) GetTransferStatus(ctx context.Context, in *v1beta113.GetTransferStatusRequest, opts ...grpc.CallOption) (*v1beta113.GetTransferStatusResponse, error) { - out := new(v1beta113.GetTransferStatusResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/GetTransferStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIClient) CancelTransfer(ctx context.Context, in *v1beta113.CancelTransferRequest, opts ...grpc.CallOption) (*v1beta113.CancelTransferResponse, error) { - out := new(v1beta113.CancelTransferResponse) - err := c.cc.Invoke(ctx, "/cs3.gateway.v1beta1.GatewayAPI/CancelTransfer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// GatewayAPIServer is the server API for GatewayAPI service. -type GatewayAPIServer interface { - // Authenticates a user. - Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) - // WhoAmI returns the information for a user. - WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(context.Context, *v1beta13.CreateContainerRequest) (*v1beta13.CreateContainerResponse, error) - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(context.Context, *v1beta13.DeleteRequest) (*v1beta13.DeleteResponse, error) - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(context.Context, *v1beta13.GetPathRequest) (*v1beta13.GetPathResponse, error) - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(context.Context, *GetQuotaRequest) (*v1beta13.GetQuotaResponse, error) - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(context.Context, *v1beta13.InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(context.Context, *v1beta13.InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(*v1beta13.ListContainerStreamRequest, GatewayAPI_ListContainerStreamServer) error - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(context.Context, *v1beta13.ListContainerRequest) (*v1beta13.ListContainerResponse, error) - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(context.Context, *v1beta13.ListFileVersionsRequest) (*v1beta13.ListFileVersionsResponse, error) - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(*ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamServer) error - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(context.Context, *ListRecycleRequest) (*v1beta13.ListRecycleResponse, error) - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(context.Context, *v1beta13.MoveRequest) (*v1beta13.MoveResponse, error) - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(context.Context, *PurgeRecycleRequest) (*v1beta13.PurgeRecycleResponse, error) - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(context.Context, *v1beta13.RestoreFileVersionRequest) (*v1beta13.RestoreFileVersionResponse, error) - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(context.Context, *v1beta13.RestoreRecycleItemRequest) (*v1beta13.RestoreRecycleItemResponse, error) - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(context.Context, *v1beta13.StatRequest) (*v1beta13.StatResponse, error) - // Creates a symlink to another resource. - CreateSymlink(context.Context, *v1beta13.CreateSymlinkRequest) (*v1beta13.CreateSymlinkResponse, error) - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - SetArbitraryMetadata(context.Context, *v1beta13.SetArbitraryMetadataRequest) (*v1beta13.SetArbitraryMetadataResponse, error) - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(context.Context, *v1beta13.UnsetArbitraryMetadataRequest) (*v1beta13.UnsetArbitraryMetadataResponse, error) - // Creates the home directory for a user. - CreateHome(context.Context, *v1beta13.CreateHomeRequest) (*v1beta13.CreateHomeResponse, error) - // Returns the App provider URL, which lets the user open a file in the correct online document editor. - OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*v1beta114.OpenFileInAppProviderResponse, error) - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(context.Context, *v1beta14.CreateShareRequest) (*v1beta14.CreateShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(context.Context, *v1beta14.RemoveShareRequest) (*v1beta14.RemoveShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(context.Context, *v1beta14.GetShareRequest) (*v1beta14.GetShareResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(context.Context, *v1beta14.ListSharesRequest) (*v1beta14.ListSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(context.Context, *v1beta14.UpdateShareRequest) (*v1beta14.UpdateShareResponse, error) - // List all shares the authproviderenticated principal has received. - ListReceivedShares(context.Context, *v1beta14.ListReceivedSharesRequest) (*v1beta14.ListReceivedSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(context.Context, *v1beta14.UpdateReceivedShareRequest) (*v1beta14.UpdateReceivedShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(context.Context, *v1beta14.GetReceivedShareRequest) (*v1beta14.GetReceivedShareResponse, error) - // Maps the key-value pair. - SetKey(context.Context, *v1beta15.SetKeyRequest) (*v1beta15.SetKeyResponse, error) - // Returns the value associated with the - // requested key. - GetKey(context.Context, *v1beta15.GetKeyRequest) (*v1beta15.GetKeyResponse, error) - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(context.Context, *v1beta16.CreatePublicShareRequest) (*v1beta16.CreatePublicShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(context.Context, *v1beta16.RemovePublicShareRequest) (*v1beta16.RemovePublicShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(context.Context, *v1beta16.GetPublicShareRequest) (*v1beta16.GetPublicShareResponse, error) - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(context.Context, *v1beta16.GetPublicShareByTokenRequest) (*v1beta16.GetPublicShareByTokenResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(context.Context, *v1beta16.ListPublicSharesRequest) (*v1beta16.ListPublicSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(context.Context, *v1beta16.UpdatePublicShareRequest) (*v1beta16.UpdatePublicShareResponse, error) - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(context.Context, *v1beta17.CreateOCMShareRequest) (*v1beta17.CreateOCMShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(context.Context, *v1beta17.RemoveOCMShareRequest) (*v1beta17.RemoveOCMShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(context.Context, *v1beta17.GetOCMShareRequest) (*v1beta17.GetOCMShareResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(context.Context, *v1beta17.ListOCMSharesRequest) (*v1beta17.ListOCMSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(context.Context, *v1beta17.UpdateOCMShareRequest) (*v1beta17.UpdateOCMShareResponse, error) - // List all shares the authproviderenticated principal has received. - ListReceivedOCMShares(context.Context, *v1beta17.ListReceivedOCMSharesRequest) (*v1beta17.ListReceivedOCMSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(context.Context, *v1beta17.UpdateReceivedOCMShareRequest) (*v1beta17.UpdateReceivedOCMShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(context.Context, *v1beta17.GetReceivedOCMShareRequest) (*v1beta17.GetReceivedOCMShareResponse, error) - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(context.Context, *v1beta18.GetAppProvidersRequest) (*v1beta18.GetAppProvidersResponse, error) - // Returns a list of the available app providers known by this registry. - ListAppProviders(context.Context, *v1beta18.ListAppProvidersRequest) (*v1beta18.ListAppProvidersResponse, error) - // Gets the information about a user by the user id. - GetUser(context.Context, *v1beta12.GetUserRequest) (*v1beta12.GetUserResponse, error) - // Gets the information about a user based on a specified claim. - GetUserByClaim(context.Context, *v1beta12.GetUserByClaimRequest) (*v1beta12.GetUserByClaimResponse, error) - // Gets the groups of a user. - GetUserGroups(context.Context, *v1beta12.GetUserGroupsRequest) (*v1beta12.GetUserGroupsResponse, error) - // Tells if the user is in a certain group. - IsInGroup(context.Context, *v1beta12.IsInGroupRequest) (*v1beta12.IsInGroupResponse, error) - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(context.Context, *v1beta12.FindUsersRequest) (*v1beta12.FindUsersResponse, error) - // Finds groups whose names match the specified filter. - FindGroups(context.Context, *v1beta12.FindGroupsRequest) (*v1beta12.FindGroupsResponse, error) - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(context.Context, *v1beta19.ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) - // Returns the home path for the given authenticated user. - // When a user has access to multiple storage providers, one of them is the home. - GetHome(context.Context, *v1beta13.GetHomeRequest) (*v1beta13.GetHomeResponse, error) - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(context.Context, *v1beta110.GenerateInviteTokenRequest) (*v1beta110.GenerateInviteTokenResponse, error) - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(context.Context, *v1beta110.ForwardInviteRequest) (*v1beta110.ForwardInviteResponse, error) - // Completes an invitation acceptance. - AcceptInvite(context.Context, *v1beta110.AcceptInviteRequest) (*v1beta110.AcceptInviteResponse, error) - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(context.Context, *v1beta110.GetRemoteUserRequest) (*v1beta110.GetRemoteUserResponse, error) - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(context.Context, *v1beta111.IsProviderAllowedRequest) (*v1beta111.IsProviderAllowedResponse, error) - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(context.Context, *v1beta111.GetInfoByDomainRequest) (*v1beta111.GetInfoByDomainResponse, error) - // Get the information of all the providers registered in the mesh. - ListAllProviders(context.Context, *v1beta111.ListAllProvidersRequest) (*v1beta111.ListAllProvidersResponse, error) - // Creates a new ocm share. - CreateOCMCoreShare(context.Context, *v1beta112.CreateOCMCoreShareRequest) (*v1beta112.CreateOCMCoreShareResponse, error) - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(context.Context, *v1beta113.CreateTransferRequest) (*v1beta113.CreateTransferResponse, error) - // Requests a transfer status. - GetTransferStatus(context.Context, *v1beta113.GetTransferStatusRequest) (*v1beta113.GetTransferStatusResponse, error) - // Requests to cancel a transfer. - CancelTransfer(context.Context, *v1beta113.CancelTransferRequest) (*v1beta113.CancelTransferResponse, error) -} - -// UnimplementedGatewayAPIServer can be embedded to have forward compatible implementations. -type UnimplementedGatewayAPIServer struct { -} - -func (*UnimplementedGatewayAPIServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented") -} -func (*UnimplementedGatewayAPIServer) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WhoAmI not implemented") -} -func (*UnimplementedGatewayAPIServer) CreateContainer(context.Context, *v1beta13.CreateContainerRequest) (*v1beta13.CreateContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateContainer not implemented") -} -func (*UnimplementedGatewayAPIServer) Delete(context.Context, *v1beta13.DeleteRequest) (*v1beta13.DeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (*UnimplementedGatewayAPIServer) GetPath(context.Context, *v1beta13.GetPathRequest) (*v1beta13.GetPathResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPath not implemented") -} -func (*UnimplementedGatewayAPIServer) GetQuota(context.Context, *GetQuotaRequest) (*v1beta13.GetQuotaResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetQuota not implemented") -} -func (*UnimplementedGatewayAPIServer) InitiateFileDownload(context.Context, *v1beta13.InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InitiateFileDownload not implemented") -} -func (*UnimplementedGatewayAPIServer) InitiateFileUpload(context.Context, *v1beta13.InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InitiateFileUpload not implemented") -} -func (*UnimplementedGatewayAPIServer) ListContainerStream(*v1beta13.ListContainerStreamRequest, GatewayAPI_ListContainerStreamServer) error { - return status.Errorf(codes.Unimplemented, "method ListContainerStream not implemented") -} -func (*UnimplementedGatewayAPIServer) ListContainer(context.Context, *v1beta13.ListContainerRequest) (*v1beta13.ListContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListContainer not implemented") -} -func (*UnimplementedGatewayAPIServer) ListFileVersions(context.Context, *v1beta13.ListFileVersionsRequest) (*v1beta13.ListFileVersionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListFileVersions not implemented") -} -func (*UnimplementedGatewayAPIServer) ListRecycleStream(*ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamServer) error { - return status.Errorf(codes.Unimplemented, "method ListRecycleStream not implemented") -} -func (*UnimplementedGatewayAPIServer) ListRecycle(context.Context, *ListRecycleRequest) (*v1beta13.ListRecycleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListRecycle not implemented") -} -func (*UnimplementedGatewayAPIServer) Move(context.Context, *v1beta13.MoveRequest) (*v1beta13.MoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") -} -func (*UnimplementedGatewayAPIServer) PurgeRecycle(context.Context, *PurgeRecycleRequest) (*v1beta13.PurgeRecycleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PurgeRecycle not implemented") -} -func (*UnimplementedGatewayAPIServer) RestoreFileVersion(context.Context, *v1beta13.RestoreFileVersionRequest) (*v1beta13.RestoreFileVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RestoreFileVersion not implemented") -} -func (*UnimplementedGatewayAPIServer) RestoreRecycleItem(context.Context, *v1beta13.RestoreRecycleItemRequest) (*v1beta13.RestoreRecycleItemResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RestoreRecycleItem not implemented") -} -func (*UnimplementedGatewayAPIServer) Stat(context.Context, *v1beta13.StatRequest) (*v1beta13.StatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") -} -func (*UnimplementedGatewayAPIServer) CreateSymlink(context.Context, *v1beta13.CreateSymlinkRequest) (*v1beta13.CreateSymlinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateSymlink not implemented") -} -func (*UnimplementedGatewayAPIServer) SetArbitraryMetadata(context.Context, *v1beta13.SetArbitraryMetadataRequest) (*v1beta13.SetArbitraryMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetArbitraryMetadata not implemented") -} -func (*UnimplementedGatewayAPIServer) UnsetArbitraryMetadata(context.Context, *v1beta13.UnsetArbitraryMetadataRequest) (*v1beta13.UnsetArbitraryMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnsetArbitraryMetadata not implemented") -} -func (*UnimplementedGatewayAPIServer) CreateHome(context.Context, *v1beta13.CreateHomeRequest) (*v1beta13.CreateHomeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateHome not implemented") -} -func (*UnimplementedGatewayAPIServer) OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest) (*v1beta114.OpenFileInAppProviderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenFileInAppProvider not implemented") -} -func (*UnimplementedGatewayAPIServer) CreateShare(context.Context, *v1beta14.CreateShareRequest) (*v1beta14.CreateShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateShare not implemented") -} -func (*UnimplementedGatewayAPIServer) RemoveShare(context.Context, *v1beta14.RemoveShareRequest) (*v1beta14.RemoveShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveShare not implemented") -} -func (*UnimplementedGatewayAPIServer) GetShare(context.Context, *v1beta14.GetShareRequest) (*v1beta14.GetShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetShare not implemented") -} -func (*UnimplementedGatewayAPIServer) ListShares(context.Context, *v1beta14.ListSharesRequest) (*v1beta14.ListSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListShares not implemented") -} -func (*UnimplementedGatewayAPIServer) UpdateShare(context.Context, *v1beta14.UpdateShareRequest) (*v1beta14.UpdateShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateShare not implemented") -} -func (*UnimplementedGatewayAPIServer) ListReceivedShares(context.Context, *v1beta14.ListReceivedSharesRequest) (*v1beta14.ListReceivedSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListReceivedShares not implemented") -} -func (*UnimplementedGatewayAPIServer) UpdateReceivedShare(context.Context, *v1beta14.UpdateReceivedShareRequest) (*v1beta14.UpdateReceivedShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedShare not implemented") -} -func (*UnimplementedGatewayAPIServer) GetReceivedShare(context.Context, *v1beta14.GetReceivedShareRequest) (*v1beta14.GetReceivedShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReceivedShare not implemented") -} -func (*UnimplementedGatewayAPIServer) SetKey(context.Context, *v1beta15.SetKeyRequest) (*v1beta15.SetKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetKey not implemented") -} -func (*UnimplementedGatewayAPIServer) GetKey(context.Context, *v1beta15.GetKeyRequest) (*v1beta15.GetKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented") -} -func (*UnimplementedGatewayAPIServer) CreatePublicShare(context.Context, *v1beta16.CreatePublicShareRequest) (*v1beta16.CreatePublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePublicShare not implemented") -} -func (*UnimplementedGatewayAPIServer) RemovePublicShare(context.Context, *v1beta16.RemovePublicShareRequest) (*v1beta16.RemovePublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemovePublicShare not implemented") -} -func (*UnimplementedGatewayAPIServer) GetPublicShare(context.Context, *v1beta16.GetPublicShareRequest) (*v1beta16.GetPublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPublicShare not implemented") -} -func (*UnimplementedGatewayAPIServer) GetPublicShareByToken(context.Context, *v1beta16.GetPublicShareByTokenRequest) (*v1beta16.GetPublicShareByTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPublicShareByToken not implemented") -} -func (*UnimplementedGatewayAPIServer) ListPublicShares(context.Context, *v1beta16.ListPublicSharesRequest) (*v1beta16.ListPublicSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPublicShares not implemented") -} -func (*UnimplementedGatewayAPIServer) UpdatePublicShare(context.Context, *v1beta16.UpdatePublicShareRequest) (*v1beta16.UpdatePublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePublicShare not implemented") -} -func (*UnimplementedGatewayAPIServer) CreateOCMShare(context.Context, *v1beta17.CreateOCMShareRequest) (*v1beta17.CreateOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOCMShare not implemented") -} -func (*UnimplementedGatewayAPIServer) RemoveOCMShare(context.Context, *v1beta17.RemoveOCMShareRequest) (*v1beta17.RemoveOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveOCMShare not implemented") -} -func (*UnimplementedGatewayAPIServer) GetOCMShare(context.Context, *v1beta17.GetOCMShareRequest) (*v1beta17.GetOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOCMShare not implemented") -} -func (*UnimplementedGatewayAPIServer) ListOCMShares(context.Context, *v1beta17.ListOCMSharesRequest) (*v1beta17.ListOCMSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListOCMShares not implemented") -} -func (*UnimplementedGatewayAPIServer) UpdateOCMShare(context.Context, *v1beta17.UpdateOCMShareRequest) (*v1beta17.UpdateOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateOCMShare not implemented") -} -func (*UnimplementedGatewayAPIServer) ListReceivedOCMShares(context.Context, *v1beta17.ListReceivedOCMSharesRequest) (*v1beta17.ListReceivedOCMSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListReceivedOCMShares not implemented") -} -func (*UnimplementedGatewayAPIServer) UpdateReceivedOCMShare(context.Context, *v1beta17.UpdateReceivedOCMShareRequest) (*v1beta17.UpdateReceivedOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedOCMShare not implemented") -} -func (*UnimplementedGatewayAPIServer) GetReceivedOCMShare(context.Context, *v1beta17.GetReceivedOCMShareRequest) (*v1beta17.GetReceivedOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReceivedOCMShare not implemented") -} -func (*UnimplementedGatewayAPIServer) GetAppProviders(context.Context, *v1beta18.GetAppProvidersRequest) (*v1beta18.GetAppProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAppProviders not implemented") -} -func (*UnimplementedGatewayAPIServer) ListAppProviders(context.Context, *v1beta18.ListAppProvidersRequest) (*v1beta18.ListAppProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAppProviders not implemented") -} -func (*UnimplementedGatewayAPIServer) GetUser(context.Context, *v1beta12.GetUserRequest) (*v1beta12.GetUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") -} -func (*UnimplementedGatewayAPIServer) GetUserByClaim(context.Context, *v1beta12.GetUserByClaimRequest) (*v1beta12.GetUserByClaimResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserByClaim not implemented") -} -func (*UnimplementedGatewayAPIServer) GetUserGroups(context.Context, *v1beta12.GetUserGroupsRequest) (*v1beta12.GetUserGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented") -} -func (*UnimplementedGatewayAPIServer) IsInGroup(context.Context, *v1beta12.IsInGroupRequest) (*v1beta12.IsInGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsInGroup not implemented") -} -func (*UnimplementedGatewayAPIServer) FindUsers(context.Context, *v1beta12.FindUsersRequest) (*v1beta12.FindUsersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUsers not implemented") -} -func (*UnimplementedGatewayAPIServer) FindGroups(context.Context, *v1beta12.FindGroupsRequest) (*v1beta12.FindGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindGroups not implemented") -} -func (*UnimplementedGatewayAPIServer) ListAuthProviders(context.Context, *v1beta19.ListAuthProvidersRequest) (*ListAuthProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAuthProviders not implemented") -} -func (*UnimplementedGatewayAPIServer) GetHome(context.Context, *v1beta13.GetHomeRequest) (*v1beta13.GetHomeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented") -} -func (*UnimplementedGatewayAPIServer) GenerateInviteToken(context.Context, *v1beta110.GenerateInviteTokenRequest) (*v1beta110.GenerateInviteTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateInviteToken not implemented") -} -func (*UnimplementedGatewayAPIServer) ForwardInvite(context.Context, *v1beta110.ForwardInviteRequest) (*v1beta110.ForwardInviteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ForwardInvite not implemented") -} -func (*UnimplementedGatewayAPIServer) AcceptInvite(context.Context, *v1beta110.AcceptInviteRequest) (*v1beta110.AcceptInviteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AcceptInvite not implemented") -} -func (*UnimplementedGatewayAPIServer) GetRemoteUser(context.Context, *v1beta110.GetRemoteUserRequest) (*v1beta110.GetRemoteUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRemoteUser not implemented") -} -func (*UnimplementedGatewayAPIServer) IsProviderAllowed(context.Context, *v1beta111.IsProviderAllowedRequest) (*v1beta111.IsProviderAllowedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsProviderAllowed not implemented") -} -func (*UnimplementedGatewayAPIServer) GetInfoByDomain(context.Context, *v1beta111.GetInfoByDomainRequest) (*v1beta111.GetInfoByDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfoByDomain not implemented") -} -func (*UnimplementedGatewayAPIServer) ListAllProviders(context.Context, *v1beta111.ListAllProvidersRequest) (*v1beta111.ListAllProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAllProviders not implemented") -} -func (*UnimplementedGatewayAPIServer) CreateOCMCoreShare(context.Context, *v1beta112.CreateOCMCoreShareRequest) (*v1beta112.CreateOCMCoreShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOCMCoreShare not implemented") -} -func (*UnimplementedGatewayAPIServer) CreateTransfer(context.Context, *v1beta113.CreateTransferRequest) (*v1beta113.CreateTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTransfer not implemented") -} -func (*UnimplementedGatewayAPIServer) GetTransferStatus(context.Context, *v1beta113.GetTransferStatusRequest) (*v1beta113.GetTransferStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTransferStatus not implemented") -} -func (*UnimplementedGatewayAPIServer) CancelTransfer(context.Context, *v1beta113.CancelTransferRequest) (*v1beta113.CancelTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelTransfer not implemented") -} - -func RegisterGatewayAPIServer(s *grpc.Server, srv GatewayAPIServer) { - s.RegisterService(&_GatewayAPI_serviceDesc, srv) -} - -func _GatewayAPI_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AuthenticateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).Authenticate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Authenticate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).Authenticate(ctx, req.(*AuthenticateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_WhoAmI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WhoAmIRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).WhoAmI(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/WhoAmI", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).WhoAmI(ctx, req.(*WhoAmIRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.CreateContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreateContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreateContainer(ctx, req.(*v1beta13.CreateContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.DeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).Delete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Delete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).Delete(ctx, req.(*v1beta13.DeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.GetPathRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetPath(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetPath", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetPath(ctx, req.(*v1beta13.GetPathRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetQuotaRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetQuota(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetQuota", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetQuota(ctx, req.(*GetQuotaRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_InitiateFileDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.InitiateFileDownloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).InitiateFileDownload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileDownload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).InitiateFileDownload(ctx, req.(*v1beta13.InitiateFileDownloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_InitiateFileUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.InitiateFileUploadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).InitiateFileUpload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/InitiateFileUpload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).InitiateFileUpload(ctx, req.(*v1beta13.InitiateFileUploadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListContainerStream_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(v1beta13.ListContainerStreamRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(GatewayAPIServer).ListContainerStream(m, &gatewayAPIListContainerStreamServer{stream}) -} - -type GatewayAPI_ListContainerStreamServer interface { - Send(*v1beta13.ListContainerStreamResponse) error - grpc.ServerStream -} - -type gatewayAPIListContainerStreamServer struct { - grpc.ServerStream -} - -func (x *gatewayAPIListContainerStreamServer) Send(m *v1beta13.ListContainerStreamResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _GatewayAPI_ListContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.ListContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListContainer(ctx, req.(*v1beta13.ListContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListFileVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.ListFileVersionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListFileVersions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListFileVersions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListFileVersions(ctx, req.(*v1beta13.ListFileVersionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListRecycleStream_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListRecycleStreamRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(GatewayAPIServer).ListRecycleStream(m, &gatewayAPIListRecycleStreamServer{stream}) -} - -type GatewayAPI_ListRecycleStreamServer interface { - Send(*v1beta13.ListRecycleStreamResponse) error - grpc.ServerStream -} - -type gatewayAPIListRecycleStreamServer struct { - grpc.ServerStream -} - -func (x *gatewayAPIListRecycleStreamServer) Send(m *v1beta13.ListRecycleStreamResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _GatewayAPI_ListRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRecycleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListRecycle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListRecycle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListRecycle(ctx, req.(*ListRecycleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.MoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).Move(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Move", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).Move(ctx, req.(*v1beta13.MoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_PurgeRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PurgeRecycleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).PurgeRecycle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/PurgeRecycle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).PurgeRecycle(ctx, req.(*PurgeRecycleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_RestoreFileVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.RestoreFileVersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).RestoreFileVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RestoreFileVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).RestoreFileVersion(ctx, req.(*v1beta13.RestoreFileVersionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_RestoreRecycleItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.RestoreRecycleItemRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).RestoreRecycleItem(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RestoreRecycleItem", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).RestoreRecycleItem(ctx, req.(*v1beta13.RestoreRecycleItemRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.StatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).Stat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/Stat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).Stat(ctx, req.(*v1beta13.StatRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreateSymlink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.CreateSymlinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreateSymlink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateSymlink", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreateSymlink(ctx, req.(*v1beta13.CreateSymlinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_SetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.SetArbitraryMetadataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).SetArbitraryMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/SetArbitraryMetadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).SetArbitraryMetadata(ctx, req.(*v1beta13.SetArbitraryMetadataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_UnsetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.UnsetArbitraryMetadataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).UnsetArbitraryMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UnsetArbitraryMetadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).UnsetArbitraryMetadata(ctx, req.(*v1beta13.UnsetArbitraryMetadataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreateHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.CreateHomeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreateHome(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateHome", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreateHome(ctx, req.(*v1beta13.CreateHomeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_OpenFileInAppProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenFileInAppProviderRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).OpenFileInAppProvider(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/OpenFileInAppProvider", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).OpenFileInAppProvider(ctx, req.(*OpenFileInAppProviderRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.CreateShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreateShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreateShare(ctx, req.(*v1beta14.CreateShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_RemoveShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.RemoveShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).RemoveShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RemoveShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).RemoveShare(ctx, req.(*v1beta14.RemoveShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.GetShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetShare(ctx, req.(*v1beta14.GetShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.ListSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListShares(ctx, req.(*v1beta14.ListSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_UpdateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.UpdateShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).UpdateShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).UpdateShare(ctx, req.(*v1beta14.UpdateShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListReceivedShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.ListReceivedSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListReceivedShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListReceivedShares(ctx, req.(*v1beta14.ListReceivedSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_UpdateReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.UpdateReceivedShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).UpdateReceivedShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).UpdateReceivedShare(ctx, req.(*v1beta14.UpdateReceivedShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta14.GetReceivedShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetReceivedShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetReceivedShare(ctx, req.(*v1beta14.GetReceivedShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_SetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta15.SetKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).SetKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/SetKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).SetKey(ctx, req.(*v1beta15.SetKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta15.GetKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetKey(ctx, req.(*v1beta15.GetKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta16.CreatePublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreatePublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreatePublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreatePublicShare(ctx, req.(*v1beta16.CreatePublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_RemovePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta16.RemovePublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).RemovePublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RemovePublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).RemovePublicShare(ctx, req.(*v1beta16.RemovePublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetPublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta16.GetPublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetPublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetPublicShare(ctx, req.(*v1beta16.GetPublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetPublicShareByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta16.GetPublicShareByTokenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetPublicShareByToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetPublicShareByToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetPublicShareByToken(ctx, req.(*v1beta16.GetPublicShareByTokenRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListPublicShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta16.ListPublicSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListPublicShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListPublicShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListPublicShares(ctx, req.(*v1beta16.ListPublicSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_UpdatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta16.UpdatePublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).UpdatePublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdatePublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).UpdatePublicShare(ctx, req.(*v1beta16.UpdatePublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.CreateOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreateOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreateOCMShare(ctx, req.(*v1beta17.CreateOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_RemoveOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.RemoveOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).RemoveOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/RemoveOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).RemoveOCMShare(ctx, req.(*v1beta17.RemoveOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.GetOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetOCMShare(ctx, req.(*v1beta17.GetOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.ListOCMSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListOCMShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListOCMShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListOCMShares(ctx, req.(*v1beta17.ListOCMSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_UpdateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.UpdateOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).UpdateOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).UpdateOCMShare(ctx, req.(*v1beta17.UpdateOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListReceivedOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.ListReceivedOCMSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListReceivedOCMShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListReceivedOCMShares(ctx, req.(*v1beta17.ListReceivedOCMSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_UpdateReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.UpdateReceivedOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).UpdateReceivedOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/UpdateReceivedOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).UpdateReceivedOCMShare(ctx, req.(*v1beta17.UpdateReceivedOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta17.GetReceivedOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetReceivedOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetReceivedOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetReceivedOCMShare(ctx, req.(*v1beta17.GetReceivedOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta18.GetAppProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetAppProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetAppProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetAppProviders(ctx, req.(*v1beta18.GetAppProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListAppProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta18.ListAppProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListAppProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListAppProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListAppProviders(ctx, req.(*v1beta18.ListAppProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta12.GetUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetUser(ctx, req.(*v1beta12.GetUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetUserByClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta12.GetUserByClaimRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetUserByClaim(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetUserByClaim", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetUserByClaim(ctx, req.(*v1beta12.GetUserByClaimRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetUserGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta12.GetUserGroupsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetUserGroups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetUserGroups", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetUserGroups(ctx, req.(*v1beta12.GetUserGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_IsInGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta12.IsInGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).IsInGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/IsInGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).IsInGroup(ctx, req.(*v1beta12.IsInGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_FindUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta12.FindUsersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).FindUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/FindUsers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).FindUsers(ctx, req.(*v1beta12.FindUsersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_FindGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta12.FindGroupsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).FindGroups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/FindGroups", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).FindGroups(ctx, req.(*v1beta12.FindGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListAuthProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta19.ListAuthProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListAuthProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListAuthProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListAuthProviders(ctx, req.(*v1beta19.ListAuthProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta13.GetHomeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetHome(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetHome", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetHome(ctx, req.(*v1beta13.GetHomeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GenerateInviteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta110.GenerateInviteTokenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GenerateInviteToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GenerateInviteToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GenerateInviteToken(ctx, req.(*v1beta110.GenerateInviteTokenRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ForwardInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta110.ForwardInviteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ForwardInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ForwardInvite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ForwardInvite(ctx, req.(*v1beta110.ForwardInviteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_AcceptInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta110.AcceptInviteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).AcceptInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/AcceptInvite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).AcceptInvite(ctx, req.(*v1beta110.AcceptInviteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetRemoteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta110.GetRemoteUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetRemoteUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetRemoteUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetRemoteUser(ctx, req.(*v1beta110.GetRemoteUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_IsProviderAllowed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta111.IsProviderAllowedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).IsProviderAllowed(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/IsProviderAllowed", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).IsProviderAllowed(ctx, req.(*v1beta111.IsProviderAllowedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetInfoByDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta111.GetInfoByDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetInfoByDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetInfoByDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetInfoByDomain(ctx, req.(*v1beta111.GetInfoByDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_ListAllProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta111.ListAllProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).ListAllProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/ListAllProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).ListAllProviders(ctx, req.(*v1beta111.ListAllProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreateOCMCoreShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta112.CreateOCMCoreShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreateOCMCoreShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateOCMCoreShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreateOCMCoreShare(ctx, req.(*v1beta112.CreateOCMCoreShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CreateTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta113.CreateTransferRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CreateTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CreateTransfer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CreateTransfer(ctx, req.(*v1beta113.CreateTransferRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_GetTransferStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta113.GetTransferStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).GetTransferStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/GetTransferStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).GetTransferStatus(ctx, req.(*v1beta113.GetTransferStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GatewayAPI_CancelTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1beta113.CancelTransferRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GatewayAPIServer).CancelTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.gateway.v1beta1.GatewayAPI/CancelTransfer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GatewayAPIServer).CancelTransfer(ctx, req.(*v1beta113.CancelTransferRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _GatewayAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.gateway.v1beta1.GatewayAPI", - HandlerType: (*GatewayAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Authenticate", - Handler: _GatewayAPI_Authenticate_Handler, - }, - { - MethodName: "WhoAmI", - Handler: _GatewayAPI_WhoAmI_Handler, - }, - { - MethodName: "CreateContainer", - Handler: _GatewayAPI_CreateContainer_Handler, - }, - { - MethodName: "Delete", - Handler: _GatewayAPI_Delete_Handler, - }, - { - MethodName: "GetPath", - Handler: _GatewayAPI_GetPath_Handler, - }, - { - MethodName: "GetQuota", - Handler: _GatewayAPI_GetQuota_Handler, - }, - { - MethodName: "InitiateFileDownload", - Handler: _GatewayAPI_InitiateFileDownload_Handler, - }, - { - MethodName: "InitiateFileUpload", - Handler: _GatewayAPI_InitiateFileUpload_Handler, - }, - { - MethodName: "ListContainer", - Handler: _GatewayAPI_ListContainer_Handler, - }, - { - MethodName: "ListFileVersions", - Handler: _GatewayAPI_ListFileVersions_Handler, - }, - { - MethodName: "ListRecycle", - Handler: _GatewayAPI_ListRecycle_Handler, - }, - { - MethodName: "Move", - Handler: _GatewayAPI_Move_Handler, - }, - { - MethodName: "PurgeRecycle", - Handler: _GatewayAPI_PurgeRecycle_Handler, - }, - { - MethodName: "RestoreFileVersion", - Handler: _GatewayAPI_RestoreFileVersion_Handler, - }, - { - MethodName: "RestoreRecycleItem", - Handler: _GatewayAPI_RestoreRecycleItem_Handler, - }, - { - MethodName: "Stat", - Handler: _GatewayAPI_Stat_Handler, - }, - { - MethodName: "CreateSymlink", - Handler: _GatewayAPI_CreateSymlink_Handler, - }, - { - MethodName: "SetArbitraryMetadata", - Handler: _GatewayAPI_SetArbitraryMetadata_Handler, - }, - { - MethodName: "UnsetArbitraryMetadata", - Handler: _GatewayAPI_UnsetArbitraryMetadata_Handler, - }, - { - MethodName: "CreateHome", - Handler: _GatewayAPI_CreateHome_Handler, - }, - { - MethodName: "OpenFileInAppProvider", - Handler: _GatewayAPI_OpenFileInAppProvider_Handler, - }, - { - MethodName: "CreateShare", - Handler: _GatewayAPI_CreateShare_Handler, - }, - { - MethodName: "RemoveShare", - Handler: _GatewayAPI_RemoveShare_Handler, - }, - { - MethodName: "GetShare", - Handler: _GatewayAPI_GetShare_Handler, - }, - { - MethodName: "ListShares", - Handler: _GatewayAPI_ListShares_Handler, - }, - { - MethodName: "UpdateShare", - Handler: _GatewayAPI_UpdateShare_Handler, - }, - { - MethodName: "ListReceivedShares", - Handler: _GatewayAPI_ListReceivedShares_Handler, - }, - { - MethodName: "UpdateReceivedShare", - Handler: _GatewayAPI_UpdateReceivedShare_Handler, - }, - { - MethodName: "GetReceivedShare", - Handler: _GatewayAPI_GetReceivedShare_Handler, - }, - { - MethodName: "SetKey", - Handler: _GatewayAPI_SetKey_Handler, - }, - { - MethodName: "GetKey", - Handler: _GatewayAPI_GetKey_Handler, - }, - { - MethodName: "CreatePublicShare", - Handler: _GatewayAPI_CreatePublicShare_Handler, - }, - { - MethodName: "RemovePublicShare", - Handler: _GatewayAPI_RemovePublicShare_Handler, - }, - { - MethodName: "GetPublicShare", - Handler: _GatewayAPI_GetPublicShare_Handler, - }, - { - MethodName: "GetPublicShareByToken", - Handler: _GatewayAPI_GetPublicShareByToken_Handler, - }, - { - MethodName: "ListPublicShares", - Handler: _GatewayAPI_ListPublicShares_Handler, - }, - { - MethodName: "UpdatePublicShare", - Handler: _GatewayAPI_UpdatePublicShare_Handler, - }, - { - MethodName: "CreateOCMShare", - Handler: _GatewayAPI_CreateOCMShare_Handler, - }, - { - MethodName: "RemoveOCMShare", - Handler: _GatewayAPI_RemoveOCMShare_Handler, - }, - { - MethodName: "GetOCMShare", - Handler: _GatewayAPI_GetOCMShare_Handler, - }, - { - MethodName: "ListOCMShares", - Handler: _GatewayAPI_ListOCMShares_Handler, - }, - { - MethodName: "UpdateOCMShare", - Handler: _GatewayAPI_UpdateOCMShare_Handler, - }, - { - MethodName: "ListReceivedOCMShares", - Handler: _GatewayAPI_ListReceivedOCMShares_Handler, - }, - { - MethodName: "UpdateReceivedOCMShare", - Handler: _GatewayAPI_UpdateReceivedOCMShare_Handler, - }, - { - MethodName: "GetReceivedOCMShare", - Handler: _GatewayAPI_GetReceivedOCMShare_Handler, - }, - { - MethodName: "GetAppProviders", - Handler: _GatewayAPI_GetAppProviders_Handler, - }, - { - MethodName: "ListAppProviders", - Handler: _GatewayAPI_ListAppProviders_Handler, - }, - { - MethodName: "GetUser", - Handler: _GatewayAPI_GetUser_Handler, - }, - { - MethodName: "GetUserByClaim", - Handler: _GatewayAPI_GetUserByClaim_Handler, - }, - { - MethodName: "GetUserGroups", - Handler: _GatewayAPI_GetUserGroups_Handler, - }, - { - MethodName: "IsInGroup", - Handler: _GatewayAPI_IsInGroup_Handler, - }, - { - MethodName: "FindUsers", - Handler: _GatewayAPI_FindUsers_Handler, - }, - { - MethodName: "FindGroups", - Handler: _GatewayAPI_FindGroups_Handler, - }, - { - MethodName: "ListAuthProviders", - Handler: _GatewayAPI_ListAuthProviders_Handler, - }, - { - MethodName: "GetHome", - Handler: _GatewayAPI_GetHome_Handler, - }, - { - MethodName: "GenerateInviteToken", - Handler: _GatewayAPI_GenerateInviteToken_Handler, - }, - { - MethodName: "ForwardInvite", - Handler: _GatewayAPI_ForwardInvite_Handler, - }, - { - MethodName: "AcceptInvite", - Handler: _GatewayAPI_AcceptInvite_Handler, - }, - { - MethodName: "GetRemoteUser", - Handler: _GatewayAPI_GetRemoteUser_Handler, - }, - { - MethodName: "IsProviderAllowed", - Handler: _GatewayAPI_IsProviderAllowed_Handler, - }, - { - MethodName: "GetInfoByDomain", - Handler: _GatewayAPI_GetInfoByDomain_Handler, - }, - { - MethodName: "ListAllProviders", - Handler: _GatewayAPI_ListAllProviders_Handler, - }, - { - MethodName: "CreateOCMCoreShare", - Handler: _GatewayAPI_CreateOCMCoreShare_Handler, - }, - { - MethodName: "CreateTransfer", - Handler: _GatewayAPI_CreateTransfer_Handler, - }, - { - MethodName: "GetTransferStatus", - Handler: _GatewayAPI_GetTransferStatus_Handler, - }, - { - MethodName: "CancelTransfer", - Handler: _GatewayAPI_CancelTransfer_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "ListContainerStream", - Handler: _GatewayAPI_ListContainerStream_Handler, - ServerStreams: true, - }, - { - StreamName: "ListRecycleStream", - Handler: _GatewayAPI_ListRecycleStream_Handler, - ServerStreams: true, - }, - }, - Metadata: "cs3/gateway/v1beta1/gateway_api.proto", -} diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go b/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go deleted file mode 100644 index aa73efdd..00000000 --- a/build/go-cs3apis/cs3/gateway/v1beta1/gateway_api.pb.micro.go +++ /dev/null @@ -1,1679 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/gateway/v1beta1/gateway_api.proto - -package gatewayv1beta1 - -import ( - fmt "fmt" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/provider/v1beta1" - v1beta16 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/app/registry/v1beta1" - v1beta18 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/auth/registry/v1beta1" - v1beta17 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta111 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/core/v1beta1" - v1beta19 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/invite/v1beta1" - v1beta110 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" - v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/preferences/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/collaboration/v1beta1" - v1beta14 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/link/v1beta1" - v1beta15 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/sharing/ocm/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta112 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/tx/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for GatewayAPI service - -func NewGatewayAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for GatewayAPI service - -type GatewayAPIService interface { - // Authenticates a user. - Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) - // WhoAmI returns the information for a user. - WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...client.CallOption) (*WhoAmIResponse, error) - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, opts ...client.CallOption) (*v1beta1.CreateContainerResponse, error) - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(ctx context.Context, in *v1beta1.DeleteRequest, opts ...client.CallOption) (*v1beta1.DeleteResponse, error) - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(ctx context.Context, in *v1beta1.GetPathRequest, opts ...client.CallOption) (*v1beta1.GetPathResponse, error) - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*v1beta1.GetQuotaResponse, error) - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(ctx context.Context, in *v1beta1.ListContainerStreamRequest, opts ...client.CallOption) (GatewayAPI_ListContainerStreamService, error) - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, opts ...client.CallOption) (*v1beta1.ListContainerResponse, error) - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, opts ...client.CallOption) (*v1beta1.ListFileVersionsResponse, error) - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (GatewayAPI_ListRecycleStreamService, error) - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*v1beta1.ListRecycleResponse, error) - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(ctx context.Context, in *v1beta1.MoveRequest, opts ...client.CallOption) (*v1beta1.MoveResponse, error) - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*v1beta1.PurgeRecycleResponse, error) - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, opts ...client.CallOption) (*v1beta1.RestoreFileVersionResponse, error) - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, opts ...client.CallOption) (*v1beta1.RestoreRecycleItemResponse, error) - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(ctx context.Context, in *v1beta1.StatRequest, opts ...client.CallOption) (*v1beta1.StatResponse, error) - // Creates a symlink to another resource. - CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, opts ...client.CallOption) (*v1beta1.CreateSymlinkResponse, error) - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.SetArbitraryMetadataResponse, error) - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.UnsetArbitraryMetadataResponse, error) - // Creates the home directory for a user. - CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, opts ...client.CallOption) (*v1beta1.CreateHomeResponse, error) - // Returns the App provider URL, which lets the user open a file in the correct online document editor. - OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*v1beta11.OpenFileInAppProviderResponse, error) - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, opts ...client.CallOption) (*v1beta12.CreateShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, opts ...client.CallOption) (*v1beta12.RemoveShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(ctx context.Context, in *v1beta12.GetShareRequest, opts ...client.CallOption) (*v1beta12.GetShareResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, opts ...client.CallOption) (*v1beta12.ListSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, opts ...client.CallOption) (*v1beta12.UpdateShareResponse, error) - // List all shares the authproviderenticated principal has received. - ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, opts ...client.CallOption) (*v1beta12.ListReceivedSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, opts ...client.CallOption) (*v1beta12.UpdateReceivedShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, opts ...client.CallOption) (*v1beta12.GetReceivedShareResponse, error) - // Maps the key-value pair. - SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, opts ...client.CallOption) (*v1beta13.SetKeyResponse, error) - // Returns the value associated with the - // requested key. - GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, opts ...client.CallOption) (*v1beta13.GetKeyResponse, error) - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, opts ...client.CallOption) (*v1beta14.CreatePublicShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, opts ...client.CallOption) (*v1beta14.RemovePublicShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareResponse, error) - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareByTokenResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, opts ...client.CallOption) (*v1beta14.ListPublicSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, opts ...client.CallOption) (*v1beta14.UpdatePublicShareResponse, error) - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, opts ...client.CallOption) (*v1beta15.CreateOCMShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, opts ...client.CallOption) (*v1beta15.RemoveOCMShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetOCMShareResponse, error) - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListOCMSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateOCMShareResponse, error) - // List all shares the authproviderenticated principal has received. - ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListReceivedOCMSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateReceivedOCMShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetReceivedOCMShareResponse, error) - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, opts ...client.CallOption) (*v1beta16.GetAppProvidersResponse, error) - // Returns a list of the available app providers known by this registry. - ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, opts ...client.CallOption) (*v1beta16.ListAppProvidersResponse, error) - // Gets the information about a user by the user id. - GetUser(ctx context.Context, in *v1beta17.GetUserRequest, opts ...client.CallOption) (*v1beta17.GetUserResponse, error) - // Gets the information about a user based on a specified claim. - GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, opts ...client.CallOption) (*v1beta17.GetUserByClaimResponse, error) - // Gets the groups of a user. - GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, opts ...client.CallOption) (*v1beta17.GetUserGroupsResponse, error) - // Tells if the user is in a certain group. - IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, opts ...client.CallOption) (*v1beta17.IsInGroupResponse, error) - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, opts ...client.CallOption) (*v1beta17.FindUsersResponse, error) - // Finds groups whose names match the specified filter. - FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, opts ...client.CallOption) (*v1beta17.FindGroupsResponse, error) - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) - // Returns the home path for the given authenticated user. - // When a user has access to multiple storage providers, one of them is the home. - GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, opts ...client.CallOption) (*v1beta1.GetHomeResponse, error) - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, opts ...client.CallOption) (*v1beta19.GenerateInviteTokenResponse, error) - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, opts ...client.CallOption) (*v1beta19.ForwardInviteResponse, error) - // Completes an invitation acceptance. - AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, opts ...client.CallOption) (*v1beta19.AcceptInviteResponse, error) - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, opts ...client.CallOption) (*v1beta19.GetRemoteUserResponse, error) - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, opts ...client.CallOption) (*v1beta110.IsProviderAllowedResponse, error) - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, opts ...client.CallOption) (*v1beta110.GetInfoByDomainResponse, error) - // Get the information of all the providers registered in the mesh. - ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, opts ...client.CallOption) (*v1beta110.ListAllProvidersResponse, error) - // Creates a new ocm share. - CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, opts ...client.CallOption) (*v1beta111.CreateOCMCoreShareResponse, error) - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, opts ...client.CallOption) (*v1beta112.CreateTransferResponse, error) - // Requests a transfer status. - GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, opts ...client.CallOption) (*v1beta112.GetTransferStatusResponse, error) - // Requests to cancel a transfer. - CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, opts ...client.CallOption) (*v1beta112.CancelTransferResponse, error) -} - -type gatewayAPIService struct { - c client.Client - name string -} - -func NewGatewayAPIService(name string, c client.Client) GatewayAPIService { - return &gatewayAPIService{ - c: c, - name: name, - } -} - -func (c *gatewayAPIService) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...client.CallOption) (*AuthenticateResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.Authenticate", in) - out := new(AuthenticateResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...client.CallOption) (*WhoAmIResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.WhoAmI", in) - out := new(WhoAmIResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, opts ...client.CallOption) (*v1beta1.CreateContainerResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreateContainer", in) - out := new(v1beta1.CreateContainerResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) Delete(ctx context.Context, in *v1beta1.DeleteRequest, opts ...client.CallOption) (*v1beta1.DeleteResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.Delete", in) - out := new(v1beta1.DeleteResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetPath(ctx context.Context, in *v1beta1.GetPathRequest, opts ...client.CallOption) (*v1beta1.GetPathResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetPath", in) - out := new(v1beta1.GetPathResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*v1beta1.GetQuotaResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetQuota", in) - out := new(v1beta1.GetQuotaResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.InitiateFileDownload", in) - out := new(InitiateFileDownloadResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.InitiateFileUpload", in) - out := new(InitiateFileUploadResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListContainerStream(ctx context.Context, in *v1beta1.ListContainerStreamRequest, opts ...client.CallOption) (GatewayAPI_ListContainerStreamService, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListContainerStream", &v1beta1.ListContainerStreamRequest{}) - stream, err := c.c.Stream(ctx, req, opts...) - if err != nil { - return nil, err - } - if err := stream.Send(in); err != nil { - return nil, err - } - return &gatewayAPIServiceListContainerStream{stream}, nil -} - -type GatewayAPI_ListContainerStreamService interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Recv() (*v1beta1.ListContainerStreamResponse, error) -} - -type gatewayAPIServiceListContainerStream struct { - stream client.Stream -} - -func (x *gatewayAPIServiceListContainerStream) Close() error { - return x.stream.Close() -} - -func (x *gatewayAPIServiceListContainerStream) Context() context.Context { - return x.stream.Context() -} - -func (x *gatewayAPIServiceListContainerStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *gatewayAPIServiceListContainerStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *gatewayAPIServiceListContainerStream) Recv() (*v1beta1.ListContainerStreamResponse, error) { - m := new(v1beta1.ListContainerStreamResponse) - err := x.stream.Recv(m) - if err != nil { - return nil, err - } - return m, nil -} - -func (c *gatewayAPIService) ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, opts ...client.CallOption) (*v1beta1.ListContainerResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListContainer", in) - out := new(v1beta1.ListContainerResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, opts ...client.CallOption) (*v1beta1.ListFileVersionsResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListFileVersions", in) - out := new(v1beta1.ListFileVersionsResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (GatewayAPI_ListRecycleStreamService, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListRecycleStream", &ListRecycleStreamRequest{}) - stream, err := c.c.Stream(ctx, req, opts...) - if err != nil { - return nil, err - } - if err := stream.Send(in); err != nil { - return nil, err - } - return &gatewayAPIServiceListRecycleStream{stream}, nil -} - -type GatewayAPI_ListRecycleStreamService interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Recv() (*v1beta1.ListRecycleStreamResponse, error) -} - -type gatewayAPIServiceListRecycleStream struct { - stream client.Stream -} - -func (x *gatewayAPIServiceListRecycleStream) Close() error { - return x.stream.Close() -} - -func (x *gatewayAPIServiceListRecycleStream) Context() context.Context { - return x.stream.Context() -} - -func (x *gatewayAPIServiceListRecycleStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *gatewayAPIServiceListRecycleStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *gatewayAPIServiceListRecycleStream) Recv() (*v1beta1.ListRecycleStreamResponse, error) { - m := new(v1beta1.ListRecycleStreamResponse) - err := x.stream.Recv(m) - if err != nil { - return nil, err - } - return m, nil -} - -func (c *gatewayAPIService) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*v1beta1.ListRecycleResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListRecycle", in) - out := new(v1beta1.ListRecycleResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) Move(ctx context.Context, in *v1beta1.MoveRequest, opts ...client.CallOption) (*v1beta1.MoveResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.Move", in) - out := new(v1beta1.MoveResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*v1beta1.PurgeRecycleResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.PurgeRecycle", in) - out := new(v1beta1.PurgeRecycleResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, opts ...client.CallOption) (*v1beta1.RestoreFileVersionResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.RestoreFileVersion", in) - out := new(v1beta1.RestoreFileVersionResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, opts ...client.CallOption) (*v1beta1.RestoreRecycleItemResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.RestoreRecycleItem", in) - out := new(v1beta1.RestoreRecycleItemResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) Stat(ctx context.Context, in *v1beta1.StatRequest, opts ...client.CallOption) (*v1beta1.StatResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.Stat", in) - out := new(v1beta1.StatResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, opts ...client.CallOption) (*v1beta1.CreateSymlinkResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreateSymlink", in) - out := new(v1beta1.CreateSymlinkResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.SetArbitraryMetadataResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.SetArbitraryMetadata", in) - out := new(v1beta1.SetArbitraryMetadataResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*v1beta1.UnsetArbitraryMetadataResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.UnsetArbitraryMetadata", in) - out := new(v1beta1.UnsetArbitraryMetadataResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, opts ...client.CallOption) (*v1beta1.CreateHomeResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreateHome", in) - out := new(v1beta1.CreateHomeResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, opts ...client.CallOption) (*v1beta11.OpenFileInAppProviderResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.OpenFileInAppProvider", in) - out := new(v1beta11.OpenFileInAppProviderResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, opts ...client.CallOption) (*v1beta12.CreateShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreateShare", in) - out := new(v1beta12.CreateShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, opts ...client.CallOption) (*v1beta12.RemoveShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.RemoveShare", in) - out := new(v1beta12.RemoveShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetShare(ctx context.Context, in *v1beta12.GetShareRequest, opts ...client.CallOption) (*v1beta12.GetShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetShare", in) - out := new(v1beta12.GetShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, opts ...client.CallOption) (*v1beta12.ListSharesResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListShares", in) - out := new(v1beta12.ListSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, opts ...client.CallOption) (*v1beta12.UpdateShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.UpdateShare", in) - out := new(v1beta12.UpdateShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, opts ...client.CallOption) (*v1beta12.ListReceivedSharesResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListReceivedShares", in) - out := new(v1beta12.ListReceivedSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, opts ...client.CallOption) (*v1beta12.UpdateReceivedShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.UpdateReceivedShare", in) - out := new(v1beta12.UpdateReceivedShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, opts ...client.CallOption) (*v1beta12.GetReceivedShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetReceivedShare", in) - out := new(v1beta12.GetReceivedShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, opts ...client.CallOption) (*v1beta13.SetKeyResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.SetKey", in) - out := new(v1beta13.SetKeyResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, opts ...client.CallOption) (*v1beta13.GetKeyResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetKey", in) - out := new(v1beta13.GetKeyResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, opts ...client.CallOption) (*v1beta14.CreatePublicShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreatePublicShare", in) - out := new(v1beta14.CreatePublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, opts ...client.CallOption) (*v1beta14.RemovePublicShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.RemovePublicShare", in) - out := new(v1beta14.RemovePublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetPublicShare", in) - out := new(v1beta14.GetPublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, opts ...client.CallOption) (*v1beta14.GetPublicShareByTokenResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetPublicShareByToken", in) - out := new(v1beta14.GetPublicShareByTokenResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, opts ...client.CallOption) (*v1beta14.ListPublicSharesResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListPublicShares", in) - out := new(v1beta14.ListPublicSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, opts ...client.CallOption) (*v1beta14.UpdatePublicShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.UpdatePublicShare", in) - out := new(v1beta14.UpdatePublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, opts ...client.CallOption) (*v1beta15.CreateOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreateOCMShare", in) - out := new(v1beta15.CreateOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, opts ...client.CallOption) (*v1beta15.RemoveOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.RemoveOCMShare", in) - out := new(v1beta15.RemoveOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetOCMShare", in) - out := new(v1beta15.GetOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListOCMSharesResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListOCMShares", in) - out := new(v1beta15.ListOCMSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.UpdateOCMShare", in) - out := new(v1beta15.UpdateOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, opts ...client.CallOption) (*v1beta15.ListReceivedOCMSharesResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListReceivedOCMShares", in) - out := new(v1beta15.ListReceivedOCMSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.UpdateReceivedOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.UpdateReceivedOCMShare", in) - out := new(v1beta15.UpdateReceivedOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, opts ...client.CallOption) (*v1beta15.GetReceivedOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetReceivedOCMShare", in) - out := new(v1beta15.GetReceivedOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, opts ...client.CallOption) (*v1beta16.GetAppProvidersResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetAppProviders", in) - out := new(v1beta16.GetAppProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, opts ...client.CallOption) (*v1beta16.ListAppProvidersResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListAppProviders", in) - out := new(v1beta16.ListAppProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetUser(ctx context.Context, in *v1beta17.GetUserRequest, opts ...client.CallOption) (*v1beta17.GetUserResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetUser", in) - out := new(v1beta17.GetUserResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, opts ...client.CallOption) (*v1beta17.GetUserByClaimResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetUserByClaim", in) - out := new(v1beta17.GetUserByClaimResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, opts ...client.CallOption) (*v1beta17.GetUserGroupsResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetUserGroups", in) - out := new(v1beta17.GetUserGroupsResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, opts ...client.CallOption) (*v1beta17.IsInGroupResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.IsInGroup", in) - out := new(v1beta17.IsInGroupResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, opts ...client.CallOption) (*v1beta17.FindUsersResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.FindUsers", in) - out := new(v1beta17.FindUsersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, opts ...client.CallOption) (*v1beta17.FindGroupsResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.FindGroups", in) - out := new(v1beta17.FindGroupsResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, opts ...client.CallOption) (*ListAuthProvidersResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListAuthProviders", in) - out := new(ListAuthProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, opts ...client.CallOption) (*v1beta1.GetHomeResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetHome", in) - out := new(v1beta1.GetHomeResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, opts ...client.CallOption) (*v1beta19.GenerateInviteTokenResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GenerateInviteToken", in) - out := new(v1beta19.GenerateInviteTokenResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, opts ...client.CallOption) (*v1beta19.ForwardInviteResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ForwardInvite", in) - out := new(v1beta19.ForwardInviteResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, opts ...client.CallOption) (*v1beta19.AcceptInviteResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.AcceptInvite", in) - out := new(v1beta19.AcceptInviteResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, opts ...client.CallOption) (*v1beta19.GetRemoteUserResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetRemoteUser", in) - out := new(v1beta19.GetRemoteUserResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, opts ...client.CallOption) (*v1beta110.IsProviderAllowedResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.IsProviderAllowed", in) - out := new(v1beta110.IsProviderAllowedResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, opts ...client.CallOption) (*v1beta110.GetInfoByDomainResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetInfoByDomain", in) - out := new(v1beta110.GetInfoByDomainResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, opts ...client.CallOption) (*v1beta110.ListAllProvidersResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.ListAllProviders", in) - out := new(v1beta110.ListAllProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, opts ...client.CallOption) (*v1beta111.CreateOCMCoreShareResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreateOCMCoreShare", in) - out := new(v1beta111.CreateOCMCoreShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, opts ...client.CallOption) (*v1beta112.CreateTransferResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CreateTransfer", in) - out := new(v1beta112.CreateTransferResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, opts ...client.CallOption) (*v1beta112.GetTransferStatusResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.GetTransferStatus", in) - out := new(v1beta112.GetTransferStatusResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gatewayAPIService) CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, opts ...client.CallOption) (*v1beta112.CancelTransferResponse, error) { - req := c.c.NewRequest(c.name, "GatewayAPI.CancelTransfer", in) - out := new(v1beta112.CancelTransferResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for GatewayAPI service - -type GatewayAPIHandler interface { - // Authenticates a user. - Authenticate(context.Context, *AuthenticateRequest, *AuthenticateResponse) error - // WhoAmI returns the information for a user. - WhoAmI(context.Context, *WhoAmIRequest, *WhoAmIResponse) error - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(context.Context, *v1beta1.CreateContainerRequest, *v1beta1.CreateContainerResponse) error - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(context.Context, *v1beta1.DeleteRequest, *v1beta1.DeleteResponse) error - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(context.Context, *v1beta1.GetPathRequest, *v1beta1.GetPathResponse) error - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(context.Context, *GetQuotaRequest, *v1beta1.GetQuotaResponse) error - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(context.Context, *v1beta1.InitiateFileDownloadRequest, *InitiateFileDownloadResponse) error - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(context.Context, *v1beta1.InitiateFileUploadRequest, *InitiateFileUploadResponse) error - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(context.Context, *v1beta1.ListContainerStreamRequest, GatewayAPI_ListContainerStreamStream) error - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(context.Context, *v1beta1.ListContainerRequest, *v1beta1.ListContainerResponse) error - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(context.Context, *v1beta1.ListFileVersionsRequest, *v1beta1.ListFileVersionsResponse) error - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(context.Context, *ListRecycleStreamRequest, GatewayAPI_ListRecycleStreamStream) error - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(context.Context, *ListRecycleRequest, *v1beta1.ListRecycleResponse) error - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(context.Context, *v1beta1.MoveRequest, *v1beta1.MoveResponse) error - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(context.Context, *PurgeRecycleRequest, *v1beta1.PurgeRecycleResponse) error - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(context.Context, *v1beta1.RestoreFileVersionRequest, *v1beta1.RestoreFileVersionResponse) error - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(context.Context, *v1beta1.RestoreRecycleItemRequest, *v1beta1.RestoreRecycleItemResponse) error - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(context.Context, *v1beta1.StatRequest, *v1beta1.StatResponse) error - // Creates a symlink to another resource. - CreateSymlink(context.Context, *v1beta1.CreateSymlinkRequest, *v1beta1.CreateSymlinkResponse) error - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - SetArbitraryMetadata(context.Context, *v1beta1.SetArbitraryMetadataRequest, *v1beta1.SetArbitraryMetadataResponse) error - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storage.provider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(context.Context, *v1beta1.UnsetArbitraryMetadataRequest, *v1beta1.UnsetArbitraryMetadataResponse) error - // Creates the home directory for a user. - CreateHome(context.Context, *v1beta1.CreateHomeRequest, *v1beta1.CreateHomeResponse) error - // Returns the App provider URL, which lets the user open a file in the correct online document editor. - OpenFileInAppProvider(context.Context, *OpenFileInAppProviderRequest, *v1beta11.OpenFileInAppProviderResponse) error - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(context.Context, *v1beta12.CreateShareRequest, *v1beta12.CreateShareResponse) error - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(context.Context, *v1beta12.RemoveShareRequest, *v1beta12.RemoveShareResponse) error - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(context.Context, *v1beta12.GetShareRequest, *v1beta12.GetShareResponse) error - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(context.Context, *v1beta12.ListSharesRequest, *v1beta12.ListSharesResponse) error - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(context.Context, *v1beta12.UpdateShareRequest, *v1beta12.UpdateShareResponse) error - // List all shares the authproviderenticated principal has received. - ListReceivedShares(context.Context, *v1beta12.ListReceivedSharesRequest, *v1beta12.ListReceivedSharesResponse) error - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(context.Context, *v1beta12.UpdateReceivedShareRequest, *v1beta12.UpdateReceivedShareResponse) error - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(context.Context, *v1beta12.GetReceivedShareRequest, *v1beta12.GetReceivedShareResponse) error - // Maps the key-value pair. - SetKey(context.Context, *v1beta13.SetKeyRequest, *v1beta13.SetKeyResponse) error - // Returns the value associated with the - // requested key. - GetKey(context.Context, *v1beta13.GetKeyRequest, *v1beta13.GetKeyResponse) error - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(context.Context, *v1beta14.CreatePublicShareRequest, *v1beta14.CreatePublicShareResponse) error - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(context.Context, *v1beta14.RemovePublicShareRequest, *v1beta14.RemovePublicShareResponse) error - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(context.Context, *v1beta14.GetPublicShareRequest, *v1beta14.GetPublicShareResponse) error - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(context.Context, *v1beta14.GetPublicShareByTokenRequest, *v1beta14.GetPublicShareByTokenResponse) error - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(context.Context, *v1beta14.ListPublicSharesRequest, *v1beta14.ListPublicSharesResponse) error - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(context.Context, *v1beta14.UpdatePublicShareRequest, *v1beta14.UpdatePublicShareResponse) error - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(context.Context, *v1beta15.CreateOCMShareRequest, *v1beta15.CreateOCMShareResponse) error - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(context.Context, *v1beta15.RemoveOCMShareRequest, *v1beta15.RemoveOCMShareResponse) error - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(context.Context, *v1beta15.GetOCMShareRequest, *v1beta15.GetOCMShareResponse) error - // List the shares the authproviderenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(context.Context, *v1beta15.ListOCMSharesRequest, *v1beta15.ListOCMSharesResponse) error - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(context.Context, *v1beta15.UpdateOCMShareRequest, *v1beta15.UpdateOCMShareResponse) error - // List all shares the authproviderenticated principal has received. - ListReceivedOCMShares(context.Context, *v1beta15.ListReceivedOCMSharesRequest, *v1beta15.ListReceivedOCMSharesResponse) error - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(context.Context, *v1beta15.UpdateReceivedOCMShareRequest, *v1beta15.UpdateReceivedOCMShareResponse) error - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(context.Context, *v1beta15.GetReceivedOCMShareRequest, *v1beta15.GetReceivedOCMShareResponse) error - // Returns the app providers that are capable of handling this resource info. - // MUST return CODE_NOT_FOUND if no providers are available. - GetAppProviders(context.Context, *v1beta16.GetAppProvidersRequest, *v1beta16.GetAppProvidersResponse) error - // Returns a list of the available app providers known by this registry. - ListAppProviders(context.Context, *v1beta16.ListAppProvidersRequest, *v1beta16.ListAppProvidersResponse) error - // Gets the information about a user by the user id. - GetUser(context.Context, *v1beta17.GetUserRequest, *v1beta17.GetUserResponse) error - // Gets the information about a user based on a specified claim. - GetUserByClaim(context.Context, *v1beta17.GetUserByClaimRequest, *v1beta17.GetUserByClaimResponse) error - // Gets the groups of a user. - GetUserGroups(context.Context, *v1beta17.GetUserGroupsRequest, *v1beta17.GetUserGroupsResponse) error - // Tells if the user is in a certain group. - IsInGroup(context.Context, *v1beta17.IsInGroupRequest, *v1beta17.IsInGroupResponse) error - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(context.Context, *v1beta17.FindUsersRequest, *v1beta17.FindUsersResponse) error - // Finds groups whose names match the specified filter. - FindGroups(context.Context, *v1beta17.FindGroupsRequest, *v1beta17.FindGroupsResponse) error - // Returns a list of the available auth providers known by this registry. - ListAuthProviders(context.Context, *v1beta18.ListAuthProvidersRequest, *ListAuthProvidersResponse) error - // Returns the home path for the given authenticated user. - // When a user has access to multiple storage providers, one of them is the home. - GetHome(context.Context, *v1beta1.GetHomeRequest, *v1beta1.GetHomeResponse) error - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(context.Context, *v1beta19.GenerateInviteTokenRequest, *v1beta19.GenerateInviteTokenResponse) error - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(context.Context, *v1beta19.ForwardInviteRequest, *v1beta19.ForwardInviteResponse) error - // Completes an invitation acceptance. - AcceptInvite(context.Context, *v1beta19.AcceptInviteRequest, *v1beta19.AcceptInviteResponse) error - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(context.Context, *v1beta19.GetRemoteUserRequest, *v1beta19.GetRemoteUserResponse) error - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(context.Context, *v1beta110.IsProviderAllowedRequest, *v1beta110.IsProviderAllowedResponse) error - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(context.Context, *v1beta110.GetInfoByDomainRequest, *v1beta110.GetInfoByDomainResponse) error - // Get the information of all the providers registered in the mesh. - ListAllProviders(context.Context, *v1beta110.ListAllProvidersRequest, *v1beta110.ListAllProvidersResponse) error - // Creates a new ocm share. - CreateOCMCoreShare(context.Context, *v1beta111.CreateOCMCoreShareRequest, *v1beta111.CreateOCMCoreShareResponse) error - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(context.Context, *v1beta112.CreateTransferRequest, *v1beta112.CreateTransferResponse) error - // Requests a transfer status. - GetTransferStatus(context.Context, *v1beta112.GetTransferStatusRequest, *v1beta112.GetTransferStatusResponse) error - // Requests to cancel a transfer. - CancelTransfer(context.Context, *v1beta112.CancelTransferRequest, *v1beta112.CancelTransferResponse) error -} - -func RegisterGatewayAPIHandler(s server.Server, hdlr GatewayAPIHandler, opts ...server.HandlerOption) error { - type gatewayAPI interface { - Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error - WhoAmI(ctx context.Context, in *WhoAmIRequest, out *WhoAmIResponse) error - CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, out *v1beta1.CreateContainerResponse) error - Delete(ctx context.Context, in *v1beta1.DeleteRequest, out *v1beta1.DeleteResponse) error - GetPath(ctx context.Context, in *v1beta1.GetPathRequest, out *v1beta1.GetPathResponse) error - GetQuota(ctx context.Context, in *GetQuotaRequest, out *v1beta1.GetQuotaResponse) error - InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error - InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, out *InitiateFileUploadResponse) error - ListContainerStream(ctx context.Context, stream server.Stream) error - ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, out *v1beta1.ListContainerResponse) error - ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, out *v1beta1.ListFileVersionsResponse) error - ListRecycleStream(ctx context.Context, stream server.Stream) error - ListRecycle(ctx context.Context, in *ListRecycleRequest, out *v1beta1.ListRecycleResponse) error - Move(ctx context.Context, in *v1beta1.MoveRequest, out *v1beta1.MoveResponse) error - PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *v1beta1.PurgeRecycleResponse) error - RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, out *v1beta1.RestoreFileVersionResponse) error - RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, out *v1beta1.RestoreRecycleItemResponse) error - Stat(ctx context.Context, in *v1beta1.StatRequest, out *v1beta1.StatResponse) error - CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, out *v1beta1.CreateSymlinkResponse) error - SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, out *v1beta1.SetArbitraryMetadataResponse) error - UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, out *v1beta1.UnsetArbitraryMetadataResponse) error - CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, out *v1beta1.CreateHomeResponse) error - OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *v1beta11.OpenFileInAppProviderResponse) error - CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, out *v1beta12.CreateShareResponse) error - RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, out *v1beta12.RemoveShareResponse) error - GetShare(ctx context.Context, in *v1beta12.GetShareRequest, out *v1beta12.GetShareResponse) error - ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, out *v1beta12.ListSharesResponse) error - UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, out *v1beta12.UpdateShareResponse) error - ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, out *v1beta12.ListReceivedSharesResponse) error - UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, out *v1beta12.UpdateReceivedShareResponse) error - GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, out *v1beta12.GetReceivedShareResponse) error - SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, out *v1beta13.SetKeyResponse) error - GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, out *v1beta13.GetKeyResponse) error - CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, out *v1beta14.CreatePublicShareResponse) error - RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, out *v1beta14.RemovePublicShareResponse) error - GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, out *v1beta14.GetPublicShareResponse) error - GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, out *v1beta14.GetPublicShareByTokenResponse) error - ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, out *v1beta14.ListPublicSharesResponse) error - UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, out *v1beta14.UpdatePublicShareResponse) error - CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, out *v1beta15.CreateOCMShareResponse) error - RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, out *v1beta15.RemoveOCMShareResponse) error - GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, out *v1beta15.GetOCMShareResponse) error - ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, out *v1beta15.ListOCMSharesResponse) error - UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, out *v1beta15.UpdateOCMShareResponse) error - ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, out *v1beta15.ListReceivedOCMSharesResponse) error - UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, out *v1beta15.UpdateReceivedOCMShareResponse) error - GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, out *v1beta15.GetReceivedOCMShareResponse) error - GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, out *v1beta16.GetAppProvidersResponse) error - ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, out *v1beta16.ListAppProvidersResponse) error - GetUser(ctx context.Context, in *v1beta17.GetUserRequest, out *v1beta17.GetUserResponse) error - GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, out *v1beta17.GetUserByClaimResponse) error - GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, out *v1beta17.GetUserGroupsResponse) error - IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, out *v1beta17.IsInGroupResponse) error - FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, out *v1beta17.FindUsersResponse) error - FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, out *v1beta17.FindGroupsResponse) error - ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, out *ListAuthProvidersResponse) error - GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, out *v1beta1.GetHomeResponse) error - GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, out *v1beta19.GenerateInviteTokenResponse) error - ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, out *v1beta19.ForwardInviteResponse) error - AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, out *v1beta19.AcceptInviteResponse) error - GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, out *v1beta19.GetRemoteUserResponse) error - IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, out *v1beta110.IsProviderAllowedResponse) error - GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, out *v1beta110.GetInfoByDomainResponse) error - ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, out *v1beta110.ListAllProvidersResponse) error - CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, out *v1beta111.CreateOCMCoreShareResponse) error - CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, out *v1beta112.CreateTransferResponse) error - GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, out *v1beta112.GetTransferStatusResponse) error - CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, out *v1beta112.CancelTransferResponse) error - } - type GatewayAPI struct { - gatewayAPI - } - h := &gatewayAPIHandler{hdlr} - return s.Handle(s.NewHandler(&GatewayAPI{h}, opts...)) -} - -type gatewayAPIHandler struct { - GatewayAPIHandler -} - -func (h *gatewayAPIHandler) Authenticate(ctx context.Context, in *AuthenticateRequest, out *AuthenticateResponse) error { - return h.GatewayAPIHandler.Authenticate(ctx, in, out) -} - -func (h *gatewayAPIHandler) WhoAmI(ctx context.Context, in *WhoAmIRequest, out *WhoAmIResponse) error { - return h.GatewayAPIHandler.WhoAmI(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreateContainer(ctx context.Context, in *v1beta1.CreateContainerRequest, out *v1beta1.CreateContainerResponse) error { - return h.GatewayAPIHandler.CreateContainer(ctx, in, out) -} - -func (h *gatewayAPIHandler) Delete(ctx context.Context, in *v1beta1.DeleteRequest, out *v1beta1.DeleteResponse) error { - return h.GatewayAPIHandler.Delete(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetPath(ctx context.Context, in *v1beta1.GetPathRequest, out *v1beta1.GetPathResponse) error { - return h.GatewayAPIHandler.GetPath(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetQuota(ctx context.Context, in *GetQuotaRequest, out *v1beta1.GetQuotaResponse) error { - return h.GatewayAPIHandler.GetQuota(ctx, in, out) -} - -func (h *gatewayAPIHandler) InitiateFileDownload(ctx context.Context, in *v1beta1.InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error { - return h.GatewayAPIHandler.InitiateFileDownload(ctx, in, out) -} - -func (h *gatewayAPIHandler) InitiateFileUpload(ctx context.Context, in *v1beta1.InitiateFileUploadRequest, out *InitiateFileUploadResponse) error { - return h.GatewayAPIHandler.InitiateFileUpload(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListContainerStream(ctx context.Context, stream server.Stream) error { - m := new(v1beta1.ListContainerStreamRequest) - if err := stream.Recv(m); err != nil { - return err - } - return h.GatewayAPIHandler.ListContainerStream(ctx, m, &gatewayAPIListContainerStreamStream{stream}) -} - -type GatewayAPI_ListContainerStreamStream interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Send(*v1beta1.ListContainerStreamResponse) error -} - -type gatewayAPIListContainerStreamStream struct { - stream server.Stream -} - -func (x *gatewayAPIListContainerStreamStream) Close() error { - return x.stream.Close() -} - -func (x *gatewayAPIListContainerStreamStream) Context() context.Context { - return x.stream.Context() -} - -func (x *gatewayAPIListContainerStreamStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *gatewayAPIListContainerStreamStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *gatewayAPIListContainerStreamStream) Send(m *v1beta1.ListContainerStreamResponse) error { - return x.stream.Send(m) -} - -func (h *gatewayAPIHandler) ListContainer(ctx context.Context, in *v1beta1.ListContainerRequest, out *v1beta1.ListContainerResponse) error { - return h.GatewayAPIHandler.ListContainer(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListFileVersions(ctx context.Context, in *v1beta1.ListFileVersionsRequest, out *v1beta1.ListFileVersionsResponse) error { - return h.GatewayAPIHandler.ListFileVersions(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListRecycleStream(ctx context.Context, stream server.Stream) error { - m := new(ListRecycleStreamRequest) - if err := stream.Recv(m); err != nil { - return err - } - return h.GatewayAPIHandler.ListRecycleStream(ctx, m, &gatewayAPIListRecycleStreamStream{stream}) -} - -type GatewayAPI_ListRecycleStreamStream interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Send(*v1beta1.ListRecycleStreamResponse) error -} - -type gatewayAPIListRecycleStreamStream struct { - stream server.Stream -} - -func (x *gatewayAPIListRecycleStreamStream) Close() error { - return x.stream.Close() -} - -func (x *gatewayAPIListRecycleStreamStream) Context() context.Context { - return x.stream.Context() -} - -func (x *gatewayAPIListRecycleStreamStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *gatewayAPIListRecycleStreamStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *gatewayAPIListRecycleStreamStream) Send(m *v1beta1.ListRecycleStreamResponse) error { - return x.stream.Send(m) -} - -func (h *gatewayAPIHandler) ListRecycle(ctx context.Context, in *ListRecycleRequest, out *v1beta1.ListRecycleResponse) error { - return h.GatewayAPIHandler.ListRecycle(ctx, in, out) -} - -func (h *gatewayAPIHandler) Move(ctx context.Context, in *v1beta1.MoveRequest, out *v1beta1.MoveResponse) error { - return h.GatewayAPIHandler.Move(ctx, in, out) -} - -func (h *gatewayAPIHandler) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *v1beta1.PurgeRecycleResponse) error { - return h.GatewayAPIHandler.PurgeRecycle(ctx, in, out) -} - -func (h *gatewayAPIHandler) RestoreFileVersion(ctx context.Context, in *v1beta1.RestoreFileVersionRequest, out *v1beta1.RestoreFileVersionResponse) error { - return h.GatewayAPIHandler.RestoreFileVersion(ctx, in, out) -} - -func (h *gatewayAPIHandler) RestoreRecycleItem(ctx context.Context, in *v1beta1.RestoreRecycleItemRequest, out *v1beta1.RestoreRecycleItemResponse) error { - return h.GatewayAPIHandler.RestoreRecycleItem(ctx, in, out) -} - -func (h *gatewayAPIHandler) Stat(ctx context.Context, in *v1beta1.StatRequest, out *v1beta1.StatResponse) error { - return h.GatewayAPIHandler.Stat(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreateSymlink(ctx context.Context, in *v1beta1.CreateSymlinkRequest, out *v1beta1.CreateSymlinkResponse) error { - return h.GatewayAPIHandler.CreateSymlink(ctx, in, out) -} - -func (h *gatewayAPIHandler) SetArbitraryMetadata(ctx context.Context, in *v1beta1.SetArbitraryMetadataRequest, out *v1beta1.SetArbitraryMetadataResponse) error { - return h.GatewayAPIHandler.SetArbitraryMetadata(ctx, in, out) -} - -func (h *gatewayAPIHandler) UnsetArbitraryMetadata(ctx context.Context, in *v1beta1.UnsetArbitraryMetadataRequest, out *v1beta1.UnsetArbitraryMetadataResponse) error { - return h.GatewayAPIHandler.UnsetArbitraryMetadata(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreateHome(ctx context.Context, in *v1beta1.CreateHomeRequest, out *v1beta1.CreateHomeResponse) error { - return h.GatewayAPIHandler.CreateHome(ctx, in, out) -} - -func (h *gatewayAPIHandler) OpenFileInAppProvider(ctx context.Context, in *OpenFileInAppProviderRequest, out *v1beta11.OpenFileInAppProviderResponse) error { - return h.GatewayAPIHandler.OpenFileInAppProvider(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreateShare(ctx context.Context, in *v1beta12.CreateShareRequest, out *v1beta12.CreateShareResponse) error { - return h.GatewayAPIHandler.CreateShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) RemoveShare(ctx context.Context, in *v1beta12.RemoveShareRequest, out *v1beta12.RemoveShareResponse) error { - return h.GatewayAPIHandler.RemoveShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetShare(ctx context.Context, in *v1beta12.GetShareRequest, out *v1beta12.GetShareResponse) error { - return h.GatewayAPIHandler.GetShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListShares(ctx context.Context, in *v1beta12.ListSharesRequest, out *v1beta12.ListSharesResponse) error { - return h.GatewayAPIHandler.ListShares(ctx, in, out) -} - -func (h *gatewayAPIHandler) UpdateShare(ctx context.Context, in *v1beta12.UpdateShareRequest, out *v1beta12.UpdateShareResponse) error { - return h.GatewayAPIHandler.UpdateShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListReceivedShares(ctx context.Context, in *v1beta12.ListReceivedSharesRequest, out *v1beta12.ListReceivedSharesResponse) error { - return h.GatewayAPIHandler.ListReceivedShares(ctx, in, out) -} - -func (h *gatewayAPIHandler) UpdateReceivedShare(ctx context.Context, in *v1beta12.UpdateReceivedShareRequest, out *v1beta12.UpdateReceivedShareResponse) error { - return h.GatewayAPIHandler.UpdateReceivedShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetReceivedShare(ctx context.Context, in *v1beta12.GetReceivedShareRequest, out *v1beta12.GetReceivedShareResponse) error { - return h.GatewayAPIHandler.GetReceivedShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) SetKey(ctx context.Context, in *v1beta13.SetKeyRequest, out *v1beta13.SetKeyResponse) error { - return h.GatewayAPIHandler.SetKey(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetKey(ctx context.Context, in *v1beta13.GetKeyRequest, out *v1beta13.GetKeyResponse) error { - return h.GatewayAPIHandler.GetKey(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreatePublicShare(ctx context.Context, in *v1beta14.CreatePublicShareRequest, out *v1beta14.CreatePublicShareResponse) error { - return h.GatewayAPIHandler.CreatePublicShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) RemovePublicShare(ctx context.Context, in *v1beta14.RemovePublicShareRequest, out *v1beta14.RemovePublicShareResponse) error { - return h.GatewayAPIHandler.RemovePublicShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetPublicShare(ctx context.Context, in *v1beta14.GetPublicShareRequest, out *v1beta14.GetPublicShareResponse) error { - return h.GatewayAPIHandler.GetPublicShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetPublicShareByToken(ctx context.Context, in *v1beta14.GetPublicShareByTokenRequest, out *v1beta14.GetPublicShareByTokenResponse) error { - return h.GatewayAPIHandler.GetPublicShareByToken(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListPublicShares(ctx context.Context, in *v1beta14.ListPublicSharesRequest, out *v1beta14.ListPublicSharesResponse) error { - return h.GatewayAPIHandler.ListPublicShares(ctx, in, out) -} - -func (h *gatewayAPIHandler) UpdatePublicShare(ctx context.Context, in *v1beta14.UpdatePublicShareRequest, out *v1beta14.UpdatePublicShareResponse) error { - return h.GatewayAPIHandler.UpdatePublicShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreateOCMShare(ctx context.Context, in *v1beta15.CreateOCMShareRequest, out *v1beta15.CreateOCMShareResponse) error { - return h.GatewayAPIHandler.CreateOCMShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) RemoveOCMShare(ctx context.Context, in *v1beta15.RemoveOCMShareRequest, out *v1beta15.RemoveOCMShareResponse) error { - return h.GatewayAPIHandler.RemoveOCMShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetOCMShare(ctx context.Context, in *v1beta15.GetOCMShareRequest, out *v1beta15.GetOCMShareResponse) error { - return h.GatewayAPIHandler.GetOCMShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListOCMShares(ctx context.Context, in *v1beta15.ListOCMSharesRequest, out *v1beta15.ListOCMSharesResponse) error { - return h.GatewayAPIHandler.ListOCMShares(ctx, in, out) -} - -func (h *gatewayAPIHandler) UpdateOCMShare(ctx context.Context, in *v1beta15.UpdateOCMShareRequest, out *v1beta15.UpdateOCMShareResponse) error { - return h.GatewayAPIHandler.UpdateOCMShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListReceivedOCMShares(ctx context.Context, in *v1beta15.ListReceivedOCMSharesRequest, out *v1beta15.ListReceivedOCMSharesResponse) error { - return h.GatewayAPIHandler.ListReceivedOCMShares(ctx, in, out) -} - -func (h *gatewayAPIHandler) UpdateReceivedOCMShare(ctx context.Context, in *v1beta15.UpdateReceivedOCMShareRequest, out *v1beta15.UpdateReceivedOCMShareResponse) error { - return h.GatewayAPIHandler.UpdateReceivedOCMShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetReceivedOCMShare(ctx context.Context, in *v1beta15.GetReceivedOCMShareRequest, out *v1beta15.GetReceivedOCMShareResponse) error { - return h.GatewayAPIHandler.GetReceivedOCMShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetAppProviders(ctx context.Context, in *v1beta16.GetAppProvidersRequest, out *v1beta16.GetAppProvidersResponse) error { - return h.GatewayAPIHandler.GetAppProviders(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListAppProviders(ctx context.Context, in *v1beta16.ListAppProvidersRequest, out *v1beta16.ListAppProvidersResponse) error { - return h.GatewayAPIHandler.ListAppProviders(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetUser(ctx context.Context, in *v1beta17.GetUserRequest, out *v1beta17.GetUserResponse) error { - return h.GatewayAPIHandler.GetUser(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetUserByClaim(ctx context.Context, in *v1beta17.GetUserByClaimRequest, out *v1beta17.GetUserByClaimResponse) error { - return h.GatewayAPIHandler.GetUserByClaim(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetUserGroups(ctx context.Context, in *v1beta17.GetUserGroupsRequest, out *v1beta17.GetUserGroupsResponse) error { - return h.GatewayAPIHandler.GetUserGroups(ctx, in, out) -} - -func (h *gatewayAPIHandler) IsInGroup(ctx context.Context, in *v1beta17.IsInGroupRequest, out *v1beta17.IsInGroupResponse) error { - return h.GatewayAPIHandler.IsInGroup(ctx, in, out) -} - -func (h *gatewayAPIHandler) FindUsers(ctx context.Context, in *v1beta17.FindUsersRequest, out *v1beta17.FindUsersResponse) error { - return h.GatewayAPIHandler.FindUsers(ctx, in, out) -} - -func (h *gatewayAPIHandler) FindGroups(ctx context.Context, in *v1beta17.FindGroupsRequest, out *v1beta17.FindGroupsResponse) error { - return h.GatewayAPIHandler.FindGroups(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListAuthProviders(ctx context.Context, in *v1beta18.ListAuthProvidersRequest, out *ListAuthProvidersResponse) error { - return h.GatewayAPIHandler.ListAuthProviders(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetHome(ctx context.Context, in *v1beta1.GetHomeRequest, out *v1beta1.GetHomeResponse) error { - return h.GatewayAPIHandler.GetHome(ctx, in, out) -} - -func (h *gatewayAPIHandler) GenerateInviteToken(ctx context.Context, in *v1beta19.GenerateInviteTokenRequest, out *v1beta19.GenerateInviteTokenResponse) error { - return h.GatewayAPIHandler.GenerateInviteToken(ctx, in, out) -} - -func (h *gatewayAPIHandler) ForwardInvite(ctx context.Context, in *v1beta19.ForwardInviteRequest, out *v1beta19.ForwardInviteResponse) error { - return h.GatewayAPIHandler.ForwardInvite(ctx, in, out) -} - -func (h *gatewayAPIHandler) AcceptInvite(ctx context.Context, in *v1beta19.AcceptInviteRequest, out *v1beta19.AcceptInviteResponse) error { - return h.GatewayAPIHandler.AcceptInvite(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetRemoteUser(ctx context.Context, in *v1beta19.GetRemoteUserRequest, out *v1beta19.GetRemoteUserResponse) error { - return h.GatewayAPIHandler.GetRemoteUser(ctx, in, out) -} - -func (h *gatewayAPIHandler) IsProviderAllowed(ctx context.Context, in *v1beta110.IsProviderAllowedRequest, out *v1beta110.IsProviderAllowedResponse) error { - return h.GatewayAPIHandler.IsProviderAllowed(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetInfoByDomain(ctx context.Context, in *v1beta110.GetInfoByDomainRequest, out *v1beta110.GetInfoByDomainResponse) error { - return h.GatewayAPIHandler.GetInfoByDomain(ctx, in, out) -} - -func (h *gatewayAPIHandler) ListAllProviders(ctx context.Context, in *v1beta110.ListAllProvidersRequest, out *v1beta110.ListAllProvidersResponse) error { - return h.GatewayAPIHandler.ListAllProviders(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreateOCMCoreShare(ctx context.Context, in *v1beta111.CreateOCMCoreShareRequest, out *v1beta111.CreateOCMCoreShareResponse) error { - return h.GatewayAPIHandler.CreateOCMCoreShare(ctx, in, out) -} - -func (h *gatewayAPIHandler) CreateTransfer(ctx context.Context, in *v1beta112.CreateTransferRequest, out *v1beta112.CreateTransferResponse) error { - return h.GatewayAPIHandler.CreateTransfer(ctx, in, out) -} - -func (h *gatewayAPIHandler) GetTransferStatus(ctx context.Context, in *v1beta112.GetTransferStatusRequest, out *v1beta112.GetTransferStatusResponse) error { - return h.GatewayAPIHandler.GetTransferStatus(ctx, in, out) -} - -func (h *gatewayAPIHandler) CancelTransfer(ctx context.Context, in *v1beta112.CancelTransferRequest, out *v1beta112.CancelTransferResponse) error { - return h.GatewayAPIHandler.CancelTransfer(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go deleted file mode 100644 index a671f1b4..00000000 --- a/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.go +++ /dev/null @@ -1,359 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/gateway/v1beta1/resources.proto - -package gatewayv1beta1 - -import ( - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// A file upload protocol object stores information about -// uploading resources using a specific protocol. -type FileUploadProtocol struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocol to be followed. - Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` - // REQUIRED. - // The endpoint where to upload the data. - // The value MUST be a Uniform Resource Identifier (URI) - // as specified in RFC 3986. - UploadEndpoint string `protobuf:"bytes,3,opt,name=upload_endpoint,json=uploadEndpoint,proto3" json:"upload_endpoint,omitempty"` - // REQUIRED. - // List of available checksums - // the client can use when sending - // the file. - AvailableChecksums []*v1beta11.ResourceChecksumPriority `protobuf:"bytes,4,rep,name=available_checksums,json=availableChecksums,proto3" json:"available_checksums,omitempty"` - // OPTIONAL. - // A token that MUST be validated by the data gateway for the upload. - // Only makes sense for uploads passing through the data gateway. - Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *FileUploadProtocol) Reset() { - *x = FileUploadProtocol{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileUploadProtocol) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileUploadProtocol) ProtoMessage() {} - -func (x *FileUploadProtocol) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_resources_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 FileUploadProtocol.ProtoReflect.Descriptor instead. -func (*FileUploadProtocol) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *FileUploadProtocol) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FileUploadProtocol) GetProtocol() string { - if x != nil { - return x.Protocol - } - return "" -} - -func (x *FileUploadProtocol) GetUploadEndpoint() string { - if x != nil { - return x.UploadEndpoint - } - return "" -} - -func (x *FileUploadProtocol) GetAvailableChecksums() []*v1beta11.ResourceChecksumPriority { - if x != nil { - return x.AvailableChecksums - } - return nil -} - -func (x *FileUploadProtocol) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// A file download protocol object stores information about -// downloading resources using a specific protocol. -type FileDownloadProtocol struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocol to be followed. - Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` - // REQUIRED. - // The endpoint where to download the data. - // The value MUST be a Uniform Resource Identifier (URI) - // as specified in RFC 3986. - DownloadEndpoint string `protobuf:"bytes,3,opt,name=download_endpoint,json=downloadEndpoint,proto3" json:"download_endpoint,omitempty"` - // OPTIONAL. - // A token that MUST be validated by the data gateway for the download. - // Only makes sense for downloads passing through the data gateway. - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *FileDownloadProtocol) Reset() { - *x = FileDownloadProtocol{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_gateway_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileDownloadProtocol) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileDownloadProtocol) ProtoMessage() {} - -func (x *FileDownloadProtocol) ProtoReflect() protoreflect.Message { - mi := &file_cs3_gateway_v1beta1_resources_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 FileDownloadProtocol.ProtoReflect.Descriptor instead. -func (*FileDownloadProtocol) Descriptor() ([]byte, []int) { - return file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *FileDownloadProtocol) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FileDownloadProtocol) GetProtocol() string { - if x != nil { - return x.Protocol - } - return "" -} - -func (x *FileDownloadProtocol) GetDownloadEndpoint() string { - if x != nil { - return x.DownloadEndpoint - } - return "" -} - -func (x *FileDownloadProtocol) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -var File_cs3_gateway_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_gateway_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x63, 0x73, 0x33, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, - 0x61, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, - 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x12, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x75, - 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x64, 0x70, - 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x67, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, - 0x6d, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, - 0x61, 0x62, 0x6c, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0xa8, 0x01, 0x0a, 0x14, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2b, 0x0a, 0x11, 0x64, - 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, - 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x6d, - 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0e, 0x67, 0x61, 0x74, - 0x65, 0x77, 0x61, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x47, - 0x58, 0xaa, 0x02, 0x13, 0x43, 0x73, 0x33, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, - 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x13, 0x43, 0x73, 0x33, 0x5c, 0x47, 0x61, - 0x74, 0x65, 0x77, 0x61, 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_gateway_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_gateway_v1beta1_resources_proto_rawDescData = file_cs3_gateway_v1beta1_resources_proto_rawDesc -) - -func file_cs3_gateway_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_gateway_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_gateway_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_gateway_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_gateway_v1beta1_resources_proto_rawDescData -} - -var file_cs3_gateway_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cs3_gateway_v1beta1_resources_proto_goTypes = []interface{}{ - (*FileUploadProtocol)(nil), // 0: cs3.gateway.v1beta1.FileUploadProtocol - (*FileDownloadProtocol)(nil), // 1: cs3.gateway.v1beta1.FileDownloadProtocol - (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque - (*v1beta11.ResourceChecksumPriority)(nil), // 3: cs3.storage.provider.v1beta1.ResourceChecksumPriority -} -var file_cs3_gateway_v1beta1_resources_proto_depIdxs = []int32{ - 2, // 0: cs3.gateway.v1beta1.FileUploadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque - 3, // 1: cs3.gateway.v1beta1.FileUploadProtocol.available_checksums:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumPriority - 2, // 2: cs3.gateway.v1beta1.FileDownloadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_cs3_gateway_v1beta1_resources_proto_init() } -func file_cs3_gateway_v1beta1_resources_proto_init() { - if File_cs3_gateway_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_gateway_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileUploadProtocol); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_gateway_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileDownloadProtocol); 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_cs3_gateway_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_gateway_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_gateway_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_gateway_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_gateway_v1beta1_resources_proto = out.File - file_cs3_gateway_v1beta1_resources_proto_rawDesc = nil - file_cs3_gateway_v1beta1_resources_proto_goTypes = nil - file_cs3_gateway_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go deleted file mode 100644 index 6e6af652..00000000 --- a/build/go-cs3apis/cs3/gateway/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/gateway/v1beta1/resources.proto - -package gatewayv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go deleted file mode 100644 index e2536658..00000000 --- a/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.go +++ /dev/null @@ -1,321 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/identity/user/v1beta1/resources.proto - -package userv1beta1 - -import ( - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// A UserId represents a user. -type UserId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The identity provider for the user. - Idp string `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"` - // REQUIRED. - // the unique identifier for the user in the scope of - // the identity provider. - OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` -} - -func (x *UserId) Reset() { - *x = UserId{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserId) ProtoMessage() {} - -func (x *UserId) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_resources_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 UserId.ProtoReflect.Descriptor instead. -func (*UserId) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *UserId) GetIdp() string { - if x != nil { - return x.Idp - } - return "" -} - -func (x *UserId) GetOpaqueId() string { - if x != nil { - return x.OpaqueId - } - return "" -} - -// Represents a user of the system. -type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *UserId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - Mail string `protobuf:"bytes,3,opt,name=mail,proto3" json:"mail,omitempty"` - MailVerified bool `protobuf:"varint,4,opt,name=mail_verified,json=mailVerified,proto3" json:"mail_verified,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"` - Opaque *v1beta1.Opaque `protobuf:"bytes,7,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *User) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*User) ProtoMessage() {} - -func (x *User) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_resources_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 User.ProtoReflect.Descriptor instead. -func (*User) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *User) GetId() *UserId { - if x != nil { - return x.Id - } - return nil -} - -func (x *User) GetUsername() string { - if x != nil { - return x.Username - } - return "" -} - -func (x *User) GetMail() string { - if x != nil { - return x.Mail - } - return "" -} - -func (x *User) GetMailVerified() bool { - if x != nil { - return x.MailVerified - } - return false -} - -func (x *User) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *User) GetGroups() []string { - if x != nil { - return x.Groups - } - return nil -} - -func (x *User) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -var File_cs3_identity_user_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_identity_user_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33, - 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, - 0x10, 0x0a, 0x03, 0x69, 0x64, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, - 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xfc, - 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, - 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0c, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, - 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x42, 0x7c, 0x0a, - 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, - 0x43, 0x49, 0x55, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, 0x55, - 0x73, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_identity_user_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_identity_user_v1beta1_resources_proto_rawDescData = file_cs3_identity_user_v1beta1_resources_proto_rawDesc -) - -func file_cs3_identity_user_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_identity_user_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_identity_user_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_identity_user_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_identity_user_v1beta1_resources_proto_rawDescData -} - -var file_cs3_identity_user_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cs3_identity_user_v1beta1_resources_proto_goTypes = []interface{}{ - (*UserId)(nil), // 0: cs3.identity.user.v1beta1.UserId - (*User)(nil), // 1: cs3.identity.user.v1beta1.User - (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque -} -var file_cs3_identity_user_v1beta1_resources_proto_depIdxs = []int32{ - 0, // 0: cs3.identity.user.v1beta1.User.id:type_name -> cs3.identity.user.v1beta1.UserId - 2, // 1: cs3.identity.user.v1beta1.User.opaque:type_name -> cs3.types.v1beta1.Opaque - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_cs3_identity_user_v1beta1_resources_proto_init() } -func file_cs3_identity_user_v1beta1_resources_proto_init() { - if File_cs3_identity_user_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_identity_user_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*User); 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_cs3_identity_user_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_identity_user_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_identity_user_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_identity_user_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_identity_user_v1beta1_resources_proto = out.File - file_cs3_identity_user_v1beta1_resources_proto_rawDesc = nil - file_cs3_identity_user_v1beta1_resources_proto_goTypes = nil - file_cs3_identity_user_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go deleted file mode 100644 index 3dbea39b..00000000 --- a/build/go-cs3apis/cs3/identity/user/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/identity/user/v1beta1/resources.proto - -package userv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go b/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go deleted file mode 100644 index 37d4fac5..00000000 --- a/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.go +++ /dev/null @@ -1,1531 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/identity/user/v1beta1/user_api.proto - -package userv1beta1 - -import ( - context "context" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type GetUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The id of the user. - UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` -} - -func (x *GetUserRequest) Reset() { - *x = GetUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserRequest) ProtoMessage() {} - -func (x *GetUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserRequest.ProtoReflect.Descriptor instead. -func (*GetUserRequest) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{0} -} - -func (x *GetUserRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetUserRequest) GetUserId() *UserId { - if x != nil { - return x.UserId - } - return nil -} - -type GetUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The user information. - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *GetUserResponse) Reset() { - *x = GetUserResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserResponse) ProtoMessage() {} - -func (x *GetUserResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserResponse.ProtoReflect.Descriptor instead. -func (*GetUserResponse) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{1} -} - -func (x *GetUserResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetUserResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetUserResponse) GetUser() *User { - if x != nil { - return x.User - } - return nil -} - -type GetUserByClaimRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The claim on the basis of which users will be filtered. - Claim string `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"` - // REQUIRED. - // The value of the claim to find the specific user. - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *GetUserByClaimRequest) Reset() { - *x = GetUserByClaimRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserByClaimRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserByClaimRequest) ProtoMessage() {} - -func (x *GetUserByClaimRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserByClaimRequest.ProtoReflect.Descriptor instead. -func (*GetUserByClaimRequest) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{2} -} - -func (x *GetUserByClaimRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetUserByClaimRequest) GetClaim() string { - if x != nil { - return x.Claim - } - return "" -} - -func (x *GetUserByClaimRequest) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type GetUserByClaimResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The user information. - User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *GetUserByClaimResponse) Reset() { - *x = GetUserByClaimResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserByClaimResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserByClaimResponse) ProtoMessage() {} - -func (x *GetUserByClaimResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserByClaimResponse.ProtoReflect.Descriptor instead. -func (*GetUserByClaimResponse) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{3} -} - -func (x *GetUserByClaimResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetUserByClaimResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetUserByClaimResponse) GetUser() *User { - if x != nil { - return x.User - } - return nil -} - -type GetUserGroupsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The id of the user. - UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` -} - -func (x *GetUserGroupsRequest) Reset() { - *x = GetUserGroupsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserGroupsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserGroupsRequest) ProtoMessage() {} - -func (x *GetUserGroupsRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserGroupsRequest.ProtoReflect.Descriptor instead. -func (*GetUserGroupsRequest) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{4} -} - -func (x *GetUserGroupsRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetUserGroupsRequest) GetUserId() *UserId { - if x != nil { - return x.UserId - } - return nil -} - -type GetUserGroupsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The groups for the user. - Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"` -} - -func (x *GetUserGroupsResponse) Reset() { - *x = GetUserGroupsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserGroupsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserGroupsResponse) ProtoMessage() {} - -func (x *GetUserGroupsResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 GetUserGroupsResponse.ProtoReflect.Descriptor instead. -func (*GetUserGroupsResponse) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{5} -} - -func (x *GetUserGroupsResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetUserGroupsResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetUserGroupsResponse) GetGroups() []string { - if x != nil { - return x.Groups - } - return nil -} - -type IsInGroupRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The id of the user. - UserId *UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - // REQUIRED. - // The group to check. - Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` -} - -func (x *IsInGroupRequest) Reset() { - *x = IsInGroupRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IsInGroupRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IsInGroupRequest) ProtoMessage() {} - -func (x *IsInGroupRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 IsInGroupRequest.ProtoReflect.Descriptor instead. -func (*IsInGroupRequest) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{6} -} - -func (x *IsInGroupRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *IsInGroupRequest) GetUserId() *UserId { - if x != nil { - return x.UserId - } - return nil -} - -func (x *IsInGroupRequest) GetGroup() string { - if x != nil { - return x.Group - } - return "" -} - -type IsInGroupResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // Tells if the user belongs to the group. - Ok bool `protobuf:"varint,3,opt,name=ok,proto3" json:"ok,omitempty"` -} - -func (x *IsInGroupResponse) Reset() { - *x = IsInGroupResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IsInGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IsInGroupResponse) ProtoMessage() {} - -func (x *IsInGroupResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 IsInGroupResponse.ProtoReflect.Descriptor instead. -func (*IsInGroupResponse) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{7} -} - -func (x *IsInGroupResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *IsInGroupResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *IsInGroupResponse) GetOk() bool { - if x != nil { - return x.Ok - } - return false -} - -type FindUsersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. TODO(labkode): create proper filters for most common searches. - // The filter to apply. - Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` -} - -func (x *FindUsersRequest) Reset() { - *x = FindUsersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindUsersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindUsersRequest) ProtoMessage() {} - -func (x *FindUsersRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_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 FindUsersRequest.ProtoReflect.Descriptor instead. -func (*FindUsersRequest) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{8} -} - -func (x *FindUsersRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FindUsersRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -type FindUsersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The users matching the specified filter. - Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` -} - -func (x *FindUsersResponse) Reset() { - *x = FindUsersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindUsersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindUsersResponse) ProtoMessage() {} - -func (x *FindUsersResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[9] - 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 FindUsersResponse.ProtoReflect.Descriptor instead. -func (*FindUsersResponse) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{9} -} - -func (x *FindUsersResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *FindUsersResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FindUsersResponse) GetUsers() []*User { - if x != nil { - return x.Users - } - return nil -} - -type FindGroupsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The filter to apply. - Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` -} - -func (x *FindGroupsRequest) Reset() { - *x = FindGroupsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindGroupsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindGroupsRequest) ProtoMessage() {} - -func (x *FindGroupsRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[10] - 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 FindGroupsRequest.ProtoReflect.Descriptor instead. -func (*FindGroupsRequest) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{10} -} - -func (x *FindGroupsRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FindGroupsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -type FindGroupsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The groups matching the specified filter. - Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"` -} - -func (x *FindGroupsResponse) Reset() { - *x = FindGroupsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindGroupsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindGroupsResponse) ProtoMessage() {} - -func (x *FindGroupsResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[11] - 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 FindGroupsResponse.ProtoReflect.Descriptor instead. -func (*FindGroupsResponse) Descriptor() ([]byte, []int) { - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP(), []int{11} -} - -func (x *FindGroupsResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *FindGroupsResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FindGroupsResponse) GetGroups() []string { - if x != nil { - return x.Groups - } - return nil -} - -var File_cs3_identity_user_v1beta1_user_api_proto protoreflect.FileDescriptor - -var file_cs3_identity_user_v1beta1_user_api_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x73, 0x33, 0x2e, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, - 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xaa, - 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x76, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, - 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x85, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, - 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, - 0x93, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3a, 0x0a, - 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, - 0x87, 0x01, 0x0a, 0x11, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0x5d, 0x0a, 0x10, 0x46, 0x69, 0x6e, - 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0xae, 0x01, 0x0a, 0x11, 0x46, 0x69, 0x6e, - 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x5e, 0x0a, 0x11, 0x46, 0x69, 0x6e, - 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, - 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x90, 0x01, 0x0a, 0x12, 0x46, 0x69, - 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x32, 0x91, 0x05, 0x0a, - 0x07, 0x55, 0x73, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x60, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, - 0x73, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x47, 0x65, - 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x30, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, - 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x72, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x73, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x09, 0x49, 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, - 0x73, 0x49, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x49, 0x6e, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, - 0x09, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x73, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x42, 0x7a, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, - 0x03, 0x43, 0x49, 0x55, 0xaa, 0x02, 0x19, 0x43, 0x73, 0x33, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x19, 0x43, 0x73, 0x33, 0x5c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5c, - 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_identity_user_v1beta1_user_api_proto_rawDescOnce sync.Once - file_cs3_identity_user_v1beta1_user_api_proto_rawDescData = file_cs3_identity_user_v1beta1_user_api_proto_rawDesc -) - -func file_cs3_identity_user_v1beta1_user_api_proto_rawDescGZIP() []byte { - file_cs3_identity_user_v1beta1_user_api_proto_rawDescOnce.Do(func() { - file_cs3_identity_user_v1beta1_user_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_identity_user_v1beta1_user_api_proto_rawDescData) - }) - return file_cs3_identity_user_v1beta1_user_api_proto_rawDescData -} - -var file_cs3_identity_user_v1beta1_user_api_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_cs3_identity_user_v1beta1_user_api_proto_goTypes = []interface{}{ - (*GetUserRequest)(nil), // 0: cs3.identity.user.v1beta1.GetUserRequest - (*GetUserResponse)(nil), // 1: cs3.identity.user.v1beta1.GetUserResponse - (*GetUserByClaimRequest)(nil), // 2: cs3.identity.user.v1beta1.GetUserByClaimRequest - (*GetUserByClaimResponse)(nil), // 3: cs3.identity.user.v1beta1.GetUserByClaimResponse - (*GetUserGroupsRequest)(nil), // 4: cs3.identity.user.v1beta1.GetUserGroupsRequest - (*GetUserGroupsResponse)(nil), // 5: cs3.identity.user.v1beta1.GetUserGroupsResponse - (*IsInGroupRequest)(nil), // 6: cs3.identity.user.v1beta1.IsInGroupRequest - (*IsInGroupResponse)(nil), // 7: cs3.identity.user.v1beta1.IsInGroupResponse - (*FindUsersRequest)(nil), // 8: cs3.identity.user.v1beta1.FindUsersRequest - (*FindUsersResponse)(nil), // 9: cs3.identity.user.v1beta1.FindUsersResponse - (*FindGroupsRequest)(nil), // 10: cs3.identity.user.v1beta1.FindGroupsRequest - (*FindGroupsResponse)(nil), // 11: cs3.identity.user.v1beta1.FindGroupsResponse - (*v1beta1.Opaque)(nil), // 12: cs3.types.v1beta1.Opaque - (*UserId)(nil), // 13: cs3.identity.user.v1beta1.UserId - (*v1beta11.Status)(nil), // 14: cs3.rpc.v1beta1.Status - (*User)(nil), // 15: cs3.identity.user.v1beta1.User -} -var file_cs3_identity_user_v1beta1_user_api_proto_depIdxs = []int32{ - 12, // 0: cs3.identity.user.v1beta1.GetUserRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 13, // 1: cs3.identity.user.v1beta1.GetUserRequest.user_id:type_name -> cs3.identity.user.v1beta1.UserId - 14, // 2: cs3.identity.user.v1beta1.GetUserResponse.status:type_name -> cs3.rpc.v1beta1.Status - 12, // 3: cs3.identity.user.v1beta1.GetUserResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 15, // 4: cs3.identity.user.v1beta1.GetUserResponse.user:type_name -> cs3.identity.user.v1beta1.User - 12, // 5: cs3.identity.user.v1beta1.GetUserByClaimRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 14, // 6: cs3.identity.user.v1beta1.GetUserByClaimResponse.status:type_name -> cs3.rpc.v1beta1.Status - 12, // 7: cs3.identity.user.v1beta1.GetUserByClaimResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 15, // 8: cs3.identity.user.v1beta1.GetUserByClaimResponse.user:type_name -> cs3.identity.user.v1beta1.User - 12, // 9: cs3.identity.user.v1beta1.GetUserGroupsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 13, // 10: cs3.identity.user.v1beta1.GetUserGroupsRequest.user_id:type_name -> cs3.identity.user.v1beta1.UserId - 14, // 11: cs3.identity.user.v1beta1.GetUserGroupsResponse.status:type_name -> cs3.rpc.v1beta1.Status - 12, // 12: cs3.identity.user.v1beta1.GetUserGroupsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 12, // 13: cs3.identity.user.v1beta1.IsInGroupRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 13, // 14: cs3.identity.user.v1beta1.IsInGroupRequest.user_id:type_name -> cs3.identity.user.v1beta1.UserId - 14, // 15: cs3.identity.user.v1beta1.IsInGroupResponse.status:type_name -> cs3.rpc.v1beta1.Status - 12, // 16: cs3.identity.user.v1beta1.IsInGroupResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 12, // 17: cs3.identity.user.v1beta1.FindUsersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 14, // 18: cs3.identity.user.v1beta1.FindUsersResponse.status:type_name -> cs3.rpc.v1beta1.Status - 12, // 19: cs3.identity.user.v1beta1.FindUsersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 15, // 20: cs3.identity.user.v1beta1.FindUsersResponse.users:type_name -> cs3.identity.user.v1beta1.User - 12, // 21: cs3.identity.user.v1beta1.FindGroupsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 14, // 22: cs3.identity.user.v1beta1.FindGroupsResponse.status:type_name -> cs3.rpc.v1beta1.Status - 12, // 23: cs3.identity.user.v1beta1.FindGroupsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 0, // 24: cs3.identity.user.v1beta1.UserAPI.GetUser:input_type -> cs3.identity.user.v1beta1.GetUserRequest - 2, // 25: cs3.identity.user.v1beta1.UserAPI.GetUserByClaim:input_type -> cs3.identity.user.v1beta1.GetUserByClaimRequest - 4, // 26: cs3.identity.user.v1beta1.UserAPI.GetUserGroups:input_type -> cs3.identity.user.v1beta1.GetUserGroupsRequest - 6, // 27: cs3.identity.user.v1beta1.UserAPI.IsInGroup:input_type -> cs3.identity.user.v1beta1.IsInGroupRequest - 8, // 28: cs3.identity.user.v1beta1.UserAPI.FindUsers:input_type -> cs3.identity.user.v1beta1.FindUsersRequest - 10, // 29: cs3.identity.user.v1beta1.UserAPI.FindGroups:input_type -> cs3.identity.user.v1beta1.FindGroupsRequest - 1, // 30: cs3.identity.user.v1beta1.UserAPI.GetUser:output_type -> cs3.identity.user.v1beta1.GetUserResponse - 3, // 31: cs3.identity.user.v1beta1.UserAPI.GetUserByClaim:output_type -> cs3.identity.user.v1beta1.GetUserByClaimResponse - 5, // 32: cs3.identity.user.v1beta1.UserAPI.GetUserGroups:output_type -> cs3.identity.user.v1beta1.GetUserGroupsResponse - 7, // 33: cs3.identity.user.v1beta1.UserAPI.IsInGroup:output_type -> cs3.identity.user.v1beta1.IsInGroupResponse - 9, // 34: cs3.identity.user.v1beta1.UserAPI.FindUsers:output_type -> cs3.identity.user.v1beta1.FindUsersResponse - 11, // 35: cs3.identity.user.v1beta1.UserAPI.FindGroups:output_type -> cs3.identity.user.v1beta1.FindGroupsResponse - 30, // [30:36] is the sub-list for method output_type - 24, // [24:30] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name -} - -func init() { file_cs3_identity_user_v1beta1_user_api_proto_init() } -func file_cs3_identity_user_v1beta1_user_api_proto_init() { - if File_cs3_identity_user_v1beta1_user_api_proto != nil { - return - } - file_cs3_identity_user_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserByClaimRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserByClaimResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserGroupsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserGroupsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsInGroupRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsInGroupResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUsersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUsersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindGroupsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_identity_user_v1beta1_user_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindGroupsResponse); 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_cs3_identity_user_v1beta1_user_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 12, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_identity_user_v1beta1_user_api_proto_goTypes, - DependencyIndexes: file_cs3_identity_user_v1beta1_user_api_proto_depIdxs, - MessageInfos: file_cs3_identity_user_v1beta1_user_api_proto_msgTypes, - }.Build() - File_cs3_identity_user_v1beta1_user_api_proto = out.File - file_cs3_identity_user_v1beta1_user_api_proto_rawDesc = nil - file_cs3_identity_user_v1beta1_user_api_proto_goTypes = nil - file_cs3_identity_user_v1beta1_user_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// UserAPIClient is the client API for UserAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type UserAPIClient interface { - // Gets the information about a user by the user id. - GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) - // Gets the information about a user based on a specified claim. - GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...grpc.CallOption) (*GetUserByClaimResponse, error) - // Gets the groups of a user. - GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) - // Tells if the user is in a certain group. - IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...grpc.CallOption) (*IsInGroupResponse, error) - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(ctx context.Context, in *FindUsersRequest, opts ...grpc.CallOption) (*FindUsersResponse, error) - // Finds groups whose names match the specified filter. - FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...grpc.CallOption) (*FindGroupsResponse, error) -} - -type userAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewUserAPIClient(cc grpc.ClientConnInterface) UserAPIClient { - return &userAPIClient{cc} -} - -func (c *userAPIClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) { - out := new(GetUserResponse) - err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/GetUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIClient) GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...grpc.CallOption) (*GetUserByClaimResponse, error) { - out := new(GetUserByClaimResponse) - err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/GetUserByClaim", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIClient) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) { - out := new(GetUserGroupsResponse) - err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/GetUserGroups", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIClient) IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...grpc.CallOption) (*IsInGroupResponse, error) { - out := new(IsInGroupResponse) - err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/IsInGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIClient) FindUsers(ctx context.Context, in *FindUsersRequest, opts ...grpc.CallOption) (*FindUsersResponse, error) { - out := new(FindUsersResponse) - err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/FindUsers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIClient) FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...grpc.CallOption) (*FindGroupsResponse, error) { - out := new(FindGroupsResponse) - err := c.cc.Invoke(ctx, "/cs3.identity.user.v1beta1.UserAPI/FindGroups", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// UserAPIServer is the server API for UserAPI service. -type UserAPIServer interface { - // Gets the information about a user by the user id. - GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) - // Gets the information about a user based on a specified claim. - GetUserByClaim(context.Context, *GetUserByClaimRequest) (*GetUserByClaimResponse, error) - // Gets the groups of a user. - GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) - // Tells if the user is in a certain group. - IsInGroup(context.Context, *IsInGroupRequest) (*IsInGroupResponse, error) - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(context.Context, *FindUsersRequest) (*FindUsersResponse, error) - // Finds groups whose names match the specified filter. - FindGroups(context.Context, *FindGroupsRequest) (*FindGroupsResponse, error) -} - -// UnimplementedUserAPIServer can be embedded to have forward compatible implementations. -type UnimplementedUserAPIServer struct { -} - -func (*UnimplementedUserAPIServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") -} -func (*UnimplementedUserAPIServer) GetUserByClaim(context.Context, *GetUserByClaimRequest) (*GetUserByClaimResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserByClaim not implemented") -} -func (*UnimplementedUserAPIServer) GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented") -} -func (*UnimplementedUserAPIServer) IsInGroup(context.Context, *IsInGroupRequest) (*IsInGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsInGroup not implemented") -} -func (*UnimplementedUserAPIServer) FindUsers(context.Context, *FindUsersRequest) (*FindUsersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUsers not implemented") -} -func (*UnimplementedUserAPIServer) FindGroups(context.Context, *FindGroupsRequest) (*FindGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindGroups not implemented") -} - -func RegisterUserAPIServer(s *grpc.Server, srv UserAPIServer) { - s.RegisterService(&_UserAPI_serviceDesc, srv) -} - -func _UserAPI_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserAPIServer).GetUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.identity.user.v1beta1.UserAPI/GetUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserAPIServer).GetUser(ctx, req.(*GetUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _UserAPI_GetUserByClaim_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserByClaimRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserAPIServer).GetUserByClaim(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.identity.user.v1beta1.UserAPI/GetUserByClaim", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserAPIServer).GetUserByClaim(ctx, req.(*GetUserByClaimRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _UserAPI_GetUserGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserGroupsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserAPIServer).GetUserGroups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.identity.user.v1beta1.UserAPI/GetUserGroups", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserAPIServer).GetUserGroups(ctx, req.(*GetUserGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _UserAPI_IsInGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsInGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserAPIServer).IsInGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.identity.user.v1beta1.UserAPI/IsInGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserAPIServer).IsInGroup(ctx, req.(*IsInGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _UserAPI_FindUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindUsersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserAPIServer).FindUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.identity.user.v1beta1.UserAPI/FindUsers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserAPIServer).FindUsers(ctx, req.(*FindUsersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _UserAPI_FindGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindGroupsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserAPIServer).FindGroups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.identity.user.v1beta1.UserAPI/FindGroups", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserAPIServer).FindGroups(ctx, req.(*FindGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _UserAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.identity.user.v1beta1.UserAPI", - HandlerType: (*UserAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetUser", - Handler: _UserAPI_GetUser_Handler, - }, - { - MethodName: "GetUserByClaim", - Handler: _UserAPI_GetUserByClaim_Handler, - }, - { - MethodName: "GetUserGroups", - Handler: _UserAPI_GetUserGroups_Handler, - }, - { - MethodName: "IsInGroup", - Handler: _UserAPI_IsInGroup_Handler, - }, - { - MethodName: "FindUsers", - Handler: _UserAPI_FindUsers_Handler, - }, - { - MethodName: "FindGroups", - Handler: _UserAPI_FindGroups_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/identity/user/v1beta1/user_api.proto", -} diff --git a/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go b/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go deleted file mode 100644 index 08f622bc..00000000 --- a/build/go-cs3apis/cs3/identity/user/v1beta1/user_api.pb.micro.go +++ /dev/null @@ -1,194 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/identity/user/v1beta1/user_api.proto - -package userv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for UserAPI service - -func NewUserAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for UserAPI service - -type UserAPIService interface { - // Gets the information about a user by the user id. - GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error) - // Gets the information about a user based on a specified claim. - GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...client.CallOption) (*GetUserByClaimResponse, error) - // Gets the groups of a user. - GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...client.CallOption) (*GetUserGroupsResponse, error) - // Tells if the user is in a certain group. - IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...client.CallOption) (*IsInGroupResponse, error) - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(ctx context.Context, in *FindUsersRequest, opts ...client.CallOption) (*FindUsersResponse, error) - // Finds groups whose names match the specified filter. - FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...client.CallOption) (*FindGroupsResponse, error) -} - -type userAPIService struct { - c client.Client - name string -} - -func NewUserAPIService(name string, c client.Client) UserAPIService { - return &userAPIService{ - c: c, - name: name, - } -} - -func (c *userAPIService) GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error) { - req := c.c.NewRequest(c.name, "UserAPI.GetUser", in) - out := new(GetUserResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIService) GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, opts ...client.CallOption) (*GetUserByClaimResponse, error) { - req := c.c.NewRequest(c.name, "UserAPI.GetUserByClaim", in) - out := new(GetUserByClaimResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIService) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...client.CallOption) (*GetUserGroupsResponse, error) { - req := c.c.NewRequest(c.name, "UserAPI.GetUserGroups", in) - out := new(GetUserGroupsResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIService) IsInGroup(ctx context.Context, in *IsInGroupRequest, opts ...client.CallOption) (*IsInGroupResponse, error) { - req := c.c.NewRequest(c.name, "UserAPI.IsInGroup", in) - out := new(IsInGroupResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIService) FindUsers(ctx context.Context, in *FindUsersRequest, opts ...client.CallOption) (*FindUsersResponse, error) { - req := c.c.NewRequest(c.name, "UserAPI.FindUsers", in) - out := new(FindUsersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userAPIService) FindGroups(ctx context.Context, in *FindGroupsRequest, opts ...client.CallOption) (*FindGroupsResponse, error) { - req := c.c.NewRequest(c.name, "UserAPI.FindGroups", in) - out := new(FindGroupsResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for UserAPI service - -type UserAPIHandler interface { - // Gets the information about a user by the user id. - GetUser(context.Context, *GetUserRequest, *GetUserResponse) error - // Gets the information about a user based on a specified claim. - GetUserByClaim(context.Context, *GetUserByClaimRequest, *GetUserByClaimResponse) error - // Gets the groups of a user. - GetUserGroups(context.Context, *GetUserGroupsRequest, *GetUserGroupsResponse) error - // Tells if the user is in a certain group. - IsInGroup(context.Context, *IsInGroupRequest, *IsInGroupResponse) error - // Finds users by any attribute of the user. - // TODO(labkode): to define the filters that make more sense. - FindUsers(context.Context, *FindUsersRequest, *FindUsersResponse) error - // Finds groups whose names match the specified filter. - FindGroups(context.Context, *FindGroupsRequest, *FindGroupsResponse) error -} - -func RegisterUserAPIHandler(s server.Server, hdlr UserAPIHandler, opts ...server.HandlerOption) error { - type userAPI interface { - GetUser(ctx context.Context, in *GetUserRequest, out *GetUserResponse) error - GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, out *GetUserByClaimResponse) error - GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, out *GetUserGroupsResponse) error - IsInGroup(ctx context.Context, in *IsInGroupRequest, out *IsInGroupResponse) error - FindUsers(ctx context.Context, in *FindUsersRequest, out *FindUsersResponse) error - FindGroups(ctx context.Context, in *FindGroupsRequest, out *FindGroupsResponse) error - } - type UserAPI struct { - userAPI - } - h := &userAPIHandler{hdlr} - return s.Handle(s.NewHandler(&UserAPI{h}, opts...)) -} - -type userAPIHandler struct { - UserAPIHandler -} - -func (h *userAPIHandler) GetUser(ctx context.Context, in *GetUserRequest, out *GetUserResponse) error { - return h.UserAPIHandler.GetUser(ctx, in, out) -} - -func (h *userAPIHandler) GetUserByClaim(ctx context.Context, in *GetUserByClaimRequest, out *GetUserByClaimResponse) error { - return h.UserAPIHandler.GetUserByClaim(ctx, in, out) -} - -func (h *userAPIHandler) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, out *GetUserGroupsResponse) error { - return h.UserAPIHandler.GetUserGroups(ctx, in, out) -} - -func (h *userAPIHandler) IsInGroup(ctx context.Context, in *IsInGroupRequest, out *IsInGroupResponse) error { - return h.UserAPIHandler.IsInGroup(ctx, in, out) -} - -func (h *userAPIHandler) FindUsers(ctx context.Context, in *FindUsersRequest, out *FindUsersResponse) error { - return h.UserAPIHandler.FindUsers(ctx, in, out) -} - -func (h *userAPIHandler) FindGroups(ctx context.Context, in *FindGroupsRequest, out *FindGroupsResponse) error { - return h.UserAPIHandler.FindGroups(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go deleted file mode 100644 index 675a85a7..00000000 --- a/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.go +++ /dev/null @@ -1,484 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/ocm/core/v1beta1/ocm_core_api.proto - -package corev1beta1 - -import ( - context "context" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// https://rawgit.com/GEANT/OCM-API/v1/docs.html#null%2Fpaths%2F~1shares%2Fpost -type CreateOCMCoreShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // OPTIONAL. - // Description for the share. - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - // REQUIRED. - // Name of the resource (file or folder). - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // REQUIRED. - // Identifier to identify the resource at the provider side. This is unique per provider. - ProviderId string `protobuf:"bytes,4,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` - // REQUIRED. - // Provider specific identifier of the user that wants to share the resource. - Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` - // REQUIRED. - // Consumer specific identifier of the user or group the provider wants to share the resource with. - // This is known in advance, for example using the OCM invitation flow. - // Please note that the consumer service endpoint is known in advance as well, so this is no part of the request body. - // TODO: this field needs to represent either a user or group in the future, not only a user. - ShareWith *v1beta11.UserId `protobuf:"bytes,6,opt,name=share_with,json=shareWith,proto3" json:"share_with,omitempty"` - // REQUIRED. - // The protocol which is used to establish synchronisation. - Protocol *Protocol `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"` -} - -func (x *CreateOCMCoreShareRequest) Reset() { - *x = CreateOCMCoreShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateOCMCoreShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateOCMCoreShareRequest) ProtoMessage() {} - -func (x *CreateOCMCoreShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_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 CreateOCMCoreShareRequest.ProtoReflect.Descriptor instead. -func (*CreateOCMCoreShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescGZIP(), []int{0} -} - -func (x *CreateOCMCoreShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateOCMCoreShareRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *CreateOCMCoreShareRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateOCMCoreShareRequest) GetProviderId() string { - if x != nil { - return x.ProviderId - } - return "" -} - -func (x *CreateOCMCoreShareRequest) GetOwner() *v1beta11.UserId { - if x != nil { - return x.Owner - } - return nil -} - -func (x *CreateOCMCoreShareRequest) GetShareWith() *v1beta11.UserId { - if x != nil { - return x.ShareWith - } - return nil -} - -func (x *CreateOCMCoreShareRequest) GetProtocol() *Protocol { - if x != nil { - return x.Protocol - } - return nil -} - -type CreateOCMCoreShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // Unique ID to identify the share at the consumer side. - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - // REQUIRED. - Created *v1beta1.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` -} - -func (x *CreateOCMCoreShareResponse) Reset() { - *x = CreateOCMCoreShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateOCMCoreShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateOCMCoreShareResponse) ProtoMessage() {} - -func (x *CreateOCMCoreShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_core_v1beta1_ocm_core_api_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 CreateOCMCoreShareResponse.ProtoReflect.Descriptor instead. -func (*CreateOCMCoreShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateOCMCoreShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateOCMCoreShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateOCMCoreShareResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *CreateOCMCoreShareResponse) GetCreated() *v1beta1.Timestamp { - if x != nil { - return x.Created - } - return nil -} - -var File_cs3_ocm_core_v1beta1_ocm_core_api_proto protoreflect.FileDescriptor - -var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, - 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x73, 0x33, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, - 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x63, 0x73, 0x33, 0x2f, - 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, - 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x40, - 0x0a, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x09, 0x73, 0x68, 0x61, 0x72, 0x65, 0x57, 0x69, 0x74, 0x68, - 0x12, 0x3a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0xc8, 0x01, 0x0a, - 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x36, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x32, 0x85, 0x01, 0x0a, 0x0a, 0x4f, 0x63, 0x6d, 0x43, - 0x6f, 0x72, 0x65, 0x41, 0x50, 0x49, 0x12, 0x77, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, 0x72, - 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x43, 0x6f, - 0x72, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x6e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x4f, 0x63, 0x6d, - 0x43, 0x6f, 0x72, 0x65, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0b, - 0x63, 0x6f, 0x72, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, - 0x43, 0xaa, 0x02, 0x14, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x43, 0x6f, 0x72, 0x65, - 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x73, 0x33, 0x5c, 0x4f, - 0x63, 0x6d, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescOnce sync.Once - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData = file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc -) - -func file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescGZIP() []byte { - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescOnce.Do(func() { - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData) - }) - return file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDescData -} - -var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_goTypes = []interface{}{ - (*CreateOCMCoreShareRequest)(nil), // 0: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest - (*CreateOCMCoreShareResponse)(nil), // 1: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse - (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque - (*v1beta11.UserId)(nil), // 3: cs3.identity.user.v1beta1.UserId - (*Protocol)(nil), // 4: cs3.ocm.core.v1beta1.Protocol - (*v1beta12.Status)(nil), // 5: cs3.rpc.v1beta1.Status - (*v1beta1.Timestamp)(nil), // 6: cs3.types.v1beta1.Timestamp -} -var file_cs3_ocm_core_v1beta1_ocm_core_api_proto_depIdxs = []int32{ - 2, // 0: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 3, // 1: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.owner:type_name -> cs3.identity.user.v1beta1.UserId - 3, // 2: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.share_with:type_name -> cs3.identity.user.v1beta1.UserId - 4, // 3: cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.protocol:type_name -> cs3.ocm.core.v1beta1.Protocol - 5, // 4: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 2, // 5: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 6, // 6: cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse.created:type_name -> cs3.types.v1beta1.Timestamp - 0, // 7: cs3.ocm.core.v1beta1.OcmCoreAPI.CreateOCMCoreShare:input_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest - 1, // 8: cs3.ocm.core.v1beta1.OcmCoreAPI.CreateOCMCoreShare:output_type -> cs3.ocm.core.v1beta1.CreateOCMCoreShareResponse - 8, // [8:9] is the sub-list for method output_type - 7, // [7:8] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_cs3_ocm_core_v1beta1_ocm_core_api_proto_init() } -func file_cs3_ocm_core_v1beta1_ocm_core_api_proto_init() { - if File_cs3_ocm_core_v1beta1_ocm_core_api_proto != nil { - return - } - file_cs3_ocm_core_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateOCMCoreShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateOCMCoreShareResponse); 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_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_ocm_core_v1beta1_ocm_core_api_proto_goTypes, - DependencyIndexes: file_cs3_ocm_core_v1beta1_ocm_core_api_proto_depIdxs, - MessageInfos: file_cs3_ocm_core_v1beta1_ocm_core_api_proto_msgTypes, - }.Build() - File_cs3_ocm_core_v1beta1_ocm_core_api_proto = out.File - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_rawDesc = nil - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_goTypes = nil - file_cs3_ocm_core_v1beta1_ocm_core_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// OcmCoreAPIClient is the client API for OcmCoreAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type OcmCoreAPIClient interface { - // Creates a new ocm share. - CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*CreateOCMCoreShareResponse, error) -} - -type ocmCoreAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewOcmCoreAPIClient(cc grpc.ClientConnInterface) OcmCoreAPIClient { - return &ocmCoreAPIClient{cc} -} - -func (c *ocmCoreAPIClient) CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...grpc.CallOption) (*CreateOCMCoreShareResponse, error) { - out := new(CreateOCMCoreShareResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.core.v1beta1.OcmCoreAPI/CreateOCMCoreShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// OcmCoreAPIServer is the server API for OcmCoreAPI service. -type OcmCoreAPIServer interface { - // Creates a new ocm share. - CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error) -} - -// UnimplementedOcmCoreAPIServer can be embedded to have forward compatible implementations. -type UnimplementedOcmCoreAPIServer struct { -} - -func (*UnimplementedOcmCoreAPIServer) CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest) (*CreateOCMCoreShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOCMCoreShare not implemented") -} - -func RegisterOcmCoreAPIServer(s *grpc.Server, srv OcmCoreAPIServer) { - s.RegisterService(&_OcmCoreAPI_serviceDesc, srv) -} - -func _OcmCoreAPI_CreateOCMCoreShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateOCMCoreShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmCoreAPIServer).CreateOCMCoreShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.core.v1beta1.OcmCoreAPI/CreateOCMCoreShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmCoreAPIServer).CreateOCMCoreShare(ctx, req.(*CreateOCMCoreShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _OcmCoreAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.ocm.core.v1beta1.OcmCoreAPI", - HandlerType: (*OcmCoreAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateOCMCoreShare", - Handler: _OcmCoreAPI_CreateOCMCoreShare_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/ocm/core/v1beta1/ocm_core_api.proto", -} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go deleted file mode 100644 index 63492f2d..00000000 --- a/build/go-cs3apis/cs3/ocm/core/v1beta1/ocm_core_api.pb.micro.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/ocm/core/v1beta1/ocm_core_api.proto - -package corev1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for OcmCoreAPI service - -func NewOcmCoreAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for OcmCoreAPI service - -type OcmCoreAPIService interface { - // Creates a new ocm share. - CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...client.CallOption) (*CreateOCMCoreShareResponse, error) -} - -type ocmCoreAPIService struct { - c client.Client - name string -} - -func NewOcmCoreAPIService(name string, c client.Client) OcmCoreAPIService { - return &ocmCoreAPIService{ - c: c, - name: name, - } -} - -func (c *ocmCoreAPIService) CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, opts ...client.CallOption) (*CreateOCMCoreShareResponse, error) { - req := c.c.NewRequest(c.name, "OcmCoreAPI.CreateOCMCoreShare", in) - out := new(CreateOCMCoreShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for OcmCoreAPI service - -type OcmCoreAPIHandler interface { - // Creates a new ocm share. - CreateOCMCoreShare(context.Context, *CreateOCMCoreShareRequest, *CreateOCMCoreShareResponse) error -} - -func RegisterOcmCoreAPIHandler(s server.Server, hdlr OcmCoreAPIHandler, opts ...server.HandlerOption) error { - type ocmCoreAPI interface { - CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, out *CreateOCMCoreShareResponse) error - } - type OcmCoreAPI struct { - ocmCoreAPI - } - h := &ocmCoreAPIHandler{hdlr} - return s.Handle(s.NewHandler(&OcmCoreAPI{h}, opts...)) -} - -type ocmCoreAPIHandler struct { - OcmCoreAPIHandler -} - -func (h *ocmCoreAPIHandler) CreateOCMCoreShare(ctx context.Context, in *CreateOCMCoreShareRequest, out *CreateOCMCoreShareResponse) error { - return h.OcmCoreAPIHandler.CreateOCMCoreShare(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go deleted file mode 100644 index f3e8ae8d..00000000 --- a/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.go +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/ocm/core/v1beta1/resources.proto - -package corev1beta1 - -import ( - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The protocol which is used to establish synchronisation. -type Protocol struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The name of the protocol to use. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // REQUIRED. - // JSON object with protocol specific options, - // e.g. uri, access_token, password, permissions etc. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *Protocol) Reset() { - *x = Protocol{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_core_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Protocol) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Protocol) ProtoMessage() {} - -func (x *Protocol) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_core_v1beta1_resources_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 Protocol.ProtoReflect.Descriptor instead. -func (*Protocol) Descriptor() ([]byte, []int) { - return file_cs3_ocm_core_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *Protocol) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Protocol) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -var File_cs3_ocm_core_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_ocm_core_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, - 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x08, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x42, 0x6d, - 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0b, 0x63, 0x6f, - 0x72, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x43, 0xaa, - 0x02, 0x14, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x56, - 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, - 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_ocm_core_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_ocm_core_v1beta1_resources_proto_rawDescData = file_cs3_ocm_core_v1beta1_resources_proto_rawDesc -) - -func file_cs3_ocm_core_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_ocm_core_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_ocm_core_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_core_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_ocm_core_v1beta1_resources_proto_rawDescData -} - -var file_cs3_ocm_core_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cs3_ocm_core_v1beta1_resources_proto_goTypes = []interface{}{ - (*Protocol)(nil), // 0: cs3.ocm.core.v1beta1.Protocol - (*v1beta1.Opaque)(nil), // 1: cs3.types.v1beta1.Opaque -} -var file_cs3_ocm_core_v1beta1_resources_proto_depIdxs = []int32{ - 1, // 0: cs3.ocm.core.v1beta1.Protocol.opaque:type_name -> cs3.types.v1beta1.Opaque - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cs3_ocm_core_v1beta1_resources_proto_init() } -func file_cs3_ocm_core_v1beta1_resources_proto_init() { - if File_cs3_ocm_core_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_ocm_core_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Protocol); 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_cs3_ocm_core_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_ocm_core_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_ocm_core_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_ocm_core_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_ocm_core_v1beta1_resources_proto = out.File - file_cs3_ocm_core_v1beta1_resources_proto_rawDesc = nil - file_cs3_ocm_core_v1beta1_resources_proto_goTypes = nil - file_cs3_ocm_core_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go deleted file mode 100644 index b74e7f93..00000000 --- a/build/go-cs3apis/cs3/ocm/core/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/ocm/core/v1beta1/resources.proto - -package corev1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go deleted file mode 100644 index 5a6e1079..00000000 --- a/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.go +++ /dev/null @@ -1,1080 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/ocm/invite/v1beta1/invite_api.proto - -package invitev1beta1 - -import ( - context "context" - v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type GenerateInviteTokenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *GenerateInviteTokenRequest) Reset() { - *x = GenerateInviteTokenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenerateInviteTokenRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateInviteTokenRequest) ProtoMessage() {} - -func (x *GenerateInviteTokenRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GenerateInviteTokenRequest.ProtoReflect.Descriptor instead. -func (*GenerateInviteTokenRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{0} -} - -func (x *GenerateInviteTokenRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GenerateInviteTokenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The generated token. - InviteToken *InviteToken `protobuf:"bytes,3,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"` -} - -func (x *GenerateInviteTokenResponse) Reset() { - *x = GenerateInviteTokenResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenerateInviteTokenResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateInviteTokenResponse) ProtoMessage() {} - -func (x *GenerateInviteTokenResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GenerateInviteTokenResponse.ProtoReflect.Descriptor instead. -func (*GenerateInviteTokenResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{1} -} - -func (x *GenerateInviteTokenResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GenerateInviteTokenResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GenerateInviteTokenResponse) GetInviteToken() *InviteToken { - if x != nil { - return x.InviteToken - } - return nil -} - -type ForwardInviteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The token to authenticate with. - InviteToken *InviteToken `protobuf:"bytes,2,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"` - // REQUIRED. - // The details of the sync'n'share system provider of the user who sent the invite. - OriginSystemProvider *v1beta12.ProviderInfo `protobuf:"bytes,3,opt,name=origin_system_provider,json=originSystemProvider,proto3" json:"origin_system_provider,omitempty"` -} - -func (x *ForwardInviteRequest) Reset() { - *x = ForwardInviteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ForwardInviteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ForwardInviteRequest) ProtoMessage() {} - -func (x *ForwardInviteRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 ForwardInviteRequest.ProtoReflect.Descriptor instead. -func (*ForwardInviteRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{2} -} - -func (x *ForwardInviteRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ForwardInviteRequest) GetInviteToken() *InviteToken { - if x != nil { - return x.InviteToken - } - return nil -} - -func (x *ForwardInviteRequest) GetOriginSystemProvider() *v1beta12.ProviderInfo { - if x != nil { - return x.OriginSystemProvider - } - return nil -} - -type ForwardInviteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *ForwardInviteResponse) Reset() { - *x = ForwardInviteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ForwardInviteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ForwardInviteResponse) ProtoMessage() {} - -func (x *ForwardInviteResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 ForwardInviteResponse.ProtoReflect.Descriptor instead. -func (*ForwardInviteResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{3} -} - -func (x *ForwardInviteResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ForwardInviteResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type AcceptInviteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The token to authenticate with. - InviteToken *InviteToken `protobuf:"bytes,2,opt,name=invite_token,json=inviteToken,proto3" json:"invite_token,omitempty"` - // REQUIRED. - // The user who accepted the invite. - RemoteUser *v1beta13.User `protobuf:"bytes,3,opt,name=remote_user,json=remoteUser,proto3" json:"remote_user,omitempty"` -} - -func (x *AcceptInviteRequest) Reset() { - *x = AcceptInviteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptInviteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptInviteRequest) ProtoMessage() {} - -func (x *AcceptInviteRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 AcceptInviteRequest.ProtoReflect.Descriptor instead. -func (*AcceptInviteRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{4} -} - -func (x *AcceptInviteRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *AcceptInviteRequest) GetInviteToken() *InviteToken { - if x != nil { - return x.InviteToken - } - return nil -} - -func (x *AcceptInviteRequest) GetRemoteUser() *v1beta13.User { - if x != nil { - return x.RemoteUser - } - return nil -} - -type AcceptInviteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *AcceptInviteResponse) Reset() { - *x = AcceptInviteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcceptInviteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcceptInviteResponse) ProtoMessage() {} - -func (x *AcceptInviteResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 AcceptInviteResponse.ProtoReflect.Descriptor instead. -func (*AcceptInviteResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{5} -} - -func (x *AcceptInviteResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *AcceptInviteResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetRemoteUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The id of the user. - RemoteUserId *v1beta13.UserId `protobuf:"bytes,2,opt,name=remote_user_id,json=remoteUserId,proto3" json:"remote_user_id,omitempty"` -} - -func (x *GetRemoteUserRequest) Reset() { - *x = GetRemoteUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRemoteUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRemoteUserRequest) ProtoMessage() {} - -func (x *GetRemoteUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GetRemoteUserRequest.ProtoReflect.Descriptor instead. -func (*GetRemoteUserRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{6} -} - -func (x *GetRemoteUserRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetRemoteUserRequest) GetRemoteUserId() *v1beta13.UserId { - if x != nil { - return x.RemoteUserId - } - return nil -} - -type GetRemoteUserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The user information. - RemoteUser *v1beta13.User `protobuf:"bytes,3,opt,name=remote_user,json=remoteUser,proto3" json:"remote_user,omitempty"` -} - -func (x *GetRemoteUserResponse) Reset() { - *x = GetRemoteUserResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRemoteUserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRemoteUserResponse) ProtoMessage() {} - -func (x *GetRemoteUserResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_invite_api_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 GetRemoteUserResponse.ProtoReflect.Descriptor instead. -func (*GetRemoteUserResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP(), []int{7} -} - -func (x *GetRemoteUserResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetRemoteUserResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetRemoteUserResponse) GetRemoteUser() *v1beta13.User { - if x != nil { - return x.RemoteUser - } - return nil -} - -var File_cs3_ocm_invite_v1beta1_invite_api_proto protoreflect.FileDescriptor - -var file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, - 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x73, 0x33, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x63, 0x73, - 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, - 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x1a, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc9, 0x01, 0x0a, - 0x1b, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, - 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0b, 0x69, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xef, 0x01, 0x0a, 0x14, 0x46, 0x6f, 0x72, - 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, - 0x0b, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x5c, 0x0a, 0x16, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x14, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x53, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x7b, 0x0a, 0x15, 0x46, 0x6f, - 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x13, 0x41, 0x63, 0x63, 0x65, - 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x0b, 0x69, - 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, - 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x22, 0x7a, 0x0a, 0x14, - 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x92, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, - 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xbd, 0x01, - 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x72, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x32, 0xd2, 0x03, - 0x0a, 0x09, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x41, 0x50, 0x49, 0x12, 0x7e, 0x0a, 0x13, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, - 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x46, - 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x2c, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x76, 0x69, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x0c, 0x41, 0x63, 0x63, - 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, - 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, - 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, - 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0x75, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x0e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x0d, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x49, 0xaa, 0x02, 0x16, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, - 0x6d, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x16, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x49, 0x6e, 0x76, 0x69, 0x74, - 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescOnce sync.Once - file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData = file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc -) - -func file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescGZIP() []byte { - file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescOnce.Do(func() { - file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData) - }) - return file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDescData -} - -var file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_cs3_ocm_invite_v1beta1_invite_api_proto_goTypes = []interface{}{ - (*GenerateInviteTokenRequest)(nil), // 0: cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest - (*GenerateInviteTokenResponse)(nil), // 1: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse - (*ForwardInviteRequest)(nil), // 2: cs3.ocm.invite.v1beta1.ForwardInviteRequest - (*ForwardInviteResponse)(nil), // 3: cs3.ocm.invite.v1beta1.ForwardInviteResponse - (*AcceptInviteRequest)(nil), // 4: cs3.ocm.invite.v1beta1.AcceptInviteRequest - (*AcceptInviteResponse)(nil), // 5: cs3.ocm.invite.v1beta1.AcceptInviteResponse - (*GetRemoteUserRequest)(nil), // 6: cs3.ocm.invite.v1beta1.GetRemoteUserRequest - (*GetRemoteUserResponse)(nil), // 7: cs3.ocm.invite.v1beta1.GetRemoteUserResponse - (*v1beta1.Opaque)(nil), // 8: cs3.types.v1beta1.Opaque - (*v1beta11.Status)(nil), // 9: cs3.rpc.v1beta1.Status - (*InviteToken)(nil), // 10: cs3.ocm.invite.v1beta1.InviteToken - (*v1beta12.ProviderInfo)(nil), // 11: cs3.ocm.provider.v1beta1.ProviderInfo - (*v1beta13.User)(nil), // 12: cs3.identity.user.v1beta1.User - (*v1beta13.UserId)(nil), // 13: cs3.identity.user.v1beta1.UserId -} -var file_cs3_ocm_invite_v1beta1_invite_api_proto_depIdxs = []int32{ - 8, // 0: cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 9, // 1: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse.status:type_name -> cs3.rpc.v1beta1.Status - 8, // 2: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 10, // 3: cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse.invite_token:type_name -> cs3.ocm.invite.v1beta1.InviteToken - 8, // 4: cs3.ocm.invite.v1beta1.ForwardInviteRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 10, // 5: cs3.ocm.invite.v1beta1.ForwardInviteRequest.invite_token:type_name -> cs3.ocm.invite.v1beta1.InviteToken - 11, // 6: cs3.ocm.invite.v1beta1.ForwardInviteRequest.origin_system_provider:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo - 9, // 7: cs3.ocm.invite.v1beta1.ForwardInviteResponse.status:type_name -> cs3.rpc.v1beta1.Status - 8, // 8: cs3.ocm.invite.v1beta1.ForwardInviteResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 8, // 9: cs3.ocm.invite.v1beta1.AcceptInviteRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 10, // 10: cs3.ocm.invite.v1beta1.AcceptInviteRequest.invite_token:type_name -> cs3.ocm.invite.v1beta1.InviteToken - 12, // 11: cs3.ocm.invite.v1beta1.AcceptInviteRequest.remote_user:type_name -> cs3.identity.user.v1beta1.User - 9, // 12: cs3.ocm.invite.v1beta1.AcceptInviteResponse.status:type_name -> cs3.rpc.v1beta1.Status - 8, // 13: cs3.ocm.invite.v1beta1.AcceptInviteResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 8, // 14: cs3.ocm.invite.v1beta1.GetRemoteUserRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 13, // 15: cs3.ocm.invite.v1beta1.GetRemoteUserRequest.remote_user_id:type_name -> cs3.identity.user.v1beta1.UserId - 9, // 16: cs3.ocm.invite.v1beta1.GetRemoteUserResponse.status:type_name -> cs3.rpc.v1beta1.Status - 8, // 17: cs3.ocm.invite.v1beta1.GetRemoteUserResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 12, // 18: cs3.ocm.invite.v1beta1.GetRemoteUserResponse.remote_user:type_name -> cs3.identity.user.v1beta1.User - 0, // 19: cs3.ocm.invite.v1beta1.InviteAPI.GenerateInviteToken:input_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenRequest - 2, // 20: cs3.ocm.invite.v1beta1.InviteAPI.ForwardInvite:input_type -> cs3.ocm.invite.v1beta1.ForwardInviteRequest - 4, // 21: cs3.ocm.invite.v1beta1.InviteAPI.AcceptInvite:input_type -> cs3.ocm.invite.v1beta1.AcceptInviteRequest - 6, // 22: cs3.ocm.invite.v1beta1.InviteAPI.GetRemoteUser:input_type -> cs3.ocm.invite.v1beta1.GetRemoteUserRequest - 1, // 23: cs3.ocm.invite.v1beta1.InviteAPI.GenerateInviteToken:output_type -> cs3.ocm.invite.v1beta1.GenerateInviteTokenResponse - 3, // 24: cs3.ocm.invite.v1beta1.InviteAPI.ForwardInvite:output_type -> cs3.ocm.invite.v1beta1.ForwardInviteResponse - 5, // 25: cs3.ocm.invite.v1beta1.InviteAPI.AcceptInvite:output_type -> cs3.ocm.invite.v1beta1.AcceptInviteResponse - 7, // 26: cs3.ocm.invite.v1beta1.InviteAPI.GetRemoteUser:output_type -> cs3.ocm.invite.v1beta1.GetRemoteUserResponse - 23, // [23:27] is the sub-list for method output_type - 19, // [19:23] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name -} - -func init() { file_cs3_ocm_invite_v1beta1_invite_api_proto_init() } -func file_cs3_ocm_invite_v1beta1_invite_api_proto_init() { - if File_cs3_ocm_invite_v1beta1_invite_api_proto != nil { - return - } - file_cs3_ocm_invite_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateInviteTokenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateInviteTokenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ForwardInviteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ForwardInviteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptInviteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcceptInviteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRemoteUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRemoteUserResponse); 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_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_ocm_invite_v1beta1_invite_api_proto_goTypes, - DependencyIndexes: file_cs3_ocm_invite_v1beta1_invite_api_proto_depIdxs, - MessageInfos: file_cs3_ocm_invite_v1beta1_invite_api_proto_msgTypes, - }.Build() - File_cs3_ocm_invite_v1beta1_invite_api_proto = out.File - file_cs3_ocm_invite_v1beta1_invite_api_proto_rawDesc = nil - file_cs3_ocm_invite_v1beta1_invite_api_proto_goTypes = nil - file_cs3_ocm_invite_v1beta1_invite_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// InviteAPIClient is the client API for InviteAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InviteAPIClient interface { - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...grpc.CallOption) (*GenerateInviteTokenResponse, error) - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...grpc.CallOption) (*ForwardInviteResponse, error) - // Completes an invitation acceptance. - AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...grpc.CallOption) (*AcceptInviteResponse, error) - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...grpc.CallOption) (*GetRemoteUserResponse, error) -} - -type inviteAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewInviteAPIClient(cc grpc.ClientConnInterface) InviteAPIClient { - return &inviteAPIClient{cc} -} - -func (c *inviteAPIClient) GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...grpc.CallOption) (*GenerateInviteTokenResponse, error) { - out := new(GenerateInviteTokenResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/GenerateInviteToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *inviteAPIClient) ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...grpc.CallOption) (*ForwardInviteResponse, error) { - out := new(ForwardInviteResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/ForwardInvite", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *inviteAPIClient) AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...grpc.CallOption) (*AcceptInviteResponse, error) { - out := new(AcceptInviteResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/AcceptInvite", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *inviteAPIClient) GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...grpc.CallOption) (*GetRemoteUserResponse, error) { - out := new(GetRemoteUserResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.invite.v1beta1.InviteAPI/GetRemoteUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// InviteAPIServer is the server API for InviteAPI service. -type InviteAPIServer interface { - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(context.Context, *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error) - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(context.Context, *ForwardInviteRequest) (*ForwardInviteResponse, error) - // Completes an invitation acceptance. - AcceptInvite(context.Context, *AcceptInviteRequest) (*AcceptInviteResponse, error) - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(context.Context, *GetRemoteUserRequest) (*GetRemoteUserResponse, error) -} - -// UnimplementedInviteAPIServer can be embedded to have forward compatible implementations. -type UnimplementedInviteAPIServer struct { -} - -func (*UnimplementedInviteAPIServer) GenerateInviteToken(context.Context, *GenerateInviteTokenRequest) (*GenerateInviteTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateInviteToken not implemented") -} -func (*UnimplementedInviteAPIServer) ForwardInvite(context.Context, *ForwardInviteRequest) (*ForwardInviteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ForwardInvite not implemented") -} -func (*UnimplementedInviteAPIServer) AcceptInvite(context.Context, *AcceptInviteRequest) (*AcceptInviteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AcceptInvite not implemented") -} -func (*UnimplementedInviteAPIServer) GetRemoteUser(context.Context, *GetRemoteUserRequest) (*GetRemoteUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRemoteUser not implemented") -} - -func RegisterInviteAPIServer(s *grpc.Server, srv InviteAPIServer) { - s.RegisterService(&_InviteAPI_serviceDesc, srv) -} - -func _InviteAPI_GenerateInviteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GenerateInviteTokenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InviteAPIServer).GenerateInviteToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/GenerateInviteToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InviteAPIServer).GenerateInviteToken(ctx, req.(*GenerateInviteTokenRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _InviteAPI_ForwardInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ForwardInviteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InviteAPIServer).ForwardInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/ForwardInvite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InviteAPIServer).ForwardInvite(ctx, req.(*ForwardInviteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _InviteAPI_AcceptInvite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AcceptInviteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InviteAPIServer).AcceptInvite(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/AcceptInvite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InviteAPIServer).AcceptInvite(ctx, req.(*AcceptInviteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _InviteAPI_GetRemoteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRemoteUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InviteAPIServer).GetRemoteUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.invite.v1beta1.InviteAPI/GetRemoteUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InviteAPIServer).GetRemoteUser(ctx, req.(*GetRemoteUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _InviteAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.ocm.invite.v1beta1.InviteAPI", - HandlerType: (*InviteAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GenerateInviteToken", - Handler: _InviteAPI_GenerateInviteToken_Handler, - }, - { - MethodName: "ForwardInvite", - Handler: _InviteAPI_ForwardInvite_Handler, - }, - { - MethodName: "AcceptInvite", - Handler: _InviteAPI_AcceptInvite_Handler, - }, - { - MethodName: "GetRemoteUser", - Handler: _InviteAPI_GetRemoteUser_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/ocm/invite/v1beta1/invite_api.proto", -} diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go deleted file mode 100644 index f9b600af..00000000 --- a/build/go-cs3apis/cs3/ocm/invite/v1beta1/invite_api.pb.micro.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/ocm/invite/v1beta1/invite_api.proto - -package invitev1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for InviteAPI service - -func NewInviteAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for InviteAPI service - -type InviteAPIService interface { - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...client.CallOption) (*GenerateInviteTokenResponse, error) - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...client.CallOption) (*ForwardInviteResponse, error) - // Completes an invitation acceptance. - AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...client.CallOption) (*AcceptInviteResponse, error) - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...client.CallOption) (*GetRemoteUserResponse, error) -} - -type inviteAPIService struct { - c client.Client - name string -} - -func NewInviteAPIService(name string, c client.Client) InviteAPIService { - return &inviteAPIService{ - c: c, - name: name, - } -} - -func (c *inviteAPIService) GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, opts ...client.CallOption) (*GenerateInviteTokenResponse, error) { - req := c.c.NewRequest(c.name, "InviteAPI.GenerateInviteToken", in) - out := new(GenerateInviteTokenResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *inviteAPIService) ForwardInvite(ctx context.Context, in *ForwardInviteRequest, opts ...client.CallOption) (*ForwardInviteResponse, error) { - req := c.c.NewRequest(c.name, "InviteAPI.ForwardInvite", in) - out := new(ForwardInviteResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *inviteAPIService) AcceptInvite(ctx context.Context, in *AcceptInviteRequest, opts ...client.CallOption) (*AcceptInviteResponse, error) { - req := c.c.NewRequest(c.name, "InviteAPI.AcceptInvite", in) - out := new(AcceptInviteResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *inviteAPIService) GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, opts ...client.CallOption) (*GetRemoteUserResponse, error) { - req := c.c.NewRequest(c.name, "InviteAPI.GetRemoteUser", in) - out := new(GetRemoteUserResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for InviteAPI service - -type InviteAPIHandler interface { - // Generates a new token for the user with a validity of 24 hours. - GenerateInviteToken(context.Context, *GenerateInviteTokenRequest, *GenerateInviteTokenResponse) error - // Forwards a received invite to the sync'n'share system provider. - ForwardInvite(context.Context, *ForwardInviteRequest, *ForwardInviteResponse) error - // Completes an invitation acceptance. - AcceptInvite(context.Context, *AcceptInviteRequest, *AcceptInviteResponse) error - // Retrieves details about a remote user who has accepted an invite to share. - GetRemoteUser(context.Context, *GetRemoteUserRequest, *GetRemoteUserResponse) error -} - -func RegisterInviteAPIHandler(s server.Server, hdlr InviteAPIHandler, opts ...server.HandlerOption) error { - type inviteAPI interface { - GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, out *GenerateInviteTokenResponse) error - ForwardInvite(ctx context.Context, in *ForwardInviteRequest, out *ForwardInviteResponse) error - AcceptInvite(ctx context.Context, in *AcceptInviteRequest, out *AcceptInviteResponse) error - GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, out *GetRemoteUserResponse) error - } - type InviteAPI struct { - inviteAPI - } - h := &inviteAPIHandler{hdlr} - return s.Handle(s.NewHandler(&InviteAPI{h}, opts...)) -} - -type inviteAPIHandler struct { - InviteAPIHandler -} - -func (h *inviteAPIHandler) GenerateInviteToken(ctx context.Context, in *GenerateInviteTokenRequest, out *GenerateInviteTokenResponse) error { - return h.InviteAPIHandler.GenerateInviteToken(ctx, in, out) -} - -func (h *inviteAPIHandler) ForwardInvite(ctx context.Context, in *ForwardInviteRequest, out *ForwardInviteResponse) error { - return h.InviteAPIHandler.ForwardInvite(ctx, in, out) -} - -func (h *inviteAPIHandler) AcceptInvite(ctx context.Context, in *AcceptInviteRequest, out *AcceptInviteResponse) error { - return h.InviteAPIHandler.AcceptInvite(ctx, in, out) -} - -func (h *inviteAPIHandler) GetRemoteUser(ctx context.Context, in *GetRemoteUserRequest, out *GetRemoteUserResponse) error { - return h.InviteAPIHandler.GetRemoteUser(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go deleted file mode 100644 index 9af55196..00000000 --- a/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.go +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/ocm/invite/v1beta1/resources.proto - -package invitev1beta1 - -import ( - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// InviteToken is used to invite users and groups from other sync'n'share -// systems to collaborate on resources. -type InviteToken struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // Unique ID associated with an InviteToken. - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` - // REQUIRED. - // The user who created the token. - UserId *v1beta1.UserId `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - // OPTIONAL. - // The time when the token will expire. - Expiration *v1beta11.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` -} - -func (x *InviteToken) Reset() { - *x = InviteToken{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InviteToken) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InviteToken) ProtoMessage() {} - -func (x *InviteToken) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_invite_v1beta1_resources_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 InviteToken.ProtoReflect.Descriptor instead. -func (*InviteToken) Descriptor() ([]byte, []int) { - return file_cs3_ocm_invite_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *InviteToken) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *InviteToken) GetUserId() *v1beta1.UserId { - if x != nil { - return x.UserId - } - return nil -} - -func (x *InviteToken) GetExpiration() *v1beta11.Timestamp { - if x != nil { - return x.Expiration - } - return nil -} - -var File_cs3_ocm_invite_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, - 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x76, - 0x69, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3a, - 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x65, 0x78, - 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, - 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x75, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0d, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x49, 0xaa, 0x02, 0x16, - 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2e, 0x56, - 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x16, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, - 0x5c, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_ocm_invite_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData = file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc -) - -func file_cs3_ocm_invite_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_ocm_invite_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_ocm_invite_v1beta1_resources_proto_rawDescData -} - -var file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cs3_ocm_invite_v1beta1_resources_proto_goTypes = []interface{}{ - (*InviteToken)(nil), // 0: cs3.ocm.invite.v1beta1.InviteToken - (*v1beta1.UserId)(nil), // 1: cs3.identity.user.v1beta1.UserId - (*v1beta11.Timestamp)(nil), // 2: cs3.types.v1beta1.Timestamp -} -var file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs = []int32{ - 1, // 0: cs3.ocm.invite.v1beta1.InviteToken.user_id:type_name -> cs3.identity.user.v1beta1.UserId - 2, // 1: cs3.ocm.invite.v1beta1.InviteToken.expiration:type_name -> cs3.types.v1beta1.Timestamp - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_cs3_ocm_invite_v1beta1_resources_proto_init() } -func file_cs3_ocm_invite_v1beta1_resources_proto_init() { - if File_cs3_ocm_invite_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InviteToken); 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_cs3_ocm_invite_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_ocm_invite_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_ocm_invite_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_ocm_invite_v1beta1_resources_proto = out.File - file_cs3_ocm_invite_v1beta1_resources_proto_rawDesc = nil - file_cs3_ocm_invite_v1beta1_resources_proto_goTypes = nil - file_cs3_ocm_invite_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go deleted file mode 100644 index a99339ac..00000000 --- a/build/go-cs3apis/cs3/ocm/invite/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/ocm/invite/v1beta1/resources.proto - -package invitev1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go deleted file mode 100644 index 3a1dff5d..00000000 --- a/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.go +++ /dev/null @@ -1,829 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/ocm/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - context "context" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type IsProviderAllowedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The provider that we need to check against the list of verified mesh providers. - Provider *ProviderInfo `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` -} - -func (x *IsProviderAllowedRequest) Reset() { - *x = IsProviderAllowedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IsProviderAllowedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IsProviderAllowedRequest) ProtoMessage() {} - -func (x *IsProviderAllowedRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 IsProviderAllowedRequest.ProtoReflect.Descriptor instead. -func (*IsProviderAllowedRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} -} - -func (x *IsProviderAllowedRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *IsProviderAllowedRequest) GetProvider() *ProviderInfo { - if x != nil { - return x.Provider - } - return nil -} - -type IsProviderAllowedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *IsProviderAllowedResponse) Reset() { - *x = IsProviderAllowedResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IsProviderAllowedResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IsProviderAllowedResponse) ProtoMessage() {} - -func (x *IsProviderAllowedResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 IsProviderAllowedResponse.ProtoReflect.Descriptor instead. -func (*IsProviderAllowedResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} -} - -func (x *IsProviderAllowedResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *IsProviderAllowedResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetInfoByDomainRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The domain of the system provider. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *GetInfoByDomainRequest) Reset() { - *x = GetInfoByDomainRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetInfoByDomainRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetInfoByDomainRequest) ProtoMessage() {} - -func (x *GetInfoByDomainRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 GetInfoByDomainRequest.ProtoReflect.Descriptor instead. -func (*GetInfoByDomainRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{2} -} - -func (x *GetInfoByDomainRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetInfoByDomainRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type GetInfoByDomainResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The info of the provider - ProviderInfo *ProviderInfo `protobuf:"bytes,3,opt,name=provider_info,json=providerInfo,proto3" json:"provider_info,omitempty"` -} - -func (x *GetInfoByDomainResponse) Reset() { - *x = GetInfoByDomainResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetInfoByDomainResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetInfoByDomainResponse) ProtoMessage() {} - -func (x *GetInfoByDomainResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 GetInfoByDomainResponse.ProtoReflect.Descriptor instead. -func (*GetInfoByDomainResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{3} -} - -func (x *GetInfoByDomainResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetInfoByDomainResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetInfoByDomainResponse) GetProviderInfo() *ProviderInfo { - if x != nil { - return x.ProviderInfo - } - return nil -} - -type ListAllProvidersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *ListAllProvidersRequest) Reset() { - *x = ListAllProvidersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAllProvidersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAllProvidersRequest) ProtoMessage() {} - -func (x *ListAllProvidersRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 ListAllProvidersRequest.ProtoReflect.Descriptor instead. -func (*ListAllProvidersRequest) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{4} -} - -func (x *ListAllProvidersRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListAllProvidersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The share. - Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` -} - -func (x *ListAllProvidersResponse) Reset() { - *x = ListAllProvidersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAllProvidersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAllProvidersResponse) ProtoMessage() {} - -func (x *ListAllProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_provider_api_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 ListAllProvidersResponse.ProtoReflect.Descriptor instead. -func (*ListAllProvidersResponse) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{5} -} - -func (x *ListAllProvidersResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListAllProvidersResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListAllProvidersResponse) GetProviders() []*ProviderInfo { - if x != nil { - return x.Providers - } - return nil -} - -var File_cs3_ocm_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor - -var file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, - 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, - 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, - 0x01, 0x0a, 0x18, 0x49, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, - 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x42, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x22, 0x7f, 0x0a, 0x19, 0x49, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x22, 0x63, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xca, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, - 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4b, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x4c, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, 0xfe, 0x02, 0x0a, 0x0b, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x11, 0x49, 0x73, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, - 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, - 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, - 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x7f, 0x0a, 0x1c, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0xa2, 0x02, 0x03, 0x43, 0x4f, 0x50, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, - 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, - 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once - file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc -) - -func file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { - file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { - file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData) - }) - return file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDescData -} - -var file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_cs3_ocm_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ - (*IsProviderAllowedRequest)(nil), // 0: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest - (*IsProviderAllowedResponse)(nil), // 1: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse - (*GetInfoByDomainRequest)(nil), // 2: cs3.ocm.provider.v1beta1.GetInfoByDomainRequest - (*GetInfoByDomainResponse)(nil), // 3: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse - (*ListAllProvidersRequest)(nil), // 4: cs3.ocm.provider.v1beta1.ListAllProvidersRequest - (*ListAllProvidersResponse)(nil), // 5: cs3.ocm.provider.v1beta1.ListAllProvidersResponse - (*v1beta1.Opaque)(nil), // 6: cs3.types.v1beta1.Opaque - (*ProviderInfo)(nil), // 7: cs3.ocm.provider.v1beta1.ProviderInfo - (*v1beta11.Status)(nil), // 8: cs3.rpc.v1beta1.Status -} -var file_cs3_ocm_provider_v1beta1_provider_api_proto_depIdxs = []int32{ - 6, // 0: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 1: cs3.ocm.provider.v1beta1.IsProviderAllowedRequest.provider:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo - 8, // 2: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse.status:type_name -> cs3.rpc.v1beta1.Status - 6, // 3: cs3.ocm.provider.v1beta1.IsProviderAllowedResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 6, // 4: cs3.ocm.provider.v1beta1.GetInfoByDomainRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 8, // 5: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse.status:type_name -> cs3.rpc.v1beta1.Status - 6, // 6: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 7: cs3.ocm.provider.v1beta1.GetInfoByDomainResponse.provider_info:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo - 6, // 8: cs3.ocm.provider.v1beta1.ListAllProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 8, // 9: cs3.ocm.provider.v1beta1.ListAllProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status - 6, // 10: cs3.ocm.provider.v1beta1.ListAllProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 11: cs3.ocm.provider.v1beta1.ListAllProvidersResponse.providers:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo - 0, // 12: cs3.ocm.provider.v1beta1.ProviderAPI.IsProviderAllowed:input_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedRequest - 2, // 13: cs3.ocm.provider.v1beta1.ProviderAPI.GetInfoByDomain:input_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainRequest - 4, // 14: cs3.ocm.provider.v1beta1.ProviderAPI.ListAllProviders:input_type -> cs3.ocm.provider.v1beta1.ListAllProvidersRequest - 1, // 15: cs3.ocm.provider.v1beta1.ProviderAPI.IsProviderAllowed:output_type -> cs3.ocm.provider.v1beta1.IsProviderAllowedResponse - 3, // 16: cs3.ocm.provider.v1beta1.ProviderAPI.GetInfoByDomain:output_type -> cs3.ocm.provider.v1beta1.GetInfoByDomainResponse - 5, // 17: cs3.ocm.provider.v1beta1.ProviderAPI.ListAllProviders:output_type -> cs3.ocm.provider.v1beta1.ListAllProvidersResponse - 15, // [15:18] is the sub-list for method output_type - 12, // [12:15] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_cs3_ocm_provider_v1beta1_provider_api_proto_init() } -func file_cs3_ocm_provider_v1beta1_provider_api_proto_init() { - if File_cs3_ocm_provider_v1beta1_provider_api_proto != nil { - return - } - file_cs3_ocm_provider_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsProviderAllowedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsProviderAllowedResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInfoByDomainRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInfoByDomainResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllProvidersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllProvidersResponse); 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_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_ocm_provider_v1beta1_provider_api_proto_goTypes, - DependencyIndexes: file_cs3_ocm_provider_v1beta1_provider_api_proto_depIdxs, - MessageInfos: file_cs3_ocm_provider_v1beta1_provider_api_proto_msgTypes, - }.Build() - File_cs3_ocm_provider_v1beta1_provider_api_proto = out.File - file_cs3_ocm_provider_v1beta1_provider_api_proto_rawDesc = nil - file_cs3_ocm_provider_v1beta1_provider_api_proto_goTypes = nil - file_cs3_ocm_provider_v1beta1_provider_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ProviderAPIClient is the client API for ProviderAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProviderAPIClient interface { - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...grpc.CallOption) (*IsProviderAllowedResponse, error) - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...grpc.CallOption) (*GetInfoByDomainResponse, error) - // Get the information of all the providers registered in the mesh. - ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...grpc.CallOption) (*ListAllProvidersResponse, error) -} - -type providerAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { - return &providerAPIClient{cc} -} - -func (c *providerAPIClient) IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...grpc.CallOption) (*IsProviderAllowedResponse, error) { - out := new(IsProviderAllowedResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.provider.v1beta1.ProviderAPI/IsProviderAllowed", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...grpc.CallOption) (*GetInfoByDomainResponse, error) { - out := new(GetInfoByDomainResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.provider.v1beta1.ProviderAPI/GetInfoByDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...grpc.CallOption) (*ListAllProvidersResponse, error) { - out := new(ListAllProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.ocm.provider.v1beta1.ProviderAPI/ListAllProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProviderAPIServer is the server API for ProviderAPI service. -type ProviderAPIServer interface { - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(context.Context, *IsProviderAllowedRequest) (*IsProviderAllowedResponse, error) - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(context.Context, *GetInfoByDomainRequest) (*GetInfoByDomainResponse, error) - // Get the information of all the providers registered in the mesh. - ListAllProviders(context.Context, *ListAllProvidersRequest) (*ListAllProvidersResponse, error) -} - -// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. -type UnimplementedProviderAPIServer struct { -} - -func (*UnimplementedProviderAPIServer) IsProviderAllowed(context.Context, *IsProviderAllowedRequest) (*IsProviderAllowedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsProviderAllowed not implemented") -} -func (*UnimplementedProviderAPIServer) GetInfoByDomain(context.Context, *GetInfoByDomainRequest) (*GetInfoByDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInfoByDomain not implemented") -} -func (*UnimplementedProviderAPIServer) ListAllProviders(context.Context, *ListAllProvidersRequest) (*ListAllProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAllProviders not implemented") -} - -func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { - s.RegisterService(&_ProviderAPI_serviceDesc, srv) -} - -func _ProviderAPI_IsProviderAllowed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsProviderAllowedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).IsProviderAllowed(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.provider.v1beta1.ProviderAPI/IsProviderAllowed", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).IsProviderAllowed(ctx, req.(*IsProviderAllowedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_GetInfoByDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetInfoByDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).GetInfoByDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.provider.v1beta1.ProviderAPI/GetInfoByDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).GetInfoByDomain(ctx, req.(*GetInfoByDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_ListAllProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListAllProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).ListAllProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.ocm.provider.v1beta1.ProviderAPI/ListAllProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).ListAllProviders(ctx, req.(*ListAllProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.ocm.provider.v1beta1.ProviderAPI", - HandlerType: (*ProviderAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "IsProviderAllowed", - Handler: _ProviderAPI_IsProviderAllowed_Handler, - }, - { - MethodName: "GetInfoByDomain", - Handler: _ProviderAPI_GetInfoByDomain_Handler, - }, - { - MethodName: "ListAllProviders", - Handler: _ProviderAPI_ListAllProviders_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/ocm/provider/v1beta1/provider_api.proto", -} diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go deleted file mode 100644 index 3d83f5e2..00000000 --- a/build/go-cs3apis/cs3/ocm/provider/v1beta1/provider_api.pb.micro.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/ocm/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for ProviderAPI service - -func NewProviderAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for ProviderAPI service - -type ProviderAPIService interface { - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...client.CallOption) (*IsProviderAllowedResponse, error) - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...client.CallOption) (*GetInfoByDomainResponse, error) - // Get the information of all the providers registered in the mesh. - ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...client.CallOption) (*ListAllProvidersResponse, error) -} - -type providerAPIService struct { - c client.Client - name string -} - -func NewProviderAPIService(name string, c client.Client) ProviderAPIService { - return &providerAPIService{ - c: c, - name: name, - } -} - -func (c *providerAPIService) IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, opts ...client.CallOption) (*IsProviderAllowedResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.IsProviderAllowed", in) - out := new(IsProviderAllowedResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, opts ...client.CallOption) (*GetInfoByDomainResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.GetInfoByDomain", in) - out := new(GetInfoByDomainResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, opts ...client.CallOption) (*ListAllProvidersResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.ListAllProviders", in) - out := new(ListAllProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for ProviderAPI service - -type ProviderAPIHandler interface { - // Check if a given system provider is registered in the mesh or not. - // MUST return CODE_UNAUTHENTICATED if the system is not registered - IsProviderAllowed(context.Context, *IsProviderAllowedRequest, *IsProviderAllowedResponse) error - // Get the information of the provider identified by a specific domain. - // MUST return CODE_NOT_FOUND if the sync'n'share system provider does not exist. - GetInfoByDomain(context.Context, *GetInfoByDomainRequest, *GetInfoByDomainResponse) error - // Get the information of all the providers registered in the mesh. - ListAllProviders(context.Context, *ListAllProvidersRequest, *ListAllProvidersResponse) error -} - -func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { - type providerAPI interface { - IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, out *IsProviderAllowedResponse) error - GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, out *GetInfoByDomainResponse) error - ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, out *ListAllProvidersResponse) error - } - type ProviderAPI struct { - providerAPI - } - h := &providerAPIHandler{hdlr} - return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) -} - -type providerAPIHandler struct { - ProviderAPIHandler -} - -func (h *providerAPIHandler) IsProviderAllowed(ctx context.Context, in *IsProviderAllowedRequest, out *IsProviderAllowedResponse) error { - return h.ProviderAPIHandler.IsProviderAllowed(ctx, in, out) -} - -func (h *providerAPIHandler) GetInfoByDomain(ctx context.Context, in *GetInfoByDomainRequest, out *GetInfoByDomainResponse) error { - return h.ProviderAPIHandler.GetInfoByDomain(ctx, in, out) -} - -func (h *providerAPIHandler) ListAllProviders(ctx context.Context, in *ListAllProvidersRequest, out *ListAllProvidersResponse) error { - return h.ProviderAPIHandler.ListAllProviders(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go deleted file mode 100644 index 2dca1bf5..00000000 --- a/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.go +++ /dev/null @@ -1,597 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/ocm/provider/v1beta1/resources.proto - -package providerv1beta1 - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Identifier for various types of services offered by sync'n'share system providers. -type ServiceType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED - // The name of the service type. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // REQUIRED - // The description of the service type. - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *ServiceType) Reset() { - *x = ServiceType{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServiceType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceType) ProtoMessage() {} - -func (x *ServiceType) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_resources_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 ServiceType.ProtoReflect.Descriptor instead. -func (*ServiceType) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *ServiceType) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ServiceType) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -// The endpoints exposed by particular services. -type ServiceEndpoint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The type of service. - Type *ServiceType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - // REQUIRED. - // The name of the service. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // REQUIRED. - // The path at which the service is hosted. - Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - // OPTIONAL. - // Whether the service is monitored. - IsMonitored bool `protobuf:"varint,4,opt,name=is_monitored,json=isMonitored,proto3" json:"is_monitored,omitempty"` - // OPTIONAL. - // Additional properties about the service. - Properties map[string]string `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ServiceEndpoint) Reset() { - *x = ServiceEndpoint{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServiceEndpoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceEndpoint) ProtoMessage() {} - -func (x *ServiceEndpoint) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_resources_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 ServiceEndpoint.ProtoReflect.Descriptor instead. -func (*ServiceEndpoint) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *ServiceEndpoint) GetType() *ServiceType { - if x != nil { - return x.Type - } - return nil -} - -func (x *ServiceEndpoint) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ServiceEndpoint) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *ServiceEndpoint) GetIsMonitored() bool { - if x != nil { - return x.IsMonitored - } - return false -} - -func (x *ServiceEndpoint) GetProperties() map[string]string { - if x != nil { - return x.Properties - } - return nil -} - -// The services offered by sync'n'share system providers. -type Service struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The URL at which the service is hosted. - Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` - // REQUIRED. - // The primary endpoint of the service. - Endpoint *ServiceEndpoint `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - // REQUIRED. - // The API version of the provided service. - ApiVersion string `protobuf:"bytes,3,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` - // OPTIONAL. - // Additional endpoints at which the service is exposed. - AdditionalEndpoints []*ServiceEndpoint `protobuf:"bytes,4,rep,name=additional_endpoints,json=additionalEndpoints,proto3" json:"additional_endpoints,omitempty"` -} - -func (x *Service) Reset() { - *x = Service{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Service) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Service) ProtoMessage() {} - -func (x *Service) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_resources_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 Service.ProtoReflect.Descriptor instead. -func (*Service) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{2} -} - -func (x *Service) GetHost() string { - if x != nil { - return x.Host - } - return "" -} - -func (x *Service) GetEndpoint() *ServiceEndpoint { - if x != nil { - return x.Endpoint - } - return nil -} - -func (x *Service) GetApiVersion() string { - if x != nil { - return x.ApiVersion - } - return "" -} - -func (x *Service) GetAdditionalEndpoints() []*ServiceEndpoint { - if x != nil { - return x.AdditionalEndpoints - } - return nil -} - -// Details of the sync'n'share system provider. -type ProviderInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The name of the provider. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // REQUIRED. - // The full name of the provider. - FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` - // REQUIRED. - // A description of the provider. - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // REQUIRED. - // The organization to which the provider belongs. - Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` - // REQUIRED. - // The domain of the sync'n'share provider. - Domain string `protobuf:"bytes,5,opt,name=domain,proto3" json:"domain,omitempty"` - // REQUIRED. - // The homepage of the provider. - Homepage string `protobuf:"bytes,6,opt,name=homepage,proto3" json:"homepage,omitempty"` - // REQUIRED. - // The email at which the provider can be reached. - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - // REQUIRED. - // The list of services provided by the provider. - Services []*Service `protobuf:"bytes,8,rep,name=services,proto3" json:"services,omitempty"` - // OPTIONAL. - // Additional properties about the service. - Properties map[string]string `protobuf:"bytes,9,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ProviderInfo) Reset() { - *x = ProviderInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderInfo) ProtoMessage() {} - -func (x *ProviderInfo) ProtoReflect() protoreflect.Message { - mi := &file_cs3_ocm_provider_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. -func (*ProviderInfo) Descriptor() ([]byte, []int) { - return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP(), []int{3} -} - -func (x *ProviderInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ProviderInfo) GetFullName() string { - if x != nil { - return x.FullName - } - return "" -} - -func (x *ProviderInfo) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *ProviderInfo) GetOrganization() string { - if x != nil { - return x.Organization - } - return "" -} - -func (x *ProviderInfo) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ProviderInfo) GetHomepage() string { - if x != nil { - return x.Homepage - } - return "" -} - -func (x *ProviderInfo) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *ProviderInfo) GetServices() []*Service { - if x != nil { - return x.Services - } - return nil -} - -func (x *ProviderInfo) GetProperties() map[string]string { - if x != nil { - return x.Properties - } - return nil -} - -var File_cs3_ocm_provider_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, - 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x22, 0x43, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb1, 0x02, 0x0a, 0x0f, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x39, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, - 0x72, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d, - 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe3, 0x01, - 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x45, 0x0a, - 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, - 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x14, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x13, - 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x73, 0x22, 0xa5, 0x03, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, - 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, - 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x6d, 0x65, 0x70, 0x61, 0x67, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x6d, 0x65, 0x70, 0x61, 0x67, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3d, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x12, 0x56, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, - 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x7d, 0x0a, 0x1c, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, - 0x03, 0x43, 0x4f, 0x50, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, - 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_cs3_ocm_provider_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData = file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc -) - -func file_cs3_ocm_provider_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_ocm_provider_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_ocm_provider_v1beta1_resources_proto_rawDescData -} - -var file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_cs3_ocm_provider_v1beta1_resources_proto_goTypes = []interface{}{ - (*ServiceType)(nil), // 0: cs3.ocm.provider.v1beta1.ServiceType - (*ServiceEndpoint)(nil), // 1: cs3.ocm.provider.v1beta1.ServiceEndpoint - (*Service)(nil), // 2: cs3.ocm.provider.v1beta1.Service - (*ProviderInfo)(nil), // 3: cs3.ocm.provider.v1beta1.ProviderInfo - nil, // 4: cs3.ocm.provider.v1beta1.ServiceEndpoint.PropertiesEntry - nil, // 5: cs3.ocm.provider.v1beta1.ProviderInfo.PropertiesEntry -} -var file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs = []int32{ - 0, // 0: cs3.ocm.provider.v1beta1.ServiceEndpoint.type:type_name -> cs3.ocm.provider.v1beta1.ServiceType - 4, // 1: cs3.ocm.provider.v1beta1.ServiceEndpoint.properties:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint.PropertiesEntry - 1, // 2: cs3.ocm.provider.v1beta1.Service.endpoint:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint - 1, // 3: cs3.ocm.provider.v1beta1.Service.additional_endpoints:type_name -> cs3.ocm.provider.v1beta1.ServiceEndpoint - 2, // 4: cs3.ocm.provider.v1beta1.ProviderInfo.services:type_name -> cs3.ocm.provider.v1beta1.Service - 5, // 5: cs3.ocm.provider.v1beta1.ProviderInfo.properties:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo.PropertiesEntry - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_cs3_ocm_provider_v1beta1_resources_proto_init() } -func file_cs3_ocm_provider_v1beta1_resources_proto_init() { - if File_cs3_ocm_provider_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceEndpoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Service); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInfo); 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_cs3_ocm_provider_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_ocm_provider_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_ocm_provider_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_ocm_provider_v1beta1_resources_proto = out.File - file_cs3_ocm_provider_v1beta1_resources_proto_rawDesc = nil - file_cs3_ocm_provider_v1beta1_resources_proto_goTypes = nil - file_cs3_ocm_provider_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go deleted file mode 100644 index c41bd81b..00000000 --- a/build/go-cs3apis/cs3/ocm/provider/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/ocm/provider/v1beta1/resources.proto - -package providerv1beta1 - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go b/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go deleted file mode 100644 index f8588ec0..00000000 --- a/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.go +++ /dev/null @@ -1,542 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/preferences/v1beta1/preferences_api.proto - -package preferencesv1beta1 - -import ( - context "context" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type SetKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // REQUIRED. - // The value associated with the key. - Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` -} - -func (x *SetKeyRequest) Reset() { - *x = SetKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetKeyRequest) ProtoMessage() {} - -func (x *SetKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_preferences_v1beta1_preferences_api_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 SetKeyRequest.ProtoReflect.Descriptor instead. -func (*SetKeyRequest) Descriptor() ([]byte, []int) { - return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{0} -} - -func (x *SetKeyRequest) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *SetKeyRequest) GetVal() string { - if x != nil { - return x.Val - } - return "" -} - -type SetKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *SetKeyResponse) Reset() { - *x = SetKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetKeyResponse) ProtoMessage() {} - -func (x *SetKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_preferences_v1beta1_preferences_api_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 SetKeyResponse.ProtoReflect.Descriptor instead. -func (*SetKeyResponse) Descriptor() ([]byte, []int) { - return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{1} -} - -func (x *SetKeyResponse) GetStatus() *v1beta1.Status { - if x != nil { - return x.Status - } - return nil -} - -type GetKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` -} - -func (x *GetKeyRequest) Reset() { - *x = GetKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetKeyRequest) ProtoMessage() {} - -func (x *GetKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_preferences_v1beta1_preferences_api_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 GetKeyRequest.ProtoReflect.Descriptor instead. -func (*GetKeyRequest) Descriptor() ([]byte, []int) { - return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{2} -} - -func (x *GetKeyRequest) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -type GetKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // REQUIRED. - // The value associated with the key. - Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` -} - -func (x *GetKeyResponse) Reset() { - *x = GetKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetKeyResponse) ProtoMessage() {} - -func (x *GetKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_preferences_v1beta1_preferences_api_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 GetKeyResponse.ProtoReflect.Descriptor instead. -func (*GetKeyResponse) Descriptor() ([]byte, []int) { - return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP(), []int{3} -} - -func (x *GetKeyResponse) GetStatus() *v1beta1.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetKeyResponse) GetVal() string { - if x != nil { - return x.Val - } - return "" -} - -var File_cs3_preferences_v1beta1_preferences_api_proto protoreflect.FileDescriptor - -var file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x63, 0x73, 0x33, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x17, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x22, 0x41, 0x0a, 0x0e, 0x53, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x21, - 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x22, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x32, 0xc6, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x50, 0x49, 0x12, 0x59, 0x0a, 0x06, 0x53, 0x65, 0x74, - 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, - 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x26, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x82, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, - 0x13, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x70, 0x69, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x50, 0x58, - 0xaa, 0x02, 0x17, 0x43, 0x73, 0x33, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x73, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, - 0x5c, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x42, - 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_preferences_v1beta1_preferences_api_proto_rawDescOnce sync.Once - file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData = file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc -) - -func file_cs3_preferences_v1beta1_preferences_api_proto_rawDescGZIP() []byte { - file_cs3_preferences_v1beta1_preferences_api_proto_rawDescOnce.Do(func() { - file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData) - }) - return file_cs3_preferences_v1beta1_preferences_api_proto_rawDescData -} - -var file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cs3_preferences_v1beta1_preferences_api_proto_goTypes = []interface{}{ - (*SetKeyRequest)(nil), // 0: cs3.preferences.v1beta1.SetKeyRequest - (*SetKeyResponse)(nil), // 1: cs3.preferences.v1beta1.SetKeyResponse - (*GetKeyRequest)(nil), // 2: cs3.preferences.v1beta1.GetKeyRequest - (*GetKeyResponse)(nil), // 3: cs3.preferences.v1beta1.GetKeyResponse - (*v1beta1.Status)(nil), // 4: cs3.rpc.v1beta1.Status -} -var file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs = []int32{ - 4, // 0: cs3.preferences.v1beta1.SetKeyResponse.status:type_name -> cs3.rpc.v1beta1.Status - 4, // 1: cs3.preferences.v1beta1.GetKeyResponse.status:type_name -> cs3.rpc.v1beta1.Status - 0, // 2: cs3.preferences.v1beta1.PreferencesAPI.SetKey:input_type -> cs3.preferences.v1beta1.SetKeyRequest - 2, // 3: cs3.preferences.v1beta1.PreferencesAPI.GetKey:input_type -> cs3.preferences.v1beta1.GetKeyRequest - 1, // 4: cs3.preferences.v1beta1.PreferencesAPI.SetKey:output_type -> cs3.preferences.v1beta1.SetKeyResponse - 3, // 5: cs3.preferences.v1beta1.PreferencesAPI.GetKey:output_type -> cs3.preferences.v1beta1.GetKeyResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_cs3_preferences_v1beta1_preferences_api_proto_init() } -func file_cs3_preferences_v1beta1_preferences_api_proto_init() { - if File_cs3_preferences_v1beta1_preferences_api_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetKeyResponse); 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_cs3_preferences_v1beta1_preferences_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_preferences_v1beta1_preferences_api_proto_goTypes, - DependencyIndexes: file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs, - MessageInfos: file_cs3_preferences_v1beta1_preferences_api_proto_msgTypes, - }.Build() - File_cs3_preferences_v1beta1_preferences_api_proto = out.File - file_cs3_preferences_v1beta1_preferences_api_proto_rawDesc = nil - file_cs3_preferences_v1beta1_preferences_api_proto_goTypes = nil - file_cs3_preferences_v1beta1_preferences_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// PreferencesAPIClient is the client API for PreferencesAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PreferencesAPIClient interface { - // Maps the key-value pair. - SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error) - // Returns the value associated with the - // requested key. - GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) -} - -type preferencesAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewPreferencesAPIClient(cc grpc.ClientConnInterface) PreferencesAPIClient { - return &preferencesAPIClient{cc} -} - -func (c *preferencesAPIClient) SetKey(ctx context.Context, in *SetKeyRequest, opts ...grpc.CallOption) (*SetKeyResponse, error) { - out := new(SetKeyResponse) - err := c.cc.Invoke(ctx, "/cs3.preferences.v1beta1.PreferencesAPI/SetKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *preferencesAPIClient) GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) { - out := new(GetKeyResponse) - err := c.cc.Invoke(ctx, "/cs3.preferences.v1beta1.PreferencesAPI/GetKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PreferencesAPIServer is the server API for PreferencesAPI service. -type PreferencesAPIServer interface { - // Maps the key-value pair. - SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error) - // Returns the value associated with the - // requested key. - GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error) -} - -// UnimplementedPreferencesAPIServer can be embedded to have forward compatible implementations. -type UnimplementedPreferencesAPIServer struct { -} - -func (*UnimplementedPreferencesAPIServer) SetKey(context.Context, *SetKeyRequest) (*SetKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetKey not implemented") -} -func (*UnimplementedPreferencesAPIServer) GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented") -} - -func RegisterPreferencesAPIServer(s *grpc.Server, srv PreferencesAPIServer) { - s.RegisterService(&_PreferencesAPI_serviceDesc, srv) -} - -func _PreferencesAPI_SetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PreferencesAPIServer).SetKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.preferences.v1beta1.PreferencesAPI/SetKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PreferencesAPIServer).SetKey(ctx, req.(*SetKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PreferencesAPI_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PreferencesAPIServer).GetKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.preferences.v1beta1.PreferencesAPI/GetKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PreferencesAPIServer).GetKey(ctx, req.(*GetKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _PreferencesAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.preferences.v1beta1.PreferencesAPI", - HandlerType: (*PreferencesAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SetKey", - Handler: _PreferencesAPI_SetKey_Handler, - }, - { - MethodName: "GetKey", - Handler: _PreferencesAPI_GetKey_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/preferences/v1beta1/preferences_api.proto", -} diff --git a/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go b/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go deleted file mode 100644 index 1d3a739e..00000000 --- a/build/go-cs3apis/cs3/preferences/v1beta1/preferences_api.pb.micro.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/preferences/v1beta1/preferences_api.proto - -package preferencesv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for PreferencesAPI service - -func NewPreferencesAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for PreferencesAPI service - -type PreferencesAPIService interface { - // Maps the key-value pair. - SetKey(ctx context.Context, in *SetKeyRequest, opts ...client.CallOption) (*SetKeyResponse, error) - // Returns the value associated with the - // requested key. - GetKey(ctx context.Context, in *GetKeyRequest, opts ...client.CallOption) (*GetKeyResponse, error) -} - -type preferencesAPIService struct { - c client.Client - name string -} - -func NewPreferencesAPIService(name string, c client.Client) PreferencesAPIService { - return &preferencesAPIService{ - c: c, - name: name, - } -} - -func (c *preferencesAPIService) SetKey(ctx context.Context, in *SetKeyRequest, opts ...client.CallOption) (*SetKeyResponse, error) { - req := c.c.NewRequest(c.name, "PreferencesAPI.SetKey", in) - out := new(SetKeyResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *preferencesAPIService) GetKey(ctx context.Context, in *GetKeyRequest, opts ...client.CallOption) (*GetKeyResponse, error) { - req := c.c.NewRequest(c.name, "PreferencesAPI.GetKey", in) - out := new(GetKeyResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for PreferencesAPI service - -type PreferencesAPIHandler interface { - // Maps the key-value pair. - SetKey(context.Context, *SetKeyRequest, *SetKeyResponse) error - // Returns the value associated with the - // requested key. - GetKey(context.Context, *GetKeyRequest, *GetKeyResponse) error -} - -func RegisterPreferencesAPIHandler(s server.Server, hdlr PreferencesAPIHandler, opts ...server.HandlerOption) error { - type preferencesAPI interface { - SetKey(ctx context.Context, in *SetKeyRequest, out *SetKeyResponse) error - GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error - } - type PreferencesAPI struct { - preferencesAPI - } - h := &preferencesAPIHandler{hdlr} - return s.Handle(s.NewHandler(&PreferencesAPI{h}, opts...)) -} - -type preferencesAPIHandler struct { - PreferencesAPIHandler -} - -func (h *preferencesAPIHandler) SetKey(ctx context.Context, in *SetKeyRequest, out *SetKeyResponse) error { - return h.PreferencesAPIHandler.SetKey(ctx, in, out) -} - -func (h *preferencesAPIHandler) GetKey(ctx context.Context, in *GetKeyRequest, out *GetKeyResponse) error { - return h.PreferencesAPIHandler.GetKey(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go b/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go deleted file mode 100644 index 2074f9e2..00000000 --- a/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.go +++ /dev/null @@ -1,367 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/rpc/v1beta1/code.proto - -package rpcv1beta1 - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// These are the canonical error codes used by CS3 APIs. -// -// Adapted from Google APIs: -// https://github.com/googleapis/googleapis/ -// -// Sometimes multiple error codes may apply. Services should return -// the most specific error code that applies. For example, prefer -// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. -// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. -type Code int32 - -const ( - // A programmer would not intentionally set the code to CODE_INVALID. - // This code exists to force service implementors to set - // a specific code for the API call and to not rely on defaults. - // - // HTTP Mapping: 500 Internal Server Error - Code_CODE_INVALID Code = 0 - // Not an error; returned on success - // - // HTTP Mapping: 200 OK - Code_CODE_OK Code = 1 - // The operation was cancelled, typically by the caller. - // - // HTTP Mapping: 499 Client Closed Request - Code_CODE_CANCELLED Code = 2 - // Unknown error. For example, this error may be returned when - // a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also - // errors raised by APIs that do not return enough error information - // may be converted to this error. - // - // HTTP Mapping: 500 Internal Server Error - Code_CODE_UNKNOWN Code = 3 - // The client specified an invalid argument. Note that this differs - // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments - // that are problematic regardless of the state of the system - // (e.g., a malformed file name). - // - // HTTP Mapping: 400 Bad Request - Code_CODE_INVALID_ARGUMENT Code = 4 - // The deadline expired before the operation could complete. For operations - // that change the state of the system, this error may be returned - // even if the operation has completed successfully. For example, a - // successful response from a server could have been delayed long - // enough for the deadline to expire. - // - // HTTP Mapping: 504 Gateway Timeout - Code_CODE_DEADLINE_EXCEEDED Code = 5 - // Some requested entity (e.g., file or directory) was not found. - // - // Note to server developers: if a request is denied for an entire class - // of users, such as gradual feature rollout or undocumented whitelist, - // `NOT_FOUND` may be used. If a request is denied for some users within - // a class of users, such as user-based access control, `PERMISSION_DENIED` - // must be used. - // - // HTTP Mapping: 404 Not Found - Code_CODE_NOT_FOUND Code = 6 - // The entity that a client attempted to create (e.g., file or directory) - // already exists. - // - // HTTP Mapping: 409 Conflict - Code_CODE_ALREADY_EXISTS Code = 7 - // The caller does not have permission to execute the specified - // operation. `PERMISSION_DENIED` must not be used for rejections - // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` - // instead for those errors). `PERMISSION_DENIED` must not be - // used if the caller can not be identified (use `UNAUTHENTICATED` - // instead for those errors). This error code does not imply the - // request is valid or the requested entity exists or satisfies - // other pre-conditions. - // - // HTTP Mapping: 403 Forbidden - Code_CODE_PERMISSION_DENIED Code = 8 - // The request does not have valid authentication credentials for the - // operation. - // - // HTTP Mapping: 401 Unauthorized - Code_CODE_UNAUTHENTICATED Code = 9 - // Some resource has been exhausted, perhaps a per-user quota, or - // perhaps the entire file system is out of space. - // - // HTTP Mapping: 429 Too Many Requests - Code_CODE_RESOURCE_EXHAUSTED Code = 10 - // The operation was rejected because the system is not in a state - // required for the operation's execution. For example, the directory - // to be deleted is non-empty, an rmdir operation is applied to - // a non-directory, etc. - // - // Service implementors can use the following guidelines to decide - // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: - // (a) Use `UNAVAILABLE` if the client can retry just the failing call. - // (b) Use `ABORTED` if the client should retry at a higher level - // (e.g., when a client-specified test-and-set fails, indicating the - // client should restart a read-modify-write sequence). - // (c) Use `FAILED_PRECONDITION` if the client should not retry until - // the system state has been explicitly fixed. E.g., if an "rmdir" - // fails because the directory is non-empty, `FAILED_PRECONDITION` - // should be returned since the client should not retry unless - // the files are deleted from the directory. - // - // HTTP Mapping: 400 Bad Request - Code_CODE_FAILED_PRECONDITION Code = 11 - // The operation was aborted, typically due to a concurrency issue such as - // a sequencer check failure or transaction abort. - // - // See the guidelines above for deciding between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`. - // - // HTTP Mapping: 409 Conflict - Code_CODE_ABORTED Code = 12 - // The operation was attempted past the valid range. E.g., seeking or - // reading past end-of-file. - // - // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may - // be fixed if the system state changes. For example, a 32-bit file - // system will generate `INVALID_ARGUMENT` if asked to read at an - // offset that is not in the range [0,2^32-1], but it will generate - // `OUT_OF_RANGE` if asked to read from an offset past the current - // file size. - // - // There is a fair bit of overlap between `FAILED_PRECONDITION` and - // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific - // error) when it applies so that callers who are iterating through - // a space can easily look for an `OUT_OF_RANGE` error to detect when - // they are done. - // - // HTTP Mapping: 400 Bad Request - Code_CODE_OUT_OF_RANGE Code = 13 - // The operation is not implemented or is not supported/enabled in this - // service. - // - // HTTP Mapping: 501 Not Implemented - Code_CODE_UNIMPLEMENTED Code = 14 - // Internal errors. This means that some invariants expected by the - // underlying system have been broken. This error code is reserved - // for serious errors. - // - // HTTP Mapping: 500 Internal Server Error - Code_CODE_INTERNAL Code = 15 - // The service is currently unavailable. This is most likely a - // transient condition, which can be corrected by retrying with - // a backoff. - // - // See the guidelines above for deciding between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`. - // - // HTTP Mapping: 503 Service Unavailable - Code_CODE_UNAVAILABLE Code = 16 - // Unrecoverable data loss or corruption. - // - // HTTP Mapping: 500 Internal Server Error - Code_CODE_DATA_LOSS Code = 17 - // Redirects the operation to another location. - // Used in a Status reponse with a reference to the target URI. - Code_CODE_REDIRECTION Code = 18 -) - -// Enum value maps for Code. -var ( - Code_name = map[int32]string{ - 0: "CODE_INVALID", - 1: "CODE_OK", - 2: "CODE_CANCELLED", - 3: "CODE_UNKNOWN", - 4: "CODE_INVALID_ARGUMENT", - 5: "CODE_DEADLINE_EXCEEDED", - 6: "CODE_NOT_FOUND", - 7: "CODE_ALREADY_EXISTS", - 8: "CODE_PERMISSION_DENIED", - 9: "CODE_UNAUTHENTICATED", - 10: "CODE_RESOURCE_EXHAUSTED", - 11: "CODE_FAILED_PRECONDITION", - 12: "CODE_ABORTED", - 13: "CODE_OUT_OF_RANGE", - 14: "CODE_UNIMPLEMENTED", - 15: "CODE_INTERNAL", - 16: "CODE_UNAVAILABLE", - 17: "CODE_DATA_LOSS", - 18: "CODE_REDIRECTION", - } - Code_value = map[string]int32{ - "CODE_INVALID": 0, - "CODE_OK": 1, - "CODE_CANCELLED": 2, - "CODE_UNKNOWN": 3, - "CODE_INVALID_ARGUMENT": 4, - "CODE_DEADLINE_EXCEEDED": 5, - "CODE_NOT_FOUND": 6, - "CODE_ALREADY_EXISTS": 7, - "CODE_PERMISSION_DENIED": 8, - "CODE_UNAUTHENTICATED": 9, - "CODE_RESOURCE_EXHAUSTED": 10, - "CODE_FAILED_PRECONDITION": 11, - "CODE_ABORTED": 12, - "CODE_OUT_OF_RANGE": 13, - "CODE_UNIMPLEMENTED": 14, - "CODE_INTERNAL": 15, - "CODE_UNAVAILABLE": 16, - "CODE_DATA_LOSS": 17, - "CODE_REDIRECTION": 18, - } -) - -func (x Code) Enum() *Code { - p := new(Code) - *p = x - return p -} - -func (x Code) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Code) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_rpc_v1beta1_code_proto_enumTypes[0].Descriptor() -} - -func (Code) Type() protoreflect.EnumType { - return &file_cs3_rpc_v1beta1_code_proto_enumTypes[0] -} - -func (x Code) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Code.Descriptor instead. -func (Code) EnumDescriptor() ([]byte, []int) { - return file_cs3_rpc_v1beta1_code_proto_rawDescGZIP(), []int{0} -} - -var File_cs3_rpc_v1beta1_code_proto protoreflect.FileDescriptor - -var file_cs3_rpc_v1beta1_code_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x73, - 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2a, 0xb4, 0x03, - 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49, - 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x44, 0x45, - 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x43, 0x41, - 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, - 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x43, - 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, - 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x44, - 0x45, 0x41, 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, - 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, - 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x41, - 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x07, 0x12, - 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, - 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x43, - 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, - 0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, - 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 0x54, 0x45, 0x44, - 0x10, 0x0a, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, - 0x44, 0x5f, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x0b, - 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, - 0x10, 0x0c, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f, - 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0d, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x44, - 0x45, 0x5f, 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, - 0x0e, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, - 0x41, 0x4c, 0x10, 0x0f, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x41, - 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, - 0x44, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x11, 0x12, 0x14, - 0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x12, 0x42, 0x58, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x09, 0x43, 0x6f, 0x64, - 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x72, 0x70, 0x63, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x73, 0x33, - 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0f, 0x43, - 0x73, 0x33, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_rpc_v1beta1_code_proto_rawDescOnce sync.Once - file_cs3_rpc_v1beta1_code_proto_rawDescData = file_cs3_rpc_v1beta1_code_proto_rawDesc -) - -func file_cs3_rpc_v1beta1_code_proto_rawDescGZIP() []byte { - file_cs3_rpc_v1beta1_code_proto_rawDescOnce.Do(func() { - file_cs3_rpc_v1beta1_code_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_rpc_v1beta1_code_proto_rawDescData) - }) - return file_cs3_rpc_v1beta1_code_proto_rawDescData -} - -var file_cs3_rpc_v1beta1_code_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_rpc_v1beta1_code_proto_goTypes = []interface{}{ - (Code)(0), // 0: cs3.rpc.v1beta1.Code -} -var file_cs3_rpc_v1beta1_code_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_cs3_rpc_v1beta1_code_proto_init() } -func file_cs3_rpc_v1beta1_code_proto_init() { - if File_cs3_rpc_v1beta1_code_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_rpc_v1beta1_code_proto_rawDesc, - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_rpc_v1beta1_code_proto_goTypes, - DependencyIndexes: file_cs3_rpc_v1beta1_code_proto_depIdxs, - EnumInfos: file_cs3_rpc_v1beta1_code_proto_enumTypes, - }.Build() - File_cs3_rpc_v1beta1_code_proto = out.File - file_cs3_rpc_v1beta1_code_proto_rawDesc = nil - file_cs3_rpc_v1beta1_code_proto_goTypes = nil - file_cs3_rpc_v1beta1_code_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go b/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go deleted file mode 100644 index 2456c7a9..00000000 --- a/build/go-cs3apis/cs3/rpc/v1beta1/code.pb.micro.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/rpc/v1beta1/code.proto - -package rpcv1beta1 - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go b/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go deleted file mode 100644 index f1182925..00000000 --- a/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.go +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/rpc/v1beta1/status.proto - -package rpcv1beta1 - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The `Status` message contains two pieces of data: error code and error message. -// The error code should be an enum value of [cs3.rpc.code]. -// The error message should be a developer-facing English -// message that helps developers *understand* and *resolve* the error. -type Status struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The status code, which should be an enum value of [cs3.rpc.code][cs3.rpc.code]. - Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=cs3.rpc.v1beta1.Code" json:"code,omitempty"` - // OPTIONAL. - // A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // OPTIONAL. - // A trace added to the response for helping support to identify client problems. - Trace string `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"` - // OPTIONAL. - // A target URI as per RFC3986 to redirect requests to another location. - // A Status message with CODE_REDIRECT MUST always set the target_uri. - // https://golang.org/pkg/net/url/#URL provides a quick view of the format. - TargetUri string `protobuf:"bytes,4,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"` -} - -func (x *Status) Reset() { - *x = Status{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_rpc_v1beta1_status_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Status) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Status) ProtoMessage() {} - -func (x *Status) ProtoReflect() protoreflect.Message { - mi := &file_cs3_rpc_v1beta1_status_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 Status.ProtoReflect.Descriptor instead. -func (*Status) Descriptor() ([]byte, []int) { - return file_cs3_rpc_v1beta1_status_proto_rawDescGZIP(), []int{0} -} - -func (x *Status) GetCode() Code { - if x != nil { - return x.Code - } - return Code_CODE_INVALID -} - -func (x *Status) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *Status) GetTrace() string { - if x != nil { - return x.Trace - } - return "" -} - -func (x *Status) GetTargetUri() string { - if x != nil { - return x.TargetUri - } - return "" -} - -var File_cs3_rpc_v1beta1_status_proto protoreflect.FileDescriptor - -var file_cs3_rpc_v1beta1_status_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, - 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, - 0x1a, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x72, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x72, 0x61, 0x63, - 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, - 0x42, 0x5a, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x72, 0x70, 0x63, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x43, 0x73, 0x33, 0x2e, 0x52, - 0x70, 0x63, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0f, 0x43, 0x73, 0x33, - 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_rpc_v1beta1_status_proto_rawDescOnce sync.Once - file_cs3_rpc_v1beta1_status_proto_rawDescData = file_cs3_rpc_v1beta1_status_proto_rawDesc -) - -func file_cs3_rpc_v1beta1_status_proto_rawDescGZIP() []byte { - file_cs3_rpc_v1beta1_status_proto_rawDescOnce.Do(func() { - file_cs3_rpc_v1beta1_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_rpc_v1beta1_status_proto_rawDescData) - }) - return file_cs3_rpc_v1beta1_status_proto_rawDescData -} - -var file_cs3_rpc_v1beta1_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_cs3_rpc_v1beta1_status_proto_goTypes = []interface{}{ - (*Status)(nil), // 0: cs3.rpc.v1beta1.Status - (Code)(0), // 1: cs3.rpc.v1beta1.Code -} -var file_cs3_rpc_v1beta1_status_proto_depIdxs = []int32{ - 1, // 0: cs3.rpc.v1beta1.Status.code:type_name -> cs3.rpc.v1beta1.Code - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_cs3_rpc_v1beta1_status_proto_init() } -func file_cs3_rpc_v1beta1_status_proto_init() { - if File_cs3_rpc_v1beta1_status_proto != nil { - return - } - file_cs3_rpc_v1beta1_code_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_rpc_v1beta1_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Status); 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_cs3_rpc_v1beta1_status_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_rpc_v1beta1_status_proto_goTypes, - DependencyIndexes: file_cs3_rpc_v1beta1_status_proto_depIdxs, - MessageInfos: file_cs3_rpc_v1beta1_status_proto_msgTypes, - }.Build() - File_cs3_rpc_v1beta1_status_proto = out.File - file_cs3_rpc_v1beta1_status_proto_rawDesc = nil - file_cs3_rpc_v1beta1_status_proto_goTypes = nil - file_cs3_rpc_v1beta1_status_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go b/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go deleted file mode 100644 index ff19eda8..00000000 --- a/build/go-cs3apis/cs3/rpc/v1beta1/status.pb.micro.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/rpc/v1beta1/status.proto - -package rpcv1beta1 - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go deleted file mode 100644 index 3de40c4b..00000000 --- a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.go +++ /dev/null @@ -1,2466 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/sharing/collaboration/v1beta1/collaboration_api.proto - -package collaborationv1beta1 - -import ( - context "context" - v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The filter to apply. -type ListSharesRequest_Filter_Type int32 - -const ( - ListSharesRequest_Filter_TYPE_INVALID ListSharesRequest_Filter_Type = 0 - ListSharesRequest_Filter_TYPE_NO ListSharesRequest_Filter_Type = 1 - ListSharesRequest_Filter_TYPE_RESOURCE_ID ListSharesRequest_Filter_Type = 2 - ListSharesRequest_Filter_TYPE_OWNER ListSharesRequest_Filter_Type = 3 - ListSharesRequest_Filter_TYPE_CREATOR ListSharesRequest_Filter_Type = 4 -) - -// Enum value maps for ListSharesRequest_Filter_Type. -var ( - ListSharesRequest_Filter_Type_name = map[int32]string{ - 0: "TYPE_INVALID", - 1: "TYPE_NO", - 2: "TYPE_RESOURCE_ID", - 3: "TYPE_OWNER", - 4: "TYPE_CREATOR", - } - ListSharesRequest_Filter_Type_value = map[string]int32{ - "TYPE_INVALID": 0, - "TYPE_NO": 1, - "TYPE_RESOURCE_ID": 2, - "TYPE_OWNER": 3, - "TYPE_CREATOR": 4, - } -) - -func (x ListSharesRequest_Filter_Type) Enum() *ListSharesRequest_Filter_Type { - p := new(ListSharesRequest_Filter_Type) - *p = x - return p -} - -func (x ListSharesRequest_Filter_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ListSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes[0].Descriptor() -} - -func (ListSharesRequest_Filter_Type) Type() protoreflect.EnumType { - return &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes[0] -} - -func (x ListSharesRequest_Filter_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ListSharesRequest_Filter_Type.Descriptor instead. -func (ListSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{4, 0, 0} -} - -type CreateShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The information of the resource to be shared. - ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` - // REQUIRED. - // The share grant for the share. - Grant *ShareGrant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` -} - -func (x *CreateShareRequest) Reset() { - *x = CreateShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateShareRequest) ProtoMessage() {} - -func (x *CreateShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 CreateShareRequest.ProtoReflect.Descriptor instead. -func (*CreateShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{0} -} - -func (x *CreateShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateShareRequest) GetResourceInfo() *v1beta11.ResourceInfo { - if x != nil { - return x.ResourceInfo - } - return nil -} - -func (x *CreateShareRequest) GetGrant() *ShareGrant { - if x != nil { - return x.Grant - } - return nil -} - -type CreateShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The created share. - Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *CreateShareResponse) Reset() { - *x = CreateShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateShareResponse) ProtoMessage() {} - -func (x *CreateShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 CreateShareResponse.ProtoReflect.Descriptor instead. -func (*CreateShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateShareResponse) GetShare() *Share { - if x != nil { - return x.Share - } - return nil -} - -type UpdateShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - Field *UpdateShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` -} - -func (x *UpdateShareRequest) Reset() { - *x = UpdateShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateShareRequest) ProtoMessage() {} - -func (x *UpdateShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 UpdateShareRequest.ProtoReflect.Descriptor instead. -func (*UpdateShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{2} -} - -func (x *UpdateShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UpdateShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *UpdateShareRequest) GetField() *UpdateShareRequest_UpdateField { - if x != nil { - return x.Field - } - return nil -} - -type UpdateShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *UpdateShareResponse) Reset() { - *x = UpdateShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateShareResponse) ProtoMessage() {} - -func (x *UpdateShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 UpdateShareResponse.ProtoReflect.Descriptor instead. -func (*UpdateShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{3} -} - -func (x *UpdateShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *UpdateShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListSharesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // OPTIONAL. - // The list of filters to apply if any. - Filters []*ListSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` -} - -func (x *ListSharesRequest) Reset() { - *x = ListSharesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListSharesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSharesRequest) ProtoMessage() {} - -func (x *ListSharesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 ListSharesRequest.ProtoReflect.Descriptor instead. -func (*ListSharesRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{4} -} - -func (x *ListSharesRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListSharesRequest) GetFilters() []*ListSharesRequest_Filter { - if x != nil { - return x.Filters - } - return nil -} - -type ListSharesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of shares. - Shares []*Share `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` -} - -func (x *ListSharesResponse) Reset() { - *x = ListSharesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListSharesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSharesResponse) ProtoMessage() {} - -func (x *ListSharesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 ListSharesResponse.ProtoReflect.Descriptor instead. -func (*ListSharesResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{5} -} - -func (x *ListSharesResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListSharesResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListSharesResponse) GetShares() []*Share { - if x != nil { - return x.Shares - } - return nil -} - -type RemoveShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *RemoveShareRequest) Reset() { - *x = RemoveShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveShareRequest) ProtoMessage() {} - -func (x *RemoveShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 RemoveShareRequest.ProtoReflect.Descriptor instead. -func (*RemoveShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{6} -} - -func (x *RemoveShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *RemoveShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type RemoveShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *RemoveShareResponse) Reset() { - *x = RemoveShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveShareResponse) ProtoMessage() {} - -func (x *RemoveShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 RemoveShareResponse.ProtoReflect.Descriptor instead. -func (*RemoveShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{7} -} - -func (x *RemoveShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *RemoveShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *GetShareRequest) Reset() { - *x = GetShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetShareRequest) ProtoMessage() {} - -func (x *GetShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_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 GetShareRequest.ProtoReflect.Descriptor instead. -func (*GetShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{8} -} - -func (x *GetShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type GetShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The share. - Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *GetShareResponse) Reset() { - *x = GetShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetShareResponse) ProtoMessage() {} - -func (x *GetShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[9] - 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 GetShareResponse.ProtoReflect.Descriptor instead. -func (*GetShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{9} -} - -func (x *GetShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetShareResponse) GetShare() *Share { - if x != nil { - return x.Share - } - return nil -} - -type ListReceivedSharesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *ListReceivedSharesRequest) Reset() { - *x = ListReceivedSharesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListReceivedSharesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListReceivedSharesRequest) ProtoMessage() {} - -func (x *ListReceivedSharesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[10] - 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 ListReceivedSharesRequest.ProtoReflect.Descriptor instead. -func (*ListReceivedSharesRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{10} -} - -func (x *ListReceivedSharesRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListReceivedSharesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of received shares. - Shares []*ReceivedShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` -} - -func (x *ListReceivedSharesResponse) Reset() { - *x = ListReceivedSharesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListReceivedSharesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListReceivedSharesResponse) ProtoMessage() {} - -func (x *ListReceivedSharesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[11] - 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 ListReceivedSharesResponse.ProtoReflect.Descriptor instead. -func (*ListReceivedSharesResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{11} -} - -func (x *ListReceivedSharesResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListReceivedSharesResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListReceivedSharesResponse) GetShares() []*ReceivedShare { - if x != nil { - return x.Shares - } - return nil -} - -// TODO(labkode): clean up display_name ? we'll use storage links for that. -type UpdateReceivedShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - Field *UpdateReceivedShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` -} - -func (x *UpdateReceivedShareRequest) Reset() { - *x = UpdateReceivedShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateReceivedShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateReceivedShareRequest) ProtoMessage() {} - -func (x *UpdateReceivedShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[12] - 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 UpdateReceivedShareRequest.ProtoReflect.Descriptor instead. -func (*UpdateReceivedShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{12} -} - -func (x *UpdateReceivedShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UpdateReceivedShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *UpdateReceivedShareRequest) GetField() *UpdateReceivedShareRequest_UpdateField { - if x != nil { - return x.Field - } - return nil -} - -type UpdateReceivedShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *UpdateReceivedShareResponse) Reset() { - *x = UpdateReceivedShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateReceivedShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateReceivedShareResponse) ProtoMessage() {} - -func (x *UpdateReceivedShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[13] - 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 UpdateReceivedShareResponse.ProtoReflect.Descriptor instead. -func (*UpdateReceivedShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{13} -} - -func (x *UpdateReceivedShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *UpdateReceivedShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetReceivedShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference of the received share. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *GetReceivedShareRequest) Reset() { - *x = GetReceivedShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetReceivedShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetReceivedShareRequest) ProtoMessage() {} - -func (x *GetReceivedShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[14] - 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 GetReceivedShareRequest.ProtoReflect.Descriptor instead. -func (*GetReceivedShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{14} -} - -func (x *GetReceivedShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetReceivedShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type GetReceivedShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The share. - Share *ReceivedShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *GetReceivedShareResponse) Reset() { - *x = GetReceivedShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetReceivedShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetReceivedShareResponse) ProtoMessage() {} - -func (x *GetReceivedShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[15] - 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 GetReceivedShareResponse.ProtoReflect.Descriptor instead. -func (*GetReceivedShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{15} -} - -func (x *GetReceivedShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetReceivedShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetReceivedShareResponse) GetShare() *ReceivedShare { - if x != nil { - return x.Share - } - return nil -} - -// REQUIRED. -type UpdateShareRequest_UpdateField struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One of the update fields MUST be specified. - // - // Types that are assignable to Field: - // *UpdateShareRequest_UpdateField_Permissions - // *UpdateShareRequest_UpdateField_DisplayName - Field isUpdateShareRequest_UpdateField_Field `protobuf_oneof:"field"` -} - -func (x *UpdateShareRequest_UpdateField) Reset() { - *x = UpdateShareRequest_UpdateField{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateShareRequest_UpdateField) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateShareRequest_UpdateField) ProtoMessage() {} - -func (x *UpdateShareRequest_UpdateField) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16] - 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 UpdateShareRequest_UpdateField.ProtoReflect.Descriptor instead. -func (*UpdateShareRequest_UpdateField) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{2, 0} -} - -func (m *UpdateShareRequest_UpdateField) GetField() isUpdateShareRequest_UpdateField_Field { - if m != nil { - return m.Field - } - return nil -} - -func (x *UpdateShareRequest_UpdateField) GetPermissions() *SharePermissions { - if x, ok := x.GetField().(*UpdateShareRequest_UpdateField_Permissions); ok { - return x.Permissions - } - return nil -} - -func (x *UpdateShareRequest_UpdateField) GetDisplayName() string { - if x, ok := x.GetField().(*UpdateShareRequest_UpdateField_DisplayName); ok { - return x.DisplayName - } - return "" -} - -type isUpdateShareRequest_UpdateField_Field interface { - isUpdateShareRequest_UpdateField_Field() -} - -type UpdateShareRequest_UpdateField_Permissions struct { - // Update the permissions. - Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3,oneof"` -} - -type UpdateShareRequest_UpdateField_DisplayName struct { - // Update the display name. - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3,oneof"` -} - -func (*UpdateShareRequest_UpdateField_Permissions) isUpdateShareRequest_UpdateField_Field() {} - -func (*UpdateShareRequest_UpdateField_DisplayName) isUpdateShareRequest_UpdateField_Field() {} - -// REQUIRED. -// represents a filter to apply to the request. -type ListSharesRequest_Filter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Type ListSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.collaboration.v1beta1.ListSharesRequest_Filter_Type" json:"type,omitempty"` - // Types that are assignable to Term: - // *ListSharesRequest_Filter_ResourceId - // *ListSharesRequest_Filter_Owner - // *ListSharesRequest_Filter_Creator - Term isListSharesRequest_Filter_Term `protobuf_oneof:"term"` -} - -func (x *ListSharesRequest_Filter) Reset() { - *x = ListSharesRequest_Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListSharesRequest_Filter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListSharesRequest_Filter) ProtoMessage() {} - -func (x *ListSharesRequest_Filter) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17] - 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 ListSharesRequest_Filter.ProtoReflect.Descriptor instead. -func (*ListSharesRequest_Filter) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{4, 0} -} - -func (x *ListSharesRequest_Filter) GetType() ListSharesRequest_Filter_Type { - if x != nil { - return x.Type - } - return ListSharesRequest_Filter_TYPE_INVALID -} - -func (m *ListSharesRequest_Filter) GetTerm() isListSharesRequest_Filter_Term { - if m != nil { - return m.Term - } - return nil -} - -func (x *ListSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId { - if x, ok := x.GetTerm().(*ListSharesRequest_Filter_ResourceId); ok { - return x.ResourceId - } - return nil -} - -func (x *ListSharesRequest_Filter) GetOwner() *v1beta13.UserId { - if x, ok := x.GetTerm().(*ListSharesRequest_Filter_Owner); ok { - return x.Owner - } - return nil -} - -func (x *ListSharesRequest_Filter) GetCreator() *v1beta13.UserId { - if x, ok := x.GetTerm().(*ListSharesRequest_Filter_Creator); ok { - return x.Creator - } - return nil -} - -type isListSharesRequest_Filter_Term interface { - isListSharesRequest_Filter_Term() -} - -type ListSharesRequest_Filter_ResourceId struct { - ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"` -} - -type ListSharesRequest_Filter_Owner struct { - Owner *v1beta13.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"` -} - -type ListSharesRequest_Filter_Creator struct { - Creator *v1beta13.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"` -} - -func (*ListSharesRequest_Filter_ResourceId) isListSharesRequest_Filter_Term() {} - -func (*ListSharesRequest_Filter_Owner) isListSharesRequest_Filter_Term() {} - -func (*ListSharesRequest_Filter_Creator) isListSharesRequest_Filter_Term() {} - -// REQUIRED. -// The field to update. -type UpdateReceivedShareRequest_UpdateField struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One of the update fields MUST be specified. - // - // Types that are assignable to Field: - // *UpdateReceivedShareRequest_UpdateField_DisplayName - // *UpdateReceivedShareRequest_UpdateField_State - Field isUpdateReceivedShareRequest_UpdateField_Field `protobuf_oneof:"field"` -} - -func (x *UpdateReceivedShareRequest_UpdateField) Reset() { - *x = UpdateReceivedShareRequest_UpdateField{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateReceivedShareRequest_UpdateField) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateReceivedShareRequest_UpdateField) ProtoMessage() {} - -func (x *UpdateReceivedShareRequest_UpdateField) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18] - 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 UpdateReceivedShareRequest_UpdateField.ProtoReflect.Descriptor instead. -func (*UpdateReceivedShareRequest_UpdateField) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP(), []int{12, 0} -} - -func (m *UpdateReceivedShareRequest_UpdateField) GetField() isUpdateReceivedShareRequest_UpdateField_Field { - if m != nil { - return m.Field - } - return nil -} - -func (x *UpdateReceivedShareRequest_UpdateField) GetDisplayName() string { - if x, ok := x.GetField().(*UpdateReceivedShareRequest_UpdateField_DisplayName); ok { - return x.DisplayName - } - return "" -} - -func (x *UpdateReceivedShareRequest_UpdateField) GetState() ShareState { - if x, ok := x.GetField().(*UpdateReceivedShareRequest_UpdateField_State); ok { - return x.State - } - return ShareState_SHARE_STATE_INVALID -} - -type isUpdateReceivedShareRequest_UpdateField_Field interface { - isUpdateReceivedShareRequest_UpdateField_Field() -} - -type UpdateReceivedShareRequest_UpdateField_DisplayName struct { - // Update the display name. - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3,oneof"` -} - -type UpdateReceivedShareRequest_UpdateField_State struct { - // Update the share state - State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.collaboration.v1beta1.ShareState,oneof"` -} - -func (*UpdateReceivedShareRequest_UpdateField_DisplayName) isUpdateReceivedShareRequest_UpdateField_Field() { -} - -func (*UpdateReceivedShareRequest_UpdateField_State) isUpdateReceivedShareRequest_UpdateField_Field() { -} - -var File_cs3_sharing_collaboration_v1beta1_collaboration_api_proto protoreflect.FileDescriptor - -var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc = []byte{ - 0x0a, 0x39, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, - 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, - 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, - 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, - 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, - 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0xb9, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x22, 0xfc, 0x02, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, - 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, - 0x65, 0x66, 0x12, 0x57, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x41, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x94, 0x01, 0x0a, 0x0b, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x0b, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x22, 0x79, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xac, 0x04, - 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x55, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x8c, 0x03, - 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x40, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4b, - 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, - 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x5d, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, - 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, - 0x0b, 0x0a, 0x07, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x44, - 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, - 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, - 0x4f, 0x52, 0x10, 0x04, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x22, 0xba, 0x01, 0x0a, - 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x12, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x79, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, - 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, - 0xb6, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x4e, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, - 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x06, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xfa, 0x02, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x5f, 0x0a, 0x05, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, - 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x82, 0x01, - 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, - 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x48, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x22, 0x81, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xc6, 0x01, 0x0a, 0x18, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x32, 0xb5, 0x08, 0x0a, 0x10, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, - 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, - 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0a, 0x4c, 0x69, 0x73, - 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x94, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x3d, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8b, 0x01, - 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xa4, 0x01, 0x0a, 0x25, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x15, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x14, - 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x43, 0xaa, 0x02, 0x21, 0x43, 0x73, 0x33, - 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, - 0x21, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x6f, 0x6c, - 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, - 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescOnce sync.Once - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData = file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc -) - -func file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescGZIP() []byte { - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescOnce.Do(func() { - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData) - }) - return file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDescData -} - -var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_goTypes = []interface{}{ - (ListSharesRequest_Filter_Type)(0), // 0: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.Type - (*CreateShareRequest)(nil), // 1: cs3.sharing.collaboration.v1beta1.CreateShareRequest - (*CreateShareResponse)(nil), // 2: cs3.sharing.collaboration.v1beta1.CreateShareResponse - (*UpdateShareRequest)(nil), // 3: cs3.sharing.collaboration.v1beta1.UpdateShareRequest - (*UpdateShareResponse)(nil), // 4: cs3.sharing.collaboration.v1beta1.UpdateShareResponse - (*ListSharesRequest)(nil), // 5: cs3.sharing.collaboration.v1beta1.ListSharesRequest - (*ListSharesResponse)(nil), // 6: cs3.sharing.collaboration.v1beta1.ListSharesResponse - (*RemoveShareRequest)(nil), // 7: cs3.sharing.collaboration.v1beta1.RemoveShareRequest - (*RemoveShareResponse)(nil), // 8: cs3.sharing.collaboration.v1beta1.RemoveShareResponse - (*GetShareRequest)(nil), // 9: cs3.sharing.collaboration.v1beta1.GetShareRequest - (*GetShareResponse)(nil), // 10: cs3.sharing.collaboration.v1beta1.GetShareResponse - (*ListReceivedSharesRequest)(nil), // 11: cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest - (*ListReceivedSharesResponse)(nil), // 12: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse - (*UpdateReceivedShareRequest)(nil), // 13: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest - (*UpdateReceivedShareResponse)(nil), // 14: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse - (*GetReceivedShareRequest)(nil), // 15: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest - (*GetReceivedShareResponse)(nil), // 16: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse - (*UpdateShareRequest_UpdateField)(nil), // 17: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField - (*ListSharesRequest_Filter)(nil), // 18: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter - (*UpdateReceivedShareRequest_UpdateField)(nil), // 19: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.UpdateField - (*v1beta1.Opaque)(nil), // 20: cs3.types.v1beta1.Opaque - (*v1beta11.ResourceInfo)(nil), // 21: cs3.storage.provider.v1beta1.ResourceInfo - (*ShareGrant)(nil), // 22: cs3.sharing.collaboration.v1beta1.ShareGrant - (*v1beta12.Status)(nil), // 23: cs3.rpc.v1beta1.Status - (*Share)(nil), // 24: cs3.sharing.collaboration.v1beta1.Share - (*ShareReference)(nil), // 25: cs3.sharing.collaboration.v1beta1.ShareReference - (*ReceivedShare)(nil), // 26: cs3.sharing.collaboration.v1beta1.ReceivedShare - (*SharePermissions)(nil), // 27: cs3.sharing.collaboration.v1beta1.SharePermissions - (*v1beta11.ResourceId)(nil), // 28: cs3.storage.provider.v1beta1.ResourceId - (*v1beta13.UserId)(nil), // 29: cs3.identity.user.v1beta1.UserId - (ShareState)(0), // 30: cs3.sharing.collaboration.v1beta1.ShareState -} -var file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_depIdxs = []int32{ - 20, // 0: cs3.sharing.collaboration.v1beta1.CreateShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 21, // 1: cs3.sharing.collaboration.v1beta1.CreateShareRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo - 22, // 2: cs3.sharing.collaboration.v1beta1.CreateShareRequest.grant:type_name -> cs3.sharing.collaboration.v1beta1.ShareGrant - 23, // 3: cs3.sharing.collaboration.v1beta1.CreateShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 4: cs3.sharing.collaboration.v1beta1.CreateShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 24, // 5: cs3.sharing.collaboration.v1beta1.CreateShareResponse.share:type_name -> cs3.sharing.collaboration.v1beta1.Share - 20, // 6: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 7: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference - 17, // 8: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.field:type_name -> cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField - 23, // 9: cs3.sharing.collaboration.v1beta1.UpdateShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 10: cs3.sharing.collaboration.v1beta1.UpdateShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 11: cs3.sharing.collaboration.v1beta1.ListSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 18, // 12: cs3.sharing.collaboration.v1beta1.ListSharesRequest.filters:type_name -> cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter - 23, // 13: cs3.sharing.collaboration.v1beta1.ListSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 14: cs3.sharing.collaboration.v1beta1.ListSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 24, // 15: cs3.sharing.collaboration.v1beta1.ListSharesResponse.shares:type_name -> cs3.sharing.collaboration.v1beta1.Share - 20, // 16: cs3.sharing.collaboration.v1beta1.RemoveShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 17: cs3.sharing.collaboration.v1beta1.RemoveShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference - 23, // 18: cs3.sharing.collaboration.v1beta1.RemoveShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 19: cs3.sharing.collaboration.v1beta1.RemoveShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 20: cs3.sharing.collaboration.v1beta1.GetShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 21: cs3.sharing.collaboration.v1beta1.GetShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference - 23, // 22: cs3.sharing.collaboration.v1beta1.GetShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 23: cs3.sharing.collaboration.v1beta1.GetShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 24, // 24: cs3.sharing.collaboration.v1beta1.GetShareResponse.share:type_name -> cs3.sharing.collaboration.v1beta1.Share - 20, // 25: cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 23, // 26: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 27: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // 28: cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.shares:type_name -> cs3.sharing.collaboration.v1beta1.ReceivedShare - 20, // 29: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 30: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference - 19, // 31: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.field:type_name -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.UpdateField - 23, // 32: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 33: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 34: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 35: cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.ref:type_name -> cs3.sharing.collaboration.v1beta1.ShareReference - 23, // 36: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 37: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // 38: cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.share:type_name -> cs3.sharing.collaboration.v1beta1.ReceivedShare - 27, // 39: cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.permissions:type_name -> cs3.sharing.collaboration.v1beta1.SharePermissions - 0, // 40: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.type:type_name -> cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.Type - 28, // 41: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 29, // 42: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.owner:type_name -> cs3.identity.user.v1beta1.UserId - 29, // 43: cs3.sharing.collaboration.v1beta1.ListSharesRequest.Filter.creator:type_name -> cs3.identity.user.v1beta1.UserId - 30, // 44: cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.UpdateField.state:type_name -> cs3.sharing.collaboration.v1beta1.ShareState - 1, // 45: cs3.sharing.collaboration.v1beta1.CollaborationAPI.CreateShare:input_type -> cs3.sharing.collaboration.v1beta1.CreateShareRequest - 7, // 46: cs3.sharing.collaboration.v1beta1.CollaborationAPI.RemoveShare:input_type -> cs3.sharing.collaboration.v1beta1.RemoveShareRequest - 9, // 47: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetShare:input_type -> cs3.sharing.collaboration.v1beta1.GetShareRequest - 5, // 48: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListShares:input_type -> cs3.sharing.collaboration.v1beta1.ListSharesRequest - 3, // 49: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateShareRequest - 11, // 50: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListReceivedShares:input_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest - 13, // 51: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest - 15, // 52: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetReceivedShare:input_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest - 2, // 53: cs3.sharing.collaboration.v1beta1.CollaborationAPI.CreateShare:output_type -> cs3.sharing.collaboration.v1beta1.CreateShareResponse - 8, // 54: cs3.sharing.collaboration.v1beta1.CollaborationAPI.RemoveShare:output_type -> cs3.sharing.collaboration.v1beta1.RemoveShareResponse - 10, // 55: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetShare:output_type -> cs3.sharing.collaboration.v1beta1.GetShareResponse - 6, // 56: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListShares:output_type -> cs3.sharing.collaboration.v1beta1.ListSharesResponse - 4, // 57: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateShareResponse - 12, // 58: cs3.sharing.collaboration.v1beta1.CollaborationAPI.ListReceivedShares:output_type -> cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse - 14, // 59: cs3.sharing.collaboration.v1beta1.CollaborationAPI.UpdateReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse - 16, // 60: cs3.sharing.collaboration.v1beta1.CollaborationAPI.GetReceivedShare:output_type -> cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse - 53, // [53:61] is the sub-list for method output_type - 45, // [45:53] is the sub-list for method input_type - 45, // [45:45] is the sub-list for extension type_name - 45, // [45:45] is the sub-list for extension extendee - 0, // [0:45] is the sub-list for field type_name -} - -func init() { file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_init() } -func file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_init() { - if File_cs3_sharing_collaboration_v1beta1_collaboration_api_proto != nil { - return - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSharesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSharesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListReceivedSharesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListReceivedSharesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateReceivedShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateReceivedShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReceivedShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReceivedShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateShareRequest_UpdateField); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSharesRequest_Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateReceivedShareRequest_UpdateField); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[16].OneofWrappers = []interface{}{ - (*UpdateShareRequest_UpdateField_Permissions)(nil), - (*UpdateShareRequest_UpdateField_DisplayName)(nil), - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[17].OneofWrappers = []interface{}{ - (*ListSharesRequest_Filter_ResourceId)(nil), - (*ListSharesRequest_Filter_Owner)(nil), - (*ListSharesRequest_Filter_Creator)(nil), - } - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes[18].OneofWrappers = []interface{}{ - (*UpdateReceivedShareRequest_UpdateField_DisplayName)(nil), - (*UpdateReceivedShareRequest_UpdateField_State)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc, - NumEnums: 1, - NumMessages: 19, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_goTypes, - DependencyIndexes: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_depIdxs, - EnumInfos: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_enumTypes, - MessageInfos: file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_msgTypes, - }.Build() - File_cs3_sharing_collaboration_v1beta1_collaboration_api_proto = out.File - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_rawDesc = nil - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_goTypes = nil - file_cs3_sharing_collaboration_v1beta1_collaboration_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// CollaborationAPIClient is the client API for CollaborationAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type CollaborationAPIClient interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(ctx context.Context, in *CreateShareRequest, opts ...grpc.CallOption) (*CreateShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...grpc.CallOption) (*RemoveShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(ctx context.Context, in *GetShareRequest, opts ...grpc.CallOption) (*GetShareResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(ctx context.Context, in *ListSharesRequest, opts ...grpc.CallOption) (*ListSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...grpc.CallOption) (*UpdateShareResponse, error) - // List all shares the authenticated principal has received. - ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...grpc.CallOption) (*ListReceivedSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...grpc.CallOption) (*UpdateReceivedShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...grpc.CallOption) (*GetReceivedShareResponse, error) -} - -type collaborationAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewCollaborationAPIClient(cc grpc.ClientConnInterface) CollaborationAPIClient { - return &collaborationAPIClient{cc} -} - -func (c *collaborationAPIClient) CreateShare(ctx context.Context, in *CreateShareRequest, opts ...grpc.CallOption) (*CreateShareResponse, error) { - out := new(CreateShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/CreateShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIClient) RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...grpc.CallOption) (*RemoveShareResponse, error) { - out := new(RemoveShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/RemoveShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIClient) GetShare(ctx context.Context, in *GetShareRequest, opts ...grpc.CallOption) (*GetShareResponse, error) { - out := new(GetShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIClient) ListShares(ctx context.Context, in *ListSharesRequest, opts ...grpc.CallOption) (*ListSharesResponse, error) { - out := new(ListSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIClient) UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...grpc.CallOption) (*UpdateShareResponse, error) { - out := new(UpdateShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIClient) ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...grpc.CallOption) (*ListReceivedSharesResponse, error) { - out := new(ListReceivedSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIClient) UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...grpc.CallOption) (*UpdateReceivedShareResponse, error) { - out := new(UpdateReceivedShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateReceivedShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIClient) GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...grpc.CallOption) (*GetReceivedShareResponse, error) { - out := new(GetReceivedShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetReceivedShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// CollaborationAPIServer is the server API for CollaborationAPI service. -type CollaborationAPIServer interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(context.Context, *CreateShareRequest) (*CreateShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(context.Context, *RemoveShareRequest) (*RemoveShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(context.Context, *GetShareRequest) (*GetShareResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(context.Context, *ListSharesRequest) (*ListSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(context.Context, *UpdateShareRequest) (*UpdateShareResponse, error) - // List all shares the authenticated principal has received. - ListReceivedShares(context.Context, *ListReceivedSharesRequest) (*ListReceivedSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest) (*UpdateReceivedShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(context.Context, *GetReceivedShareRequest) (*GetReceivedShareResponse, error) -} - -// UnimplementedCollaborationAPIServer can be embedded to have forward compatible implementations. -type UnimplementedCollaborationAPIServer struct { -} - -func (*UnimplementedCollaborationAPIServer) CreateShare(context.Context, *CreateShareRequest) (*CreateShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateShare not implemented") -} -func (*UnimplementedCollaborationAPIServer) RemoveShare(context.Context, *RemoveShareRequest) (*RemoveShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveShare not implemented") -} -func (*UnimplementedCollaborationAPIServer) GetShare(context.Context, *GetShareRequest) (*GetShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetShare not implemented") -} -func (*UnimplementedCollaborationAPIServer) ListShares(context.Context, *ListSharesRequest) (*ListSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListShares not implemented") -} -func (*UnimplementedCollaborationAPIServer) UpdateShare(context.Context, *UpdateShareRequest) (*UpdateShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateShare not implemented") -} -func (*UnimplementedCollaborationAPIServer) ListReceivedShares(context.Context, *ListReceivedSharesRequest) (*ListReceivedSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListReceivedShares not implemented") -} -func (*UnimplementedCollaborationAPIServer) UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest) (*UpdateReceivedShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedShare not implemented") -} -func (*UnimplementedCollaborationAPIServer) GetReceivedShare(context.Context, *GetReceivedShareRequest) (*GetReceivedShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReceivedShare not implemented") -} - -func RegisterCollaborationAPIServer(s *grpc.Server, srv CollaborationAPIServer) { - s.RegisterService(&_CollaborationAPI_serviceDesc, srv) -} - -func _CollaborationAPI_CreateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).CreateShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/CreateShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).CreateShare(ctx, req.(*CreateShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CollaborationAPI_RemoveShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).RemoveShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/RemoveShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).RemoveShare(ctx, req.(*RemoveShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CollaborationAPI_GetShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).GetShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).GetShare(ctx, req.(*GetShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CollaborationAPI_ListShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).ListShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).ListShares(ctx, req.(*ListSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CollaborationAPI_UpdateShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).UpdateShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).UpdateShare(ctx, req.(*UpdateShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CollaborationAPI_ListReceivedShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListReceivedSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).ListReceivedShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).ListReceivedShares(ctx, req.(*ListReceivedSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CollaborationAPI_UpdateReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateReceivedShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).UpdateReceivedShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/UpdateReceivedShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).UpdateReceivedShare(ctx, req.(*UpdateReceivedShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CollaborationAPI_GetReceivedShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetReceivedShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CollaborationAPIServer).GetReceivedShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.collaboration.v1beta1.CollaborationAPI/GetReceivedShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CollaborationAPIServer).GetReceivedShare(ctx, req.(*GetReceivedShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _CollaborationAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.sharing.collaboration.v1beta1.CollaborationAPI", - HandlerType: (*CollaborationAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateShare", - Handler: _CollaborationAPI_CreateShare_Handler, - }, - { - MethodName: "RemoveShare", - Handler: _CollaborationAPI_RemoveShare_Handler, - }, - { - MethodName: "GetShare", - Handler: _CollaborationAPI_GetShare_Handler, - }, - { - MethodName: "ListShares", - Handler: _CollaborationAPI_ListShares_Handler, - }, - { - MethodName: "UpdateShare", - Handler: _CollaborationAPI_UpdateShare_Handler, - }, - { - MethodName: "ListReceivedShares", - Handler: _CollaborationAPI_ListReceivedShares_Handler, - }, - { - MethodName: "UpdateReceivedShare", - Handler: _CollaborationAPI_UpdateReceivedShare_Handler, - }, - { - MethodName: "GetReceivedShare", - Handler: _CollaborationAPI_GetReceivedShare_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/sharing/collaboration/v1beta1/collaboration_api.proto", -} diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go deleted file mode 100644 index 7401d726..00000000 --- a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/collaboration_api.pb.micro.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/sharing/collaboration/v1beta1/collaboration_api.proto - -package collaborationv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for CollaborationAPI service - -func NewCollaborationAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for CollaborationAPI service - -type CollaborationAPIService interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(ctx context.Context, in *CreateShareRequest, opts ...client.CallOption) (*CreateShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...client.CallOption) (*RemoveShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(ctx context.Context, in *GetShareRequest, opts ...client.CallOption) (*GetShareResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(ctx context.Context, in *ListSharesRequest, opts ...client.CallOption) (*ListSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...client.CallOption) (*UpdateShareResponse, error) - // List all shares the authenticated principal has received. - ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...client.CallOption) (*ListReceivedSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...client.CallOption) (*UpdateReceivedShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...client.CallOption) (*GetReceivedShareResponse, error) -} - -type collaborationAPIService struct { - c client.Client - name string -} - -func NewCollaborationAPIService(name string, c client.Client) CollaborationAPIService { - return &collaborationAPIService{ - c: c, - name: name, - } -} - -func (c *collaborationAPIService) CreateShare(ctx context.Context, in *CreateShareRequest, opts ...client.CallOption) (*CreateShareResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.CreateShare", in) - out := new(CreateShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIService) RemoveShare(ctx context.Context, in *RemoveShareRequest, opts ...client.CallOption) (*RemoveShareResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.RemoveShare", in) - out := new(RemoveShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIService) GetShare(ctx context.Context, in *GetShareRequest, opts ...client.CallOption) (*GetShareResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.GetShare", in) - out := new(GetShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIService) ListShares(ctx context.Context, in *ListSharesRequest, opts ...client.CallOption) (*ListSharesResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.ListShares", in) - out := new(ListSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIService) UpdateShare(ctx context.Context, in *UpdateShareRequest, opts ...client.CallOption) (*UpdateShareResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.UpdateShare", in) - out := new(UpdateShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIService) ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, opts ...client.CallOption) (*ListReceivedSharesResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.ListReceivedShares", in) - out := new(ListReceivedSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIService) UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, opts ...client.CallOption) (*UpdateReceivedShareResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.UpdateReceivedShare", in) - out := new(UpdateReceivedShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *collaborationAPIService) GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, opts ...client.CallOption) (*GetReceivedShareResponse, error) { - req := c.c.NewRequest(c.name, "CollaborationAPI.GetReceivedShare", in) - out := new(GetReceivedShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for CollaborationAPI service - -type CollaborationAPIHandler interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateShare(context.Context, *CreateShareRequest, *CreateShareResponse) error - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveShare(context.Context, *RemoveShareRequest, *RemoveShareResponse) error - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetShare(context.Context, *GetShareRequest, *GetShareResponse) error - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListShares(context.Context, *ListSharesRequest, *ListSharesResponse) error - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateShare(context.Context, *UpdateShareRequest, *UpdateShareResponse) error - // List all shares the authenticated principal has received. - ListReceivedShares(context.Context, *ListReceivedSharesRequest, *ListReceivedSharesResponse) error - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedShare(context.Context, *UpdateReceivedShareRequest, *UpdateReceivedShareResponse) error - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedShare(context.Context, *GetReceivedShareRequest, *GetReceivedShareResponse) error -} - -func RegisterCollaborationAPIHandler(s server.Server, hdlr CollaborationAPIHandler, opts ...server.HandlerOption) error { - type collaborationAPI interface { - CreateShare(ctx context.Context, in *CreateShareRequest, out *CreateShareResponse) error - RemoveShare(ctx context.Context, in *RemoveShareRequest, out *RemoveShareResponse) error - GetShare(ctx context.Context, in *GetShareRequest, out *GetShareResponse) error - ListShares(ctx context.Context, in *ListSharesRequest, out *ListSharesResponse) error - UpdateShare(ctx context.Context, in *UpdateShareRequest, out *UpdateShareResponse) error - ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, out *ListReceivedSharesResponse) error - UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, out *UpdateReceivedShareResponse) error - GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, out *GetReceivedShareResponse) error - } - type CollaborationAPI struct { - collaborationAPI - } - h := &collaborationAPIHandler{hdlr} - return s.Handle(s.NewHandler(&CollaborationAPI{h}, opts...)) -} - -type collaborationAPIHandler struct { - CollaborationAPIHandler -} - -func (h *collaborationAPIHandler) CreateShare(ctx context.Context, in *CreateShareRequest, out *CreateShareResponse) error { - return h.CollaborationAPIHandler.CreateShare(ctx, in, out) -} - -func (h *collaborationAPIHandler) RemoveShare(ctx context.Context, in *RemoveShareRequest, out *RemoveShareResponse) error { - return h.CollaborationAPIHandler.RemoveShare(ctx, in, out) -} - -func (h *collaborationAPIHandler) GetShare(ctx context.Context, in *GetShareRequest, out *GetShareResponse) error { - return h.CollaborationAPIHandler.GetShare(ctx, in, out) -} - -func (h *collaborationAPIHandler) ListShares(ctx context.Context, in *ListSharesRequest, out *ListSharesResponse) error { - return h.CollaborationAPIHandler.ListShares(ctx, in, out) -} - -func (h *collaborationAPIHandler) UpdateShare(ctx context.Context, in *UpdateShareRequest, out *UpdateShareResponse) error { - return h.CollaborationAPIHandler.UpdateShare(ctx, in, out) -} - -func (h *collaborationAPIHandler) ListReceivedShares(ctx context.Context, in *ListReceivedSharesRequest, out *ListReceivedSharesResponse) error { - return h.CollaborationAPIHandler.ListReceivedShares(ctx, in, out) -} - -func (h *collaborationAPIHandler) UpdateReceivedShare(ctx context.Context, in *UpdateReceivedShareRequest, out *UpdateReceivedShareResponse) error { - return h.CollaborationAPIHandler.UpdateReceivedShare(ctx, in, out) -} - -func (h *collaborationAPIHandler) GetReceivedShare(ctx context.Context, in *GetReceivedShareRequest, out *GetReceivedShareResponse) error { - return h.CollaborationAPIHandler.GetReceivedShare(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go deleted file mode 100644 index dabd10fb..00000000 --- a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.go +++ /dev/null @@ -1,920 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/sharing/collaboration/v1beta1/resources.proto - -package collaborationv1beta1 - -import ( - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The state of the share. -type ShareState int32 - -const ( - // The share is no longer valid, for example, the share expired. - ShareState_SHARE_STATE_INVALID ShareState = 0 - // New shares MUST be created in the SHARE_STATE_PENDING state. - // This state means the share is pending to be accepted or rejected - // by the recipient of the share. - ShareState_SHARE_STATE_PENDING ShareState = 1 - // The recipient of the share has accepted the share. - ShareState_SHARE_STATE_ACCEPTED ShareState = 2 - // The recipient of the share has rejected the share. - // Do not means the share is removed, the recipient MAY - // change the state to accepted or pending. - ShareState_SHARE_STATE_REJECTED ShareState = 3 -) - -// Enum value maps for ShareState. -var ( - ShareState_name = map[int32]string{ - 0: "SHARE_STATE_INVALID", - 1: "SHARE_STATE_PENDING", - 2: "SHARE_STATE_ACCEPTED", - 3: "SHARE_STATE_REJECTED", - } - ShareState_value = map[string]int32{ - "SHARE_STATE_INVALID": 0, - "SHARE_STATE_PENDING": 1, - "SHARE_STATE_ACCEPTED": 2, - "SHARE_STATE_REJECTED": 3, - } -) - -func (x ShareState) Enum() *ShareState { - p := new(ShareState) - *p = x - return p -} - -func (x ShareState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ShareState) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes[0].Descriptor() -} - -func (ShareState) Type() protoreflect.EnumType { - return &file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes[0] -} - -func (x ShareState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ShareState.Descriptor instead. -func (ShareState) EnumDescriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -// Shares are relationships between a resource owner -// (usually the authenticated user) who grants permissions to a recipient (grantee) -// on a specified resource (resource_id). UserShares represents both user and groups. -type Share struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // Opaque unique identifier of the share. - Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // REQUIRED. - // Unique identifier of the shared resource. - ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - // REQUIRED. - // Permissions for the grantee to use - // the resource. - Permissions *SharePermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"` - // REQUIRED. - // The receiver of the share, like a user, group ... - Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` - // REQUIRED. - // Uniquely identifies the owner of the share - // (the resource owner at the time of creating the share). - // In case the ownership of the underlying resource changes - // the share owner field MAY change to reflect the change of ownsership. - Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` - // REQUIRED. - // Uniquely identifies a principal who initiates the share creation. - // A creator can create shares on behalf of the owner (because of re-sharing, - // because belonging to special groups, ...). - // Creator and owner often result in being the same principal. - Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` - // REQUIRED. - // Creation time of the share. - Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"` - // REQUIRED. - // Last modification time of the share. - Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"` -} - -func (x *Share) Reset() { - *x = Share{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Share) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Share) ProtoMessage() {} - -func (x *Share) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 Share.ProtoReflect.Descriptor instead. -func (*Share) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *Share) GetId() *ShareId { - if x != nil { - return x.Id - } - return nil -} - -func (x *Share) GetResourceId() *v1beta1.ResourceId { - if x != nil { - return x.ResourceId - } - return nil -} - -func (x *Share) GetPermissions() *SharePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -func (x *Share) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -func (x *Share) GetOwner() *v1beta11.UserId { - if x != nil { - return x.Owner - } - return nil -} - -func (x *Share) GetCreator() *v1beta11.UserId { - if x != nil { - return x.Creator - } - return nil -} - -func (x *Share) GetCtime() *v1beta12.Timestamp { - if x != nil { - return x.Ctime - } - return nil -} - -func (x *Share) GetMtime() *v1beta12.Timestamp { - if x != nil { - return x.Mtime - } - return nil -} - -// The permissions for a share. -type SharePermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` // TODO(labkode): additional permissions for shares like re-sharing -} - -func (x *SharePermissions) Reset() { - *x = SharePermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SharePermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SharePermissions) ProtoMessage() {} - -func (x *SharePermissions) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 SharePermissions.ProtoReflect.Descriptor instead. -func (*SharePermissions) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -// A received share is the share that a grantee will receive. -// It expands the original share by adding state to the share, -// a display name from the perspective of the grantee and a -// resource mount path in case the share will be mounted -// in a path in a storage provider. -type ReceivedShare struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"` - // REQUIRED. - // The state of the share. - State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.collaboration.v1beta1.ShareState" json:"state,omitempty"` -} - -func (x *ReceivedShare) Reset() { - *x = ReceivedShare{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReceivedShare) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReceivedShare) ProtoMessage() {} - -func (x *ReceivedShare) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ReceivedShare.ProtoReflect.Descriptor instead. -func (*ReceivedShare) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{2} -} - -func (x *ReceivedShare) GetShare() *Share { - if x != nil { - return x.Share - } - return nil -} - -func (x *ReceivedShare) GetState() ShareState { - if x != nil { - return x.State - } - return ShareState_SHARE_STATE_INVALID -} - -// Uniquely identifies a share in the share provider. -// A share MUST be uniquely identify by four (4) elements: -// 1) The share provider id -// 2) The owner of the share -// 3) The resource id -// 4) The grantee for the share -// This 4-tuple MUST be unique. -// For example, owner Alice shares the resource /home/docs with id -// home:1234 to an user named Bob. The 4-tuple will consist of -// 1) The share provider id = "user" -// 2) The owner of the share = "Alice" -// 3) The resource id = "home:1234" -// 4) The grantee for the share = Grantee("type" = "user", "" => "Bob") -type ShareKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Owner *v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - // REQUIRED. - ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - // REQUIRED. - Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` -} - -func (x *ShareKey) Reset() { - *x = ShareKey{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareKey) ProtoMessage() {} - -func (x *ShareKey) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareKey.ProtoReflect.Descriptor instead. -func (*ShareKey) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{3} -} - -func (x *ShareKey) GetOwner() *v1beta11.UserId { - if x != nil { - return x.Owner - } - return nil -} - -func (x *ShareKey) GetResourceId() *v1beta1.ResourceId { - if x != nil { - return x.ResourceId - } - return nil -} - -func (x *ShareKey) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -// A share id identifies uniquely a // share in the share provider namespace. -// A ShareId MUST be unique inside the share provider. -type ShareId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The internal id used by service implementor to - // uniquely Collaboration the share in the internal - // implementation of the service. - OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` -} - -func (x *ShareId) Reset() { - *x = ShareId{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareId) ProtoMessage() {} - -func (x *ShareId) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareId.ProtoReflect.Descriptor instead. -func (*ShareId) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{4} -} - -func (x *ShareId) GetOpaqueId() string { - if x != nil { - return x.OpaqueId - } - return "" -} - -// The mechanism to identify a share -// in the share provider namespace. -type ShareReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // One of the specifications MUST be specified. - // - // Types that are assignable to Spec: - // *ShareReference_Id - // *ShareReference_Key - Spec isShareReference_Spec `protobuf_oneof:"spec"` -} - -func (x *ShareReference) Reset() { - *x = ShareReference{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareReference) ProtoMessage() {} - -func (x *ShareReference) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareReference.ProtoReflect.Descriptor instead. -func (*ShareReference) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{5} -} - -func (m *ShareReference) GetSpec() isShareReference_Spec { - if m != nil { - return m.Spec - } - return nil -} - -func (x *ShareReference) GetId() *ShareId { - if x, ok := x.GetSpec().(*ShareReference_Id); ok { - return x.Id - } - return nil -} - -func (x *ShareReference) GetKey() *ShareKey { - if x, ok := x.GetSpec().(*ShareReference_Key); ok { - return x.Key - } - return nil -} - -type isShareReference_Spec interface { - isShareReference_Spec() -} - -type ShareReference_Id struct { - // The id of the share. - Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` -} - -type ShareReference_Key struct { - // The combination of fields that - // make the share unique. - Key *ShareKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"` -} - -func (*ShareReference_Id) isShareReference_Spec() {} - -func (*ShareReference_Key) isShareReference_Spec() {} - -// A share grant specifies the share permissions -// for a grantee. -type ShareGrant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The grantee of the grant. - Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` - // REQUIRED. - // The share permissions for the grant. - Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *ShareGrant) Reset() { - *x = ShareGrant{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareGrant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareGrant) ProtoMessage() {} - -func (x *ShareGrant) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_collaboration_v1beta1_resources_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 ShareGrant.ProtoReflect.Descriptor instead. -func (*ShareGrant) Descriptor() ([]byte, []int) { - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP(), []int{6} -} - -func (x *ShareGrant) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -func (x *ShareGrant) GetPermissions() *SharePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -var File_cs3_sharing_collaboration_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x31, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, - 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, - 0x04, 0x0a, 0x05, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, - 0x55, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, - 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x32, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, - 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x67, 0x0a, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x70, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x94, - 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, - 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x08, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4b, - 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0b, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x22, 0x26, 0x0a, 0x07, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, - 0x97, 0x01, 0x0a, 0x0e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x3f, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, - 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xa4, 0x01, 0x0a, 0x0a, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, - 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x70, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, - 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2a, 0x72, 0x0a, 0x0a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, - 0x0a, 0x13, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, - 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x48, 0x41, 0x52, 0x45, - 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, - 0x12, 0x18, 0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x48, - 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, - 0x45, 0x44, 0x10, 0x03, 0x42, 0x9d, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x14, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x43, 0xaa, 0x02, 0x21, 0x43, - 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x61, - 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x21, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, - 0x6f, 0x6c, 0x6c, 0x61, 0x62, 0x6f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x42, - 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData = file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc -) - -func file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDescData -} - -var file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_cs3_sharing_collaboration_v1beta1_resources_proto_goTypes = []interface{}{ - (ShareState)(0), // 0: cs3.sharing.collaboration.v1beta1.ShareState - (*Share)(nil), // 1: cs3.sharing.collaboration.v1beta1.Share - (*SharePermissions)(nil), // 2: cs3.sharing.collaboration.v1beta1.SharePermissions - (*ReceivedShare)(nil), // 3: cs3.sharing.collaboration.v1beta1.ReceivedShare - (*ShareKey)(nil), // 4: cs3.sharing.collaboration.v1beta1.ShareKey - (*ShareId)(nil), // 5: cs3.sharing.collaboration.v1beta1.ShareId - (*ShareReference)(nil), // 6: cs3.sharing.collaboration.v1beta1.ShareReference - (*ShareGrant)(nil), // 7: cs3.sharing.collaboration.v1beta1.ShareGrant - (*v1beta1.ResourceId)(nil), // 8: cs3.storage.provider.v1beta1.ResourceId - (*v1beta1.Grantee)(nil), // 9: cs3.storage.provider.v1beta1.Grantee - (*v1beta11.UserId)(nil), // 10: cs3.identity.user.v1beta1.UserId - (*v1beta12.Timestamp)(nil), // 11: cs3.types.v1beta1.Timestamp - (*v1beta1.ResourcePermissions)(nil), // 12: cs3.storage.provider.v1beta1.ResourcePermissions -} -var file_cs3_sharing_collaboration_v1beta1_resources_proto_depIdxs = []int32{ - 5, // 0: cs3.sharing.collaboration.v1beta1.Share.id:type_name -> cs3.sharing.collaboration.v1beta1.ShareId - 8, // 1: cs3.sharing.collaboration.v1beta1.Share.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 2, // 2: cs3.sharing.collaboration.v1beta1.Share.permissions:type_name -> cs3.sharing.collaboration.v1beta1.SharePermissions - 9, // 3: cs3.sharing.collaboration.v1beta1.Share.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 10, // 4: cs3.sharing.collaboration.v1beta1.Share.owner:type_name -> cs3.identity.user.v1beta1.UserId - 10, // 5: cs3.sharing.collaboration.v1beta1.Share.creator:type_name -> cs3.identity.user.v1beta1.UserId - 11, // 6: cs3.sharing.collaboration.v1beta1.Share.ctime:type_name -> cs3.types.v1beta1.Timestamp - 11, // 7: cs3.sharing.collaboration.v1beta1.Share.mtime:type_name -> cs3.types.v1beta1.Timestamp - 12, // 8: cs3.sharing.collaboration.v1beta1.SharePermissions.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions - 1, // 9: cs3.sharing.collaboration.v1beta1.ReceivedShare.share:type_name -> cs3.sharing.collaboration.v1beta1.Share - 0, // 10: cs3.sharing.collaboration.v1beta1.ReceivedShare.state:type_name -> cs3.sharing.collaboration.v1beta1.ShareState - 10, // 11: cs3.sharing.collaboration.v1beta1.ShareKey.owner:type_name -> cs3.identity.user.v1beta1.UserId - 8, // 12: cs3.sharing.collaboration.v1beta1.ShareKey.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 9, // 13: cs3.sharing.collaboration.v1beta1.ShareKey.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 5, // 14: cs3.sharing.collaboration.v1beta1.ShareReference.id:type_name -> cs3.sharing.collaboration.v1beta1.ShareId - 4, // 15: cs3.sharing.collaboration.v1beta1.ShareReference.key:type_name -> cs3.sharing.collaboration.v1beta1.ShareKey - 9, // 16: cs3.sharing.collaboration.v1beta1.ShareGrant.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 2, // 17: cs3.sharing.collaboration.v1beta1.ShareGrant.permissions:type_name -> cs3.sharing.collaboration.v1beta1.SharePermissions - 18, // [18:18] is the sub-list for method output_type - 18, // [18:18] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_cs3_sharing_collaboration_v1beta1_resources_proto_init() } -func file_cs3_sharing_collaboration_v1beta1_resources_proto_init() { - if File_cs3_sharing_collaboration_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Share); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SharePermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceivedShare); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareGrant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*ShareReference_Id)(nil), - (*ShareReference_Key)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc, - NumEnums: 1, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_sharing_collaboration_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_sharing_collaboration_v1beta1_resources_proto_depIdxs, - EnumInfos: file_cs3_sharing_collaboration_v1beta1_resources_proto_enumTypes, - MessageInfos: file_cs3_sharing_collaboration_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_sharing_collaboration_v1beta1_resources_proto = out.File - file_cs3_sharing_collaboration_v1beta1_resources_proto_rawDesc = nil - file_cs3_sharing_collaboration_v1beta1_resources_proto_goTypes = nil - file_cs3_sharing_collaboration_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go deleted file mode 100644 index 5ff51693..00000000 --- a/build/go-cs3apis/cs3/sharing/collaboration/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/sharing/collaboration/v1beta1/resources.proto - -package collaborationv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go deleted file mode 100644 index 5013d16c..00000000 --- a/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.go +++ /dev/null @@ -1,1963 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/sharing/link/v1beta1/link_api.proto - -package linkv1beta1 - -import ( - context "context" - v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// REQUIRED. -type UpdatePublicShareRequest_Update_Type int32 - -const ( - UpdatePublicShareRequest_Update_TYPE_INVALID UpdatePublicShareRequest_Update_Type = 0 - UpdatePublicShareRequest_Update_TYPE_PERMISSIONS UpdatePublicShareRequest_Update_Type = 1 - UpdatePublicShareRequest_Update_TYPE_PASSWORD UpdatePublicShareRequest_Update_Type = 2 - UpdatePublicShareRequest_Update_TYPE_EXPIRATION UpdatePublicShareRequest_Update_Type = 3 - UpdatePublicShareRequest_Update_TYPE_DISPLAYNAME UpdatePublicShareRequest_Update_Type = 4 -) - -// Enum value maps for UpdatePublicShareRequest_Update_Type. -var ( - UpdatePublicShareRequest_Update_Type_name = map[int32]string{ - 0: "TYPE_INVALID", - 1: "TYPE_PERMISSIONS", - 2: "TYPE_PASSWORD", - 3: "TYPE_EXPIRATION", - 4: "TYPE_DISPLAYNAME", - } - UpdatePublicShareRequest_Update_Type_value = map[string]int32{ - "TYPE_INVALID": 0, - "TYPE_PERMISSIONS": 1, - "TYPE_PASSWORD": 2, - "TYPE_EXPIRATION": 3, - "TYPE_DISPLAYNAME": 4, - } -) - -func (x UpdatePublicShareRequest_Update_Type) Enum() *UpdatePublicShareRequest_Update_Type { - p := new(UpdatePublicShareRequest_Update_Type) - *p = x - return p -} - -func (x UpdatePublicShareRequest_Update_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UpdatePublicShareRequest_Update_Type) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[0].Descriptor() -} - -func (UpdatePublicShareRequest_Update_Type) Type() protoreflect.EnumType { - return &file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[0] -} - -func (x UpdatePublicShareRequest_Update_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UpdatePublicShareRequest_Update_Type.Descriptor instead. -func (UpdatePublicShareRequest_Update_Type) EnumDescriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{2, 0, 0} -} - -// REQUIRED. -type ListPublicSharesRequest_Filter_Type int32 - -const ( - ListPublicSharesRequest_Filter_TYPE_INVALID ListPublicSharesRequest_Filter_Type = 0 - ListPublicSharesRequest_Filter_TYPE_RESOURCE_ID ListPublicSharesRequest_Filter_Type = 1 - ListPublicSharesRequest_Filter_TYPE_OWNER ListPublicSharesRequest_Filter_Type = 2 - ListPublicSharesRequest_Filter_TYPE_CREATOR ListPublicSharesRequest_Filter_Type = 3 -) - -// Enum value maps for ListPublicSharesRequest_Filter_Type. -var ( - ListPublicSharesRequest_Filter_Type_name = map[int32]string{ - 0: "TYPE_INVALID", - 1: "TYPE_RESOURCE_ID", - 2: "TYPE_OWNER", - 3: "TYPE_CREATOR", - } - ListPublicSharesRequest_Filter_Type_value = map[string]int32{ - "TYPE_INVALID": 0, - "TYPE_RESOURCE_ID": 1, - "TYPE_OWNER": 2, - "TYPE_CREATOR": 3, - } -) - -func (x ListPublicSharesRequest_Filter_Type) Enum() *ListPublicSharesRequest_Filter_Type { - p := new(ListPublicSharesRequest_Filter_Type) - *p = x - return p -} - -func (x ListPublicSharesRequest_Filter_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ListPublicSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[1].Descriptor() -} - -func (ListPublicSharesRequest_Filter_Type) Type() protoreflect.EnumType { - return &file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes[1] -} - -func (x ListPublicSharesRequest_Filter_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ListPublicSharesRequest_Filter_Type.Descriptor instead. -func (ListPublicSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{4, 0, 0} -} - -type CreatePublicShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The unique identifier for the shared storage resource. - ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` - // REQUIRED. - // The restrictions to apply to the share. - Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` -} - -func (x *CreatePublicShareRequest) Reset() { - *x = CreatePublicShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreatePublicShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreatePublicShareRequest) ProtoMessage() {} - -func (x *CreatePublicShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 CreatePublicShareRequest.ProtoReflect.Descriptor instead. -func (*CreatePublicShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{0} -} - -func (x *CreatePublicShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreatePublicShareRequest) GetResourceInfo() *v1beta11.ResourceInfo { - if x != nil { - return x.ResourceInfo - } - return nil -} - -func (x *CreatePublicShareRequest) GetGrant() *Grant { - if x != nil { - return x.Grant - } - return nil -} - -type CreatePublicShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The created share. - Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *CreatePublicShareResponse) Reset() { - *x = CreatePublicShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreatePublicShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreatePublicShareResponse) ProtoMessage() {} - -func (x *CreatePublicShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 CreatePublicShareResponse.ProtoReflect.Descriptor instead. -func (*CreatePublicShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{1} -} - -func (x *CreatePublicShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreatePublicShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreatePublicShareResponse) GetShare() *PublicShare { - if x != nil { - return x.Share - } - return nil -} - -type UpdatePublicShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. - // REQUIRED. - // The reference to the public share. - Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // Available fields to update. - Update *UpdatePublicShareRequest_Update `protobuf:"bytes,3,opt,name=update,proto3" json:"update,omitempty"` -} - -func (x *UpdatePublicShareRequest) Reset() { - *x = UpdatePublicShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdatePublicShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdatePublicShareRequest) ProtoMessage() {} - -func (x *UpdatePublicShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 UpdatePublicShareRequest.ProtoReflect.Descriptor instead. -func (*UpdatePublicShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{2} -} - -func (x *UpdatePublicShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UpdatePublicShareRequest) GetRef() *PublicShareReference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *UpdatePublicShareRequest) GetUpdate() *UpdatePublicShareRequest_Update { - if x != nil { - return x.Update - } - return nil -} - -type UpdatePublicShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The updated public share. - Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *UpdatePublicShareResponse) Reset() { - *x = UpdatePublicShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdatePublicShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdatePublicShareResponse) ProtoMessage() {} - -func (x *UpdatePublicShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 UpdatePublicShareResponse.ProtoReflect.Descriptor instead. -func (*UpdatePublicShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{3} -} - -func (x *UpdatePublicShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *UpdatePublicShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UpdatePublicShareResponse) GetShare() *PublicShare { - if x != nil { - return x.Share - } - return nil -} - -type ListPublicSharesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // OPTIONAL. - // The list of filters to apply if any. - Filters []*ListPublicSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` -} - -func (x *ListPublicSharesRequest) Reset() { - *x = ListPublicSharesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListPublicSharesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListPublicSharesRequest) ProtoMessage() {} - -func (x *ListPublicSharesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 ListPublicSharesRequest.ProtoReflect.Descriptor instead. -func (*ListPublicSharesRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{4} -} - -func (x *ListPublicSharesRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListPublicSharesRequest) GetFilters() []*ListPublicSharesRequest_Filter { - if x != nil { - return x.Filters - } - return nil -} - -type ListPublicSharesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of shares. - Share []*PublicShare `protobuf:"bytes,3,rep,name=share,proto3" json:"share,omitempty"` -} - -func (x *ListPublicSharesResponse) Reset() { - *x = ListPublicSharesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListPublicSharesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListPublicSharesResponse) ProtoMessage() {} - -func (x *ListPublicSharesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 ListPublicSharesResponse.ProtoReflect.Descriptor instead. -func (*ListPublicSharesResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{5} -} - -func (x *ListPublicSharesResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListPublicSharesResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListPublicSharesResponse) GetShare() []*PublicShare { - if x != nil { - return x.Share - } - return nil -} - -type RemovePublicShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *RemovePublicShareRequest) Reset() { - *x = RemovePublicShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemovePublicShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemovePublicShareRequest) ProtoMessage() {} - -func (x *RemovePublicShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 RemovePublicShareRequest.ProtoReflect.Descriptor instead. -func (*RemovePublicShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{6} -} - -func (x *RemovePublicShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *RemovePublicShareRequest) GetRef() *PublicShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type RemovePublicShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *RemovePublicShareResponse) Reset() { - *x = RemovePublicShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemovePublicShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemovePublicShareResponse) ProtoMessage() {} - -func (x *RemovePublicShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 RemovePublicShareResponse.ProtoReflect.Descriptor instead. -func (*RemovePublicShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{7} -} - -func (x *RemovePublicShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *RemovePublicShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetPublicShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *GetPublicShareRequest) Reset() { - *x = GetPublicShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetPublicShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetPublicShareRequest) ProtoMessage() {} - -func (x *GetPublicShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_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 GetPublicShareRequest.ProtoReflect.Descriptor instead. -func (*GetPublicShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{8} -} - -func (x *GetPublicShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetPublicShareRequest) GetRef() *PublicShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type GetPublicShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The share. - Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *GetPublicShareResponse) Reset() { - *x = GetPublicShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetPublicShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetPublicShareResponse) ProtoMessage() {} - -func (x *GetPublicShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[9] - 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 GetPublicShareResponse.ProtoReflect.Descriptor instead. -func (*GetPublicShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{9} -} - -func (x *GetPublicShareResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetPublicShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetPublicShareResponse) GetShare() *PublicShare { - if x != nil { - return x.Share - } - return nil -} - -type GetPublicShareByTokenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The unlisted token to identify the public share. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // OPTIONAL. - // The public link can be password protected. - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` -} - -func (x *GetPublicShareByTokenRequest) Reset() { - *x = GetPublicShareByTokenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetPublicShareByTokenRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetPublicShareByTokenRequest) ProtoMessage() {} - -func (x *GetPublicShareByTokenRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[10] - 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 GetPublicShareByTokenRequest.ProtoReflect.Descriptor instead. -func (*GetPublicShareByTokenRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{10} -} - -func (x *GetPublicShareByTokenRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetPublicShareByTokenRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *GetPublicShareByTokenRequest) GetPassword() string { - if x != nil { - return x.Password - } - return "" -} - -type GetPublicShareByTokenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The share. - Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *GetPublicShareByTokenResponse) Reset() { - *x = GetPublicShareByTokenResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetPublicShareByTokenResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetPublicShareByTokenResponse) ProtoMessage() {} - -func (x *GetPublicShareByTokenResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[11] - 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 GetPublicShareByTokenResponse.ProtoReflect.Descriptor instead. -func (*GetPublicShareByTokenResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{11} -} - -func (x *GetPublicShareByTokenResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetPublicShareByTokenResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetPublicShareByTokenResponse) GetShare() *PublicShare { - if x != nil { - return x.Share - } - return nil -} - -// REQUIRED. -type UpdatePublicShareRequest_Update struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // Defines the field to update. - Type UpdatePublicShareRequest_Update_Type `protobuf:"varint,3,opt,name=type,proto3,enum=cs3.sharing.link.v1beta1.UpdatePublicShareRequest_Update_Type" json:"type,omitempty"` - // REQUIRED. - // Contains the field that will be updated. - Grant *Grant `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"` - // OPTIONAL - // Defines the public link display name. - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` -} - -func (x *UpdatePublicShareRequest_Update) Reset() { - *x = UpdatePublicShareRequest_Update{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdatePublicShareRequest_Update) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdatePublicShareRequest_Update) ProtoMessage() {} - -func (x *UpdatePublicShareRequest_Update) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[12] - 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 UpdatePublicShareRequest_Update.ProtoReflect.Descriptor instead. -func (*UpdatePublicShareRequest_Update) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{2, 0} -} - -func (x *UpdatePublicShareRequest_Update) GetType() UpdatePublicShareRequest_Update_Type { - if x != nil { - return x.Type - } - return UpdatePublicShareRequest_Update_TYPE_INVALID -} - -func (x *UpdatePublicShareRequest_Update) GetGrant() *Grant { - if x != nil { - return x.Grant - } - return nil -} - -func (x *UpdatePublicShareRequest_Update) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -// REQUIRED. -// represents a filter to apply to the request. -type ListPublicSharesRequest_Filter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type ListPublicSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.link.v1beta1.ListPublicSharesRequest_Filter_Type" json:"type,omitempty"` - // Types that are assignable to Term: - // *ListPublicSharesRequest_Filter_ResourceId - // *ListPublicSharesRequest_Filter_Owner - // *ListPublicSharesRequest_Filter_Creator - Term isListPublicSharesRequest_Filter_Term `protobuf_oneof:"term"` -} - -func (x *ListPublicSharesRequest_Filter) Reset() { - *x = ListPublicSharesRequest_Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListPublicSharesRequest_Filter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListPublicSharesRequest_Filter) ProtoMessage() {} - -func (x *ListPublicSharesRequest_Filter) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13] - 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 ListPublicSharesRequest_Filter.ProtoReflect.Descriptor instead. -func (*ListPublicSharesRequest_Filter) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP(), []int{4, 0} -} - -func (x *ListPublicSharesRequest_Filter) GetType() ListPublicSharesRequest_Filter_Type { - if x != nil { - return x.Type - } - return ListPublicSharesRequest_Filter_TYPE_INVALID -} - -func (m *ListPublicSharesRequest_Filter) GetTerm() isListPublicSharesRequest_Filter_Term { - if m != nil { - return m.Term - } - return nil -} - -func (x *ListPublicSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId { - if x, ok := x.GetTerm().(*ListPublicSharesRequest_Filter_ResourceId); ok { - return x.ResourceId - } - return nil -} - -func (x *ListPublicSharesRequest_Filter) GetOwner() *v1beta13.UserId { - if x, ok := x.GetTerm().(*ListPublicSharesRequest_Filter_Owner); ok { - return x.Owner - } - return nil -} - -func (x *ListPublicSharesRequest_Filter) GetCreator() *v1beta13.UserId { - if x, ok := x.GetTerm().(*ListPublicSharesRequest_Filter_Creator); ok { - return x.Creator - } - return nil -} - -type isListPublicSharesRequest_Filter_Term interface { - isListPublicSharesRequest_Filter_Term() -} - -type ListPublicSharesRequest_Filter_ResourceId struct { - ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"` -} - -type ListPublicSharesRequest_Filter_Owner struct { - Owner *v1beta13.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"` -} - -type ListPublicSharesRequest_Filter_Creator struct { - Creator *v1beta13.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"` -} - -func (*ListPublicSharesRequest_Filter_ResourceId) isListPublicSharesRequest_Filter_Term() {} - -func (*ListPublicSharesRequest_Filter_Owner) isListPublicSharesRequest_Filter_Term() {} - -func (*ListPublicSharesRequest_Filter_Creator) isListPublicSharesRequest_Filter_Term() {} - -var File_cs3_sharing_link_v1beta1_link_api_proto protoreflect.FileDescriptor - -var file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6c, 0x69, - 0x6e, 0x6b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, - 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, - 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x01, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x35, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0xbc, 0x01, 0x0a, 0x19, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, - 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x89, 0x04, 0x0a, 0x18, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x03, 0x72, 0x65, - 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x51, 0x0a, 0x06, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, - 0xa4, 0x02, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, - 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, - 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, - 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, - 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, - 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x04, 0x22, 0xbc, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x9f, 0x04, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x12, 0x52, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, - 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0xfc, 0x02, 0x0a, 0x06, 0x46, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x48, 0x00, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x50, 0x0a, - 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, - 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x0e, 0x0a, - 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x02, 0x12, 0x10, 0x0a, - 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x03, 0x42, - 0x06, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x22, 0xbb, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7f, 0x0a, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xb9, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, - 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x1d, 0x47, 0x65, - 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x3b, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, - 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x32, 0xfe, 0x05, 0x0a, - 0x07, 0x4c, 0x69, 0x6e, 0x6b, 0x41, 0x50, 0x49, 0x12, 0x7c, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, - 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x47, 0x65, - 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x7c, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x77, 0x0a, - 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x4c, - 0x69, 0x6e, 0x6b, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0b, 0x6c, - 0x69, 0x6e, 0x6b, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x4c, - 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4c, - 0x69, 0x6e, 0x6b, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, 0x43, 0x73, - 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4c, 0x69, 0x6e, 0x6b, 0x5c, 0x56, - 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_sharing_link_v1beta1_link_api_proto_rawDescOnce sync.Once - file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData = file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc -) - -func file_cs3_sharing_link_v1beta1_link_api_proto_rawDescGZIP() []byte { - file_cs3_sharing_link_v1beta1_link_api_proto_rawDescOnce.Do(func() { - file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData) - }) - return file_cs3_sharing_link_v1beta1_link_api_proto_rawDescData -} - -var file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_cs3_sharing_link_v1beta1_link_api_proto_goTypes = []interface{}{ - (UpdatePublicShareRequest_Update_Type)(0), // 0: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.Type - (ListPublicSharesRequest_Filter_Type)(0), // 1: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.Type - (*CreatePublicShareRequest)(nil), // 2: cs3.sharing.link.v1beta1.CreatePublicShareRequest - (*CreatePublicShareResponse)(nil), // 3: cs3.sharing.link.v1beta1.CreatePublicShareResponse - (*UpdatePublicShareRequest)(nil), // 4: cs3.sharing.link.v1beta1.UpdatePublicShareRequest - (*UpdatePublicShareResponse)(nil), // 5: cs3.sharing.link.v1beta1.UpdatePublicShareResponse - (*ListPublicSharesRequest)(nil), // 6: cs3.sharing.link.v1beta1.ListPublicSharesRequest - (*ListPublicSharesResponse)(nil), // 7: cs3.sharing.link.v1beta1.ListPublicSharesResponse - (*RemovePublicShareRequest)(nil), // 8: cs3.sharing.link.v1beta1.RemovePublicShareRequest - (*RemovePublicShareResponse)(nil), // 9: cs3.sharing.link.v1beta1.RemovePublicShareResponse - (*GetPublicShareRequest)(nil), // 10: cs3.sharing.link.v1beta1.GetPublicShareRequest - (*GetPublicShareResponse)(nil), // 11: cs3.sharing.link.v1beta1.GetPublicShareResponse - (*GetPublicShareByTokenRequest)(nil), // 12: cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest - (*GetPublicShareByTokenResponse)(nil), // 13: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse - (*UpdatePublicShareRequest_Update)(nil), // 14: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update - (*ListPublicSharesRequest_Filter)(nil), // 15: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter - (*v1beta1.Opaque)(nil), // 16: cs3.types.v1beta1.Opaque - (*v1beta11.ResourceInfo)(nil), // 17: cs3.storage.provider.v1beta1.ResourceInfo - (*Grant)(nil), // 18: cs3.sharing.link.v1beta1.Grant - (*v1beta12.Status)(nil), // 19: cs3.rpc.v1beta1.Status - (*PublicShare)(nil), // 20: cs3.sharing.link.v1beta1.PublicShare - (*PublicShareReference)(nil), // 21: cs3.sharing.link.v1beta1.PublicShareReference - (*v1beta11.ResourceId)(nil), // 22: cs3.storage.provider.v1beta1.ResourceId - (*v1beta13.UserId)(nil), // 23: cs3.identity.user.v1beta1.UserId -} -var file_cs3_sharing_link_v1beta1_link_api_proto_depIdxs = []int32{ - 16, // 0: cs3.sharing.link.v1beta1.CreatePublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 17, // 1: cs3.sharing.link.v1beta1.CreatePublicShareRequest.resource_info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo - 18, // 2: cs3.sharing.link.v1beta1.CreatePublicShareRequest.grant:type_name -> cs3.sharing.link.v1beta1.Grant - 19, // 3: cs3.sharing.link.v1beta1.CreatePublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 16, // 4: cs3.sharing.link.v1beta1.CreatePublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 5: cs3.sharing.link.v1beta1.CreatePublicShareResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare - 16, // 6: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 21, // 7: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.ref:type_name -> cs3.sharing.link.v1beta1.PublicShareReference - 14, // 8: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.update:type_name -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update - 19, // 9: cs3.sharing.link.v1beta1.UpdatePublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 16, // 10: cs3.sharing.link.v1beta1.UpdatePublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 11: cs3.sharing.link.v1beta1.UpdatePublicShareResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare - 16, // 12: cs3.sharing.link.v1beta1.ListPublicSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 15, // 13: cs3.sharing.link.v1beta1.ListPublicSharesRequest.filters:type_name -> cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter - 19, // 14: cs3.sharing.link.v1beta1.ListPublicSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status - 16, // 15: cs3.sharing.link.v1beta1.ListPublicSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 16: cs3.sharing.link.v1beta1.ListPublicSharesResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare - 16, // 17: cs3.sharing.link.v1beta1.RemovePublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 21, // 18: cs3.sharing.link.v1beta1.RemovePublicShareRequest.ref:type_name -> cs3.sharing.link.v1beta1.PublicShareReference - 19, // 19: cs3.sharing.link.v1beta1.RemovePublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 16, // 20: cs3.sharing.link.v1beta1.RemovePublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 16, // 21: cs3.sharing.link.v1beta1.GetPublicShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 21, // 22: cs3.sharing.link.v1beta1.GetPublicShareRequest.ref:type_name -> cs3.sharing.link.v1beta1.PublicShareReference - 19, // 23: cs3.sharing.link.v1beta1.GetPublicShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 16, // 24: cs3.sharing.link.v1beta1.GetPublicShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 25: cs3.sharing.link.v1beta1.GetPublicShareResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare - 16, // 26: cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 19, // 27: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse.status:type_name -> cs3.rpc.v1beta1.Status - 16, // 28: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 29: cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse.share:type_name -> cs3.sharing.link.v1beta1.PublicShare - 0, // 30: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.type:type_name -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.Type - 18, // 31: cs3.sharing.link.v1beta1.UpdatePublicShareRequest.Update.grant:type_name -> cs3.sharing.link.v1beta1.Grant - 1, // 32: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.type:type_name -> cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.Type - 22, // 33: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 23, // 34: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.owner:type_name -> cs3.identity.user.v1beta1.UserId - 23, // 35: cs3.sharing.link.v1beta1.ListPublicSharesRequest.Filter.creator:type_name -> cs3.identity.user.v1beta1.UserId - 2, // 36: cs3.sharing.link.v1beta1.LinkAPI.CreatePublicShare:input_type -> cs3.sharing.link.v1beta1.CreatePublicShareRequest - 8, // 37: cs3.sharing.link.v1beta1.LinkAPI.RemovePublicShare:input_type -> cs3.sharing.link.v1beta1.RemovePublicShareRequest - 10, // 38: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShare:input_type -> cs3.sharing.link.v1beta1.GetPublicShareRequest - 12, // 39: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShareByToken:input_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenRequest - 6, // 40: cs3.sharing.link.v1beta1.LinkAPI.ListPublicShares:input_type -> cs3.sharing.link.v1beta1.ListPublicSharesRequest - 4, // 41: cs3.sharing.link.v1beta1.LinkAPI.UpdatePublicShare:input_type -> cs3.sharing.link.v1beta1.UpdatePublicShareRequest - 3, // 42: cs3.sharing.link.v1beta1.LinkAPI.CreatePublicShare:output_type -> cs3.sharing.link.v1beta1.CreatePublicShareResponse - 9, // 43: cs3.sharing.link.v1beta1.LinkAPI.RemovePublicShare:output_type -> cs3.sharing.link.v1beta1.RemovePublicShareResponse - 11, // 44: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShare:output_type -> cs3.sharing.link.v1beta1.GetPublicShareResponse - 13, // 45: cs3.sharing.link.v1beta1.LinkAPI.GetPublicShareByToken:output_type -> cs3.sharing.link.v1beta1.GetPublicShareByTokenResponse - 7, // 46: cs3.sharing.link.v1beta1.LinkAPI.ListPublicShares:output_type -> cs3.sharing.link.v1beta1.ListPublicSharesResponse - 5, // 47: cs3.sharing.link.v1beta1.LinkAPI.UpdatePublicShare:output_type -> cs3.sharing.link.v1beta1.UpdatePublicShareResponse - 42, // [42:48] is the sub-list for method output_type - 36, // [36:42] is the sub-list for method input_type - 36, // [36:36] is the sub-list for extension type_name - 36, // [36:36] is the sub-list for extension extendee - 0, // [0:36] is the sub-list for field type_name -} - -func init() { file_cs3_sharing_link_v1beta1_link_api_proto_init() } -func file_cs3_sharing_link_v1beta1_link_api_proto_init() { - if File_cs3_sharing_link_v1beta1_link_api_proto != nil { - return - } - file_cs3_sharing_link_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreatePublicShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreatePublicShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePublicShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePublicShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPublicSharesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPublicSharesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemovePublicShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemovePublicShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPublicShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPublicShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPublicShareByTokenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPublicShareByTokenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePublicShareRequest_Update); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPublicSharesRequest_Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes[13].OneofWrappers = []interface{}{ - (*ListPublicSharesRequest_Filter_ResourceId)(nil), - (*ListPublicSharesRequest_Filter_Owner)(nil), - (*ListPublicSharesRequest_Filter_Creator)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc, - NumEnums: 2, - NumMessages: 14, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_sharing_link_v1beta1_link_api_proto_goTypes, - DependencyIndexes: file_cs3_sharing_link_v1beta1_link_api_proto_depIdxs, - EnumInfos: file_cs3_sharing_link_v1beta1_link_api_proto_enumTypes, - MessageInfos: file_cs3_sharing_link_v1beta1_link_api_proto_msgTypes, - }.Build() - File_cs3_sharing_link_v1beta1_link_api_proto = out.File - file_cs3_sharing_link_v1beta1_link_api_proto_rawDesc = nil - file_cs3_sharing_link_v1beta1_link_api_proto_goTypes = nil - file_cs3_sharing_link_v1beta1_link_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// LinkAPIClient is the client API for LinkAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type LinkAPIClient interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error) - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error) -} - -type linkAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewLinkAPIClient(cc grpc.ClientConnInterface) LinkAPIClient { - return &linkAPIClient{cc} -} - -func (c *linkAPIClient) CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error) { - out := new(CreatePublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/CreatePublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIClient) RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error) { - out := new(RemovePublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/RemovePublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIClient) GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error) { - out := new(GetPublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIClient) GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error) { - out := new(GetPublicShareByTokenResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShareByToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIClient) ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error) { - out := new(ListPublicSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/ListPublicShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIClient) UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error) { - out := new(UpdatePublicShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.link.v1beta1.LinkAPI/UpdatePublicShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// LinkAPIServer is the server API for LinkAPI service. -type LinkAPIServer interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error) - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error) -} - -// UnimplementedLinkAPIServer can be embedded to have forward compatible implementations. -type UnimplementedLinkAPIServer struct { -} - -func (*UnimplementedLinkAPIServer) CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePublicShare not implemented") -} -func (*UnimplementedLinkAPIServer) RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemovePublicShare not implemented") -} -func (*UnimplementedLinkAPIServer) GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPublicShare not implemented") -} -func (*UnimplementedLinkAPIServer) GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPublicShareByToken not implemented") -} -func (*UnimplementedLinkAPIServer) ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPublicShares not implemented") -} -func (*UnimplementedLinkAPIServer) UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePublicShare not implemented") -} - -func RegisterLinkAPIServer(s *grpc.Server, srv LinkAPIServer) { - s.RegisterService(&_LinkAPI_serviceDesc, srv) -} - -func _LinkAPI_CreatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreatePublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkAPIServer).CreatePublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/CreatePublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkAPIServer).CreatePublicShare(ctx, req.(*CreatePublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkAPI_RemovePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemovePublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkAPIServer).RemovePublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/RemovePublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkAPIServer).RemovePublicShare(ctx, req.(*RemovePublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkAPI_GetPublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkAPIServer).GetPublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkAPIServer).GetPublicShare(ctx, req.(*GetPublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkAPI_GetPublicShareByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPublicShareByTokenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkAPIServer).GetPublicShareByToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShareByToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkAPIServer).GetPublicShareByToken(ctx, req.(*GetPublicShareByTokenRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkAPI_ListPublicShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListPublicSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkAPIServer).ListPublicShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/ListPublicShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkAPIServer).ListPublicShares(ctx, req.(*ListPublicSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkAPI_UpdatePublicShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdatePublicShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkAPIServer).UpdatePublicShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.link.v1beta1.LinkAPI/UpdatePublicShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkAPIServer).UpdatePublicShare(ctx, req.(*UpdatePublicShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _LinkAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.sharing.link.v1beta1.LinkAPI", - HandlerType: (*LinkAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreatePublicShare", - Handler: _LinkAPI_CreatePublicShare_Handler, - }, - { - MethodName: "RemovePublicShare", - Handler: _LinkAPI_RemovePublicShare_Handler, - }, - { - MethodName: "GetPublicShare", - Handler: _LinkAPI_GetPublicShare_Handler, - }, - { - MethodName: "GetPublicShareByToken", - Handler: _LinkAPI_GetPublicShareByToken_Handler, - }, - { - MethodName: "ListPublicShares", - Handler: _LinkAPI_ListPublicShares_Handler, - }, - { - MethodName: "UpdatePublicShare", - Handler: _LinkAPI_UpdatePublicShare_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/sharing/link/v1beta1/link_api.proto", -} diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go deleted file mode 100644 index 0707aaa6..00000000 --- a/build/go-cs3apis/cs3/sharing/link/v1beta1/link_api.pb.micro.go +++ /dev/null @@ -1,214 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/sharing/link/v1beta1/link_api.proto - -package linkv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for LinkAPI service - -func NewLinkAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for LinkAPI service - -type LinkAPIService interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...client.CallOption) (*CreatePublicShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...client.CallOption) (*RemovePublicShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...client.CallOption) (*GetPublicShareResponse, error) - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...client.CallOption) (*GetPublicShareByTokenResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...client.CallOption) (*ListPublicSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...client.CallOption) (*UpdatePublicShareResponse, error) -} - -type linkAPIService struct { - c client.Client - name string -} - -func NewLinkAPIService(name string, c client.Client) LinkAPIService { - return &linkAPIService{ - c: c, - name: name, - } -} - -func (c *linkAPIService) CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...client.CallOption) (*CreatePublicShareResponse, error) { - req := c.c.NewRequest(c.name, "LinkAPI.CreatePublicShare", in) - out := new(CreatePublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIService) RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...client.CallOption) (*RemovePublicShareResponse, error) { - req := c.c.NewRequest(c.name, "LinkAPI.RemovePublicShare", in) - out := new(RemovePublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIService) GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...client.CallOption) (*GetPublicShareResponse, error) { - req := c.c.NewRequest(c.name, "LinkAPI.GetPublicShare", in) - out := new(GetPublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIService) GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...client.CallOption) (*GetPublicShareByTokenResponse, error) { - req := c.c.NewRequest(c.name, "LinkAPI.GetPublicShareByToken", in) - out := new(GetPublicShareByTokenResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIService) ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...client.CallOption) (*ListPublicSharesResponse, error) { - req := c.c.NewRequest(c.name, "LinkAPI.ListPublicShares", in) - out := new(ListPublicSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkAPIService) UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...client.CallOption) (*UpdatePublicShareResponse, error) { - req := c.c.NewRequest(c.name, "LinkAPI.UpdatePublicShare", in) - out := new(UpdatePublicShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for LinkAPI service - -type LinkAPIHandler interface { - // Creates a new share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreatePublicShare(context.Context, *CreatePublicShareRequest, *CreatePublicShareResponse) error - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemovePublicShare(context.Context, *RemovePublicShareRequest, *RemovePublicShareResponse) error - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetPublicShare(context.Context, *GetPublicShareRequest, *GetPublicShareResponse) error - // Gets share information for a single share by its unlisted token. - // MUST return CODE_NOT_FOUND if the share does not exist. - GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest, *GetPublicShareByTokenResponse) error - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListPublicShares(context.Context, *ListPublicSharesRequest, *ListPublicSharesResponse) error - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdatePublicShare(context.Context, *UpdatePublicShareRequest, *UpdatePublicShareResponse) error -} - -func RegisterLinkAPIHandler(s server.Server, hdlr LinkAPIHandler, opts ...server.HandlerOption) error { - type linkAPI interface { - CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, out *CreatePublicShareResponse) error - RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, out *RemovePublicShareResponse) error - GetPublicShare(ctx context.Context, in *GetPublicShareRequest, out *GetPublicShareResponse) error - GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, out *GetPublicShareByTokenResponse) error - ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, out *ListPublicSharesResponse) error - UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, out *UpdatePublicShareResponse) error - } - type LinkAPI struct { - linkAPI - } - h := &linkAPIHandler{hdlr} - return s.Handle(s.NewHandler(&LinkAPI{h}, opts...)) -} - -type linkAPIHandler struct { - LinkAPIHandler -} - -func (h *linkAPIHandler) CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, out *CreatePublicShareResponse) error { - return h.LinkAPIHandler.CreatePublicShare(ctx, in, out) -} - -func (h *linkAPIHandler) RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, out *RemovePublicShareResponse) error { - return h.LinkAPIHandler.RemovePublicShare(ctx, in, out) -} - -func (h *linkAPIHandler) GetPublicShare(ctx context.Context, in *GetPublicShareRequest, out *GetPublicShareResponse) error { - return h.LinkAPIHandler.GetPublicShare(ctx, in, out) -} - -func (h *linkAPIHandler) GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, out *GetPublicShareByTokenResponse) error { - return h.LinkAPIHandler.GetPublicShareByToken(ctx, in, out) -} - -func (h *linkAPIHandler) ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, out *ListPublicSharesResponse) error { - return h.LinkAPIHandler.ListPublicShares(ctx, in, out) -} - -func (h *linkAPIHandler) UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, out *UpdatePublicShareResponse) error { - return h.LinkAPIHandler.UpdatePublicShare(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go deleted file mode 100644 index 25c490c5..00000000 --- a/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.go +++ /dev/null @@ -1,700 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/sharing/link/v1beta1/resources.proto - -package linkv1beta1 - -import ( - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Public share are relationships between a resource owner -// (usually the authenticated user) who grants permissions to a recipient (grantee) -// on a specified resource (resource_id). UserShares represents both user and groups. -// TODO(labkode): do we need to have resource_type stored on the share? -// This is not needed if when getting the shares a stat operation is launched against the -// the storage provider. -type PublicShare struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // Opaque unique identifier of the share. - Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // REQUIRED. - // The unlisted token to give public access - // to the public share. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // REQUIRED. - // Unique identifier of the shared resource. - ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - // REQUIRED. - // Permissions for the grantee to use - // the resource. - Permissions *PublicSharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` - // REQUIRED. - // Uniquely identifies the owner of the share - // (the resource owner at the time of creating the share). - // In case the ownership of the underlying resource changes - // the share owner field MAY change to reflect the change of ownsership. - Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` - // REQUIRED. - // Uniquely identifies a principal who initiates the share creation. - // A creator can create shares on behalf of the owner (because of re-sharing, - // because belonging to special groups, ...). - // Creator and owner often result in being the same principal. - Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` - // REQUIRED. - // Creation time of the share. - Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"` - // REQUIRED. - // Last modification time of the share. - Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"` - // REQUIRED. - // Determines if the public share is password protected or not. - PasswordProtected bool `protobuf:"varint,9,opt,name=password_protected,json=passwordProtected,proto3" json:"password_protected,omitempty"` - // OPTIONAL. - // The expiration time for the public share. - Expiration *v1beta12.Timestamp `protobuf:"bytes,10,opt,name=expiration,proto3" json:"expiration,omitempty"` - // OPTIONAL. - // Display name for the shared resource (such as file, directory basename or any - // user defined name). - // The display name MAY be different than the actual resource basename. - // This field is only useful for informational purposes, like for example, - // setting the window title in a public share HTML page. - DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` -} - -func (x *PublicShare) Reset() { - *x = PublicShare{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicShare) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicShare) ProtoMessage() {} - -func (x *PublicShare) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicShare.ProtoReflect.Descriptor instead. -func (*PublicShare) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *PublicShare) GetId() *PublicShareId { - if x != nil { - return x.Id - } - return nil -} - -func (x *PublicShare) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *PublicShare) GetResourceId() *v1beta1.ResourceId { - if x != nil { - return x.ResourceId - } - return nil -} - -func (x *PublicShare) GetPermissions() *PublicSharePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -func (x *PublicShare) GetOwner() *v1beta11.UserId { - if x != nil { - return x.Owner - } - return nil -} - -func (x *PublicShare) GetCreator() *v1beta11.UserId { - if x != nil { - return x.Creator - } - return nil -} - -func (x *PublicShare) GetCtime() *v1beta12.Timestamp { - if x != nil { - return x.Ctime - } - return nil -} - -func (x *PublicShare) GetMtime() *v1beta12.Timestamp { - if x != nil { - return x.Mtime - } - return nil -} - -func (x *PublicShare) GetPasswordProtected() bool { - if x != nil { - return x.PasswordProtected - } - return false -} - -func (x *PublicShare) GetExpiration() *v1beta12.Timestamp { - if x != nil { - return x.Expiration - } - return nil -} - -func (x *PublicShare) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -// The permissions for a share. -type PublicSharePermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` // TODO(labkode): additional permissions for shares like re-sharing -} - -func (x *PublicSharePermissions) Reset() { - *x = PublicSharePermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicSharePermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicSharePermissions) ProtoMessage() {} - -func (x *PublicSharePermissions) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicSharePermissions.ProtoReflect.Descriptor instead. -func (*PublicSharePermissions) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *PublicSharePermissions) GetPermissions() *v1beta1.ResourcePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -// A share id identifies uniquely a // share in the share provider namespace. -// A ShareId MUST be unique inside the share provider. -type PublicShareId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The internal id used by service implementor to - // uniquely identity the share in the internal - // implementation of the service. - OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` -} - -func (x *PublicShareId) Reset() { - *x = PublicShareId{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicShareId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicShareId) ProtoMessage() {} - -func (x *PublicShareId) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicShareId.ProtoReflect.Descriptor instead. -func (*PublicShareId) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{2} -} - -func (x *PublicShareId) GetOpaqueId() string { - if x != nil { - return x.OpaqueId - } - return "" -} - -// The mechanism to identify a share -// in the share provider namespace. -type PublicShareReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // One of the specifications MUST be specified. - // - // Types that are assignable to Spec: - // *PublicShareReference_Id - // *PublicShareReference_Token - Spec isPublicShareReference_Spec `protobuf_oneof:"spec"` -} - -func (x *PublicShareReference) Reset() { - *x = PublicShareReference{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicShareReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicShareReference) ProtoMessage() {} - -func (x *PublicShareReference) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_resources_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 PublicShareReference.ProtoReflect.Descriptor instead. -func (*PublicShareReference) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{3} -} - -func (m *PublicShareReference) GetSpec() isPublicShareReference_Spec { - if m != nil { - return m.Spec - } - return nil -} - -func (x *PublicShareReference) GetId() *PublicShareId { - if x, ok := x.GetSpec().(*PublicShareReference_Id); ok { - return x.Id - } - return nil -} - -func (x *PublicShareReference) GetToken() string { - if x, ok := x.GetSpec().(*PublicShareReference_Token); ok { - return x.Token - } - return "" -} - -type isPublicShareReference_Spec interface { - isPublicShareReference_Spec() -} - -type PublicShareReference_Id struct { - // The id of the share. - Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` -} - -type PublicShareReference_Token struct { - // The token to identify the public share. - Token string `protobuf:"bytes,2,opt,name=token,proto3,oneof"` -} - -func (*PublicShareReference_Id) isPublicShareReference_Spec() {} - -func (*PublicShareReference_Token) isPublicShareReference_Spec() {} - -// Defines the restrictions for the public share. -type Grant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The permissions for the share. - Permissions *PublicSharePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` - // OPTIONAL. - // A password to protect the access to the public share. - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - // OPTIONAL. - // An expiration date to protect the access to the public share. - Expiration *v1beta12.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` -} - -func (x *Grant) Reset() { - *x = Grant{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Grant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Grant) ProtoMessage() {} - -func (x *Grant) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_link_v1beta1_resources_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 Grant.ProtoReflect.Descriptor instead. -func (*Grant) Descriptor() ([]byte, []int) { - return file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP(), []int{4} -} - -func (x *Grant) GetPermissions() *PublicSharePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -func (x *Grant) GetPassword() string { - if x != nil { - return x.Password - } - return "" -} - -func (x *Grant) GetExpiration() *v1beta12.Timestamp { - if x != nil { - return x.Expiration - } - return nil -} - -var File_cs3_sharing_link_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_sharing_link_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6c, 0x69, - 0x6e, 0x6b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, - 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x04, 0x0a, - 0x0b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x37, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, - 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x49, 0x0a, 0x0b, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x32, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, - 0x74, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, - 0x6f, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6d, 0x0a, 0x16, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2c, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0x71, 0x0a, 0x14, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xb5, 0x01, 0x0a, 0x05, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x42, 0x79, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x0b, 0x6c, 0x69, 0x6e, 0x6b, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, - 0x02, 0x03, 0x43, 0x53, 0x4c, 0xaa, 0x02, 0x18, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x18, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4c, - 0x69, 0x6e, 0x6b, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_sharing_link_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_sharing_link_v1beta1_resources_proto_rawDescData = file_cs3_sharing_link_v1beta1_resources_proto_rawDesc -) - -func file_cs3_sharing_link_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_sharing_link_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_sharing_link_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_link_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_sharing_link_v1beta1_resources_proto_rawDescData -} - -var file_cs3_sharing_link_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_cs3_sharing_link_v1beta1_resources_proto_goTypes = []interface{}{ - (*PublicShare)(nil), // 0: cs3.sharing.link.v1beta1.PublicShare - (*PublicSharePermissions)(nil), // 1: cs3.sharing.link.v1beta1.PublicSharePermissions - (*PublicShareId)(nil), // 2: cs3.sharing.link.v1beta1.PublicShareId - (*PublicShareReference)(nil), // 3: cs3.sharing.link.v1beta1.PublicShareReference - (*Grant)(nil), // 4: cs3.sharing.link.v1beta1.Grant - (*v1beta1.ResourceId)(nil), // 5: cs3.storage.provider.v1beta1.ResourceId - (*v1beta11.UserId)(nil), // 6: cs3.identity.user.v1beta1.UserId - (*v1beta12.Timestamp)(nil), // 7: cs3.types.v1beta1.Timestamp - (*v1beta1.ResourcePermissions)(nil), // 8: cs3.storage.provider.v1beta1.ResourcePermissions -} -var file_cs3_sharing_link_v1beta1_resources_proto_depIdxs = []int32{ - 2, // 0: cs3.sharing.link.v1beta1.PublicShare.id:type_name -> cs3.sharing.link.v1beta1.PublicShareId - 5, // 1: cs3.sharing.link.v1beta1.PublicShare.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 1, // 2: cs3.sharing.link.v1beta1.PublicShare.permissions:type_name -> cs3.sharing.link.v1beta1.PublicSharePermissions - 6, // 3: cs3.sharing.link.v1beta1.PublicShare.owner:type_name -> cs3.identity.user.v1beta1.UserId - 6, // 4: cs3.sharing.link.v1beta1.PublicShare.creator:type_name -> cs3.identity.user.v1beta1.UserId - 7, // 5: cs3.sharing.link.v1beta1.PublicShare.ctime:type_name -> cs3.types.v1beta1.Timestamp - 7, // 6: cs3.sharing.link.v1beta1.PublicShare.mtime:type_name -> cs3.types.v1beta1.Timestamp - 7, // 7: cs3.sharing.link.v1beta1.PublicShare.expiration:type_name -> cs3.types.v1beta1.Timestamp - 8, // 8: cs3.sharing.link.v1beta1.PublicSharePermissions.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions - 2, // 9: cs3.sharing.link.v1beta1.PublicShareReference.id:type_name -> cs3.sharing.link.v1beta1.PublicShareId - 1, // 10: cs3.sharing.link.v1beta1.Grant.permissions:type_name -> cs3.sharing.link.v1beta1.PublicSharePermissions - 7, // 11: cs3.sharing.link.v1beta1.Grant.expiration:type_name -> cs3.types.v1beta1.Timestamp - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_cs3_sharing_link_v1beta1_resources_proto_init() } -func file_cs3_sharing_link_v1beta1_resources_proto_init() { - if File_cs3_sharing_link_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicShare); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicSharePermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicShareId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicShareReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Grant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cs3_sharing_link_v1beta1_resources_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*PublicShareReference_Id)(nil), - (*PublicShareReference_Token)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_sharing_link_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_sharing_link_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_sharing_link_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_sharing_link_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_sharing_link_v1beta1_resources_proto = out.File - file_cs3_sharing_link_v1beta1_resources_proto_rawDesc = nil - file_cs3_sharing_link_v1beta1_resources_proto_goTypes = nil - file_cs3_sharing_link_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go deleted file mode 100644 index 4e9091ad..00000000 --- a/build/go-cs3apis/cs3/sharing/link/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/sharing/link/v1beta1/resources.proto - -package linkv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go deleted file mode 100644 index 46af37f5..00000000 --- a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.go +++ /dev/null @@ -1,2477 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/sharing/ocm/v1beta1/ocm_api.proto - -package ocmv1beta1 - -import ( - context "context" - v1beta14 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" - v1beta13 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// REQUIRED. -// The filter to apply. -type ListOCMSharesRequest_Filter_Type int32 - -const ( - ListOCMSharesRequest_Filter_TYPE_INVALID ListOCMSharesRequest_Filter_Type = 0 - ListOCMSharesRequest_Filter_TYPE_NO ListOCMSharesRequest_Filter_Type = 1 - ListOCMSharesRequest_Filter_TYPE_RESOURCE_ID ListOCMSharesRequest_Filter_Type = 2 - ListOCMSharesRequest_Filter_TYPE_OWNER ListOCMSharesRequest_Filter_Type = 3 - ListOCMSharesRequest_Filter_TYPE_CREATOR ListOCMSharesRequest_Filter_Type = 4 - ListOCMSharesRequest_Filter_TYPE_OWNER_PROVIDER ListOCMSharesRequest_Filter_Type = 5 - ListOCMSharesRequest_Filter_TYPE_CREATOR_PROVIDER ListOCMSharesRequest_Filter_Type = 6 -) - -// Enum value maps for ListOCMSharesRequest_Filter_Type. -var ( - ListOCMSharesRequest_Filter_Type_name = map[int32]string{ - 0: "TYPE_INVALID", - 1: "TYPE_NO", - 2: "TYPE_RESOURCE_ID", - 3: "TYPE_OWNER", - 4: "TYPE_CREATOR", - 5: "TYPE_OWNER_PROVIDER", - 6: "TYPE_CREATOR_PROVIDER", - } - ListOCMSharesRequest_Filter_Type_value = map[string]int32{ - "TYPE_INVALID": 0, - "TYPE_NO": 1, - "TYPE_RESOURCE_ID": 2, - "TYPE_OWNER": 3, - "TYPE_CREATOR": 4, - "TYPE_OWNER_PROVIDER": 5, - "TYPE_CREATOR_PROVIDER": 6, - } -) - -func (x ListOCMSharesRequest_Filter_Type) Enum() *ListOCMSharesRequest_Filter_Type { - p := new(ListOCMSharesRequest_Filter_Type) - *p = x - return p -} - -func (x ListOCMSharesRequest_Filter_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ListOCMSharesRequest_Filter_Type) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes[0].Descriptor() -} - -func (ListOCMSharesRequest_Filter_Type) Type() protoreflect.EnumType { - return &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes[0] -} - -func (x ListOCMSharesRequest_Filter_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ListOCMSharesRequest_Filter_Type.Descriptor instead. -func (ListOCMSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{4, 0, 0} -} - -type CreateOCMShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The unique identifier for the shared storage resource. - ResourceId *v1beta11.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - // REQUIRED. - // The share grant for the share. - Grant *ShareGrant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` - // REQUIRED. - // The details of the recipient user's mesh provider. - RecipientMeshProvider *v1beta12.ProviderInfo `protobuf:"bytes,4,opt,name=recipient_mesh_provider,json=recipientMeshProvider,proto3" json:"recipient_mesh_provider,omitempty"` -} - -func (x *CreateOCMShareRequest) Reset() { - *x = CreateOCMShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateOCMShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateOCMShareRequest) ProtoMessage() {} - -func (x *CreateOCMShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 CreateOCMShareRequest.ProtoReflect.Descriptor instead. -func (*CreateOCMShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{0} -} - -func (x *CreateOCMShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateOCMShareRequest) GetResourceId() *v1beta11.ResourceId { - if x != nil { - return x.ResourceId - } - return nil -} - -func (x *CreateOCMShareRequest) GetGrant() *ShareGrant { - if x != nil { - return x.Grant - } - return nil -} - -func (x *CreateOCMShareRequest) GetRecipientMeshProvider() *v1beta12.ProviderInfo { - if x != nil { - return x.RecipientMeshProvider - } - return nil -} - -type CreateOCMShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The created share. - Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *CreateOCMShareResponse) Reset() { - *x = CreateOCMShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateOCMShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateOCMShareResponse) ProtoMessage() {} - -func (x *CreateOCMShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 CreateOCMShareResponse.ProtoReflect.Descriptor instead. -func (*CreateOCMShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateOCMShareResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateOCMShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateOCMShareResponse) GetShare() *Share { - if x != nil { - return x.Share - } - return nil -} - -type UpdateOCMShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. - // REQUIRED. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - Field *UpdateOCMShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` -} - -func (x *UpdateOCMShareRequest) Reset() { - *x = UpdateOCMShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateOCMShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateOCMShareRequest) ProtoMessage() {} - -func (x *UpdateOCMShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 UpdateOCMShareRequest.ProtoReflect.Descriptor instead. -func (*UpdateOCMShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{2} -} - -func (x *UpdateOCMShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UpdateOCMShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *UpdateOCMShareRequest) GetField() *UpdateOCMShareRequest_UpdateField { - if x != nil { - return x.Field - } - return nil -} - -type UpdateOCMShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *UpdateOCMShareResponse) Reset() { - *x = UpdateOCMShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateOCMShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateOCMShareResponse) ProtoMessage() {} - -func (x *UpdateOCMShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 UpdateOCMShareResponse.ProtoReflect.Descriptor instead. -func (*UpdateOCMShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{3} -} - -func (x *UpdateOCMShareResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *UpdateOCMShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListOCMSharesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // OPTIONAL. - // The list of filters to apply if any. - Filters []*ListOCMSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` -} - -func (x *ListOCMSharesRequest) Reset() { - *x = ListOCMSharesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListOCMSharesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListOCMSharesRequest) ProtoMessage() {} - -func (x *ListOCMSharesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 ListOCMSharesRequest.ProtoReflect.Descriptor instead. -func (*ListOCMSharesRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{4} -} - -func (x *ListOCMSharesRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListOCMSharesRequest) GetFilters() []*ListOCMSharesRequest_Filter { - if x != nil { - return x.Filters - } - return nil -} - -type ListOCMSharesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of shares. - Shares []*Share `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` -} - -func (x *ListOCMSharesResponse) Reset() { - *x = ListOCMSharesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListOCMSharesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListOCMSharesResponse) ProtoMessage() {} - -func (x *ListOCMSharesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 ListOCMSharesResponse.ProtoReflect.Descriptor instead. -func (*ListOCMSharesResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{5} -} - -func (x *ListOCMSharesResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListOCMSharesResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListOCMSharesResponse) GetShares() []*Share { - if x != nil { - return x.Shares - } - return nil -} - -type RemoveOCMShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *RemoveOCMShareRequest) Reset() { - *x = RemoveOCMShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveOCMShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveOCMShareRequest) ProtoMessage() {} - -func (x *RemoveOCMShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 RemoveOCMShareRequest.ProtoReflect.Descriptor instead. -func (*RemoveOCMShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{6} -} - -func (x *RemoveOCMShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *RemoveOCMShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type RemoveOCMShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *RemoveOCMShareResponse) Reset() { - *x = RemoveOCMShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveOCMShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveOCMShareResponse) ProtoMessage() {} - -func (x *RemoveOCMShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 RemoveOCMShareResponse.ProtoReflect.Descriptor instead. -func (*RemoveOCMShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{7} -} - -func (x *RemoveOCMShareResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *RemoveOCMShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetOCMShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *GetOCMShareRequest) Reset() { - *x = GetOCMShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetOCMShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetOCMShareRequest) ProtoMessage() {} - -func (x *GetOCMShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_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 GetOCMShareRequest.ProtoReflect.Descriptor instead. -func (*GetOCMShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{8} -} - -func (x *GetOCMShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetOCMShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type GetOCMShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The share. - Share *Share `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *GetOCMShareResponse) Reset() { - *x = GetOCMShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetOCMShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetOCMShareResponse) ProtoMessage() {} - -func (x *GetOCMShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[9] - 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 GetOCMShareResponse.ProtoReflect.Descriptor instead. -func (*GetOCMShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{9} -} - -func (x *GetOCMShareResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetOCMShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetOCMShareResponse) GetShare() *Share { - if x != nil { - return x.Share - } - return nil -} - -type ListReceivedOCMSharesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *ListReceivedOCMSharesRequest) Reset() { - *x = ListReceivedOCMSharesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListReceivedOCMSharesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListReceivedOCMSharesRequest) ProtoMessage() {} - -func (x *ListReceivedOCMSharesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[10] - 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 ListReceivedOCMSharesRequest.ProtoReflect.Descriptor instead. -func (*ListReceivedOCMSharesRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{10} -} - -func (x *ListReceivedOCMSharesRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListReceivedOCMSharesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of received shares. - Shares []*ReceivedShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` -} - -func (x *ListReceivedOCMSharesResponse) Reset() { - *x = ListReceivedOCMSharesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListReceivedOCMSharesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListReceivedOCMSharesResponse) ProtoMessage() {} - -func (x *ListReceivedOCMSharesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[11] - 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 ListReceivedOCMSharesResponse.ProtoReflect.Descriptor instead. -func (*ListReceivedOCMSharesResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{11} -} - -func (x *ListReceivedOCMSharesResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListReceivedOCMSharesResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListReceivedOCMSharesResponse) GetShares() []*ReceivedShare { - if x != nil { - return x.Shares - } - return nil -} - -// TODO(labkode): clean up display_name ? we'll use storage links for that. -type UpdateReceivedOCMShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - Field *UpdateReceivedOCMShareRequest_UpdateField `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` -} - -func (x *UpdateReceivedOCMShareRequest) Reset() { - *x = UpdateReceivedOCMShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateReceivedOCMShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateReceivedOCMShareRequest) ProtoMessage() {} - -func (x *UpdateReceivedOCMShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[12] - 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 UpdateReceivedOCMShareRequest.ProtoReflect.Descriptor instead. -func (*UpdateReceivedOCMShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{12} -} - -func (x *UpdateReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UpdateReceivedOCMShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *UpdateReceivedOCMShareRequest) GetField() *UpdateReceivedOCMShareRequest_UpdateField { - if x != nil { - return x.Field - } - return nil -} - -type UpdateReceivedOCMShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *UpdateReceivedOCMShareResponse) Reset() { - *x = UpdateReceivedOCMShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateReceivedOCMShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateReceivedOCMShareResponse) ProtoMessage() {} - -func (x *UpdateReceivedOCMShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[13] - 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 UpdateReceivedOCMShareResponse.ProtoReflect.Descriptor instead. -func (*UpdateReceivedOCMShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{13} -} - -func (x *UpdateReceivedOCMShareResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *UpdateReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetReceivedOCMShareRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference of the received share. - Ref *ShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *GetReceivedOCMShareRequest) Reset() { - *x = GetReceivedOCMShareRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetReceivedOCMShareRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetReceivedOCMShareRequest) ProtoMessage() {} - -func (x *GetReceivedOCMShareRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[14] - 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 GetReceivedOCMShareRequest.ProtoReflect.Descriptor instead. -func (*GetReceivedOCMShareRequest) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{14} -} - -func (x *GetReceivedOCMShareRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetReceivedOCMShareRequest) GetRef() *ShareReference { - if x != nil { - return x.Ref - } - return nil -} - -type GetReceivedOCMShareResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta13.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The share. - Share *ReceivedShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"` -} - -func (x *GetReceivedOCMShareResponse) Reset() { - *x = GetReceivedOCMShareResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetReceivedOCMShareResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetReceivedOCMShareResponse) ProtoMessage() {} - -func (x *GetReceivedOCMShareResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[15] - 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 GetReceivedOCMShareResponse.ProtoReflect.Descriptor instead. -func (*GetReceivedOCMShareResponse) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{15} -} - -func (x *GetReceivedOCMShareResponse) GetStatus() *v1beta13.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetReceivedOCMShareResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetReceivedOCMShareResponse) GetShare() *ReceivedShare { - if x != nil { - return x.Share - } - return nil -} - -// REQUIRED. -type UpdateOCMShareRequest_UpdateField struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One of the update fields MUST be specified. - // - // Types that are assignable to Field: - // *UpdateOCMShareRequest_UpdateField_Permissions - // *UpdateOCMShareRequest_UpdateField_DisplayName - Field isUpdateOCMShareRequest_UpdateField_Field `protobuf_oneof:"field"` -} - -func (x *UpdateOCMShareRequest_UpdateField) Reset() { - *x = UpdateOCMShareRequest_UpdateField{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateOCMShareRequest_UpdateField) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateOCMShareRequest_UpdateField) ProtoMessage() {} - -func (x *UpdateOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16] - 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 UpdateOCMShareRequest_UpdateField.ProtoReflect.Descriptor instead. -func (*UpdateOCMShareRequest_UpdateField) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{2, 0} -} - -func (m *UpdateOCMShareRequest_UpdateField) GetField() isUpdateOCMShareRequest_UpdateField_Field { - if m != nil { - return m.Field - } - return nil -} - -func (x *UpdateOCMShareRequest_UpdateField) GetPermissions() *SharePermissions { - if x, ok := x.GetField().(*UpdateOCMShareRequest_UpdateField_Permissions); ok { - return x.Permissions - } - return nil -} - -func (x *UpdateOCMShareRequest_UpdateField) GetDisplayName() string { - if x, ok := x.GetField().(*UpdateOCMShareRequest_UpdateField_DisplayName); ok { - return x.DisplayName - } - return "" -} - -type isUpdateOCMShareRequest_UpdateField_Field interface { - isUpdateOCMShareRequest_UpdateField_Field() -} - -type UpdateOCMShareRequest_UpdateField_Permissions struct { - // Update the permissions. - Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3,oneof"` -} - -type UpdateOCMShareRequest_UpdateField_DisplayName struct { - // Update the display name. - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3,oneof"` -} - -func (*UpdateOCMShareRequest_UpdateField_Permissions) isUpdateOCMShareRequest_UpdateField_Field() {} - -func (*UpdateOCMShareRequest_UpdateField_DisplayName) isUpdateOCMShareRequest_UpdateField_Field() {} - -// REQUIRED. -// represents a filter to apply to the request. -type ListOCMSharesRequest_Filter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Type ListOCMSharesRequest_Filter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.sharing.ocm.v1beta1.ListOCMSharesRequest_Filter_Type" json:"type,omitempty"` - // Types that are assignable to Term: - // *ListOCMSharesRequest_Filter_ResourceId - // *ListOCMSharesRequest_Filter_Owner - // *ListOCMSharesRequest_Filter_Creator - Term isListOCMSharesRequest_Filter_Term `protobuf_oneof:"term"` -} - -func (x *ListOCMSharesRequest_Filter) Reset() { - *x = ListOCMSharesRequest_Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListOCMSharesRequest_Filter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListOCMSharesRequest_Filter) ProtoMessage() {} - -func (x *ListOCMSharesRequest_Filter) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17] - 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 ListOCMSharesRequest_Filter.ProtoReflect.Descriptor instead. -func (*ListOCMSharesRequest_Filter) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{4, 0} -} - -func (x *ListOCMSharesRequest_Filter) GetType() ListOCMSharesRequest_Filter_Type { - if x != nil { - return x.Type - } - return ListOCMSharesRequest_Filter_TYPE_INVALID -} - -func (m *ListOCMSharesRequest_Filter) GetTerm() isListOCMSharesRequest_Filter_Term { - if m != nil { - return m.Term - } - return nil -} - -func (x *ListOCMSharesRequest_Filter) GetResourceId() *v1beta11.ResourceId { - if x, ok := x.GetTerm().(*ListOCMSharesRequest_Filter_ResourceId); ok { - return x.ResourceId - } - return nil -} - -func (x *ListOCMSharesRequest_Filter) GetOwner() *v1beta14.UserId { - if x, ok := x.GetTerm().(*ListOCMSharesRequest_Filter_Owner); ok { - return x.Owner - } - return nil -} - -func (x *ListOCMSharesRequest_Filter) GetCreator() *v1beta14.UserId { - if x, ok := x.GetTerm().(*ListOCMSharesRequest_Filter_Creator); ok { - return x.Creator - } - return nil -} - -type isListOCMSharesRequest_Filter_Term interface { - isListOCMSharesRequest_Filter_Term() -} - -type ListOCMSharesRequest_Filter_ResourceId struct { - ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"` -} - -type ListOCMSharesRequest_Filter_Owner struct { - Owner *v1beta14.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"` -} - -type ListOCMSharesRequest_Filter_Creator struct { - Creator *v1beta14.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"` -} - -func (*ListOCMSharesRequest_Filter_ResourceId) isListOCMSharesRequest_Filter_Term() {} - -func (*ListOCMSharesRequest_Filter_Owner) isListOCMSharesRequest_Filter_Term() {} - -func (*ListOCMSharesRequest_Filter_Creator) isListOCMSharesRequest_Filter_Term() {} - -// REQUIRED. -type UpdateReceivedOCMShareRequest_UpdateField struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // One of the update fields MUST be specified. - // - // Types that are assignable to Field: - // *UpdateReceivedOCMShareRequest_UpdateField_DisplayName - // *UpdateReceivedOCMShareRequest_UpdateField_State - Field isUpdateReceivedOCMShareRequest_UpdateField_Field `protobuf_oneof:"field"` -} - -func (x *UpdateReceivedOCMShareRequest_UpdateField) Reset() { - *x = UpdateReceivedOCMShareRequest_UpdateField{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateReceivedOCMShareRequest_UpdateField) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateReceivedOCMShareRequest_UpdateField) ProtoMessage() {} - -func (x *UpdateReceivedOCMShareRequest_UpdateField) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18] - 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 UpdateReceivedOCMShareRequest_UpdateField.ProtoReflect.Descriptor instead. -func (*UpdateReceivedOCMShareRequest_UpdateField) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP(), []int{12, 0} -} - -func (m *UpdateReceivedOCMShareRequest_UpdateField) GetField() isUpdateReceivedOCMShareRequest_UpdateField_Field { - if m != nil { - return m.Field - } - return nil -} - -func (x *UpdateReceivedOCMShareRequest_UpdateField) GetDisplayName() string { - if x, ok := x.GetField().(*UpdateReceivedOCMShareRequest_UpdateField_DisplayName); ok { - return x.DisplayName - } - return "" -} - -func (x *UpdateReceivedOCMShareRequest_UpdateField) GetState() ShareState { - if x, ok := x.GetField().(*UpdateReceivedOCMShareRequest_UpdateField_State); ok { - return x.State - } - return ShareState_SHARE_STATE_INVALID -} - -type isUpdateReceivedOCMShareRequest_UpdateField_Field interface { - isUpdateReceivedOCMShareRequest_UpdateField_Field() -} - -type UpdateReceivedOCMShareRequest_UpdateField_DisplayName struct { - // Update the display name. - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3,oneof"` -} - -type UpdateReceivedOCMShareRequest_UpdateField_State struct { - // Update the share state - State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState,oneof"` -} - -func (*UpdateReceivedOCMShareRequest_UpdateField_DisplayName) isUpdateReceivedOCMShareRequest_UpdateField_Field() { -} - -func (*UpdateReceivedOCMShareRequest_UpdateField_State) isUpdateReceivedOCMShareRequest_UpdateField_Field() { -} - -var File_cs3_sharing_ocm_v1beta1_ocm_api_proto protoreflect.FileDescriptor - -var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc = []byte{ - 0x0a, 0x25, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x63, - 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6f, 0x63, 0x6d, 0x5f, 0x61, 0x70, - 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x63, 0x73, 0x33, - 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x6f, 0x63, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, - 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x02, 0x0a, 0x15, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x39, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x5e, 0x0a, 0x17, - 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x68, 0x5f, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x15, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, - 0x4d, 0x65, 0x73, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0xb2, 0x01, 0x0a, - 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, - 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x50, 0x0a, 0x05, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x8a, 0x01, 0x0a, 0x0b, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x4d, 0x0a, 0x0b, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, - 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x7c, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xd6, 0x04, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4f, - 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x1a, 0xba, 0x03, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4d, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x0b, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x05, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x48, 0x00, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x91, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0b, - 0x0a, 0x07, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x44, 0x10, - 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, - 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x4f, - 0x52, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, - 0x52, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x50, 0x52, 0x4f, - 0x56, 0x49, 0x44, 0x45, 0x52, 0x10, 0x06, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x65, 0x72, 0x6d, 0x22, - 0xb3, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x36, 0x0a, - 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x06, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7c, 0x0a, - 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, - 0x22, 0xaf, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x22, 0x51, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc3, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xe1, 0x02, 0x0a, 0x1d, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, - 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x58, 0x0a, 0x05, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x78, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, - 0x84, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, - 0x72, 0x65, 0x66, 0x22, 0xbf, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x32, 0xd3, 0x07, 0x0a, 0x06, 0x4f, 0x63, 0x6d, 0x41, 0x50, 0x49, - 0x12, 0x71, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x6e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x73, 0x12, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, - 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x71, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x35, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, - 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, - 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, - 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4f, 0x43, 0x4d, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x72, 0x0a, 0x1b, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x4f, 0x63, 0x6d, 0x41, - 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x6f, 0x63, 0x6d, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x4f, 0xaa, 0x02, 0x17, 0x43, 0x73, - 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x56, 0x31, - 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescOnce sync.Once - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData = file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc -) - -func file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescGZIP() []byte { - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescOnce.Do(func() { - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData) - }) - return file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDescData -} - -var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_goTypes = []interface{}{ - (ListOCMSharesRequest_Filter_Type)(0), // 0: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.Type - (*CreateOCMShareRequest)(nil), // 1: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest - (*CreateOCMShareResponse)(nil), // 2: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse - (*UpdateOCMShareRequest)(nil), // 3: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest - (*UpdateOCMShareResponse)(nil), // 4: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse - (*ListOCMSharesRequest)(nil), // 5: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest - (*ListOCMSharesResponse)(nil), // 6: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse - (*RemoveOCMShareRequest)(nil), // 7: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest - (*RemoveOCMShareResponse)(nil), // 8: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse - (*GetOCMShareRequest)(nil), // 9: cs3.sharing.ocm.v1beta1.GetOCMShareRequest - (*GetOCMShareResponse)(nil), // 10: cs3.sharing.ocm.v1beta1.GetOCMShareResponse - (*ListReceivedOCMSharesRequest)(nil), // 11: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest - (*ListReceivedOCMSharesResponse)(nil), // 12: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse - (*UpdateReceivedOCMShareRequest)(nil), // 13: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest - (*UpdateReceivedOCMShareResponse)(nil), // 14: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse - (*GetReceivedOCMShareRequest)(nil), // 15: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest - (*GetReceivedOCMShareResponse)(nil), // 16: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse - (*UpdateOCMShareRequest_UpdateField)(nil), // 17: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.UpdateField - (*ListOCMSharesRequest_Filter)(nil), // 18: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter - (*UpdateReceivedOCMShareRequest_UpdateField)(nil), // 19: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.UpdateField - (*v1beta1.Opaque)(nil), // 20: cs3.types.v1beta1.Opaque - (*v1beta11.ResourceId)(nil), // 21: cs3.storage.provider.v1beta1.ResourceId - (*ShareGrant)(nil), // 22: cs3.sharing.ocm.v1beta1.ShareGrant - (*v1beta12.ProviderInfo)(nil), // 23: cs3.ocm.provider.v1beta1.ProviderInfo - (*v1beta13.Status)(nil), // 24: cs3.rpc.v1beta1.Status - (*Share)(nil), // 25: cs3.sharing.ocm.v1beta1.Share - (*ShareReference)(nil), // 26: cs3.sharing.ocm.v1beta1.ShareReference - (*ReceivedShare)(nil), // 27: cs3.sharing.ocm.v1beta1.ReceivedShare - (*SharePermissions)(nil), // 28: cs3.sharing.ocm.v1beta1.SharePermissions - (*v1beta14.UserId)(nil), // 29: cs3.identity.user.v1beta1.UserId - (ShareState)(0), // 30: cs3.sharing.ocm.v1beta1.ShareState -} -var file_cs3_sharing_ocm_v1beta1_ocm_api_proto_depIdxs = []int32{ - 20, // 0: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 21, // 1: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 22, // 2: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.grant:type_name -> cs3.sharing.ocm.v1beta1.ShareGrant - 23, // 3: cs3.sharing.ocm.v1beta1.CreateOCMShareRequest.recipient_mesh_provider:type_name -> cs3.ocm.provider.v1beta1.ProviderInfo - 24, // 4: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 5: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 6: cs3.sharing.ocm.v1beta1.CreateOCMShareResponse.share:type_name -> cs3.sharing.ocm.v1beta1.Share - 20, // 7: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // 8: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference - 17, // 9: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.field:type_name -> cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.UpdateField - 24, // 10: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 11: cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 12: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 18, // 13: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.filters:type_name -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter - 24, // 14: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 15: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 16: cs3.sharing.ocm.v1beta1.ListOCMSharesResponse.shares:type_name -> cs3.sharing.ocm.v1beta1.Share - 20, // 17: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // 18: cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference - 24, // 19: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 20: cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 21: cs3.sharing.ocm.v1beta1.GetOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // 22: cs3.sharing.ocm.v1beta1.GetOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference - 24, // 23: cs3.sharing.ocm.v1beta1.GetOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 24: cs3.sharing.ocm.v1beta1.GetOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 25, // 25: cs3.sharing.ocm.v1beta1.GetOCMShareResponse.share:type_name -> cs3.sharing.ocm.v1beta1.Share - 20, // 26: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 24, // 27: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 28: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 27, // 29: cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse.shares:type_name -> cs3.sharing.ocm.v1beta1.ReceivedShare - 20, // 30: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // 31: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference - 19, // 32: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.field:type_name -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.UpdateField - 24, // 33: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 34: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 20, // 35: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // 36: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest.ref:type_name -> cs3.sharing.ocm.v1beta1.ShareReference - 24, // 37: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse.status:type_name -> cs3.rpc.v1beta1.Status - 20, // 38: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 27, // 39: cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse.share:type_name -> cs3.sharing.ocm.v1beta1.ReceivedShare - 28, // 40: cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest.UpdateField.permissions:type_name -> cs3.sharing.ocm.v1beta1.SharePermissions - 0, // 41: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.type:type_name -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.Type - 21, // 42: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 29, // 43: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.owner:type_name -> cs3.identity.user.v1beta1.UserId - 29, // 44: cs3.sharing.ocm.v1beta1.ListOCMSharesRequest.Filter.creator:type_name -> cs3.identity.user.v1beta1.UserId - 30, // 45: cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest.UpdateField.state:type_name -> cs3.sharing.ocm.v1beta1.ShareState - 1, // 46: cs3.sharing.ocm.v1beta1.OcmAPI.CreateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareRequest - 7, // 47: cs3.sharing.ocm.v1beta1.OcmAPI.RemoveOCMShare:input_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareRequest - 9, // 48: cs3.sharing.ocm.v1beta1.OcmAPI.GetOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetOCMShareRequest - 5, // 49: cs3.sharing.ocm.v1beta1.OcmAPI.ListOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesRequest - 3, // 50: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareRequest - 11, // 51: cs3.sharing.ocm.v1beta1.OcmAPI.ListReceivedOCMShares:input_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesRequest - 13, // 52: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareRequest - 15, // 53: cs3.sharing.ocm.v1beta1.OcmAPI.GetReceivedOCMShare:input_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareRequest - 2, // 54: cs3.sharing.ocm.v1beta1.OcmAPI.CreateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.CreateOCMShareResponse - 8, // 55: cs3.sharing.ocm.v1beta1.OcmAPI.RemoveOCMShare:output_type -> cs3.sharing.ocm.v1beta1.RemoveOCMShareResponse - 10, // 56: cs3.sharing.ocm.v1beta1.OcmAPI.GetOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetOCMShareResponse - 6, // 57: cs3.sharing.ocm.v1beta1.OcmAPI.ListOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListOCMSharesResponse - 4, // 58: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateOCMShareResponse - 12, // 59: cs3.sharing.ocm.v1beta1.OcmAPI.ListReceivedOCMShares:output_type -> cs3.sharing.ocm.v1beta1.ListReceivedOCMSharesResponse - 14, // 60: cs3.sharing.ocm.v1beta1.OcmAPI.UpdateReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.UpdateReceivedOCMShareResponse - 16, // 61: cs3.sharing.ocm.v1beta1.OcmAPI.GetReceivedOCMShare:output_type -> cs3.sharing.ocm.v1beta1.GetReceivedOCMShareResponse - 54, // [54:62] is the sub-list for method output_type - 46, // [46:54] is the sub-list for method input_type - 46, // [46:46] is the sub-list for extension type_name - 46, // [46:46] is the sub-list for extension extendee - 0, // [0:46] is the sub-list for field type_name -} - -func init() { file_cs3_sharing_ocm_v1beta1_ocm_api_proto_init() } -func file_cs3_sharing_ocm_v1beta1_ocm_api_proto_init() { - if File_cs3_sharing_ocm_v1beta1_ocm_api_proto != nil { - return - } - file_cs3_sharing_ocm_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateOCMShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateOCMShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateOCMShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateOCMShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListOCMSharesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListOCMSharesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveOCMShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveOCMShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOCMShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOCMShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListReceivedOCMSharesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListReceivedOCMSharesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateReceivedOCMShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateReceivedOCMShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReceivedOCMShareRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReceivedOCMShareResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateOCMShareRequest_UpdateField); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListOCMSharesRequest_Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateReceivedOCMShareRequest_UpdateField); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[16].OneofWrappers = []interface{}{ - (*UpdateOCMShareRequest_UpdateField_Permissions)(nil), - (*UpdateOCMShareRequest_UpdateField_DisplayName)(nil), - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[17].OneofWrappers = []interface{}{ - (*ListOCMSharesRequest_Filter_ResourceId)(nil), - (*ListOCMSharesRequest_Filter_Owner)(nil), - (*ListOCMSharesRequest_Filter_Creator)(nil), - } - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes[18].OneofWrappers = []interface{}{ - (*UpdateReceivedOCMShareRequest_UpdateField_DisplayName)(nil), - (*UpdateReceivedOCMShareRequest_UpdateField_State)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc, - NumEnums: 1, - NumMessages: 19, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_goTypes, - DependencyIndexes: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_depIdxs, - EnumInfos: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_enumTypes, - MessageInfos: file_cs3_sharing_ocm_v1beta1_ocm_api_proto_msgTypes, - }.Build() - File_cs3_sharing_ocm_v1beta1_ocm_api_proto = out.File - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_rawDesc = nil - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_goTypes = nil - file_cs3_sharing_ocm_v1beta1_ocm_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// OcmAPIClient is the client API for OcmAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type OcmAPIClient interface { - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error) - // List all shares the authenticated principal has received. - ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error) -} - -type ocmAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewOcmAPIClient(cc grpc.ClientConnInterface) OcmAPIClient { - return &ocmAPIClient{cc} -} - -func (c *ocmAPIClient) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...grpc.CallOption) (*CreateOCMShareResponse, error) { - out := new(CreateOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/CreateOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIClient) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...grpc.CallOption) (*RemoveOCMShareResponse, error) { - out := new(RemoveOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/RemoveOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIClient) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...grpc.CallOption) (*GetOCMShareResponse, error) { - out := new(GetOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIClient) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...grpc.CallOption) (*ListOCMSharesResponse, error) { - out := new(ListOCMSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/ListOCMShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIClient) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...grpc.CallOption) (*UpdateOCMShareResponse, error) { - out := new(UpdateOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIClient) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...grpc.CallOption) (*ListReceivedOCMSharesResponse, error) { - out := new(ListReceivedOCMSharesResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIClient) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...grpc.CallOption) (*UpdateReceivedOCMShareResponse, error) { - out := new(UpdateReceivedOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateReceivedOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIClient) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...grpc.CallOption) (*GetReceivedOCMShareResponse, error) { - out := new(GetReceivedOCMShareResponse) - err := c.cc.Invoke(ctx, "/cs3.sharing.ocm.v1beta1.OcmAPI/GetReceivedOCMShare", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// OcmAPIServer is the server API for OcmAPI service. -type OcmAPIServer interface { - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error) - // List all shares the authenticated principal has received. - ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error) -} - -// UnimplementedOcmAPIServer can be embedded to have forward compatible implementations. -type UnimplementedOcmAPIServer struct { -} - -func (*UnimplementedOcmAPIServer) CreateOCMShare(context.Context, *CreateOCMShareRequest) (*CreateOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOCMShare not implemented") -} -func (*UnimplementedOcmAPIServer) RemoveOCMShare(context.Context, *RemoveOCMShareRequest) (*RemoveOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveOCMShare not implemented") -} -func (*UnimplementedOcmAPIServer) GetOCMShare(context.Context, *GetOCMShareRequest) (*GetOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOCMShare not implemented") -} -func (*UnimplementedOcmAPIServer) ListOCMShares(context.Context, *ListOCMSharesRequest) (*ListOCMSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListOCMShares not implemented") -} -func (*UnimplementedOcmAPIServer) UpdateOCMShare(context.Context, *UpdateOCMShareRequest) (*UpdateOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateOCMShare not implemented") -} -func (*UnimplementedOcmAPIServer) ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest) (*ListReceivedOCMSharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListReceivedOCMShares not implemented") -} -func (*UnimplementedOcmAPIServer) UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest) (*UpdateReceivedOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateReceivedOCMShare not implemented") -} -func (*UnimplementedOcmAPIServer) GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest) (*GetReceivedOCMShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReceivedOCMShare not implemented") -} - -func RegisterOcmAPIServer(s *grpc.Server, srv OcmAPIServer) { - s.RegisterService(&_OcmAPI_serviceDesc, srv) -} - -func _OcmAPI_CreateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).CreateOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/CreateOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).CreateOCMShare(ctx, req.(*CreateOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OcmAPI_RemoveOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).RemoveOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/RemoveOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).RemoveOCMShare(ctx, req.(*RemoveOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OcmAPI_GetOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).GetOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/GetOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).GetOCMShare(ctx, req.(*GetOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OcmAPI_ListOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListOCMSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).ListOCMShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/ListOCMShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).ListOCMShares(ctx, req.(*ListOCMSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OcmAPI_UpdateOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).UpdateOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).UpdateOCMShare(ctx, req.(*UpdateOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OcmAPI_ListReceivedOCMShares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListReceivedOCMSharesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).ListReceivedOCMShares(ctx, req.(*ListReceivedOCMSharesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OcmAPI_UpdateReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateReceivedOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/UpdateReceivedOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).UpdateReceivedOCMShare(ctx, req.(*UpdateReceivedOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OcmAPI_GetReceivedOCMShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetReceivedOCMShareRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.sharing.ocm.v1beta1.OcmAPI/GetReceivedOCMShare", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OcmAPIServer).GetReceivedOCMShare(ctx, req.(*GetReceivedOCMShareRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _OcmAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.sharing.ocm.v1beta1.OcmAPI", - HandlerType: (*OcmAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateOCMShare", - Handler: _OcmAPI_CreateOCMShare_Handler, - }, - { - MethodName: "RemoveOCMShare", - Handler: _OcmAPI_RemoveOCMShare_Handler, - }, - { - MethodName: "GetOCMShare", - Handler: _OcmAPI_GetOCMShare_Handler, - }, - { - MethodName: "ListOCMShares", - Handler: _OcmAPI_ListOCMShares_Handler, - }, - { - MethodName: "UpdateOCMShare", - Handler: _OcmAPI_UpdateOCMShare_Handler, - }, - { - MethodName: "ListReceivedOCMShares", - Handler: _OcmAPI_ListReceivedOCMShares_Handler, - }, - { - MethodName: "UpdateReceivedOCMShare", - Handler: _OcmAPI_UpdateReceivedOCMShare_Handler, - }, - { - MethodName: "GetReceivedOCMShare", - Handler: _OcmAPI_GetReceivedOCMShare_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/sharing/ocm/v1beta1/ocm_api.proto", -} diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go deleted file mode 100644 index a15541bf..00000000 --- a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/ocm_api.pb.micro.go +++ /dev/null @@ -1,255 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/sharing/ocm/v1beta1/ocm_api.proto - -package ocmv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/ocm/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for OcmAPI service - -func NewOcmAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for OcmAPI service - -type OcmAPIService interface { - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...client.CallOption) (*CreateOCMShareResponse, error) - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...client.CallOption) (*RemoveOCMShareResponse, error) - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...client.CallOption) (*GetOCMShareResponse, error) - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...client.CallOption) (*ListOCMSharesResponse, error) - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...client.CallOption) (*UpdateOCMShareResponse, error) - // List all shares the authenticated principal has received. - ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...client.CallOption) (*ListReceivedOCMSharesResponse, error) - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*UpdateReceivedOCMShareResponse, error) - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...client.CallOption) (*GetReceivedOCMShareResponse, error) -} - -type ocmAPIService struct { - c client.Client - name string -} - -func NewOcmAPIService(name string, c client.Client) OcmAPIService { - return &ocmAPIService{ - c: c, - name: name, - } -} - -func (c *ocmAPIService) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, opts ...client.CallOption) (*CreateOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.CreateOCMShare", in) - out := new(CreateOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIService) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, opts ...client.CallOption) (*RemoveOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.RemoveOCMShare", in) - out := new(RemoveOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIService) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, opts ...client.CallOption) (*GetOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.GetOCMShare", in) - out := new(GetOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIService) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, opts ...client.CallOption) (*ListOCMSharesResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.ListOCMShares", in) - out := new(ListOCMSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIService) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, opts ...client.CallOption) (*UpdateOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.UpdateOCMShare", in) - out := new(UpdateOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIService) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, opts ...client.CallOption) (*ListReceivedOCMSharesResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.ListReceivedOCMShares", in) - out := new(ListReceivedOCMSharesResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIService) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, opts ...client.CallOption) (*UpdateReceivedOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.UpdateReceivedOCMShare", in) - out := new(UpdateReceivedOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *ocmAPIService) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, opts ...client.CallOption) (*GetReceivedOCMShareResponse, error) { - req := c.c.NewRequest(c.name, "OcmAPI.GetReceivedOCMShare", in) - out := new(GetReceivedOCMShareResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for OcmAPI service - -type OcmAPIHandler interface { - // Creates a new ocm share. - // MUST return CODE_NOT_FOUND if the resource reference does not exist. - // MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of - // (owner, shared_resource, grantee). - // New shares MUST be created in the state SHARE_STATE_PENDING. - CreateOCMShare(context.Context, *CreateOCMShareRequest, *CreateOCMShareResponse) error - // Removes a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - RemoveOCMShare(context.Context, *RemoveOCMShareRequest, *RemoveOCMShareResponse) error - // Gets share information for a single share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - GetOCMShare(context.Context, *GetOCMShareRequest, *GetOCMShareResponse) error - // List the shares the authenticated principal has created, - // both as owner and creator. If a filter is specified, only - // shares satisfying the filter MUST be returned. - ListOCMShares(context.Context, *ListOCMSharesRequest, *ListOCMSharesResponse) error - // Updates a share. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateOCMShare(context.Context, *UpdateOCMShareRequest, *UpdateOCMShareResponse) error - // List all shares the authenticated principal has received. - ListReceivedOCMShares(context.Context, *ListReceivedOCMSharesRequest, *ListReceivedOCMSharesResponse) error - // Update the received share to change the share state or the display name. - // MUST return CODE_NOT_FOUND if the share reference does not exist. - UpdateReceivedOCMShare(context.Context, *UpdateReceivedOCMShareRequest, *UpdateReceivedOCMShareResponse) error - // Get the information for the given received share reference. - // MUST return CODE_NOT_FOUND if the received share reference does not exist. - GetReceivedOCMShare(context.Context, *GetReceivedOCMShareRequest, *GetReceivedOCMShareResponse) error -} - -func RegisterOcmAPIHandler(s server.Server, hdlr OcmAPIHandler, opts ...server.HandlerOption) error { - type ocmAPI interface { - CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, out *CreateOCMShareResponse) error - RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, out *RemoveOCMShareResponse) error - GetOCMShare(ctx context.Context, in *GetOCMShareRequest, out *GetOCMShareResponse) error - ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, out *ListOCMSharesResponse) error - UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, out *UpdateOCMShareResponse) error - ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, out *ListReceivedOCMSharesResponse) error - UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, out *UpdateReceivedOCMShareResponse) error - GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, out *GetReceivedOCMShareResponse) error - } - type OcmAPI struct { - ocmAPI - } - h := &ocmAPIHandler{hdlr} - return s.Handle(s.NewHandler(&OcmAPI{h}, opts...)) -} - -type ocmAPIHandler struct { - OcmAPIHandler -} - -func (h *ocmAPIHandler) CreateOCMShare(ctx context.Context, in *CreateOCMShareRequest, out *CreateOCMShareResponse) error { - return h.OcmAPIHandler.CreateOCMShare(ctx, in, out) -} - -func (h *ocmAPIHandler) RemoveOCMShare(ctx context.Context, in *RemoveOCMShareRequest, out *RemoveOCMShareResponse) error { - return h.OcmAPIHandler.RemoveOCMShare(ctx, in, out) -} - -func (h *ocmAPIHandler) GetOCMShare(ctx context.Context, in *GetOCMShareRequest, out *GetOCMShareResponse) error { - return h.OcmAPIHandler.GetOCMShare(ctx, in, out) -} - -func (h *ocmAPIHandler) ListOCMShares(ctx context.Context, in *ListOCMSharesRequest, out *ListOCMSharesResponse) error { - return h.OcmAPIHandler.ListOCMShares(ctx, in, out) -} - -func (h *ocmAPIHandler) UpdateOCMShare(ctx context.Context, in *UpdateOCMShareRequest, out *UpdateOCMShareResponse) error { - return h.OcmAPIHandler.UpdateOCMShare(ctx, in, out) -} - -func (h *ocmAPIHandler) ListReceivedOCMShares(ctx context.Context, in *ListReceivedOCMSharesRequest, out *ListReceivedOCMSharesResponse) error { - return h.OcmAPIHandler.ListReceivedOCMShares(ctx, in, out) -} - -func (h *ocmAPIHandler) UpdateReceivedOCMShare(ctx context.Context, in *UpdateReceivedOCMShareRequest, out *UpdateReceivedOCMShareResponse) error { - return h.OcmAPIHandler.UpdateReceivedOCMShare(ctx, in, out) -} - -func (h *ocmAPIHandler) GetReceivedOCMShare(ctx context.Context, in *GetReceivedOCMShareRequest, out *GetReceivedOCMShareResponse) error { - return h.OcmAPIHandler.GetReceivedOCMShare(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go deleted file mode 100644 index 12b03aba..00000000 --- a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.go +++ /dev/null @@ -1,933 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/sharing/ocm/v1beta1/resources.proto - -package ocmv1beta1 - -import ( - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The state of the share. -type ShareState int32 - -const ( - // The share is no longer valid, for example, the share expired. - ShareState_SHARE_STATE_INVALID ShareState = 0 - // New shares MUST be created in the SHARE_STATE_PENDING state. - // This state means the share is pending to be accepted or rejected - // by the recipient of the share. - ShareState_SHARE_STATE_PENDING ShareState = 1 - // The recipient of the share has accepted the share. - ShareState_SHARE_STATE_ACCEPTED ShareState = 2 - // The recipient of the share has rejected the share. - // Do not means the share is removed, the recipient MAY - // change the state to accepted or pending. - ShareState_SHARE_STATE_REJECTED ShareState = 3 -) - -// Enum value maps for ShareState. -var ( - ShareState_name = map[int32]string{ - 0: "SHARE_STATE_INVALID", - 1: "SHARE_STATE_PENDING", - 2: "SHARE_STATE_ACCEPTED", - 3: "SHARE_STATE_REJECTED", - } - ShareState_value = map[string]int32{ - "SHARE_STATE_INVALID": 0, - "SHARE_STATE_PENDING": 1, - "SHARE_STATE_ACCEPTED": 2, - "SHARE_STATE_REJECTED": 3, - } -) - -func (x ShareState) Enum() *ShareState { - p := new(ShareState) - *p = x - return p -} - -func (x ShareState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ShareState) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes[0].Descriptor() -} - -func (ShareState) Type() protoreflect.EnumType { - return &file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes[0] -} - -func (x ShareState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ShareState.Descriptor instead. -func (ShareState) EnumDescriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -// Shares are relationships between a resource owner -// (usually the authenticated user) who grants permissions to a recipient (grantee) -// on a specified resource (resource_id). UserShares represents both user and groups. -type Share struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // Opaque unique identifier of the share. - Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // REQUIRED. - // Unique identifier of the shared resource. - ResourceId *v1beta1.ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - // REQUIRED. - // Name of the shared resource. - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // REQUIRED. - // Permissions for the grantee to use - // the resource. - Permissions *SharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"` - // REQUIRED. - // The receiver of the share, like a user, group ... - Grantee *v1beta1.Grantee `protobuf:"bytes,5,opt,name=grantee,proto3" json:"grantee,omitempty"` - // REQUIRED. - // Uniquely identifies the owner of the share - // (the resource owner at the time of creating the share). - // In case the ownership of the underlying resource changes - // the share owner field MAY change to reflect the change of ownsership. - Owner *v1beta11.UserId `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` - // REQUIRED. - // Uniquely identifies a principal who initiates the share creation. - // A creator can create shares on behalf of the owner (because of re-sharing, - // because belonging to special groups, ...). - // Creator and owner often result in being the same principal. - Creator *v1beta11.UserId `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` - // REQUIRED. - // Creation time of the share. - Ctime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=ctime,proto3" json:"ctime,omitempty"` - // REQUIRED. - // Last modification time of the share. - Mtime *v1beta12.Timestamp `protobuf:"bytes,9,opt,name=mtime,proto3" json:"mtime,omitempty"` -} - -func (x *Share) Reset() { - *x = Share{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Share) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Share) ProtoMessage() {} - -func (x *Share) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_resources_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 Share.ProtoReflect.Descriptor instead. -func (*Share) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *Share) GetId() *ShareId { - if x != nil { - return x.Id - } - return nil -} - -func (x *Share) GetResourceId() *v1beta1.ResourceId { - if x != nil { - return x.ResourceId - } - return nil -} - -func (x *Share) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Share) GetPermissions() *SharePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -func (x *Share) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -func (x *Share) GetOwner() *v1beta11.UserId { - if x != nil { - return x.Owner - } - return nil -} - -func (x *Share) GetCreator() *v1beta11.UserId { - if x != nil { - return x.Creator - } - return nil -} - -func (x *Share) GetCtime() *v1beta12.Timestamp { - if x != nil { - return x.Ctime - } - return nil -} - -func (x *Share) GetMtime() *v1beta12.Timestamp { - if x != nil { - return x.Mtime - } - return nil -} - -// The permissions for a share. -type SharePermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` - Reshare bool `protobuf:"varint,2,opt,name=reshare,proto3" json:"reshare,omitempty"` -} - -func (x *SharePermissions) Reset() { - *x = SharePermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SharePermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SharePermissions) ProtoMessage() {} - -func (x *SharePermissions) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_resources_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 SharePermissions.ProtoReflect.Descriptor instead. -func (*SharePermissions) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *SharePermissions) GetPermissions() *v1beta1.ResourcePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -func (x *SharePermissions) GetReshare() bool { - if x != nil { - return x.Reshare - } - return false -} - -// A received share is the share that a grantee will receive. -// It expands the original share by adding state to the share, -// a display name from the perspective of the grantee and a -// resource mount path in case the share will be mounted -// in a path in a storage provider. -type ReceivedShare struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"` - // REQUIRED. - // The state of the share. - State ShareState `protobuf:"varint,2,opt,name=state,proto3,enum=cs3.sharing.ocm.v1beta1.ShareState" json:"state,omitempty"` -} - -func (x *ReceivedShare) Reset() { - *x = ReceivedShare{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReceivedShare) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReceivedShare) ProtoMessage() {} - -func (x *ReceivedShare) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ReceivedShare.ProtoReflect.Descriptor instead. -func (*ReceivedShare) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{2} -} - -func (x *ReceivedShare) GetShare() *Share { - if x != nil { - return x.Share - } - return nil -} - -func (x *ReceivedShare) GetState() ShareState { - if x != nil { - return x.State - } - return ShareState_SHARE_STATE_INVALID -} - -// Uniquely identifies a share in the share provider. -// A share MUST be uniquely identify by four (4) elements: -// 1) The share provider id -// 2) The owner of the share -// 3) The resource id -// 4) The grantee for the share -// This 4-tuple MUST be unique. -// For example, owner Alice shares the resource /home/docs with id -// home:1234 to an user named Bob. The 4-tuple will consist of -// 1) The share provider id = "user" -// 2) The owner of the share = "Alice" -// 3) The resource id = "home:1234" -// 4) The grantee for the share = Grantee("type" = "user", "" => "Bob") -type ShareKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Owner *v1beta11.UserId `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - // REQUIRED. - ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - // REQUIRED. - Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` -} - -func (x *ShareKey) Reset() { - *x = ShareKey{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareKey) ProtoMessage() {} - -func (x *ShareKey) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareKey.ProtoReflect.Descriptor instead. -func (*ShareKey) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{3} -} - -func (x *ShareKey) GetOwner() *v1beta11.UserId { - if x != nil { - return x.Owner - } - return nil -} - -func (x *ShareKey) GetResourceId() *v1beta1.ResourceId { - if x != nil { - return x.ResourceId - } - return nil -} - -func (x *ShareKey) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -// A share id identifies uniquely a // share in the share provider namespace. -// A ShareId MUST be unique inside the share provider. -type ShareId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The internal id used by service implementor to - // uniquely identity the share in the internal - // implementation of the service. - OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` -} - -func (x *ShareId) Reset() { - *x = ShareId{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareId) ProtoMessage() {} - -func (x *ShareId) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareId.ProtoReflect.Descriptor instead. -func (*ShareId) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{4} -} - -func (x *ShareId) GetOpaqueId() string { - if x != nil { - return x.OpaqueId - } - return "" -} - -// The mechanism to identify a share -// in the share provider namespace. -type ShareReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // One of the specifications MUST be specified. - // - // Types that are assignable to Spec: - // *ShareReference_Id - // *ShareReference_Key - Spec isShareReference_Spec `protobuf_oneof:"spec"` -} - -func (x *ShareReference) Reset() { - *x = ShareReference{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareReference) ProtoMessage() {} - -func (x *ShareReference) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareReference.ProtoReflect.Descriptor instead. -func (*ShareReference) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{5} -} - -func (m *ShareReference) GetSpec() isShareReference_Spec { - if m != nil { - return m.Spec - } - return nil -} - -func (x *ShareReference) GetId() *ShareId { - if x, ok := x.GetSpec().(*ShareReference_Id); ok { - return x.Id - } - return nil -} - -func (x *ShareReference) GetKey() *ShareKey { - if x, ok := x.GetSpec().(*ShareReference_Key); ok { - return x.Key - } - return nil -} - -type isShareReference_Spec interface { - isShareReference_Spec() -} - -type ShareReference_Id struct { - // The id of the share. - Id *ShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"` -} - -type ShareReference_Key struct { - // The combination of fields that - // make the share unique. - Key *ShareKey `protobuf:"bytes,2,opt,name=key,proto3,oneof"` -} - -func (*ShareReference_Id) isShareReference_Spec() {} - -func (*ShareReference_Key) isShareReference_Spec() {} - -// A share grant specifies the share permissions -// for a grantee. -type ShareGrant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The grantee of the grant. - Grantee *v1beta1.Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` - // REQUIRED. - // The share permissions for the grant. - Permissions *SharePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *ShareGrant) Reset() { - *x = ShareGrant{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ShareGrant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ShareGrant) ProtoMessage() {} - -func (x *ShareGrant) ProtoReflect() protoreflect.Message { - mi := &file_cs3_sharing_ocm_v1beta1_resources_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 ShareGrant.ProtoReflect.Descriptor instead. -func (*ShareGrant) Descriptor() ([]byte, []int) { - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP(), []int{6} -} - -func (x *ShareGrant) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -func (x *ShareGrant) GetPermissions() *SharePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -var File_cs3_sharing_ocm_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x63, - 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, - 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x04, 0x0a, 0x05, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x30, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, - 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x65, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x05, 0x63, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, - 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, - 0x65, 0x22, 0x81, 0x01, 0x0a, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, - 0x65, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x39, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x08, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x49, - 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x22, 0x26, 0x0a, 0x07, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x49, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x0e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x9a, 0x01, 0x0a, 0x0a, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, - 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x72, 0x0a, 0x0a, 0x53, 0x68, 0x61, 0x72, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, - 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, - 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, - 0x18, 0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, - 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x75, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6f, 0x63, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0a, 0x6f, 0x63, 0x6d, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x4f, 0xaa, 0x02, 0x17, 0x43, - 0x73, 0x33, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x63, 0x6d, 0x2e, 0x56, - 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x17, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x68, 0x61, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4f, 0x63, 0x6d, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData = file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc -) - -func file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_sharing_ocm_v1beta1_resources_proto_rawDescData -} - -var file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_cs3_sharing_ocm_v1beta1_resources_proto_goTypes = []interface{}{ - (ShareState)(0), // 0: cs3.sharing.ocm.v1beta1.ShareState - (*Share)(nil), // 1: cs3.sharing.ocm.v1beta1.Share - (*SharePermissions)(nil), // 2: cs3.sharing.ocm.v1beta1.SharePermissions - (*ReceivedShare)(nil), // 3: cs3.sharing.ocm.v1beta1.ReceivedShare - (*ShareKey)(nil), // 4: cs3.sharing.ocm.v1beta1.ShareKey - (*ShareId)(nil), // 5: cs3.sharing.ocm.v1beta1.ShareId - (*ShareReference)(nil), // 6: cs3.sharing.ocm.v1beta1.ShareReference - (*ShareGrant)(nil), // 7: cs3.sharing.ocm.v1beta1.ShareGrant - (*v1beta1.ResourceId)(nil), // 8: cs3.storage.provider.v1beta1.ResourceId - (*v1beta1.Grantee)(nil), // 9: cs3.storage.provider.v1beta1.Grantee - (*v1beta11.UserId)(nil), // 10: cs3.identity.user.v1beta1.UserId - (*v1beta12.Timestamp)(nil), // 11: cs3.types.v1beta1.Timestamp - (*v1beta1.ResourcePermissions)(nil), // 12: cs3.storage.provider.v1beta1.ResourcePermissions -} -var file_cs3_sharing_ocm_v1beta1_resources_proto_depIdxs = []int32{ - 5, // 0: cs3.sharing.ocm.v1beta1.Share.id:type_name -> cs3.sharing.ocm.v1beta1.ShareId - 8, // 1: cs3.sharing.ocm.v1beta1.Share.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 2, // 2: cs3.sharing.ocm.v1beta1.Share.permissions:type_name -> cs3.sharing.ocm.v1beta1.SharePermissions - 9, // 3: cs3.sharing.ocm.v1beta1.Share.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 10, // 4: cs3.sharing.ocm.v1beta1.Share.owner:type_name -> cs3.identity.user.v1beta1.UserId - 10, // 5: cs3.sharing.ocm.v1beta1.Share.creator:type_name -> cs3.identity.user.v1beta1.UserId - 11, // 6: cs3.sharing.ocm.v1beta1.Share.ctime:type_name -> cs3.types.v1beta1.Timestamp - 11, // 7: cs3.sharing.ocm.v1beta1.Share.mtime:type_name -> cs3.types.v1beta1.Timestamp - 12, // 8: cs3.sharing.ocm.v1beta1.SharePermissions.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions - 1, // 9: cs3.sharing.ocm.v1beta1.ReceivedShare.share:type_name -> cs3.sharing.ocm.v1beta1.Share - 0, // 10: cs3.sharing.ocm.v1beta1.ReceivedShare.state:type_name -> cs3.sharing.ocm.v1beta1.ShareState - 10, // 11: cs3.sharing.ocm.v1beta1.ShareKey.owner:type_name -> cs3.identity.user.v1beta1.UserId - 8, // 12: cs3.sharing.ocm.v1beta1.ShareKey.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 9, // 13: cs3.sharing.ocm.v1beta1.ShareKey.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 5, // 14: cs3.sharing.ocm.v1beta1.ShareReference.id:type_name -> cs3.sharing.ocm.v1beta1.ShareId - 4, // 15: cs3.sharing.ocm.v1beta1.ShareReference.key:type_name -> cs3.sharing.ocm.v1beta1.ShareKey - 9, // 16: cs3.sharing.ocm.v1beta1.ShareGrant.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 2, // 17: cs3.sharing.ocm.v1beta1.ShareGrant.permissions:type_name -> cs3.sharing.ocm.v1beta1.SharePermissions - 18, // [18:18] is the sub-list for method output_type - 18, // [18:18] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_cs3_sharing_ocm_v1beta1_resources_proto_init() } -func file_cs3_sharing_ocm_v1beta1_resources_proto_init() { - if File_cs3_sharing_ocm_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Share); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SharePermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceivedShare); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShareGrant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*ShareReference_Id)(nil), - (*ShareReference_Key)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc, - NumEnums: 1, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_sharing_ocm_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_sharing_ocm_v1beta1_resources_proto_depIdxs, - EnumInfos: file_cs3_sharing_ocm_v1beta1_resources_proto_enumTypes, - MessageInfos: file_cs3_sharing_ocm_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_sharing_ocm_v1beta1_resources_proto = out.File - file_cs3_sharing_ocm_v1beta1_resources_proto_rawDesc = nil - file_cs3_sharing_ocm_v1beta1_resources_proto_goTypes = nil - file_cs3_sharing_ocm_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go deleted file mode 100644 index f4e9fad4..00000000 --- a/build/go-cs3apis/cs3/sharing/ocm/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/sharing/ocm/v1beta1/resources.proto - -package ocmv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go deleted file mode 100644 index 563ae4ec..00000000 --- a/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.go +++ /dev/null @@ -1,6205 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/storage/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - context "context" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type GetHomeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *GetHomeRequest) Reset() { - *x = GetHomeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetHomeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetHomeRequest) ProtoMessage() {} - -func (x *GetHomeRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 GetHomeRequest.ProtoReflect.Descriptor instead. -func (*GetHomeRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{0} -} - -func (x *GetHomeRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetHomeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The path to the home in a storage provider. - // For example /eos/user/h/hugo in the storage provider with root path /eos/user/. - Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` -} - -func (x *GetHomeResponse) Reset() { - *x = GetHomeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetHomeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetHomeResponse) ProtoMessage() {} - -func (x *GetHomeResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 GetHomeResponse.ProtoReflect.Descriptor instead. -func (*GetHomeResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{1} -} - -func (x *GetHomeResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetHomeResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetHomeResponse) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -type AddGrantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The grant to be added. - Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` -} - -func (x *AddGrantRequest) Reset() { - *x = AddGrantRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddGrantRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddGrantRequest) ProtoMessage() {} - -func (x *AddGrantRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 AddGrantRequest.ProtoReflect.Descriptor instead. -func (*AddGrantRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{2} -} - -func (x *AddGrantRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *AddGrantRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *AddGrantRequest) GetGrant() *Grant { - if x != nil { - return x.Grant - } - return nil -} - -type AddGrantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *AddGrantResponse) Reset() { - *x = AddGrantResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddGrantResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddGrantResponse) ProtoMessage() {} - -func (x *AddGrantResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 AddGrantResponse.ProtoReflect.Descriptor instead. -func (*AddGrantResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{3} -} - -func (x *AddGrantResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *AddGrantResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CreateContainerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *CreateContainerRequest) Reset() { - *x = CreateContainerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateContainerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateContainerRequest) ProtoMessage() {} - -func (x *CreateContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 CreateContainerRequest.ProtoReflect.Descriptor instead. -func (*CreateContainerRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateContainerRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateContainerRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -type CreateContainerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CreateContainerResponse) Reset() { - *x = CreateContainerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateContainerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateContainerResponse) ProtoMessage() {} - -func (x *CreateContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 CreateContainerResponse.ProtoReflect.Descriptor instead. -func (*CreateContainerResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{5} -} - -func (x *CreateContainerResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateContainerResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type DeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *DeleteRequest) Reset() { - *x = DeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRequest) ProtoMessage() {} - -func (x *DeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 DeleteRequest.ProtoReflect.Descriptor instead. -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{6} -} - -func (x *DeleteRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *DeleteRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -type DeleteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *DeleteResponse) Reset() { - *x = DeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteResponse) ProtoMessage() {} - -func (x *DeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 DeleteResponse.ProtoReflect.Descriptor instead. -func (*DeleteResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{7} -} - -func (x *DeleteResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *DeleteResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetPathRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The resource id of the resource. - ResourceId *ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` -} - -func (x *GetPathRequest) Reset() { - *x = GetPathRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetPathRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetPathRequest) ProtoMessage() {} - -func (x *GetPathRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_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 GetPathRequest.ProtoReflect.Descriptor instead. -func (*GetPathRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{8} -} - -func (x *GetPathRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetPathRequest) GetResourceId() *ResourceId { - if x != nil { - return x.ResourceId - } - return nil -} - -type GetPathResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The path of the resource. - Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` -} - -func (x *GetPathResponse) Reset() { - *x = GetPathResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetPathResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetPathResponse) ProtoMessage() {} - -func (x *GetPathResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[9] - 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 GetPathResponse.ProtoReflect.Descriptor instead. -func (*GetPathResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{9} -} - -func (x *GetPathResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetPathResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetPathResponse) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -type GetQuotaRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *GetQuotaRequest) Reset() { - *x = GetQuotaRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetQuotaRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetQuotaRequest) ProtoMessage() {} - -func (x *GetQuotaRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[10] - 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 GetQuotaRequest.ProtoReflect.Descriptor instead. -func (*GetQuotaRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{10} -} - -func (x *GetQuotaRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetQuotaResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The total available bytes. - TotalBytes uint64 `protobuf:"varint,3,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` - // REQUIRED. - // The number of used bytes. - UsedBytes uint64 `protobuf:"varint,4,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"` -} - -func (x *GetQuotaResponse) Reset() { - *x = GetQuotaResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetQuotaResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetQuotaResponse) ProtoMessage() {} - -func (x *GetQuotaResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[11] - 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 GetQuotaResponse.ProtoReflect.Descriptor instead. -func (*GetQuotaResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{11} -} - -func (x *GetQuotaResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetQuotaResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetQuotaResponse) GetTotalBytes() uint64 { - if x != nil { - return x.TotalBytes - } - return 0 -} - -func (x *GetQuotaResponse) GetUsedBytes() uint64 { - if x != nil { - return x.UsedBytes - } - return 0 -} - -type InitiateFileUploadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *InitiateFileUploadRequest) Reset() { - *x = InitiateFileUploadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateFileUploadRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateFileUploadRequest) ProtoMessage() {} - -func (x *InitiateFileUploadRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[12] - 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 InitiateFileUploadRequest.ProtoReflect.Descriptor instead. -func (*InitiateFileUploadRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{12} -} - -func (x *InitiateFileUploadRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *InitiateFileUploadRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -type InitiateFileUploadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocols through which data can be uploaded. - Protocols []*FileUploadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` -} - -func (x *InitiateFileUploadResponse) Reset() { - *x = InitiateFileUploadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateFileUploadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateFileUploadResponse) ProtoMessage() {} - -func (x *InitiateFileUploadResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[13] - 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 InitiateFileUploadResponse.ProtoReflect.Descriptor instead. -func (*InitiateFileUploadResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{13} -} - -func (x *InitiateFileUploadResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *InitiateFileUploadResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *InitiateFileUploadResponse) GetProtocols() []*FileUploadProtocol { - if x != nil { - return x.Protocols - } - return nil -} - -type InitiateFileDownloadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *InitiateFileDownloadRequest) Reset() { - *x = InitiateFileDownloadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateFileDownloadRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateFileDownloadRequest) ProtoMessage() {} - -func (x *InitiateFileDownloadRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[14] - 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 InitiateFileDownloadRequest.ProtoReflect.Descriptor instead. -func (*InitiateFileDownloadRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{14} -} - -func (x *InitiateFileDownloadRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *InitiateFileDownloadRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -type InitiateFileDownloadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocols through which data can be downloaded. - Protocols []*FileDownloadProtocol `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` -} - -func (x *InitiateFileDownloadResponse) Reset() { - *x = InitiateFileDownloadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateFileDownloadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateFileDownloadResponse) ProtoMessage() {} - -func (x *InitiateFileDownloadResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[15] - 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 InitiateFileDownloadResponse.ProtoReflect.Descriptor instead. -func (*InitiateFileDownloadResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{15} -} - -func (x *InitiateFileDownloadResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *InitiateFileDownloadResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *InitiateFileDownloadResponse) GetProtocols() []*FileDownloadProtocol { - if x != nil { - return x.Protocols - } - return nil -} - -type ListGrantsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *ListGrantsRequest) Reset() { - *x = ListGrantsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGrantsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGrantsRequest) ProtoMessage() {} - -func (x *ListGrantsRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[16] - 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 ListGrantsRequest.ProtoReflect.Descriptor instead. -func (*ListGrantsRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{16} -} - -func (x *ListGrantsRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListGrantsRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -type ListGrantsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The grants. - Grants []*Grant `protobuf:"bytes,3,rep,name=grants,proto3" json:"grants,omitempty"` -} - -func (x *ListGrantsResponse) Reset() { - *x = ListGrantsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGrantsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGrantsResponse) ProtoMessage() {} - -func (x *ListGrantsResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[17] - 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 ListGrantsResponse.ProtoReflect.Descriptor instead. -func (*ListGrantsResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{17} -} - -func (x *ListGrantsResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListGrantsResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListGrantsResponse) GetGrants() []*Grant { - if x != nil { - return x.Grants - } - return nil -} - -type ListContainerStreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // OPTIONAL. - // Arbitrary metadata be included with the resource. - // A key with the name '*' means to return all available arbitrary metadata. - ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` -} - -func (x *ListContainerStreamRequest) Reset() { - *x = ListContainerStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContainerStreamRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContainerStreamRequest) ProtoMessage() {} - -func (x *ListContainerStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[18] - 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 ListContainerStreamRequest.ProtoReflect.Descriptor instead. -func (*ListContainerStreamRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{18} -} - -func (x *ListContainerStreamRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListContainerStreamRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *ListContainerStreamRequest) GetArbitraryMetadataKeys() []string { - if x != nil { - return x.ArbitraryMetadataKeys - } - return nil -} - -type ListContainerStreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The resource information. - Info *ResourceInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` -} - -func (x *ListContainerStreamResponse) Reset() { - *x = ListContainerStreamResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContainerStreamResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContainerStreamResponse) ProtoMessage() {} - -func (x *ListContainerStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[19] - 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 ListContainerStreamResponse.ProtoReflect.Descriptor instead. -func (*ListContainerStreamResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{19} -} - -func (x *ListContainerStreamResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListContainerStreamResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListContainerStreamResponse) GetInfo() *ResourceInfo { - if x != nil { - return x.Info - } - return nil -} - -type ListContainerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // OPTIONAL. - // Arbitrary metadata be included with the resource. - // A key with the name '*' means to return all available arbitrary metadata. - ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` -} - -func (x *ListContainerRequest) Reset() { - *x = ListContainerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContainerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContainerRequest) ProtoMessage() {} - -func (x *ListContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[20] - 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 ListContainerRequest.ProtoReflect.Descriptor instead. -func (*ListContainerRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{20} -} - -func (x *ListContainerRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListContainerRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *ListContainerRequest) GetArbitraryMetadataKeys() []string { - if x != nil { - return x.ArbitraryMetadataKeys - } - return nil -} - -type ListContainerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of resource informations. - Infos []*ResourceInfo `protobuf:"bytes,3,rep,name=infos,proto3" json:"infos,omitempty"` -} - -func (x *ListContainerResponse) Reset() { - *x = ListContainerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContainerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContainerResponse) ProtoMessage() {} - -func (x *ListContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[21] - 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 ListContainerResponse.ProtoReflect.Descriptor instead. -func (*ListContainerResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{21} -} - -func (x *ListContainerResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListContainerResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListContainerResponse) GetInfos() []*ResourceInfo { - if x != nil { - return x.Infos - } - return nil -} - -type ListFileVersionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *ListFileVersionsRequest) Reset() { - *x = ListFileVersionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListFileVersionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListFileVersionsRequest) ProtoMessage() {} - -func (x *ListFileVersionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[22] - 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 ListFileVersionsRequest.ProtoReflect.Descriptor instead. -func (*ListFileVersionsRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{22} -} - -func (x *ListFileVersionsRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListFileVersionsRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -type ListFileVersionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of file versions. - Versions []*FileVersion `protobuf:"bytes,3,rep,name=versions,proto3" json:"versions,omitempty"` -} - -func (x *ListFileVersionsResponse) Reset() { - *x = ListFileVersionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListFileVersionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListFileVersionsResponse) ProtoMessage() {} - -func (x *ListFileVersionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[23] - 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 ListFileVersionsResponse.ProtoReflect.Descriptor instead. -func (*ListFileVersionsResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{23} -} - -func (x *ListFileVersionsResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListFileVersionsResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListFileVersionsResponse) GetVersions() []*FileVersion { - if x != nil { - return x.Versions - } - return nil -} - -type ListRecycleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The start time range to query for recycle items. - // The value is the Unix Epoch timestamp in seconds. - FromTs *v1beta1.Timestamp `protobuf:"bytes,2,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The end time range to query for recycle items. - // The value is Unix Epoch timestamp in seconds. - ToTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` -} - -func (x *ListRecycleRequest) Reset() { - *x = ListRecycleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRecycleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecycleRequest) ProtoMessage() {} - -func (x *ListRecycleRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[24] - 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 ListRecycleRequest.ProtoReflect.Descriptor instead. -func (*ListRecycleRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{24} -} - -func (x *ListRecycleRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListRecycleRequest) GetFromTs() *v1beta1.Timestamp { - if x != nil { - return x.FromTs - } - return nil -} - -func (x *ListRecycleRequest) GetToTs() *v1beta1.Timestamp { - if x != nil { - return x.ToTs - } - return nil -} - -type ListRecycleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of recycle items. - RecycleItems []*RecycleItem `protobuf:"bytes,3,rep,name=recycle_items,json=recycleItems,proto3" json:"recycle_items,omitempty"` -} - -func (x *ListRecycleResponse) Reset() { - *x = ListRecycleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRecycleResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecycleResponse) ProtoMessage() {} - -func (x *ListRecycleResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[25] - 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 ListRecycleResponse.ProtoReflect.Descriptor instead. -func (*ListRecycleResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{25} -} - -func (x *ListRecycleResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListRecycleResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListRecycleResponse) GetRecycleItems() []*RecycleItem { - if x != nil { - return x.RecycleItems - } - return nil -} - -type ListRecycleStreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The start time range to query for recycle items. - // The value is the Unix Epoch timestamp in seconds. - FromTs *v1beta1.Timestamp `protobuf:"bytes,2,opt,name=from_ts,json=fromTs,proto3" json:"from_ts,omitempty"` - // OPTIONAL. - // SHOULD be specified. - // The end time range to query for recycle items. - // The value is Unix Epoch timestamp in seconds. - ToTs *v1beta1.Timestamp `protobuf:"bytes,3,opt,name=to_ts,json=toTs,proto3" json:"to_ts,omitempty"` -} - -func (x *ListRecycleStreamRequest) Reset() { - *x = ListRecycleStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRecycleStreamRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecycleStreamRequest) ProtoMessage() {} - -func (x *ListRecycleStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[26] - 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 ListRecycleStreamRequest.ProtoReflect.Descriptor instead. -func (*ListRecycleStreamRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{26} -} - -func (x *ListRecycleStreamRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListRecycleStreamRequest) GetFromTs() *v1beta1.Timestamp { - if x != nil { - return x.FromTs - } - return nil -} - -func (x *ListRecycleStreamRequest) GetToTs() *v1beta1.Timestamp { - if x != nil { - return x.ToTs - } - return nil -} - -type ListRecycleStreamResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The recycle items. - RecycleItem *RecycleItem `protobuf:"bytes,3,opt,name=recycle_item,json=recycleItem,proto3" json:"recycle_item,omitempty"` -} - -func (x *ListRecycleStreamResponse) Reset() { - *x = ListRecycleStreamResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRecycleStreamResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecycleStreamResponse) ProtoMessage() {} - -func (x *ListRecycleStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[27] - 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 ListRecycleStreamResponse.ProtoReflect.Descriptor instead. -func (*ListRecycleStreamResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{27} -} - -func (x *ListRecycleStreamResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListRecycleStreamResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListRecycleStreamResponse) GetRecycleItem() *RecycleItem { - if x != nil { - return x.RecycleItem - } - return nil -} - -type MoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The source reference the resource is moved from. - Source *Reference `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - // REQUIRED. - // The destination reference the resource is moved to. - Destination *Reference `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"` -} - -func (x *MoveRequest) Reset() { - *x = MoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MoveRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MoveRequest) ProtoMessage() {} - -func (x *MoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[28] - 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 MoveRequest.ProtoReflect.Descriptor instead. -func (*MoveRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{28} -} - -func (x *MoveRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *MoveRequest) GetSource() *Reference { - if x != nil { - return x.Source - } - return nil -} - -func (x *MoveRequest) GetDestination() *Reference { - if x != nil { - return x.Destination - } - return nil -} - -type MoveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *MoveResponse) Reset() { - *x = MoveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MoveResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MoveResponse) ProtoMessage() {} - -func (x *MoveResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[29] - 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 MoveResponse.ProtoReflect.Descriptor instead. -func (*MoveResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{29} -} - -func (x *MoveResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *MoveResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type PurgeRecycleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *PurgeRecycleRequest) Reset() { - *x = PurgeRecycleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PurgeRecycleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PurgeRecycleRequest) ProtoMessage() {} - -func (x *PurgeRecycleRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[30] - 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 PurgeRecycleRequest.ProtoReflect.Descriptor instead. -func (*PurgeRecycleRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{30} -} - -func (x *PurgeRecycleRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *PurgeRecycleRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -type PurgeRecycleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *PurgeRecycleResponse) Reset() { - *x = PurgeRecycleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PurgeRecycleResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PurgeRecycleResponse) ProtoMessage() {} - -func (x *PurgeRecycleResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[31] - 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 PurgeRecycleResponse.ProtoReflect.Descriptor instead. -func (*PurgeRecycleResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{31} -} - -func (x *PurgeRecycleResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *PurgeRecycleResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type RestoreFileVersionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The key to restore a specific file version. - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` -} - -func (x *RestoreFileVersionRequest) Reset() { - *x = RestoreFileVersionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RestoreFileVersionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RestoreFileVersionRequest) ProtoMessage() {} - -func (x *RestoreFileVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[32] - 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 RestoreFileVersionRequest.ProtoReflect.Descriptor instead. -func (*RestoreFileVersionRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{32} -} - -func (x *RestoreFileVersionRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *RestoreFileVersionRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *RestoreFileVersionRequest) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -type RestoreFileVersionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *RestoreFileVersionResponse) Reset() { - *x = RestoreFileVersionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RestoreFileVersionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RestoreFileVersionResponse) ProtoMessage() {} - -func (x *RestoreFileVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[33] - 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 RestoreFileVersionResponse.ProtoReflect.Descriptor instead. -func (*RestoreFileVersionResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{33} -} - -func (x *RestoreFileVersionResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *RestoreFileVersionResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -// TODO: restore to original location if not specified as OPTIONAL? -type RestoreRecycleItemRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The key for the recycle item to be restored. - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - // OPTIONAL. - // An optional restore path for the deleted resource. - // It can be useful to restore to another location rather than - // the original. - // If empty, service implementors MUST restore - // to original location if possible. - RestorePath string `protobuf:"bytes,4,opt,name=restore_path,json=restorePath,proto3" json:"restore_path,omitempty"` -} - -func (x *RestoreRecycleItemRequest) Reset() { - *x = RestoreRecycleItemRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RestoreRecycleItemRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RestoreRecycleItemRequest) ProtoMessage() {} - -func (x *RestoreRecycleItemRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[34] - 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 RestoreRecycleItemRequest.ProtoReflect.Descriptor instead. -func (*RestoreRecycleItemRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{34} -} - -func (x *RestoreRecycleItemRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *RestoreRecycleItemRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *RestoreRecycleItemRequest) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *RestoreRecycleItemRequest) GetRestorePath() string { - if x != nil { - return x.RestorePath - } - return "" -} - -type RestoreRecycleItemResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *RestoreRecycleItemResponse) Reset() { - *x = RestoreRecycleItemResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RestoreRecycleItemResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RestoreRecycleItemResponse) ProtoMessage() {} - -func (x *RestoreRecycleItemResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[35] - 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 RestoreRecycleItemResponse.ProtoReflect.Descriptor instead. -func (*RestoreRecycleItemResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{35} -} - -func (x *RestoreRecycleItemResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *RestoreRecycleItemResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type RemoveGrantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The grant to remove. - Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` -} - -func (x *RemoveGrantRequest) Reset() { - *x = RemoveGrantRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveGrantRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveGrantRequest) ProtoMessage() {} - -func (x *RemoveGrantRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[36] - 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 RemoveGrantRequest.ProtoReflect.Descriptor instead. -func (*RemoveGrantRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{36} -} - -func (x *RemoveGrantRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *RemoveGrantRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *RemoveGrantRequest) GetGrant() *Grant { - if x != nil { - return x.Grant - } - return nil -} - -type RemoveGrantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *RemoveGrantResponse) Reset() { - *x = RemoveGrantResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveGrantResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveGrantResponse) ProtoMessage() {} - -func (x *RemoveGrantResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[37] - 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 RemoveGrantResponse.ProtoReflect.Descriptor instead. -func (*RemoveGrantResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{37} -} - -func (x *RemoveGrantResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *RemoveGrantResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type StatRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // OPTIONAL. - // Arbitrary metadata be included with the resource. - // A key with the name '*' means to return all available arbitrary metadata. - ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` -} - -func (x *StatRequest) Reset() { - *x = StatRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatRequest) ProtoMessage() {} - -func (x *StatRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[38] - 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 StatRequest.ProtoReflect.Descriptor instead. -func (*StatRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{38} -} - -func (x *StatRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *StatRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *StatRequest) GetArbitraryMetadataKeys() []string { - if x != nil { - return x.ArbitraryMetadataKeys - } - return nil -} - -type StatResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The resource information. - Info *ResourceInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` -} - -func (x *StatResponse) Reset() { - *x = StatResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatResponse) ProtoMessage() {} - -func (x *StatResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[39] - 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 StatResponse.ProtoReflect.Descriptor instead. -func (*StatResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{39} -} - -func (x *StatResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *StatResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *StatResponse) GetInfo() *ResourceInfo { - if x != nil { - return x.Info - } - return nil -} - -type UpdateGrantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The grant to be updated. - Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"` -} - -func (x *UpdateGrantRequest) Reset() { - *x = UpdateGrantRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGrantRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGrantRequest) ProtoMessage() {} - -func (x *UpdateGrantRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[40] - 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 UpdateGrantRequest.ProtoReflect.Descriptor instead. -func (*UpdateGrantRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{40} -} - -func (x *UpdateGrantRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UpdateGrantRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *UpdateGrantRequest) GetGrant() *Grant { - if x != nil { - return x.Grant - } - return nil -} - -type UpdateGrantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *UpdateGrantResponse) Reset() { - *x = UpdateGrantResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGrantResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGrantResponse) ProtoMessage() {} - -func (x *UpdateGrantResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[41] - 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 UpdateGrantResponse.ProtoReflect.Descriptor instead. -func (*UpdateGrantResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{41} -} - -func (x *UpdateGrantResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *UpdateGrantResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CreateSymlinkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The location where to store the symlink. - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - // REQUIRED. - // The link target can hold arbitrary text; if later resolved, - // a relative link is interpreted in relation to its parent directory - Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` -} - -func (x *CreateSymlinkRequest) Reset() { - *x = CreateSymlinkRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateSymlinkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateSymlinkRequest) ProtoMessage() {} - -func (x *CreateSymlinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[42] - 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 CreateSymlinkRequest.ProtoReflect.Descriptor instead. -func (*CreateSymlinkRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{42} -} - -func (x *CreateSymlinkRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateSymlinkRequest) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *CreateSymlinkRequest) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -type CreateSymlinkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CreateSymlinkResponse) Reset() { - *x = CreateSymlinkResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateSymlinkResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateSymlinkResponse) ProtoMessage() {} - -func (x *CreateSymlinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[43] - 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 CreateSymlinkResponse.ProtoReflect.Descriptor instead. -func (*CreateSymlinkResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{43} -} - -func (x *CreateSymlinkResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateSymlinkResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CreateReferenceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The location where to store the reference. - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - // REQUIRED. - // The reference resource by RFC3986. - TargetUri string `protobuf:"bytes,3,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"` -} - -func (x *CreateReferenceRequest) Reset() { - *x = CreateReferenceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateReferenceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateReferenceRequest) ProtoMessage() {} - -func (x *CreateReferenceRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[44] - 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 CreateReferenceRequest.ProtoReflect.Descriptor instead. -func (*CreateReferenceRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{44} -} - -func (x *CreateReferenceRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *CreateReferenceRequest) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *CreateReferenceRequest) GetTargetUri() string { - if x != nil { - return x.TargetUri - } - return "" -} - -type CreateReferenceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CreateReferenceResponse) Reset() { - *x = CreateReferenceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateReferenceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateReferenceResponse) ProtoMessage() {} - -func (x *CreateReferenceResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[45] - 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 CreateReferenceResponse.ProtoReflect.Descriptor instead. -func (*CreateReferenceResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{45} -} - -func (x *CreateReferenceResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateReferenceResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type SetArbitraryMetadataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The arbitrary metadata to add to the resource. - ArbitraryMetadata *ArbitraryMetadata `protobuf:"bytes,3,opt,name=arbitrary_metadata,json=arbitraryMetadata,proto3" json:"arbitrary_metadata,omitempty"` -} - -func (x *SetArbitraryMetadataRequest) Reset() { - *x = SetArbitraryMetadataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetArbitraryMetadataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetArbitraryMetadataRequest) ProtoMessage() {} - -func (x *SetArbitraryMetadataRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[46] - 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 SetArbitraryMetadataRequest.ProtoReflect.Descriptor instead. -func (*SetArbitraryMetadataRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{46} -} - -func (x *SetArbitraryMetadataRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *SetArbitraryMetadataRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *SetArbitraryMetadataRequest) GetArbitraryMetadata() *ArbitraryMetadata { - if x != nil { - return x.ArbitraryMetadata - } - return nil -} - -type SetArbitraryMetadataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *SetArbitraryMetadataResponse) Reset() { - *x = SetArbitraryMetadataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetArbitraryMetadataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetArbitraryMetadataResponse) ProtoMessage() {} - -func (x *SetArbitraryMetadataResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[47] - 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 SetArbitraryMetadataResponse.ProtoReflect.Descriptor instead. -func (*SetArbitraryMetadataResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{47} -} - -func (x *SetArbitraryMetadataResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *SetArbitraryMetadataResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type UnsetArbitraryMetadataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference to which the action should be performed. - Ref *Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The arbitrary metadata to delete. - ArbitraryMetadataKeys []string `protobuf:"bytes,3,rep,name=arbitrary_metadata_keys,json=arbitraryMetadataKeys,proto3" json:"arbitrary_metadata_keys,omitempty"` -} - -func (x *UnsetArbitraryMetadataRequest) Reset() { - *x = UnsetArbitraryMetadataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnsetArbitraryMetadataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnsetArbitraryMetadataRequest) ProtoMessage() {} - -func (x *UnsetArbitraryMetadataRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[48] - 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 UnsetArbitraryMetadataRequest.ProtoReflect.Descriptor instead. -func (*UnsetArbitraryMetadataRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{48} -} - -func (x *UnsetArbitraryMetadataRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *UnsetArbitraryMetadataRequest) GetRef() *Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *UnsetArbitraryMetadataRequest) GetArbitraryMetadataKeys() []string { - if x != nil { - return x.ArbitraryMetadataKeys - } - return nil -} - -type UnsetArbitraryMetadataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *UnsetArbitraryMetadataResponse) Reset() { - *x = UnsetArbitraryMetadataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnsetArbitraryMetadataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnsetArbitraryMetadataResponse) ProtoMessage() {} - -func (x *UnsetArbitraryMetadataResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[49] - 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 UnsetArbitraryMetadataResponse.ProtoReflect.Descriptor instead. -func (*UnsetArbitraryMetadataResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{49} -} - -func (x *UnsetArbitraryMetadataResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *UnsetArbitraryMetadataResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CreateHomeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CreateHomeRequest) Reset() { - *x = CreateHomeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateHomeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateHomeRequest) ProtoMessage() {} - -func (x *CreateHomeRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[50] - 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 CreateHomeRequest.ProtoReflect.Descriptor instead. -func (*CreateHomeRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{50} -} - -func (x *CreateHomeRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CreateHomeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CreateHomeResponse) Reset() { - *x = CreateHomeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateHomeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateHomeResponse) ProtoMessage() {} - -func (x *CreateHomeResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[51] - 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 CreateHomeResponse.ProtoReflect.Descriptor instead. -func (*CreateHomeResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP(), []int{51} -} - -func (x *CreateHomeResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateHomeResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -var File_cs3_storage_provider_v1beta1_provider_api_proto protoreflect.FileDescriptor - -var file_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc = []byte{ - 0x0a, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x1c, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, - 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, - 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x0e, 0x47, 0x65, - 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, - 0x89, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0xba, 0x01, 0x0a, 0x0f, - 0x41, 0x64, 0x64, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x39, 0x0a, - 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x76, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x22, 0x86, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, - 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7d, 0x0a, 0x17, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x7d, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, - 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x74, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x8e, 0x01, - 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x89, - 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x44, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x22, 0xb6, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, - 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, - 0x75, 0x73, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x19, 0x49, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, - 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xd0, 0x01, 0x0a, 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x55, - 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x09, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x1b, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, - 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xd4, 0x01, 0x0a, 0x1c, 0x49, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x50, 0x0a, 0x09, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, - 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x22, 0x81, 0x01, - 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, - 0x66, 0x22, 0xb5, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x06, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x1a, 0x4c, 0x69, - 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, - 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, - 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6b, 0x65, 0x79, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, - 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xc1, - 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, - 0x66, 0x6f, 0x22, 0xbc, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, - 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x72, 0x62, - 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x61, 0x72, 0x62, 0x69, - 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, - 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x40, 0x0a, 0x05, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x69, 0x6e, 0x66, 0x6f, - 0x73, 0x22, 0x87, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xc5, 0x01, 0x0a, 0x18, - 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x08, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x46, 0x69, - 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, - 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x35, 0x0a, - 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, - 0x6f, 0x6d, 0x54, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x6f, 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x04, 0x74, 0x6f, 0x54, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x69, - 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, - 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, - 0x65, 0x6d, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, - 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x74, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x06, 0x66, 0x72, 0x6f, 0x6d, 0x54, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x6f, - 0x5f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x6f, 0x54, 0x73, 0x22, 0xcd, 0x01, - 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x4c, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, - 0x52, 0x0b, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x22, 0xcc, 0x01, - 0x0a, 0x0b, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, 0x0a, 0x0c, - 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x22, 0x83, 0x01, 0x0a, 0x13, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, - 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0x7a, 0x0a, 0x14, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, - 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, - 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x22, 0x80, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x22, 0xbe, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, - 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x50, 0x61, 0x74, 0x68, 0x22, 0x80, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xbd, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, - 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x39, 0x0a, 0x05, - 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x79, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x22, 0xb3, 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, - 0x12, 0x36, 0x0a, 0x17, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x15, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, - 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xbd, 0x01, - 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, - 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, - 0x65, 0x66, 0x12, 0x39, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x79, 0x0a, - 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x75, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, - 0x7b, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x7e, 0x0a, 0x16, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, - 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x72, 0x69, 0x22, 0x7d, 0x0a, 0x17, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xeb, 0x01, 0x0a, 0x1b, - 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, - 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x5e, 0x0a, 0x12, 0x61, 0x72, 0x62, - 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, - 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x82, 0x01, 0x0a, 0x1c, 0x53, 0x65, - 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xc5, - 0x01, 0x0a, 0x1d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, - 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x36, - 0x0a, 0x17, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x15, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x1e, 0x55, 0x6e, 0x73, 0x65, 0x74, - 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x46, 0x0a, - 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x78, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, - 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x32, - 0xef, 0x18, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, - 0x69, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x0f, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x34, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x06, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x66, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, - 0x6f, 0x74, 0x61, 0x12, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, - 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x39, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, - 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, - 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, - 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0a, - 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8c, 0x01, - 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x78, 0x0a, 0x0d, - 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x32, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x46, - 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, - 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x12, 0x36, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, - 0x63, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x30, 0x01, 0x12, 0x72, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, - 0x6c, 0x65, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 0x65, 0x12, - 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, - 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0c, 0x50, 0x75, - 0x72, 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x31, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x52, - 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x72, - 0x67, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, - 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, - 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x12, - 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, - 0x65, 0x6d, 0x12, 0x37, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, - 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x29, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, - 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x7e, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, - 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, - 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, - 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x16, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, - 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, - 0x65, 0x74, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x41, - 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x6f, 0x6d, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x07, 0x47, 0x65, 0x74, - 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x8b, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, - 0x50, 0xaa, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, - 0xca, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5c, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescOnce sync.Once - file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData = file_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc -) - -func file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescGZIP() []byte { - file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescOnce.Do(func() { - file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData) - }) - return file_cs3_storage_provider_v1beta1_provider_api_proto_rawDescData -} - -var file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes = make([]protoimpl.MessageInfo, 52) -var file_cs3_storage_provider_v1beta1_provider_api_proto_goTypes = []interface{}{ - (*GetHomeRequest)(nil), // 0: cs3.storage.provider.v1beta1.GetHomeRequest - (*GetHomeResponse)(nil), // 1: cs3.storage.provider.v1beta1.GetHomeResponse - (*AddGrantRequest)(nil), // 2: cs3.storage.provider.v1beta1.AddGrantRequest - (*AddGrantResponse)(nil), // 3: cs3.storage.provider.v1beta1.AddGrantResponse - (*CreateContainerRequest)(nil), // 4: cs3.storage.provider.v1beta1.CreateContainerRequest - (*CreateContainerResponse)(nil), // 5: cs3.storage.provider.v1beta1.CreateContainerResponse - (*DeleteRequest)(nil), // 6: cs3.storage.provider.v1beta1.DeleteRequest - (*DeleteResponse)(nil), // 7: cs3.storage.provider.v1beta1.DeleteResponse - (*GetPathRequest)(nil), // 8: cs3.storage.provider.v1beta1.GetPathRequest - (*GetPathResponse)(nil), // 9: cs3.storage.provider.v1beta1.GetPathResponse - (*GetQuotaRequest)(nil), // 10: cs3.storage.provider.v1beta1.GetQuotaRequest - (*GetQuotaResponse)(nil), // 11: cs3.storage.provider.v1beta1.GetQuotaResponse - (*InitiateFileUploadRequest)(nil), // 12: cs3.storage.provider.v1beta1.InitiateFileUploadRequest - (*InitiateFileUploadResponse)(nil), // 13: cs3.storage.provider.v1beta1.InitiateFileUploadResponse - (*InitiateFileDownloadRequest)(nil), // 14: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest - (*InitiateFileDownloadResponse)(nil), // 15: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse - (*ListGrantsRequest)(nil), // 16: cs3.storage.provider.v1beta1.ListGrantsRequest - (*ListGrantsResponse)(nil), // 17: cs3.storage.provider.v1beta1.ListGrantsResponse - (*ListContainerStreamRequest)(nil), // 18: cs3.storage.provider.v1beta1.ListContainerStreamRequest - (*ListContainerStreamResponse)(nil), // 19: cs3.storage.provider.v1beta1.ListContainerStreamResponse - (*ListContainerRequest)(nil), // 20: cs3.storage.provider.v1beta1.ListContainerRequest - (*ListContainerResponse)(nil), // 21: cs3.storage.provider.v1beta1.ListContainerResponse - (*ListFileVersionsRequest)(nil), // 22: cs3.storage.provider.v1beta1.ListFileVersionsRequest - (*ListFileVersionsResponse)(nil), // 23: cs3.storage.provider.v1beta1.ListFileVersionsResponse - (*ListRecycleRequest)(nil), // 24: cs3.storage.provider.v1beta1.ListRecycleRequest - (*ListRecycleResponse)(nil), // 25: cs3.storage.provider.v1beta1.ListRecycleResponse - (*ListRecycleStreamRequest)(nil), // 26: cs3.storage.provider.v1beta1.ListRecycleStreamRequest - (*ListRecycleStreamResponse)(nil), // 27: cs3.storage.provider.v1beta1.ListRecycleStreamResponse - (*MoveRequest)(nil), // 28: cs3.storage.provider.v1beta1.MoveRequest - (*MoveResponse)(nil), // 29: cs3.storage.provider.v1beta1.MoveResponse - (*PurgeRecycleRequest)(nil), // 30: cs3.storage.provider.v1beta1.PurgeRecycleRequest - (*PurgeRecycleResponse)(nil), // 31: cs3.storage.provider.v1beta1.PurgeRecycleResponse - (*RestoreFileVersionRequest)(nil), // 32: cs3.storage.provider.v1beta1.RestoreFileVersionRequest - (*RestoreFileVersionResponse)(nil), // 33: cs3.storage.provider.v1beta1.RestoreFileVersionResponse - (*RestoreRecycleItemRequest)(nil), // 34: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest - (*RestoreRecycleItemResponse)(nil), // 35: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse - (*RemoveGrantRequest)(nil), // 36: cs3.storage.provider.v1beta1.RemoveGrantRequest - (*RemoveGrantResponse)(nil), // 37: cs3.storage.provider.v1beta1.RemoveGrantResponse - (*StatRequest)(nil), // 38: cs3.storage.provider.v1beta1.StatRequest - (*StatResponse)(nil), // 39: cs3.storage.provider.v1beta1.StatResponse - (*UpdateGrantRequest)(nil), // 40: cs3.storage.provider.v1beta1.UpdateGrantRequest - (*UpdateGrantResponse)(nil), // 41: cs3.storage.provider.v1beta1.UpdateGrantResponse - (*CreateSymlinkRequest)(nil), // 42: cs3.storage.provider.v1beta1.CreateSymlinkRequest - (*CreateSymlinkResponse)(nil), // 43: cs3.storage.provider.v1beta1.CreateSymlinkResponse - (*CreateReferenceRequest)(nil), // 44: cs3.storage.provider.v1beta1.CreateReferenceRequest - (*CreateReferenceResponse)(nil), // 45: cs3.storage.provider.v1beta1.CreateReferenceResponse - (*SetArbitraryMetadataRequest)(nil), // 46: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest - (*SetArbitraryMetadataResponse)(nil), // 47: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse - (*UnsetArbitraryMetadataRequest)(nil), // 48: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest - (*UnsetArbitraryMetadataResponse)(nil), // 49: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse - (*CreateHomeRequest)(nil), // 50: cs3.storage.provider.v1beta1.CreateHomeRequest - (*CreateHomeResponse)(nil), // 51: cs3.storage.provider.v1beta1.CreateHomeResponse - (*v1beta1.Opaque)(nil), // 52: cs3.types.v1beta1.Opaque - (*v1beta11.Status)(nil), // 53: cs3.rpc.v1beta1.Status - (*Reference)(nil), // 54: cs3.storage.provider.v1beta1.Reference - (*Grant)(nil), // 55: cs3.storage.provider.v1beta1.Grant - (*ResourceId)(nil), // 56: cs3.storage.provider.v1beta1.ResourceId - (*FileUploadProtocol)(nil), // 57: cs3.storage.provider.v1beta1.FileUploadProtocol - (*FileDownloadProtocol)(nil), // 58: cs3.storage.provider.v1beta1.FileDownloadProtocol - (*ResourceInfo)(nil), // 59: cs3.storage.provider.v1beta1.ResourceInfo - (*FileVersion)(nil), // 60: cs3.storage.provider.v1beta1.FileVersion - (*v1beta1.Timestamp)(nil), // 61: cs3.types.v1beta1.Timestamp - (*RecycleItem)(nil), // 62: cs3.storage.provider.v1beta1.RecycleItem - (*ArbitraryMetadata)(nil), // 63: cs3.storage.provider.v1beta1.ArbitraryMetadata -} -var file_cs3_storage_provider_v1beta1_provider_api_proto_depIdxs = []int32{ - 52, // 0: cs3.storage.provider.v1beta1.GetHomeRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 53, // 1: cs3.storage.provider.v1beta1.GetHomeResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 2: cs3.storage.provider.v1beta1.GetHomeResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 3: cs3.storage.provider.v1beta1.AddGrantRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 4: cs3.storage.provider.v1beta1.AddGrantRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 55, // 5: cs3.storage.provider.v1beta1.AddGrantRequest.grant:type_name -> cs3.storage.provider.v1beta1.Grant - 53, // 6: cs3.storage.provider.v1beta1.AddGrantResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 7: cs3.storage.provider.v1beta1.AddGrantResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 8: cs3.storage.provider.v1beta1.CreateContainerRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 9: cs3.storage.provider.v1beta1.CreateContainerRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 10: cs3.storage.provider.v1beta1.CreateContainerResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 11: cs3.storage.provider.v1beta1.CreateContainerResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 12: cs3.storage.provider.v1beta1.DeleteRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 13: cs3.storage.provider.v1beta1.DeleteRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 14: cs3.storage.provider.v1beta1.DeleteResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 15: cs3.storage.provider.v1beta1.DeleteResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 16: cs3.storage.provider.v1beta1.GetPathRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 56, // 17: cs3.storage.provider.v1beta1.GetPathRequest.resource_id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 53, // 18: cs3.storage.provider.v1beta1.GetPathResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 19: cs3.storage.provider.v1beta1.GetPathResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 20: cs3.storage.provider.v1beta1.GetQuotaRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 53, // 21: cs3.storage.provider.v1beta1.GetQuotaResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 22: cs3.storage.provider.v1beta1.GetQuotaResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 23: cs3.storage.provider.v1beta1.InitiateFileUploadRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 24: cs3.storage.provider.v1beta1.InitiateFileUploadRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 25: cs3.storage.provider.v1beta1.InitiateFileUploadResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 26: cs3.storage.provider.v1beta1.InitiateFileUploadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 57, // 27: cs3.storage.provider.v1beta1.InitiateFileUploadResponse.protocols:type_name -> cs3.storage.provider.v1beta1.FileUploadProtocol - 52, // 28: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 29: cs3.storage.provider.v1beta1.InitiateFileDownloadRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 30: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 31: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 58, // 32: cs3.storage.provider.v1beta1.InitiateFileDownloadResponse.protocols:type_name -> cs3.storage.provider.v1beta1.FileDownloadProtocol - 52, // 33: cs3.storage.provider.v1beta1.ListGrantsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 34: cs3.storage.provider.v1beta1.ListGrantsRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 35: cs3.storage.provider.v1beta1.ListGrantsResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 36: cs3.storage.provider.v1beta1.ListGrantsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 55, // 37: cs3.storage.provider.v1beta1.ListGrantsResponse.grants:type_name -> cs3.storage.provider.v1beta1.Grant - 52, // 38: cs3.storage.provider.v1beta1.ListContainerStreamRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 39: cs3.storage.provider.v1beta1.ListContainerStreamRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 40: cs3.storage.provider.v1beta1.ListContainerStreamResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 41: cs3.storage.provider.v1beta1.ListContainerStreamResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 59, // 42: cs3.storage.provider.v1beta1.ListContainerStreamResponse.info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo - 52, // 43: cs3.storage.provider.v1beta1.ListContainerRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 44: cs3.storage.provider.v1beta1.ListContainerRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 45: cs3.storage.provider.v1beta1.ListContainerResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 46: cs3.storage.provider.v1beta1.ListContainerResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 59, // 47: cs3.storage.provider.v1beta1.ListContainerResponse.infos:type_name -> cs3.storage.provider.v1beta1.ResourceInfo - 52, // 48: cs3.storage.provider.v1beta1.ListFileVersionsRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 49: cs3.storage.provider.v1beta1.ListFileVersionsRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 50: cs3.storage.provider.v1beta1.ListFileVersionsResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 51: cs3.storage.provider.v1beta1.ListFileVersionsResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 60, // 52: cs3.storage.provider.v1beta1.ListFileVersionsResponse.versions:type_name -> cs3.storage.provider.v1beta1.FileVersion - 52, // 53: cs3.storage.provider.v1beta1.ListRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 61, // 54: cs3.storage.provider.v1beta1.ListRecycleRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp - 61, // 55: cs3.storage.provider.v1beta1.ListRecycleRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp - 53, // 56: cs3.storage.provider.v1beta1.ListRecycleResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 57: cs3.storage.provider.v1beta1.ListRecycleResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 62, // 58: cs3.storage.provider.v1beta1.ListRecycleResponse.recycle_items:type_name -> cs3.storage.provider.v1beta1.RecycleItem - 52, // 59: cs3.storage.provider.v1beta1.ListRecycleStreamRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 61, // 60: cs3.storage.provider.v1beta1.ListRecycleStreamRequest.from_ts:type_name -> cs3.types.v1beta1.Timestamp - 61, // 61: cs3.storage.provider.v1beta1.ListRecycleStreamRequest.to_ts:type_name -> cs3.types.v1beta1.Timestamp - 53, // 62: cs3.storage.provider.v1beta1.ListRecycleStreamResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 63: cs3.storage.provider.v1beta1.ListRecycleStreamResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 62, // 64: cs3.storage.provider.v1beta1.ListRecycleStreamResponse.recycle_item:type_name -> cs3.storage.provider.v1beta1.RecycleItem - 52, // 65: cs3.storage.provider.v1beta1.MoveRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 66: cs3.storage.provider.v1beta1.MoveRequest.source:type_name -> cs3.storage.provider.v1beta1.Reference - 54, // 67: cs3.storage.provider.v1beta1.MoveRequest.destination:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 68: cs3.storage.provider.v1beta1.MoveResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 69: cs3.storage.provider.v1beta1.MoveResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 70: cs3.storage.provider.v1beta1.PurgeRecycleRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 71: cs3.storage.provider.v1beta1.PurgeRecycleRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 72: cs3.storage.provider.v1beta1.PurgeRecycleResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 73: cs3.storage.provider.v1beta1.PurgeRecycleResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 74: cs3.storage.provider.v1beta1.RestoreFileVersionRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 75: cs3.storage.provider.v1beta1.RestoreFileVersionRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 76: cs3.storage.provider.v1beta1.RestoreFileVersionResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 77: cs3.storage.provider.v1beta1.RestoreFileVersionResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 78: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 79: cs3.storage.provider.v1beta1.RestoreRecycleItemRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 80: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 81: cs3.storage.provider.v1beta1.RestoreRecycleItemResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 82: cs3.storage.provider.v1beta1.RemoveGrantRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 83: cs3.storage.provider.v1beta1.RemoveGrantRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 55, // 84: cs3.storage.provider.v1beta1.RemoveGrantRequest.grant:type_name -> cs3.storage.provider.v1beta1.Grant - 53, // 85: cs3.storage.provider.v1beta1.RemoveGrantResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 86: cs3.storage.provider.v1beta1.RemoveGrantResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 87: cs3.storage.provider.v1beta1.StatRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 88: cs3.storage.provider.v1beta1.StatRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 89: cs3.storage.provider.v1beta1.StatResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 90: cs3.storage.provider.v1beta1.StatResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 59, // 91: cs3.storage.provider.v1beta1.StatResponse.info:type_name -> cs3.storage.provider.v1beta1.ResourceInfo - 52, // 92: cs3.storage.provider.v1beta1.UpdateGrantRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 93: cs3.storage.provider.v1beta1.UpdateGrantRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 55, // 94: cs3.storage.provider.v1beta1.UpdateGrantRequest.grant:type_name -> cs3.storage.provider.v1beta1.Grant - 53, // 95: cs3.storage.provider.v1beta1.UpdateGrantResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 96: cs3.storage.provider.v1beta1.UpdateGrantResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 97: cs3.storage.provider.v1beta1.CreateSymlinkRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 53, // 98: cs3.storage.provider.v1beta1.CreateSymlinkResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 99: cs3.storage.provider.v1beta1.CreateSymlinkResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 100: cs3.storage.provider.v1beta1.CreateReferenceRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 53, // 101: cs3.storage.provider.v1beta1.CreateReferenceResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 102: cs3.storage.provider.v1beta1.CreateReferenceResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 103: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 104: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 63, // 105: cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest.arbitrary_metadata:type_name -> cs3.storage.provider.v1beta1.ArbitraryMetadata - 53, // 106: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 107: cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 108: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 54, // 109: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 53, // 110: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 111: cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 52, // 112: cs3.storage.provider.v1beta1.CreateHomeRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 53, // 113: cs3.storage.provider.v1beta1.CreateHomeResponse.status:type_name -> cs3.rpc.v1beta1.Status - 52, // 114: cs3.storage.provider.v1beta1.CreateHomeResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 2, // 115: cs3.storage.provider.v1beta1.ProviderAPI.AddGrant:input_type -> cs3.storage.provider.v1beta1.AddGrantRequest - 4, // 116: cs3.storage.provider.v1beta1.ProviderAPI.CreateContainer:input_type -> cs3.storage.provider.v1beta1.CreateContainerRequest - 6, // 117: cs3.storage.provider.v1beta1.ProviderAPI.Delete:input_type -> cs3.storage.provider.v1beta1.DeleteRequest - 8, // 118: cs3.storage.provider.v1beta1.ProviderAPI.GetPath:input_type -> cs3.storage.provider.v1beta1.GetPathRequest - 10, // 119: cs3.storage.provider.v1beta1.ProviderAPI.GetQuota:input_type -> cs3.storage.provider.v1beta1.GetQuotaRequest - 14, // 120: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileDownload:input_type -> cs3.storage.provider.v1beta1.InitiateFileDownloadRequest - 12, // 121: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileUpload:input_type -> cs3.storage.provider.v1beta1.InitiateFileUploadRequest - 16, // 122: cs3.storage.provider.v1beta1.ProviderAPI.ListGrants:input_type -> cs3.storage.provider.v1beta1.ListGrantsRequest - 18, // 123: cs3.storage.provider.v1beta1.ProviderAPI.ListContainerStream:input_type -> cs3.storage.provider.v1beta1.ListContainerStreamRequest - 20, // 124: cs3.storage.provider.v1beta1.ProviderAPI.ListContainer:input_type -> cs3.storage.provider.v1beta1.ListContainerRequest - 22, // 125: cs3.storage.provider.v1beta1.ProviderAPI.ListFileVersions:input_type -> cs3.storage.provider.v1beta1.ListFileVersionsRequest - 26, // 126: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycleStream:input_type -> cs3.storage.provider.v1beta1.ListRecycleStreamRequest - 24, // 127: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycle:input_type -> cs3.storage.provider.v1beta1.ListRecycleRequest - 28, // 128: cs3.storage.provider.v1beta1.ProviderAPI.Move:input_type -> cs3.storage.provider.v1beta1.MoveRequest - 36, // 129: cs3.storage.provider.v1beta1.ProviderAPI.RemoveGrant:input_type -> cs3.storage.provider.v1beta1.RemoveGrantRequest - 30, // 130: cs3.storage.provider.v1beta1.ProviderAPI.PurgeRecycle:input_type -> cs3.storage.provider.v1beta1.PurgeRecycleRequest - 32, // 131: cs3.storage.provider.v1beta1.ProviderAPI.RestoreFileVersion:input_type -> cs3.storage.provider.v1beta1.RestoreFileVersionRequest - 34, // 132: cs3.storage.provider.v1beta1.ProviderAPI.RestoreRecycleItem:input_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemRequest - 38, // 133: cs3.storage.provider.v1beta1.ProviderAPI.Stat:input_type -> cs3.storage.provider.v1beta1.StatRequest - 40, // 134: cs3.storage.provider.v1beta1.ProviderAPI.UpdateGrant:input_type -> cs3.storage.provider.v1beta1.UpdateGrantRequest - 42, // 135: cs3.storage.provider.v1beta1.ProviderAPI.CreateSymlink:input_type -> cs3.storage.provider.v1beta1.CreateSymlinkRequest - 44, // 136: cs3.storage.provider.v1beta1.ProviderAPI.CreateReference:input_type -> cs3.storage.provider.v1beta1.CreateReferenceRequest - 46, // 137: cs3.storage.provider.v1beta1.ProviderAPI.SetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataRequest - 48, // 138: cs3.storage.provider.v1beta1.ProviderAPI.UnsetArbitraryMetadata:input_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataRequest - 50, // 139: cs3.storage.provider.v1beta1.ProviderAPI.CreateHome:input_type -> cs3.storage.provider.v1beta1.CreateHomeRequest - 0, // 140: cs3.storage.provider.v1beta1.ProviderAPI.GetHome:input_type -> cs3.storage.provider.v1beta1.GetHomeRequest - 3, // 141: cs3.storage.provider.v1beta1.ProviderAPI.AddGrant:output_type -> cs3.storage.provider.v1beta1.AddGrantResponse - 5, // 142: cs3.storage.provider.v1beta1.ProviderAPI.CreateContainer:output_type -> cs3.storage.provider.v1beta1.CreateContainerResponse - 7, // 143: cs3.storage.provider.v1beta1.ProviderAPI.Delete:output_type -> cs3.storage.provider.v1beta1.DeleteResponse - 9, // 144: cs3.storage.provider.v1beta1.ProviderAPI.GetPath:output_type -> cs3.storage.provider.v1beta1.GetPathResponse - 11, // 145: cs3.storage.provider.v1beta1.ProviderAPI.GetQuota:output_type -> cs3.storage.provider.v1beta1.GetQuotaResponse - 15, // 146: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileDownload:output_type -> cs3.storage.provider.v1beta1.InitiateFileDownloadResponse - 13, // 147: cs3.storage.provider.v1beta1.ProviderAPI.InitiateFileUpload:output_type -> cs3.storage.provider.v1beta1.InitiateFileUploadResponse - 17, // 148: cs3.storage.provider.v1beta1.ProviderAPI.ListGrants:output_type -> cs3.storage.provider.v1beta1.ListGrantsResponse - 19, // 149: cs3.storage.provider.v1beta1.ProviderAPI.ListContainerStream:output_type -> cs3.storage.provider.v1beta1.ListContainerStreamResponse - 21, // 150: cs3.storage.provider.v1beta1.ProviderAPI.ListContainer:output_type -> cs3.storage.provider.v1beta1.ListContainerResponse - 23, // 151: cs3.storage.provider.v1beta1.ProviderAPI.ListFileVersions:output_type -> cs3.storage.provider.v1beta1.ListFileVersionsResponse - 27, // 152: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycleStream:output_type -> cs3.storage.provider.v1beta1.ListRecycleStreamResponse - 25, // 153: cs3.storage.provider.v1beta1.ProviderAPI.ListRecycle:output_type -> cs3.storage.provider.v1beta1.ListRecycleResponse - 29, // 154: cs3.storage.provider.v1beta1.ProviderAPI.Move:output_type -> cs3.storage.provider.v1beta1.MoveResponse - 37, // 155: cs3.storage.provider.v1beta1.ProviderAPI.RemoveGrant:output_type -> cs3.storage.provider.v1beta1.RemoveGrantResponse - 31, // 156: cs3.storage.provider.v1beta1.ProviderAPI.PurgeRecycle:output_type -> cs3.storage.provider.v1beta1.PurgeRecycleResponse - 33, // 157: cs3.storage.provider.v1beta1.ProviderAPI.RestoreFileVersion:output_type -> cs3.storage.provider.v1beta1.RestoreFileVersionResponse - 35, // 158: cs3.storage.provider.v1beta1.ProviderAPI.RestoreRecycleItem:output_type -> cs3.storage.provider.v1beta1.RestoreRecycleItemResponse - 39, // 159: cs3.storage.provider.v1beta1.ProviderAPI.Stat:output_type -> cs3.storage.provider.v1beta1.StatResponse - 41, // 160: cs3.storage.provider.v1beta1.ProviderAPI.UpdateGrant:output_type -> cs3.storage.provider.v1beta1.UpdateGrantResponse - 43, // 161: cs3.storage.provider.v1beta1.ProviderAPI.CreateSymlink:output_type -> cs3.storage.provider.v1beta1.CreateSymlinkResponse - 45, // 162: cs3.storage.provider.v1beta1.ProviderAPI.CreateReference:output_type -> cs3.storage.provider.v1beta1.CreateReferenceResponse - 47, // 163: cs3.storage.provider.v1beta1.ProviderAPI.SetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.SetArbitraryMetadataResponse - 49, // 164: cs3.storage.provider.v1beta1.ProviderAPI.UnsetArbitraryMetadata:output_type -> cs3.storage.provider.v1beta1.UnsetArbitraryMetadataResponse - 51, // 165: cs3.storage.provider.v1beta1.ProviderAPI.CreateHome:output_type -> cs3.storage.provider.v1beta1.CreateHomeResponse - 1, // 166: cs3.storage.provider.v1beta1.ProviderAPI.GetHome:output_type -> cs3.storage.provider.v1beta1.GetHomeResponse - 141, // [141:167] is the sub-list for method output_type - 115, // [115:141] is the sub-list for method input_type - 115, // [115:115] is the sub-list for extension type_name - 115, // [115:115] is the sub-list for extension extendee - 0, // [0:115] is the sub-list for field type_name -} - -func init() { file_cs3_storage_provider_v1beta1_provider_api_proto_init() } -func file_cs3_storage_provider_v1beta1_provider_api_proto_init() { - if File_cs3_storage_provider_v1beta1_provider_api_proto != nil { - return - } - file_cs3_storage_provider_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetHomeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetHomeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddGrantRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddGrantResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateContainerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateContainerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPathRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPathResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetQuotaRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetQuotaResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateFileUploadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateFileUploadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateFileDownloadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateFileDownloadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGrantsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGrantsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContainerStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContainerStreamResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContainerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContainerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListFileVersionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListFileVersionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecycleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecycleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecycleStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecycleStreamResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeRecycleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeRecycleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RestoreFileVersionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RestoreFileVersionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RestoreRecycleItemRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RestoreRecycleItemResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveGrantRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveGrantResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGrantRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGrantResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateSymlinkRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateSymlinkResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateReferenceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateReferenceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetArbitraryMetadataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetArbitraryMetadataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnsetArbitraryMetadataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnsetArbitraryMetadataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateHomeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateHomeResponse); 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_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 52, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_storage_provider_v1beta1_provider_api_proto_goTypes, - DependencyIndexes: file_cs3_storage_provider_v1beta1_provider_api_proto_depIdxs, - MessageInfos: file_cs3_storage_provider_v1beta1_provider_api_proto_msgTypes, - }.Build() - File_cs3_storage_provider_v1beta1_provider_api_proto = out.File - file_cs3_storage_provider_v1beta1_provider_api_proto_rawDesc = nil - file_cs3_storage_provider_v1beta1_provider_api_proto_goTypes = nil - file_cs3_storage_provider_v1beta1_provider_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ProviderAPIClient is the client API for ProviderAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProviderAPIClient interface { - // Adds a new grant for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - AddGrant(ctx context.Context, in *AddGrantRequest, opts ...grpc.CallOption) (*AddGrantResponse, error) - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error) - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(ctx context.Context, in *GetPathRequest, opts ...grpc.CallOption) (*GetPathResponse, error) - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*GetQuotaResponse, error) - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) - // Returns the list of grants for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...grpc.CallOption) (*ListGrantsResponse, error) - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListContainerStreamClient, error) - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(ctx context.Context, in *ListContainerRequest, opts ...grpc.CallOption) (*ListContainerResponse, error) - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...grpc.CallOption) (*ListFileVersionsResponse, error) - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListRecycleStreamClient, error) - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*ListRecycleResponse, error) - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(ctx context.Context, in *MoveRequest, opts ...grpc.CallOption) (*MoveResponse, error) - // Removes a grant for the provided reference. - // This is recursive and atomic for directories. Does not follow references. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if grant does not exist. - RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...grpc.CallOption) (*RemoveGrantResponse, error) - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*PurgeRecycleResponse, error) - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...grpc.CallOption) (*RestoreFileVersionResponse, error) - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...grpc.CallOption) (*RestoreRecycleItemResponse, error) - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) - // Updates an ACL for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. - UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...grpc.CallOption) (*UpdateGrantResponse, error) - // Creates a symlink to another resource. - CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...grpc.CallOption) (*CreateSymlinkResponse, error) - // Creates a reference to another resource in the same cluster or another domain (OCM shares). - // The references resource can be accessed by the protocol specificied in the request message. - CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...grpc.CallOption) (*CreateReferenceResponse, error) - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*SetArbitraryMetadataResponse, error) - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*UnsetArbitraryMetadataResponse, error) - // Creates the home directory for a user. - CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...grpc.CallOption) (*CreateHomeResponse, error) - // Gets the home path for the user. - GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) -} - -type providerAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewProviderAPIClient(cc grpc.ClientConnInterface) ProviderAPIClient { - return &providerAPIClient{cc} -} - -func (c *providerAPIClient) AddGrant(ctx context.Context, in *AddGrantRequest, opts ...grpc.CallOption) (*AddGrantResponse, error) { - out := new(AddGrantResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...grpc.CallOption) (*CreateContainerResponse, error) { - out := new(CreateContainerResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { - out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/Delete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) GetPath(ctx context.Context, in *GetPathRequest, opts ...grpc.CallOption) (*GetPathResponse, error) { - out := new(GetPathResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/GetPath", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*GetQuotaResponse, error) { - out := new(GetQuotaResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/GetQuota", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...grpc.CallOption) (*InitiateFileDownloadResponse, error) { - out := new(InitiateFileDownloadResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileDownload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...grpc.CallOption) (*InitiateFileUploadResponse, error) { - out := new(InitiateFileUploadResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileUpload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...grpc.CallOption) (*ListGrantsResponse, error) { - out := new(ListGrantsResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListContainerStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_ProviderAPI_serviceDesc.Streams[0], "/cs3.storage.provider.v1beta1.ProviderAPI/ListContainerStream", opts...) - if err != nil { - return nil, err - } - x := &providerAPIListContainerStreamClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ProviderAPI_ListContainerStreamClient interface { - Recv() (*ListContainerStreamResponse, error) - grpc.ClientStream -} - -type providerAPIListContainerStreamClient struct { - grpc.ClientStream -} - -func (x *providerAPIListContainerStreamClient) Recv() (*ListContainerStreamResponse, error) { - m := new(ListContainerStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *providerAPIClient) ListContainer(ctx context.Context, in *ListContainerRequest, opts ...grpc.CallOption) (*ListContainerResponse, error) { - out := new(ListContainerResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...grpc.CallOption) (*ListFileVersionsResponse, error) { - out := new(ListFileVersionsResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListFileVersions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...grpc.CallOption) (ProviderAPI_ListRecycleStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_ProviderAPI_serviceDesc.Streams[1], "/cs3.storage.provider.v1beta1.ProviderAPI/ListRecycleStream", opts...) - if err != nil { - return nil, err - } - x := &providerAPIListRecycleStreamClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ProviderAPI_ListRecycleStreamClient interface { - Recv() (*ListRecycleStreamResponse, error) - grpc.ClientStream -} - -type providerAPIListRecycleStreamClient struct { - grpc.ClientStream -} - -func (x *providerAPIListRecycleStreamClient) Recv() (*ListRecycleStreamResponse, error) { - m := new(ListRecycleStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *providerAPIClient) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...grpc.CallOption) (*ListRecycleResponse, error) { - out := new(ListRecycleResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/ListRecycle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) Move(ctx context.Context, in *MoveRequest, opts ...grpc.CallOption) (*MoveResponse, error) { - out := new(MoveResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/Move", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...grpc.CallOption) (*RemoveGrantResponse, error) { - out := new(RemoveGrantResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/RemoveGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...grpc.CallOption) (*PurgeRecycleResponse, error) { - out := new(PurgeRecycleResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/PurgeRecycle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...grpc.CallOption) (*RestoreFileVersionResponse, error) { - out := new(RestoreFileVersionResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreFileVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...grpc.CallOption) (*RestoreRecycleItemResponse, error) { - out := new(RestoreRecycleItemResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreRecycleItem", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { - out := new(StatResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/Stat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...grpc.CallOption) (*UpdateGrantResponse, error) { - out := new(UpdateGrantResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/UpdateGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...grpc.CallOption) (*CreateSymlinkResponse, error) { - out := new(CreateSymlinkResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateSymlink", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...grpc.CallOption) (*CreateReferenceResponse, error) { - out := new(CreateReferenceResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateReference", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...grpc.CallOption) (*SetArbitraryMetadataResponse, error) { - out := new(SetArbitraryMetadataResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/SetArbitraryMetadata", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...grpc.CallOption) (*UnsetArbitraryMetadataResponse, error) { - out := new(UnsetArbitraryMetadataResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/UnsetArbitraryMetadata", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...grpc.CallOption) (*CreateHomeResponse, error) { - out := new(CreateHomeResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIClient) GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) { - out := new(GetHomeResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.provider.v1beta1.ProviderAPI/GetHome", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProviderAPIServer is the server API for ProviderAPI service. -type ProviderAPIServer interface { - // Adds a new grant for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - AddGrant(context.Context, *AddGrantRequest) (*AddGrantResponse, error) - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(context.Context, *CreateContainerRequest) (*CreateContainerResponse, error) - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(context.Context, *GetPathRequest) (*GetPathResponse, error) - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error) - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(context.Context, *InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(context.Context, *InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) - // Returns the list of grants for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListGrants(context.Context, *ListGrantsRequest) (*ListGrantsResponse, error) - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(*ListContainerStreamRequest, ProviderAPI_ListContainerStreamServer) error - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(context.Context, *ListContainerRequest) (*ListContainerResponse, error) - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(context.Context, *ListFileVersionsRequest) (*ListFileVersionsResponse, error) - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(*ListRecycleStreamRequest, ProviderAPI_ListRecycleStreamServer) error - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(context.Context, *ListRecycleRequest) (*ListRecycleResponse, error) - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(context.Context, *MoveRequest) (*MoveResponse, error) - // Removes a grant for the provided reference. - // This is recursive and atomic for directories. Does not follow references. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if grant does not exist. - RemoveGrant(context.Context, *RemoveGrantRequest) (*RemoveGrantResponse, error) - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(context.Context, *PurgeRecycleRequest) (*PurgeRecycleResponse, error) - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(context.Context, *RestoreFileVersionRequest) (*RestoreFileVersionResponse, error) - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(context.Context, *RestoreRecycleItemRequest) (*RestoreRecycleItemResponse, error) - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(context.Context, *StatRequest) (*StatResponse, error) - // Updates an ACL for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. - UpdateGrant(context.Context, *UpdateGrantRequest) (*UpdateGrantResponse, error) - // Creates a symlink to another resource. - CreateSymlink(context.Context, *CreateSymlinkRequest) (*CreateSymlinkResponse, error) - // Creates a reference to another resource in the same cluster or another domain (OCM shares). - // The references resource can be accessed by the protocol specificied in the request message. - CreateReference(context.Context, *CreateReferenceRequest) (*CreateReferenceResponse, error) - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - SetArbitraryMetadata(context.Context, *SetArbitraryMetadataRequest) (*SetArbitraryMetadataResponse, error) - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(context.Context, *UnsetArbitraryMetadataRequest) (*UnsetArbitraryMetadataResponse, error) - // Creates the home directory for a user. - CreateHome(context.Context, *CreateHomeRequest) (*CreateHomeResponse, error) - // Gets the home path for the user. - GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) -} - -// UnimplementedProviderAPIServer can be embedded to have forward compatible implementations. -type UnimplementedProviderAPIServer struct { -} - -func (*UnimplementedProviderAPIServer) AddGrant(context.Context, *AddGrantRequest) (*AddGrantResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddGrant not implemented") -} -func (*UnimplementedProviderAPIServer) CreateContainer(context.Context, *CreateContainerRequest) (*CreateContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateContainer not implemented") -} -func (*UnimplementedProviderAPIServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (*UnimplementedProviderAPIServer) GetPath(context.Context, *GetPathRequest) (*GetPathResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPath not implemented") -} -func (*UnimplementedProviderAPIServer) GetQuota(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetQuota not implemented") -} -func (*UnimplementedProviderAPIServer) InitiateFileDownload(context.Context, *InitiateFileDownloadRequest) (*InitiateFileDownloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InitiateFileDownload not implemented") -} -func (*UnimplementedProviderAPIServer) InitiateFileUpload(context.Context, *InitiateFileUploadRequest) (*InitiateFileUploadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InitiateFileUpload not implemented") -} -func (*UnimplementedProviderAPIServer) ListGrants(context.Context, *ListGrantsRequest) (*ListGrantsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGrants not implemented") -} -func (*UnimplementedProviderAPIServer) ListContainerStream(*ListContainerStreamRequest, ProviderAPI_ListContainerStreamServer) error { - return status.Errorf(codes.Unimplemented, "method ListContainerStream not implemented") -} -func (*UnimplementedProviderAPIServer) ListContainer(context.Context, *ListContainerRequest) (*ListContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListContainer not implemented") -} -func (*UnimplementedProviderAPIServer) ListFileVersions(context.Context, *ListFileVersionsRequest) (*ListFileVersionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListFileVersions not implemented") -} -func (*UnimplementedProviderAPIServer) ListRecycleStream(*ListRecycleStreamRequest, ProviderAPI_ListRecycleStreamServer) error { - return status.Errorf(codes.Unimplemented, "method ListRecycleStream not implemented") -} -func (*UnimplementedProviderAPIServer) ListRecycle(context.Context, *ListRecycleRequest) (*ListRecycleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListRecycle not implemented") -} -func (*UnimplementedProviderAPIServer) Move(context.Context, *MoveRequest) (*MoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Move not implemented") -} -func (*UnimplementedProviderAPIServer) RemoveGrant(context.Context, *RemoveGrantRequest) (*RemoveGrantResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveGrant not implemented") -} -func (*UnimplementedProviderAPIServer) PurgeRecycle(context.Context, *PurgeRecycleRequest) (*PurgeRecycleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PurgeRecycle not implemented") -} -func (*UnimplementedProviderAPIServer) RestoreFileVersion(context.Context, *RestoreFileVersionRequest) (*RestoreFileVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RestoreFileVersion not implemented") -} -func (*UnimplementedProviderAPIServer) RestoreRecycleItem(context.Context, *RestoreRecycleItemRequest) (*RestoreRecycleItemResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RestoreRecycleItem not implemented") -} -func (*UnimplementedProviderAPIServer) Stat(context.Context, *StatRequest) (*StatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") -} -func (*UnimplementedProviderAPIServer) UpdateGrant(context.Context, *UpdateGrantRequest) (*UpdateGrantResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGrant not implemented") -} -func (*UnimplementedProviderAPIServer) CreateSymlink(context.Context, *CreateSymlinkRequest) (*CreateSymlinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateSymlink not implemented") -} -func (*UnimplementedProviderAPIServer) CreateReference(context.Context, *CreateReferenceRequest) (*CreateReferenceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateReference not implemented") -} -func (*UnimplementedProviderAPIServer) SetArbitraryMetadata(context.Context, *SetArbitraryMetadataRequest) (*SetArbitraryMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetArbitraryMetadata not implemented") -} -func (*UnimplementedProviderAPIServer) UnsetArbitraryMetadata(context.Context, *UnsetArbitraryMetadataRequest) (*UnsetArbitraryMetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnsetArbitraryMetadata not implemented") -} -func (*UnimplementedProviderAPIServer) CreateHome(context.Context, *CreateHomeRequest) (*CreateHomeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateHome not implemented") -} -func (*UnimplementedProviderAPIServer) GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented") -} - -func RegisterProviderAPIServer(s *grpc.Server, srv ProviderAPIServer) { - s.RegisterService(&_ProviderAPI_serviceDesc, srv) -} - -func _ProviderAPI_AddGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddGrantRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).AddGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).AddGrant(ctx, req.(*AddGrantRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_CreateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).CreateContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).CreateContainer(ctx, req.(*CreateContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).Delete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/Delete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).Delete(ctx, req.(*DeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_GetPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPathRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).GetPath(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/GetPath", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).GetPath(ctx, req.(*GetPathRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_GetQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetQuotaRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).GetQuota(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/GetQuota", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).GetQuota(ctx, req.(*GetQuotaRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_InitiateFileDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InitiateFileDownloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).InitiateFileDownload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileDownload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).InitiateFileDownload(ctx, req.(*InitiateFileDownloadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_InitiateFileUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InitiateFileUploadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).InitiateFileUpload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/InitiateFileUpload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).InitiateFileUpload(ctx, req.(*InitiateFileUploadRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_ListGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListGrantsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).ListGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).ListGrants(ctx, req.(*ListGrantsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_ListContainerStream_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListContainerStreamRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ProviderAPIServer).ListContainerStream(m, &providerAPIListContainerStreamServer{stream}) -} - -type ProviderAPI_ListContainerStreamServer interface { - Send(*ListContainerStreamResponse) error - grpc.ServerStream -} - -type providerAPIListContainerStreamServer struct { - grpc.ServerStream -} - -func (x *providerAPIListContainerStreamServer) Send(m *ListContainerStreamResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ProviderAPI_ListContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).ListContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).ListContainer(ctx, req.(*ListContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_ListFileVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListFileVersionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).ListFileVersions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListFileVersions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).ListFileVersions(ctx, req.(*ListFileVersionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_ListRecycleStream_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListRecycleStreamRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ProviderAPIServer).ListRecycleStream(m, &providerAPIListRecycleStreamServer{stream}) -} - -type ProviderAPI_ListRecycleStreamServer interface { - Send(*ListRecycleStreamResponse) error - grpc.ServerStream -} - -type providerAPIListRecycleStreamServer struct { - grpc.ServerStream -} - -func (x *providerAPIListRecycleStreamServer) Send(m *ListRecycleStreamResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ProviderAPI_ListRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRecycleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).ListRecycle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/ListRecycle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).ListRecycle(ctx, req.(*ListRecycleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_Move_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).Move(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/Move", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).Move(ctx, req.(*MoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_RemoveGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveGrantRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).RemoveGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/RemoveGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).RemoveGrant(ctx, req.(*RemoveGrantRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_PurgeRecycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PurgeRecycleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).PurgeRecycle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/PurgeRecycle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).PurgeRecycle(ctx, req.(*PurgeRecycleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_RestoreFileVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RestoreFileVersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).RestoreFileVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreFileVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).RestoreFileVersion(ctx, req.(*RestoreFileVersionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_RestoreRecycleItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RestoreRecycleItemRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).RestoreRecycleItem(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/RestoreRecycleItem", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).RestoreRecycleItem(ctx, req.(*RestoreRecycleItemRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).Stat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/Stat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).Stat(ctx, req.(*StatRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_UpdateGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGrantRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).UpdateGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/UpdateGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).UpdateGrant(ctx, req.(*UpdateGrantRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_CreateSymlink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateSymlinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).CreateSymlink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateSymlink", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).CreateSymlink(ctx, req.(*CreateSymlinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_CreateReference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateReferenceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).CreateReference(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateReference", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).CreateReference(ctx, req.(*CreateReferenceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_SetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetArbitraryMetadataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).SetArbitraryMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/SetArbitraryMetadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).SetArbitraryMetadata(ctx, req.(*SetArbitraryMetadataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_UnsetArbitraryMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UnsetArbitraryMetadataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).UnsetArbitraryMetadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/UnsetArbitraryMetadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).UnsetArbitraryMetadata(ctx, req.(*UnsetArbitraryMetadataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_CreateHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateHomeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).CreateHome(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).CreateHome(ctx, req.(*CreateHomeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProviderAPI_GetHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetHomeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProviderAPIServer).GetHome(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.provider.v1beta1.ProviderAPI/GetHome", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProviderAPIServer).GetHome(ctx, req.(*GetHomeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProviderAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.storage.provider.v1beta1.ProviderAPI", - HandlerType: (*ProviderAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddGrant", - Handler: _ProviderAPI_AddGrant_Handler, - }, - { - MethodName: "CreateContainer", - Handler: _ProviderAPI_CreateContainer_Handler, - }, - { - MethodName: "Delete", - Handler: _ProviderAPI_Delete_Handler, - }, - { - MethodName: "GetPath", - Handler: _ProviderAPI_GetPath_Handler, - }, - { - MethodName: "GetQuota", - Handler: _ProviderAPI_GetQuota_Handler, - }, - { - MethodName: "InitiateFileDownload", - Handler: _ProviderAPI_InitiateFileDownload_Handler, - }, - { - MethodName: "InitiateFileUpload", - Handler: _ProviderAPI_InitiateFileUpload_Handler, - }, - { - MethodName: "ListGrants", - Handler: _ProviderAPI_ListGrants_Handler, - }, - { - MethodName: "ListContainer", - Handler: _ProviderAPI_ListContainer_Handler, - }, - { - MethodName: "ListFileVersions", - Handler: _ProviderAPI_ListFileVersions_Handler, - }, - { - MethodName: "ListRecycle", - Handler: _ProviderAPI_ListRecycle_Handler, - }, - { - MethodName: "Move", - Handler: _ProviderAPI_Move_Handler, - }, - { - MethodName: "RemoveGrant", - Handler: _ProviderAPI_RemoveGrant_Handler, - }, - { - MethodName: "PurgeRecycle", - Handler: _ProviderAPI_PurgeRecycle_Handler, - }, - { - MethodName: "RestoreFileVersion", - Handler: _ProviderAPI_RestoreFileVersion_Handler, - }, - { - MethodName: "RestoreRecycleItem", - Handler: _ProviderAPI_RestoreRecycleItem_Handler, - }, - { - MethodName: "Stat", - Handler: _ProviderAPI_Stat_Handler, - }, - { - MethodName: "UpdateGrant", - Handler: _ProviderAPI_UpdateGrant_Handler, - }, - { - MethodName: "CreateSymlink", - Handler: _ProviderAPI_CreateSymlink_Handler, - }, - { - MethodName: "CreateReference", - Handler: _ProviderAPI_CreateReference_Handler, - }, - { - MethodName: "SetArbitraryMetadata", - Handler: _ProviderAPI_SetArbitraryMetadata_Handler, - }, - { - MethodName: "UnsetArbitraryMetadata", - Handler: _ProviderAPI_UnsetArbitraryMetadata_Handler, - }, - { - MethodName: "CreateHome", - Handler: _ProviderAPI_CreateHome_Handler, - }, - { - MethodName: "GetHome", - Handler: _ProviderAPI_GetHome_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "ListContainerStream", - Handler: _ProviderAPI_ListContainerStream_Handler, - ServerStreams: true, - }, - { - StreamName: "ListRecycleStream", - Handler: _ProviderAPI_ListRecycleStream_Handler, - ServerStreams: true, - }, - }, - Metadata: "cs3/storage/provider/v1beta1/provider_api.proto", -} diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go deleted file mode 100644 index 87b32482..00000000 --- a/build/go-cs3apis/cs3/storage/provider/v1beta1/provider_api.pb.micro.go +++ /dev/null @@ -1,808 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/storage/provider/v1beta1/provider_api.proto - -package providerv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for ProviderAPI service - -func NewProviderAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for ProviderAPI service - -type ProviderAPIService interface { - // Adds a new grant for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - AddGrant(ctx context.Context, in *AddGrantRequest, opts ...client.CallOption) (*AddGrantResponse, error) - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...client.CallOption) (*CreateContainerResponse, error) - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(ctx context.Context, in *GetPathRequest, opts ...client.CallOption) (*GetPathResponse, error) - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*GetQuotaResponse, error) - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) - // Returns the list of grants for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...client.CallOption) (*ListGrantsResponse, error) - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...client.CallOption) (ProviderAPI_ListContainerStreamService, error) - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(ctx context.Context, in *ListContainerRequest, opts ...client.CallOption) (*ListContainerResponse, error) - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...client.CallOption) (*ListFileVersionsResponse, error) - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (ProviderAPI_ListRecycleStreamService, error) - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*ListRecycleResponse, error) - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(ctx context.Context, in *MoveRequest, opts ...client.CallOption) (*MoveResponse, error) - // Removes a grant for the provided reference. - // This is recursive and atomic for directories. Does not follow references. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if grant does not exist. - RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...client.CallOption) (*RemoveGrantResponse, error) - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*PurgeRecycleResponse, error) - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...client.CallOption) (*RestoreFileVersionResponse, error) - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...client.CallOption) (*RestoreRecycleItemResponse, error) - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(ctx context.Context, in *StatRequest, opts ...client.CallOption) (*StatResponse, error) - // Updates an ACL for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. - UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...client.CallOption) (*UpdateGrantResponse, error) - // Creates a symlink to another resource. - CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...client.CallOption) (*CreateSymlinkResponse, error) - // Creates a reference to another resource in the same cluster or another domain (OCM shares). - // The references resource can be accessed by the protocol specificied in the request message. - CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...client.CallOption) (*CreateReferenceResponse, error) - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...client.CallOption) (*SetArbitraryMetadataResponse, error) - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*UnsetArbitraryMetadataResponse, error) - // Creates the home directory for a user. - CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...client.CallOption) (*CreateHomeResponse, error) - // Gets the home path for the user. - GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) -} - -type providerAPIService struct { - c client.Client - name string -} - -func NewProviderAPIService(name string, c client.Client) ProviderAPIService { - return &providerAPIService{ - c: c, - name: name, - } -} - -func (c *providerAPIService) AddGrant(ctx context.Context, in *AddGrantRequest, opts ...client.CallOption) (*AddGrantResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.AddGrant", in) - out := new(AddGrantResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) CreateContainer(ctx context.Context, in *CreateContainerRequest, opts ...client.CallOption) (*CreateContainerResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.CreateContainer", in) - out := new(CreateContainerResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.Delete", in) - out := new(DeleteResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) GetPath(ctx context.Context, in *GetPathRequest, opts ...client.CallOption) (*GetPathResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.GetPath", in) - out := new(GetPathResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...client.CallOption) (*GetQuotaResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.GetQuota", in) - out := new(GetQuotaResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, opts ...client.CallOption) (*InitiateFileDownloadResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.InitiateFileDownload", in) - out := new(InitiateFileDownloadResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, opts ...client.CallOption) (*InitiateFileUploadResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.InitiateFileUpload", in) - out := new(InitiateFileUploadResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) ListGrants(ctx context.Context, in *ListGrantsRequest, opts ...client.CallOption) (*ListGrantsResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.ListGrants", in) - out := new(ListGrantsResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) ListContainerStream(ctx context.Context, in *ListContainerStreamRequest, opts ...client.CallOption) (ProviderAPI_ListContainerStreamService, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.ListContainerStream", &ListContainerStreamRequest{}) - stream, err := c.c.Stream(ctx, req, opts...) - if err != nil { - return nil, err - } - if err := stream.Send(in); err != nil { - return nil, err - } - return &providerAPIServiceListContainerStream{stream}, nil -} - -type ProviderAPI_ListContainerStreamService interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Recv() (*ListContainerStreamResponse, error) -} - -type providerAPIServiceListContainerStream struct { - stream client.Stream -} - -func (x *providerAPIServiceListContainerStream) Close() error { - return x.stream.Close() -} - -func (x *providerAPIServiceListContainerStream) Context() context.Context { - return x.stream.Context() -} - -func (x *providerAPIServiceListContainerStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *providerAPIServiceListContainerStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *providerAPIServiceListContainerStream) Recv() (*ListContainerStreamResponse, error) { - m := new(ListContainerStreamResponse) - err := x.stream.Recv(m) - if err != nil { - return nil, err - } - return m, nil -} - -func (c *providerAPIService) ListContainer(ctx context.Context, in *ListContainerRequest, opts ...client.CallOption) (*ListContainerResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.ListContainer", in) - out := new(ListContainerResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, opts ...client.CallOption) (*ListFileVersionsResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.ListFileVersions", in) - out := new(ListFileVersionsResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) ListRecycleStream(ctx context.Context, in *ListRecycleStreamRequest, opts ...client.CallOption) (ProviderAPI_ListRecycleStreamService, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.ListRecycleStream", &ListRecycleStreamRequest{}) - stream, err := c.c.Stream(ctx, req, opts...) - if err != nil { - return nil, err - } - if err := stream.Send(in); err != nil { - return nil, err - } - return &providerAPIServiceListRecycleStream{stream}, nil -} - -type ProviderAPI_ListRecycleStreamService interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Recv() (*ListRecycleStreamResponse, error) -} - -type providerAPIServiceListRecycleStream struct { - stream client.Stream -} - -func (x *providerAPIServiceListRecycleStream) Close() error { - return x.stream.Close() -} - -func (x *providerAPIServiceListRecycleStream) Context() context.Context { - return x.stream.Context() -} - -func (x *providerAPIServiceListRecycleStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *providerAPIServiceListRecycleStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *providerAPIServiceListRecycleStream) Recv() (*ListRecycleStreamResponse, error) { - m := new(ListRecycleStreamResponse) - err := x.stream.Recv(m) - if err != nil { - return nil, err - } - return m, nil -} - -func (c *providerAPIService) ListRecycle(ctx context.Context, in *ListRecycleRequest, opts ...client.CallOption) (*ListRecycleResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.ListRecycle", in) - out := new(ListRecycleResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) Move(ctx context.Context, in *MoveRequest, opts ...client.CallOption) (*MoveResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.Move", in) - out := new(MoveResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) RemoveGrant(ctx context.Context, in *RemoveGrantRequest, opts ...client.CallOption) (*RemoveGrantResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.RemoveGrant", in) - out := new(RemoveGrantResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, opts ...client.CallOption) (*PurgeRecycleResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.PurgeRecycle", in) - out := new(PurgeRecycleResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, opts ...client.CallOption) (*RestoreFileVersionResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.RestoreFileVersion", in) - out := new(RestoreFileVersionResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, opts ...client.CallOption) (*RestoreRecycleItemResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.RestoreRecycleItem", in) - out := new(RestoreRecycleItemResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) Stat(ctx context.Context, in *StatRequest, opts ...client.CallOption) (*StatResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.Stat", in) - out := new(StatResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) UpdateGrant(ctx context.Context, in *UpdateGrantRequest, opts ...client.CallOption) (*UpdateGrantResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.UpdateGrant", in) - out := new(UpdateGrantResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, opts ...client.CallOption) (*CreateSymlinkResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.CreateSymlink", in) - out := new(CreateSymlinkResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) CreateReference(ctx context.Context, in *CreateReferenceRequest, opts ...client.CallOption) (*CreateReferenceResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.CreateReference", in) - out := new(CreateReferenceResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, opts ...client.CallOption) (*SetArbitraryMetadataResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.SetArbitraryMetadata", in) - out := new(SetArbitraryMetadataResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, opts ...client.CallOption) (*UnsetArbitraryMetadataResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.UnsetArbitraryMetadata", in) - out := new(UnsetArbitraryMetadataResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) CreateHome(ctx context.Context, in *CreateHomeRequest, opts ...client.CallOption) (*CreateHomeResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.CreateHome", in) - out := new(CreateHomeResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *providerAPIService) GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) { - req := c.c.NewRequest(c.name, "ProviderAPI.GetHome", in) - out := new(GetHomeResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for ProviderAPI service - -type ProviderAPIHandler interface { - // Adds a new grant for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - AddGrant(context.Context, *AddGrantRequest, *AddGrantResponse) error - // Creates a new resource of type container. - // MUST return CODE_PRECONDITION_FAILED if the container - // cannot be created at the specified reference. - CreateContainer(context.Context, *CreateContainerRequest, *CreateContainerResponse) error - // Deletes a resource. - // If a resource specifies the non-empty container (directory, ...), - // then the entire directory is deleted recursively. - // If a resource specifies a reference or symlink type, only the reference is removed (not the target). - // MUST return CODE_NOT_FOUND if the reference does not exist. - Delete(context.Context, *DeleteRequest, *DeleteResponse) error - // Returns the path reference for - // the provided resource id reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - GetPath(context.Context, *GetPathRequest, *GetPathResponse) error - // Returns the quota available under the provided - // reference. - // MUST return CODE_NOT_FOUND if the reference does not exist - // MUST return CODE_RESOURCE_EXHAUSTED on exceeded quota limits. - GetQuota(context.Context, *GetQuotaRequest, *GetQuotaResponse) error - // Initiates the download of a file using an - // out-of-band data transfer mechanism. - InitiateFileDownload(context.Context, *InitiateFileDownloadRequest, *InitiateFileDownloadResponse) error - // Initiates the upload of a file using an - // out-of-band data transfer mechanism. - InitiateFileUpload(context.Context, *InitiateFileUploadRequest, *InitiateFileUploadResponse) error - // Returns the list of grants for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListGrants(context.Context, *ListGrantsRequest, *ListGrantsResponse) error - // Returns a stream of resource informations - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainerStream(context.Context, *ListContainerStreamRequest, ProviderAPI_ListContainerStreamStream) error - // Returns a list of resource information - // for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exists. - ListContainer(context.Context, *ListContainerRequest, *ListContainerResponse) error - // Returns a list of the versions for a resource of - // type file at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_OK and MUST return an empty list if no versions are available. - // TODO: What code if resource not of type file? - ListFileVersions(context.Context, *ListFileVersionsRequest, *ListFileVersionsResponse) error - // Returns a stream of recycle items for this storage provider. - ListRecycleStream(context.Context, *ListRecycleStreamRequest, ProviderAPI_ListRecycleStreamStream) error - // Returns a list of recycle items for this storage provider. - // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - ListRecycle(context.Context, *ListRecycleRequest, *ListRecycleResponse) error - // Moves a resource from one reference to another. - // MUST return CODE_NOT_FOUND if any of the references do not exist. - // MUST return CODE_PRECONDITION_FAILED if the source reference - // cannot be moved to the destination reference. - Move(context.Context, *MoveRequest, *MoveResponse) error - // Removes a grant for the provided reference. - // This is recursive and atomic for directories. Does not follow references. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if grant does not exist. - RemoveGrant(context.Context, *RemoveGrantRequest, *RemoveGrantResponse) error - // Permanently removes a recycle item from the recycle. - // This operation is irrevocable. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - PurgeRecycle(context.Context, *PurgeRecycleRequest, *PurgeRecycleResponse) error - // Restores a file version for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_NOT_FOUND if the version does not exist. - RestoreFileVersion(context.Context, *RestoreFileVersionRequest, *RestoreFileVersionResponse) error - // Restores a recycle item from the recycle. - // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - // MUST return CODE_PRECONDITION_FAILED if the restore_path is non-empty - // and the recycle item cannot be restored to the restore_path. - RestoreRecycleItem(context.Context, *RestoreRecycleItemRequest, *RestoreRecycleItemResponse) error - // Returns the resource information at the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - Stat(context.Context, *StatRequest, *StatResponse) error - // Updates an ACL for the provided reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. - UpdateGrant(context.Context, *UpdateGrantRequest, *UpdateGrantResponse) error - // Creates a symlink to another resource. - CreateSymlink(context.Context, *CreateSymlinkRequest, *CreateSymlinkResponse) error - // Creates a reference to another resource in the same cluster or another domain (OCM shares). - // The references resource can be accessed by the protocol specificied in the request message. - CreateReference(context.Context, *CreateReferenceRequest, *CreateReferenceResponse) error - // Sets arbitrary metadata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - SetArbitraryMetadata(context.Context, *SetArbitraryMetadataRequest, *SetArbitraryMetadataResponse) error - // Unsets arbitrary metdata into a storage resource. - // Arbitrary metadata is returned in a cs3.storageprovider.v1beta1.ResourceInfo. - UnsetArbitraryMetadata(context.Context, *UnsetArbitraryMetadataRequest, *UnsetArbitraryMetadataResponse) error - // Creates the home directory for a user. - CreateHome(context.Context, *CreateHomeRequest, *CreateHomeResponse) error - // Gets the home path for the user. - GetHome(context.Context, *GetHomeRequest, *GetHomeResponse) error -} - -func RegisterProviderAPIHandler(s server.Server, hdlr ProviderAPIHandler, opts ...server.HandlerOption) error { - type providerAPI interface { - AddGrant(ctx context.Context, in *AddGrantRequest, out *AddGrantResponse) error - CreateContainer(ctx context.Context, in *CreateContainerRequest, out *CreateContainerResponse) error - Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error - GetPath(ctx context.Context, in *GetPathRequest, out *GetPathResponse) error - GetQuota(ctx context.Context, in *GetQuotaRequest, out *GetQuotaResponse) error - InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error - InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, out *InitiateFileUploadResponse) error - ListGrants(ctx context.Context, in *ListGrantsRequest, out *ListGrantsResponse) error - ListContainerStream(ctx context.Context, stream server.Stream) error - ListContainer(ctx context.Context, in *ListContainerRequest, out *ListContainerResponse) error - ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, out *ListFileVersionsResponse) error - ListRecycleStream(ctx context.Context, stream server.Stream) error - ListRecycle(ctx context.Context, in *ListRecycleRequest, out *ListRecycleResponse) error - Move(ctx context.Context, in *MoveRequest, out *MoveResponse) error - RemoveGrant(ctx context.Context, in *RemoveGrantRequest, out *RemoveGrantResponse) error - PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *PurgeRecycleResponse) error - RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, out *RestoreFileVersionResponse) error - RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, out *RestoreRecycleItemResponse) error - Stat(ctx context.Context, in *StatRequest, out *StatResponse) error - UpdateGrant(ctx context.Context, in *UpdateGrantRequest, out *UpdateGrantResponse) error - CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, out *CreateSymlinkResponse) error - CreateReference(ctx context.Context, in *CreateReferenceRequest, out *CreateReferenceResponse) error - SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, out *SetArbitraryMetadataResponse) error - UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, out *UnsetArbitraryMetadataResponse) error - CreateHome(ctx context.Context, in *CreateHomeRequest, out *CreateHomeResponse) error - GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error - } - type ProviderAPI struct { - providerAPI - } - h := &providerAPIHandler{hdlr} - return s.Handle(s.NewHandler(&ProviderAPI{h}, opts...)) -} - -type providerAPIHandler struct { - ProviderAPIHandler -} - -func (h *providerAPIHandler) AddGrant(ctx context.Context, in *AddGrantRequest, out *AddGrantResponse) error { - return h.ProviderAPIHandler.AddGrant(ctx, in, out) -} - -func (h *providerAPIHandler) CreateContainer(ctx context.Context, in *CreateContainerRequest, out *CreateContainerResponse) error { - return h.ProviderAPIHandler.CreateContainer(ctx, in, out) -} - -func (h *providerAPIHandler) Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error { - return h.ProviderAPIHandler.Delete(ctx, in, out) -} - -func (h *providerAPIHandler) GetPath(ctx context.Context, in *GetPathRequest, out *GetPathResponse) error { - return h.ProviderAPIHandler.GetPath(ctx, in, out) -} - -func (h *providerAPIHandler) GetQuota(ctx context.Context, in *GetQuotaRequest, out *GetQuotaResponse) error { - return h.ProviderAPIHandler.GetQuota(ctx, in, out) -} - -func (h *providerAPIHandler) InitiateFileDownload(ctx context.Context, in *InitiateFileDownloadRequest, out *InitiateFileDownloadResponse) error { - return h.ProviderAPIHandler.InitiateFileDownload(ctx, in, out) -} - -func (h *providerAPIHandler) InitiateFileUpload(ctx context.Context, in *InitiateFileUploadRequest, out *InitiateFileUploadResponse) error { - return h.ProviderAPIHandler.InitiateFileUpload(ctx, in, out) -} - -func (h *providerAPIHandler) ListGrants(ctx context.Context, in *ListGrantsRequest, out *ListGrantsResponse) error { - return h.ProviderAPIHandler.ListGrants(ctx, in, out) -} - -func (h *providerAPIHandler) ListContainerStream(ctx context.Context, stream server.Stream) error { - m := new(ListContainerStreamRequest) - if err := stream.Recv(m); err != nil { - return err - } - return h.ProviderAPIHandler.ListContainerStream(ctx, m, &providerAPIListContainerStreamStream{stream}) -} - -type ProviderAPI_ListContainerStreamStream interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Send(*ListContainerStreamResponse) error -} - -type providerAPIListContainerStreamStream struct { - stream server.Stream -} - -func (x *providerAPIListContainerStreamStream) Close() error { - return x.stream.Close() -} - -func (x *providerAPIListContainerStreamStream) Context() context.Context { - return x.stream.Context() -} - -func (x *providerAPIListContainerStreamStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *providerAPIListContainerStreamStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *providerAPIListContainerStreamStream) Send(m *ListContainerStreamResponse) error { - return x.stream.Send(m) -} - -func (h *providerAPIHandler) ListContainer(ctx context.Context, in *ListContainerRequest, out *ListContainerResponse) error { - return h.ProviderAPIHandler.ListContainer(ctx, in, out) -} - -func (h *providerAPIHandler) ListFileVersions(ctx context.Context, in *ListFileVersionsRequest, out *ListFileVersionsResponse) error { - return h.ProviderAPIHandler.ListFileVersions(ctx, in, out) -} - -func (h *providerAPIHandler) ListRecycleStream(ctx context.Context, stream server.Stream) error { - m := new(ListRecycleStreamRequest) - if err := stream.Recv(m); err != nil { - return err - } - return h.ProviderAPIHandler.ListRecycleStream(ctx, m, &providerAPIListRecycleStreamStream{stream}) -} - -type ProviderAPI_ListRecycleStreamStream interface { - Context() context.Context - SendMsg(interface{}) error - RecvMsg(interface{}) error - Close() error - Send(*ListRecycleStreamResponse) error -} - -type providerAPIListRecycleStreamStream struct { - stream server.Stream -} - -func (x *providerAPIListRecycleStreamStream) Close() error { - return x.stream.Close() -} - -func (x *providerAPIListRecycleStreamStream) Context() context.Context { - return x.stream.Context() -} - -func (x *providerAPIListRecycleStreamStream) SendMsg(m interface{}) error { - return x.stream.Send(m) -} - -func (x *providerAPIListRecycleStreamStream) RecvMsg(m interface{}) error { - return x.stream.Recv(m) -} - -func (x *providerAPIListRecycleStreamStream) Send(m *ListRecycleStreamResponse) error { - return x.stream.Send(m) -} - -func (h *providerAPIHandler) ListRecycle(ctx context.Context, in *ListRecycleRequest, out *ListRecycleResponse) error { - return h.ProviderAPIHandler.ListRecycle(ctx, in, out) -} - -func (h *providerAPIHandler) Move(ctx context.Context, in *MoveRequest, out *MoveResponse) error { - return h.ProviderAPIHandler.Move(ctx, in, out) -} - -func (h *providerAPIHandler) RemoveGrant(ctx context.Context, in *RemoveGrantRequest, out *RemoveGrantResponse) error { - return h.ProviderAPIHandler.RemoveGrant(ctx, in, out) -} - -func (h *providerAPIHandler) PurgeRecycle(ctx context.Context, in *PurgeRecycleRequest, out *PurgeRecycleResponse) error { - return h.ProviderAPIHandler.PurgeRecycle(ctx, in, out) -} - -func (h *providerAPIHandler) RestoreFileVersion(ctx context.Context, in *RestoreFileVersionRequest, out *RestoreFileVersionResponse) error { - return h.ProviderAPIHandler.RestoreFileVersion(ctx, in, out) -} - -func (h *providerAPIHandler) RestoreRecycleItem(ctx context.Context, in *RestoreRecycleItemRequest, out *RestoreRecycleItemResponse) error { - return h.ProviderAPIHandler.RestoreRecycleItem(ctx, in, out) -} - -func (h *providerAPIHandler) Stat(ctx context.Context, in *StatRequest, out *StatResponse) error { - return h.ProviderAPIHandler.Stat(ctx, in, out) -} - -func (h *providerAPIHandler) UpdateGrant(ctx context.Context, in *UpdateGrantRequest, out *UpdateGrantResponse) error { - return h.ProviderAPIHandler.UpdateGrant(ctx, in, out) -} - -func (h *providerAPIHandler) CreateSymlink(ctx context.Context, in *CreateSymlinkRequest, out *CreateSymlinkResponse) error { - return h.ProviderAPIHandler.CreateSymlink(ctx, in, out) -} - -func (h *providerAPIHandler) CreateReference(ctx context.Context, in *CreateReferenceRequest, out *CreateReferenceResponse) error { - return h.ProviderAPIHandler.CreateReference(ctx, in, out) -} - -func (h *providerAPIHandler) SetArbitraryMetadata(ctx context.Context, in *SetArbitraryMetadataRequest, out *SetArbitraryMetadataResponse) error { - return h.ProviderAPIHandler.SetArbitraryMetadata(ctx, in, out) -} - -func (h *providerAPIHandler) UnsetArbitraryMetadata(ctx context.Context, in *UnsetArbitraryMetadataRequest, out *UnsetArbitraryMetadataResponse) error { - return h.ProviderAPIHandler.UnsetArbitraryMetadata(ctx, in, out) -} - -func (h *providerAPIHandler) CreateHome(ctx context.Context, in *CreateHomeRequest, out *CreateHomeResponse) error { - return h.ProviderAPIHandler.CreateHome(ctx, in, out) -} - -func (h *providerAPIHandler) GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error { - return h.ProviderAPIHandler.GetHome(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go deleted file mode 100644 index fffdd2a7..00000000 --- a/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.go +++ /dev/null @@ -1,2025 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/storage/provider/v1beta1/resources.proto - -package providerv1beta1 - -import ( - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The available types of resources. -type ResourceType int32 - -const ( - ResourceType_RESOURCE_TYPE_INVALID ResourceType = 0 - // The file type represents a type - // that holds arbitrary data. - // Service implementors usually map this type - // to files (local filesystem) or objects - // (Amazon S3). - ResourceType_RESOURCE_TYPE_FILE ResourceType = 1 - // The container type represents a type - // that can contain another types. - // Service implementors usually map this type - // to folders (local filesystem) or buckets - // (Amazon S3). - ResourceType_RESOURCE_TYPE_CONTAINER ResourceType = 2 - // This represents a reference type which points - // to another resource where client MAY be redirected. - // Client SHOULD use the ResourceInfo.target - // reference for a subsequent call. - ResourceType_RESOURCE_TYPE_REFERENCE ResourceType = 3 - // This represents a symbolic link type if the underlying - // storage system supports it. - // Symlink target SHOULD NOT be interpreted by the clients. - ResourceType_RESOURCE_TYPE_SYMLINK ResourceType = 4 - // Internal resource type for some specific resources inside - // a storage implementation. - // For example, this type could be used to represent - // a device file on a Linux filesystem. - // Another example could be to represent an ongoing upload, - // where an hypothetically user interface could show a loading icon - // on this type of resources until the upload operation is completed. - // Internal resources SHOULD NOT be moved to a different storage - // provider. - ResourceType_RESOURCE_TYPE_INTERNAL ResourceType = 5 -) - -// Enum value maps for ResourceType. -var ( - ResourceType_name = map[int32]string{ - 0: "RESOURCE_TYPE_INVALID", - 1: "RESOURCE_TYPE_FILE", - 2: "RESOURCE_TYPE_CONTAINER", - 3: "RESOURCE_TYPE_REFERENCE", - 4: "RESOURCE_TYPE_SYMLINK", - 5: "RESOURCE_TYPE_INTERNAL", - } - ResourceType_value = map[string]int32{ - "RESOURCE_TYPE_INVALID": 0, - "RESOURCE_TYPE_FILE": 1, - "RESOURCE_TYPE_CONTAINER": 2, - "RESOURCE_TYPE_REFERENCE": 3, - "RESOURCE_TYPE_SYMLINK": 4, - "RESOURCE_TYPE_INTERNAL": 5, - } -) - -func (x ResourceType) Enum() *ResourceType { - p := new(ResourceType) - *p = x - return p -} - -func (x ResourceType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ResourceType) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[0].Descriptor() -} - -func (ResourceType) Type() protoreflect.EnumType { - return &file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[0] -} - -func (x ResourceType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ResourceType.Descriptor instead. -func (ResourceType) EnumDescriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -// The type of checksum to use. -type ResourceChecksumType int32 - -const ( - ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_INVALID ResourceChecksumType = 0 - // unset means no checksum is set. - ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_UNSET ResourceChecksumType = 1 - // Use Adler32 checksum. - ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_ADLER32 ResourceChecksumType = 2 - // Use MD5 checksum. - ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_MD5 ResourceChecksumType = 3 - // Use SHA-1 checksum. - ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_SHA1 ResourceChecksumType = 4 -) - -// Enum value maps for ResourceChecksumType. -var ( - ResourceChecksumType_name = map[int32]string{ - 0: "RESOURCE_CHECKSUM_TYPE_INVALID", - 1: "RESOURCE_CHECKSUM_TYPE_UNSET", - 2: "RESOURCE_CHECKSUM_TYPE_ADLER32", - 3: "RESOURCE_CHECKSUM_TYPE_MD5", - 4: "RESOURCE_CHECKSUM_TYPE_SHA1", - } - ResourceChecksumType_value = map[string]int32{ - "RESOURCE_CHECKSUM_TYPE_INVALID": 0, - "RESOURCE_CHECKSUM_TYPE_UNSET": 1, - "RESOURCE_CHECKSUM_TYPE_ADLER32": 2, - "RESOURCE_CHECKSUM_TYPE_MD5": 3, - "RESOURCE_CHECKSUM_TYPE_SHA1": 4, - } -) - -func (x ResourceChecksumType) Enum() *ResourceChecksumType { - p := new(ResourceChecksumType) - *p = x - return p -} - -func (x ResourceChecksumType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ResourceChecksumType) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[1].Descriptor() -} - -func (ResourceChecksumType) Type() protoreflect.EnumType { - return &file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[1] -} - -func (x ResourceChecksumType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ResourceChecksumType.Descriptor instead. -func (ResourceChecksumType) EnumDescriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -// The type of the grantee. -type GranteeType int32 - -const ( - GranteeType_GRANTEE_TYPE_INVALID GranteeType = 0 - // This type represents an individual. - GranteeType_GRANTEE_TYPE_USER GranteeType = 1 - // This type represents a group of individuals. - GranteeType_GRANTEE_TYPE_GROUP GranteeType = 2 -) - -// Enum value maps for GranteeType. -var ( - GranteeType_name = map[int32]string{ - 0: "GRANTEE_TYPE_INVALID", - 1: "GRANTEE_TYPE_USER", - 2: "GRANTEE_TYPE_GROUP", - } - GranteeType_value = map[string]int32{ - "GRANTEE_TYPE_INVALID": 0, - "GRANTEE_TYPE_USER": 1, - "GRANTEE_TYPE_GROUP": 2, - } -) - -func (x GranteeType) Enum() *GranteeType { - p := new(GranteeType) - *p = x - return p -} - -func (x GranteeType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (GranteeType) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[2].Descriptor() -} - -func (GranteeType) Type() protoreflect.EnumType { - return &file_cs3_storage_provider_v1beta1_resources_proto_enumTypes[2] -} - -func (x GranteeType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use GranteeType.Descriptor instead. -func (GranteeType) EnumDescriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{2} -} - -// Represents the information (metadata) about -// a storage resource organized in a hierarchical namespace (file, directory/container, reference, symlink, ...). -type ResourceInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The type of the resource (container, file, ...) - // See the enum ResourceType for all possible types. - Type ResourceType `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceType" json:"type,omitempty"` - // REQUIRED. - // Opaque unique identifier of the resource. - Id *ResourceId `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - // REQUIRED. - // The data checksum for the file resource. - // For all other resources, the checksum is unset. - Checksum *ResourceChecksum `protobuf:"bytes,4,opt,name=checksum,proto3" json:"checksum,omitempty"` - // REQUIRED. - // As decribed in https://tools.ietf.org/html/rfc7232#section-2.3 - // For file resources, the etag must change if data or metadata changes. - // For container types, the etag must change if etag of any of the (indirectly) contained resources change. - // For reference types, the etag must change if etag of the target changes and the target is on the same storage provider. - // In all other cases the etag does not change. - Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"` - // REQUIRED. - // As described in [RFC 2015](https://tools.ietf.org/html/rfc2045#page-7) - MimeType string `protobuf:"bytes,6,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - // REQUIRED. - // Last modification time (mtime) of file or directory contents. - // For reference types this is NOT the mtime of the target. - Mtime *v1beta1.Timestamp `protobuf:"bytes,7,opt,name=mtime,proto3" json:"mtime,omitempty"` - // REQUIRED. - // The path for the resource. - // It MUST start with the slash character (/). - Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"` - // REQUIRED. - // The set of permissions for the resource effective for the authenticated user. - PermissionSet *ResourcePermissions `protobuf:"bytes,9,opt,name=permission_set,json=permissionSet,proto3" json:"permission_set,omitempty"` - // REQUIRED. - // The size of the resource in bytes (file size) - // TODO(moscicki): This is undefined for container type. - // Is the accounting recursive?, could it be set to 0 for directories if recursive not supported? use another field? - // TODO(moscicki): This needs to be defined also for other types (such as a symlink to a directory or file) - Size uint64 `protobuf:"varint,10,opt,name=size,proto3" json:"size,omitempty"` - // REQUIRED: - // Identifier of the owner of the resource. - Owner *v1beta11.UserId `protobuf:"bytes,11,opt,name=owner,proto3" json:"owner,omitempty"` - // REQUIRED if ResourceType is either RESOURCE_TYPE_SYMLINK or RESOURCE_TYPE_REFERENCE - Target string `protobuf:"bytes,12,opt,name=target,proto3" json:"target,omitempty"` - // OPTIONAL. - // Additional metadata attached to the resource. - // If resource type is RESOURCE_TYPE_REFERENCE it MUST - // be specified. - CanonicalMetadata *CanonicalMetadata `protobuf:"bytes,13,opt,name=canonical_metadata,json=canonicalMetadata,proto3" json:"canonical_metadata,omitempty"` - // OPTIONAL. - // Arbitrary metadata attached to a resource. - ArbitraryMetadata *ArbitraryMetadata `protobuf:"bytes,14,opt,name=arbitrary_metadata,json=arbitraryMetadata,proto3" json:"arbitrary_metadata,omitempty"` -} - -func (x *ResourceInfo) Reset() { - *x = ResourceInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceInfo) ProtoMessage() {} - -func (x *ResourceInfo) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceInfo.ProtoReflect.Descriptor instead. -func (*ResourceInfo) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *ResourceInfo) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ResourceInfo) GetType() ResourceType { - if x != nil { - return x.Type - } - return ResourceType_RESOURCE_TYPE_INVALID -} - -func (x *ResourceInfo) GetId() *ResourceId { - if x != nil { - return x.Id - } - return nil -} - -func (x *ResourceInfo) GetChecksum() *ResourceChecksum { - if x != nil { - return x.Checksum - } - return nil -} - -func (x *ResourceInfo) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *ResourceInfo) GetMimeType() string { - if x != nil { - return x.MimeType - } - return "" -} - -func (x *ResourceInfo) GetMtime() *v1beta1.Timestamp { - if x != nil { - return x.Mtime - } - return nil -} - -func (x *ResourceInfo) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *ResourceInfo) GetPermissionSet() *ResourcePermissions { - if x != nil { - return x.PermissionSet - } - return nil -} - -func (x *ResourceInfo) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *ResourceInfo) GetOwner() *v1beta11.UserId { - if x != nil { - return x.Owner - } - return nil -} - -func (x *ResourceInfo) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -func (x *ResourceInfo) GetCanonicalMetadata() *CanonicalMetadata { - if x != nil { - return x.CanonicalMetadata - } - return nil -} - -func (x *ResourceInfo) GetArbitraryMetadata() *ArbitraryMetadata { - if x != nil { - return x.ArbitraryMetadata - } - return nil -} - -// CanonicalMetadata contains extra metadata -// attached to a resource. This message and the Opaque -// message differ in that Opaque allows service implementors -// to include any extra metadata in any format and most clients -// will ignore it. However, the CanonicalMetadata message -// contains well defined fileds that clients MUST understand if -// they are specified. -type CanonicalMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED if resource type is RESOURCE_TYPE_REFERENCE. - // The target reference the resource points to. - Target *Reference `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` -} - -func (x *CanonicalMetadata) Reset() { - *x = CanonicalMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanonicalMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanonicalMetadata) ProtoMessage() {} - -func (x *CanonicalMetadata) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 CanonicalMetadata.ProtoReflect.Descriptor instead. -func (*CanonicalMetadata) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *CanonicalMetadata) GetTarget() *Reference { - if x != nil { - return x.Target - } - return nil -} - -// Arbitrary metadata than can be set to the resource. -type ArbitraryMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metadata map[string]string `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ArbitraryMetadata) Reset() { - *x = ArbitraryMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArbitraryMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArbitraryMetadata) ProtoMessage() {} - -func (x *ArbitraryMetadata) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 ArbitraryMetadata.ProtoReflect.Descriptor instead. -func (*ArbitraryMetadata) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{2} -} - -func (x *ArbitraryMetadata) GetMetadata() map[string]string { - if x != nil { - return x.Metadata - } - return nil -} - -// The checksum to verify -// the integrity of a resource. -type ResourceChecksum struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The type of checksum to use. - // If no checksum is provided, - // type MUST be RESOURCE_CHECKSUM_TYPE_UNSET. - Type ResourceChecksumType `protobuf:"varint,1,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceChecksumType" json:"type,omitempty"` - // MUST be specified if type is not - // RESOURCE_CHECKSUM_TYPE_UNSET or type is not - // RESOURCE_CHECKSUM_TYPE_INVALID. - // MUST be the hexadecimal representation of the cheksum. - // The value is case-insensitive, so - // "1E603A8", "1e603a8" or "1e603A8" are the same. - Sum string `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"` -} - -func (x *ResourceChecksum) Reset() { - *x = ResourceChecksum{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceChecksum) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceChecksum) ProtoMessage() {} - -func (x *ResourceChecksum) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceChecksum.ProtoReflect.Descriptor instead. -func (*ResourceChecksum) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{3} -} - -func (x *ResourceChecksum) GetType() ResourceChecksumType { - if x != nil { - return x.Type - } - return ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_INVALID -} - -func (x *ResourceChecksum) GetSum() string { - if x != nil { - return x.Sum - } - return "" -} - -// When negotiating the user of checksum types -// between client and server, this structure -// defines the priority of the checksum. -// Priority 0 means highest priority. -type ResourceChecksumPriority struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type ResourceChecksumType `protobuf:"varint,1,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceChecksumType" json:"type,omitempty"` - Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` -} - -func (x *ResourceChecksumPriority) Reset() { - *x = ResourceChecksumPriority{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceChecksumPriority) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceChecksumPriority) ProtoMessage() {} - -func (x *ResourceChecksumPriority) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceChecksumPriority.ProtoReflect.Descriptor instead. -func (*ResourceChecksumPriority) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{4} -} - -func (x *ResourceChecksumPriority) GetType() ResourceChecksumType { - if x != nil { - return x.Type - } - return ResourceChecksumType_RESOURCE_CHECKSUM_TYPE_INVALID -} - -func (x *ResourceChecksumPriority) GetPriority() uint32 { - if x != nil { - return x.Priority - } - return 0 -} - -// The mechanism to identify a resource -// in the storage provider namespace. Note that the path OR the resourceId must be specifed, not both. -type Reference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // One of the specifications MUST be specified. - // - // Types that are assignable to Spec: - // *Reference_Path - // *Reference_Id - Spec isReference_Spec `protobuf_oneof:"spec"` -} - -func (x *Reference) Reset() { - *x = Reference{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Reference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Reference) ProtoMessage() {} - -func (x *Reference) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 Reference.ProtoReflect.Descriptor instead. -func (*Reference) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{5} -} - -func (m *Reference) GetSpec() isReference_Spec { - if m != nil { - return m.Spec - } - return nil -} - -func (x *Reference) GetPath() string { - if x, ok := x.GetSpec().(*Reference_Path); ok { - return x.Path - } - return "" -} - -func (x *Reference) GetId() *ResourceId { - if x, ok := x.GetSpec().(*Reference_Id); ok { - return x.Id - } - return nil -} - -type isReference_Spec interface { - isReference_Spec() -} - -type Reference_Path struct { - // The path to the resource. - // MUST start with the slash character (/). - Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"` -} - -type Reference_Id struct { - // The id for the resource. - // MUST NOT start with the slash character (/). - Id *ResourceId `protobuf:"bytes,2,opt,name=id,proto3,oneof"` -} - -func (*Reference_Path) isReference_Spec() {} - -func (*Reference_Id) isReference_Spec() {} - -// A resource id identifies uniquely a -// resource in the storage provider namespace. -// A ResourceId MUST be unique in the storage provider. -type ResourceId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The storage id of the storage provider. - StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"` - // REQUIRED. - // The internal id used by service implementor to - // uniquely identity the resource in the internal - // implementation of the service. - OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` -} - -func (x *ResourceId) Reset() { - *x = ResourceId{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceId) ProtoMessage() {} - -func (x *ResourceId) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourceId.ProtoReflect.Descriptor instead. -func (*ResourceId) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{6} -} - -func (x *ResourceId) GetStorageId() string { - if x != nil { - return x.StorageId - } - return "" -} - -func (x *ResourceId) GetOpaqueId() string { - if x != nil { - return x.OpaqueId - } - return "" -} - -// The representation of permissions attached to a resource. -type ResourcePermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AddGrant bool `protobuf:"varint,1,opt,name=add_grant,json=addGrant,proto3" json:"add_grant,omitempty"` - CreateContainer bool `protobuf:"varint,2,opt,name=create_container,json=createContainer,proto3" json:"create_container,omitempty"` - Delete bool `protobuf:"varint,3,opt,name=delete,proto3" json:"delete,omitempty"` - GetPath bool `protobuf:"varint,5,opt,name=get_path,json=getPath,proto3" json:"get_path,omitempty"` - GetQuota bool `protobuf:"varint,6,opt,name=get_quota,json=getQuota,proto3" json:"get_quota,omitempty"` - InitiateFileDownload bool `protobuf:"varint,7,opt,name=initiate_file_download,json=initiateFileDownload,proto3" json:"initiate_file_download,omitempty"` - InitiateFileUpload bool `protobuf:"varint,8,opt,name=initiate_file_upload,json=initiateFileUpload,proto3" json:"initiate_file_upload,omitempty"` - ListGrants bool `protobuf:"varint,9,opt,name=list_grants,json=listGrants,proto3" json:"list_grants,omitempty"` - ListContainer bool `protobuf:"varint,10,opt,name=list_container,json=listContainer,proto3" json:"list_container,omitempty"` - ListFileVersions bool `protobuf:"varint,11,opt,name=list_file_versions,json=listFileVersions,proto3" json:"list_file_versions,omitempty"` - ListRecycle bool `protobuf:"varint,12,opt,name=list_recycle,json=listRecycle,proto3" json:"list_recycle,omitempty"` - Move bool `protobuf:"varint,13,opt,name=move,proto3" json:"move,omitempty"` - RemoveGrant bool `protobuf:"varint,14,opt,name=remove_grant,json=removeGrant,proto3" json:"remove_grant,omitempty"` - PurgeRecycle bool `protobuf:"varint,15,opt,name=purge_recycle,json=purgeRecycle,proto3" json:"purge_recycle,omitempty"` - RestoreFileVersion bool `protobuf:"varint,16,opt,name=restore_file_version,json=restoreFileVersion,proto3" json:"restore_file_version,omitempty"` - RestoreRecycleItem bool `protobuf:"varint,17,opt,name=restore_recycle_item,json=restoreRecycleItem,proto3" json:"restore_recycle_item,omitempty"` - Stat bool `protobuf:"varint,18,opt,name=stat,proto3" json:"stat,omitempty"` - UpdateGrant bool `protobuf:"varint,19,opt,name=update_grant,json=updateGrant,proto3" json:"update_grant,omitempty"` -} - -func (x *ResourcePermissions) Reset() { - *x = ResourcePermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourcePermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourcePermissions) ProtoMessage() {} - -func (x *ResourcePermissions) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 ResourcePermissions.ProtoReflect.Descriptor instead. -func (*ResourcePermissions) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{7} -} - -func (x *ResourcePermissions) GetAddGrant() bool { - if x != nil { - return x.AddGrant - } - return false -} - -func (x *ResourcePermissions) GetCreateContainer() bool { - if x != nil { - return x.CreateContainer - } - return false -} - -func (x *ResourcePermissions) GetDelete() bool { - if x != nil { - return x.Delete - } - return false -} - -func (x *ResourcePermissions) GetGetPath() bool { - if x != nil { - return x.GetPath - } - return false -} - -func (x *ResourcePermissions) GetGetQuota() bool { - if x != nil { - return x.GetQuota - } - return false -} - -func (x *ResourcePermissions) GetInitiateFileDownload() bool { - if x != nil { - return x.InitiateFileDownload - } - return false -} - -func (x *ResourcePermissions) GetInitiateFileUpload() bool { - if x != nil { - return x.InitiateFileUpload - } - return false -} - -func (x *ResourcePermissions) GetListGrants() bool { - if x != nil { - return x.ListGrants - } - return false -} - -func (x *ResourcePermissions) GetListContainer() bool { - if x != nil { - return x.ListContainer - } - return false -} - -func (x *ResourcePermissions) GetListFileVersions() bool { - if x != nil { - return x.ListFileVersions - } - return false -} - -func (x *ResourcePermissions) GetListRecycle() bool { - if x != nil { - return x.ListRecycle - } - return false -} - -func (x *ResourcePermissions) GetMove() bool { - if x != nil { - return x.Move - } - return false -} - -func (x *ResourcePermissions) GetRemoveGrant() bool { - if x != nil { - return x.RemoveGrant - } - return false -} - -func (x *ResourcePermissions) GetPurgeRecycle() bool { - if x != nil { - return x.PurgeRecycle - } - return false -} - -func (x *ResourcePermissions) GetRestoreFileVersion() bool { - if x != nil { - return x.RestoreFileVersion - } - return false -} - -func (x *ResourcePermissions) GetRestoreRecycleItem() bool { - if x != nil { - return x.RestoreRecycleItem - } - return false -} - -func (x *ResourcePermissions) GetStat() bool { - if x != nil { - return x.Stat - } - return false -} - -func (x *ResourcePermissions) GetUpdateGrant() bool { - if x != nil { - return x.UpdateGrant - } - return false -} - -// A grant grants permissions -// to a resource to a grantee. -type Grant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The grantee of the grant. - Grantee *Grantee `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` - // REQUIRED. - // The permissions for the grant. - Permissions *ResourcePermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *Grant) Reset() { - *x = Grant{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Grant) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Grant) ProtoMessage() {} - -func (x *Grant) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_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 Grant.ProtoReflect.Descriptor instead. -func (*Grant) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{8} -} - -func (x *Grant) GetGrantee() *Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -func (x *Grant) GetPermissions() *ResourcePermissions { - if x != nil { - return x.Permissions - } - return nil -} - -// A grantee is the receiver of a grant. -type Grantee struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The type of the grantee. - Type GranteeType `protobuf:"varint,1,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.GranteeType" json:"type,omitempty"` - // The unique id for the grantee. - // For example, a group name, user name or uuid. - Id *v1beta11.UserId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // OPTIONAL. - // Opaque information such as UID or GID. - Opaque *v1beta1.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *Grantee) Reset() { - *x = Grantee{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Grantee) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Grantee) ProtoMessage() {} - -func (x *Grantee) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[9] - 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 Grantee.ProtoReflect.Descriptor instead. -func (*Grantee) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{9} -} - -func (x *Grantee) GetType() GranteeType { - if x != nil { - return x.Type - } - return GranteeType_GRANTEE_TYPE_INVALID -} - -func (x *Grantee) GetId() *v1beta11.UserId { - if x != nil { - return x.Id - } - return nil -} - -func (x *Grantee) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -// The information for a file version. -// TODO(labkode): make size and mtime OPTIONAL? -type FileVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // MUST the specified. - // The key to identify the version. - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - // REQUIRED. - // The size in bytes of the file version. - Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - // REQUIRED. - // The Unix Epoch timestamp in seconds. - Mtime uint64 `protobuf:"varint,5,opt,name=mtime,proto3" json:"mtime,omitempty"` -} - -func (x *FileVersion) Reset() { - *x = FileVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileVersion) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileVersion) ProtoMessage() {} - -func (x *FileVersion) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[10] - 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 FileVersion.ProtoReflect.Descriptor instead. -func (*FileVersion) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{10} -} - -func (x *FileVersion) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FileVersion) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *FileVersion) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *FileVersion) GetMtime() uint64 { - if x != nil { - return x.Mtime - } - return 0 -} - -// A recycle item represents the information -// of a deleted resource. -type RecycleItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The type of the resource. - Type ResourceType `protobuf:"varint,2,opt,name=type,proto3,enum=cs3.storage.provider.v1beta1.ResourceType" json:"type,omitempty"` - // REQUIRED. - // The key to identify the deleted resource. - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - // REQUIRED. - // The original path of the deleted resource. - Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` - // OPTIONAL. - // The size of the deleted resource. - Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` - // REQUIRED. - // The deletion time of the resource - // in Unix Epoch timestamp in seconds. - DeletionTime *v1beta1.Timestamp `protobuf:"bytes,6,opt,name=deletion_time,json=deletionTime,proto3" json:"deletion_time,omitempty"` -} - -func (x *RecycleItem) Reset() { - *x = RecycleItem{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RecycleItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RecycleItem) ProtoMessage() {} - -func (x *RecycleItem) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[11] - 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 RecycleItem.ProtoReflect.Descriptor instead. -func (*RecycleItem) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{11} -} - -func (x *RecycleItem) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *RecycleItem) GetType() ResourceType { - if x != nil { - return x.Type - } - return ResourceType_RESOURCE_TYPE_INVALID -} - -func (x *RecycleItem) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *RecycleItem) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *RecycleItem) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *RecycleItem) GetDeletionTime() *v1beta1.Timestamp { - if x != nil { - return x.DeletionTime - } - return nil -} - -// A file upload protocol object stores information about -// uploading resources using a specific protocol. -type FileUploadProtocol struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocol to be followed. - Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` - // REQUIRED. - // The endpoint where to upload the data. - // The value MUST be a Uniform Resource Identifier (URI) - // as specified in RFC 3986. - UploadEndpoint string `protobuf:"bytes,3,opt,name=upload_endpoint,json=uploadEndpoint,proto3" json:"upload_endpoint,omitempty"` - // REQUIRED. - // List of available checksums - // the client can use when sending - // the file. - AvailableChecksums []*ResourceChecksumPriority `protobuf:"bytes,4,rep,name=available_checksums,json=availableChecksums,proto3" json:"available_checksums,omitempty"` - // REQUIRED. - // Tells to the gateway if the client should be exposed directly to the upload_endpoint. - Expose bool `protobuf:"varint,5,opt,name=expose,proto3" json:"expose,omitempty"` -} - -func (x *FileUploadProtocol) Reset() { - *x = FileUploadProtocol{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileUploadProtocol) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileUploadProtocol) ProtoMessage() {} - -func (x *FileUploadProtocol) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[12] - 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 FileUploadProtocol.ProtoReflect.Descriptor instead. -func (*FileUploadProtocol) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{12} -} - -func (x *FileUploadProtocol) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FileUploadProtocol) GetProtocol() string { - if x != nil { - return x.Protocol - } - return "" -} - -func (x *FileUploadProtocol) GetUploadEndpoint() string { - if x != nil { - return x.UploadEndpoint - } - return "" -} - -func (x *FileUploadProtocol) GetAvailableChecksums() []*ResourceChecksumPriority { - if x != nil { - return x.AvailableChecksums - } - return nil -} - -func (x *FileUploadProtocol) GetExpose() bool { - if x != nil { - return x.Expose - } - return false -} - -// A file download protocol object stores information about -// downloading resources using a specific protocol. -type FileDownloadProtocol struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The protocol to be followed. - Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` - // REQUIRED. - // The endpoint where to download the data. - // The value MUST be a Uniform Resource Identifier (URI) - // as specified in RFC 3986. - DownloadEndpoint string `protobuf:"bytes,3,opt,name=download_endpoint,json=downloadEndpoint,proto3" json:"download_endpoint,omitempty"` - // REQUIRED. - // Tells to the gateway if the client should be exposed directly to the download_endpoint. - Expose bool `protobuf:"varint,4,opt,name=expose,proto3" json:"expose,omitempty"` -} - -func (x *FileDownloadProtocol) Reset() { - *x = FileDownloadProtocol{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileDownloadProtocol) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileDownloadProtocol) ProtoMessage() {} - -func (x *FileDownloadProtocol) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[13] - 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 FileDownloadProtocol.ProtoReflect.Descriptor instead. -func (*FileDownloadProtocol) Descriptor() ([]byte, []int) { - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP(), []int{13} -} - -func (x *FileDownloadProtocol) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *FileDownloadProtocol) GetProtocol() string { - if x != nil { - return x.Protocol - } - return "" -} - -func (x *FileDownloadProtocol) GetDownloadEndpoint() string { - if x != nil { - return x.DownloadEndpoint - } - return "" -} - -func (x *FileDownloadProtocol) GetExpose() bool { - if x != nil { - return x.Expose - } - return false -} - -var File_cs3_storage_provider_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_storage_provider_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x29, 0x63, 0x73, - 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x05, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x4a, 0x0a, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x52, 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, - 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x65, 0x74, 0x61, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x32, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, - 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x58, 0x0a, 0x0e, 0x70, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x5e, 0x0a, 0x12, 0x63, 0x61, 0x6e, 0x6f, - 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5e, 0x0a, 0x12, 0x61, 0x72, 0x62, 0x69, - 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0e, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x11, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x54, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x6f, - 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, - 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xab, - 0x01, 0x0a, 0x11, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x59, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, - 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6c, 0x0a, 0x10, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, - 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x7e, 0x0a, 0x18, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x50, 0x72, - 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x65, 0x0a, 0x09, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x3a, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x64, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70, 0x65, - 0x63, 0x22, 0x48, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, - 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1b, - 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xa5, 0x05, 0x0a, 0x13, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x64, 0x64, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x12, 0x29, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x64, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x67, 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1b, - 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x08, 0x67, 0x65, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x16, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x77, - 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, - 0x64, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, - 0x6c, 0x65, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6c, 0x69, - 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x6c, - 0x69, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, - 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x69, 0x73, - 0x74, 0x5f, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6d, 0x6f, 0x76, 0x65, - 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x72, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x63, - 0x79, 0x63, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x70, 0x75, 0x72, 0x67, - 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, - 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x74, - 0x65, 0x6d, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x74, 0x61, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, - 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, - 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x22, 0x9d, 0x01, 0x0a, 0x05, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3f, 0x0a, - 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x53, - 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0xae, 0x01, 0x0a, 0x07, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, - 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x65, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x31, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x22, 0x7c, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6d, 0x74, 0x69, - 0x6d, 0x65, 0x22, 0xfd, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x49, 0x74, - 0x65, 0x6d, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, - 0x41, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, - 0x6d, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, - 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x70, 0x6c, 0x6f, - 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, - 0x74, 0x12, 0x67, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, - 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x50, 0x72, - 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, - 0x70, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x70, 0x6f, - 0x73, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x14, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, - 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x6f, - 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x45, - 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x73, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x2a, - 0xb2, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x52, - 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4c, - 0x45, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x45, 0x52, 0x10, 0x02, - 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x19, 0x0a, - 0x15, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, - 0x59, 0x4d, 0x4c, 0x49, 0x4e, 0x4b, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x53, 0x4f, - 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, - 0x41, 0x4c, 0x10, 0x05, 0x2a, 0xc1, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, - 0x1e, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, - 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, - 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, - 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x45, - 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, - 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x44, - 0x4c, 0x45, 0x52, 0x33, 0x32, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, 0x55, - 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x53, 0x4f, 0x55, - 0x52, 0x43, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x53, 0x48, 0x41, 0x31, 0x10, 0x04, 0x2a, 0x56, 0x0a, 0x0b, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x65, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x52, 0x41, 0x4e, 0x54, - 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, - 0x00, 0x12, 0x15, 0x0a, 0x11, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x47, 0x52, 0x41, 0x4e, - 0x54, 0x45, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x02, - 0x42, 0x89, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x50, 0xaa, 0x02, - 0x1c, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, - 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5c, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_storage_provider_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_storage_provider_v1beta1_resources_proto_rawDescData = file_cs3_storage_provider_v1beta1_resources_proto_rawDesc -) - -func file_cs3_storage_provider_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_storage_provider_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_storage_provider_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_provider_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_storage_provider_v1beta1_resources_proto_rawDescData -} - -var file_cs3_storage_provider_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_cs3_storage_provider_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_cs3_storage_provider_v1beta1_resources_proto_goTypes = []interface{}{ - (ResourceType)(0), // 0: cs3.storage.provider.v1beta1.ResourceType - (ResourceChecksumType)(0), // 1: cs3.storage.provider.v1beta1.ResourceChecksumType - (GranteeType)(0), // 2: cs3.storage.provider.v1beta1.GranteeType - (*ResourceInfo)(nil), // 3: cs3.storage.provider.v1beta1.ResourceInfo - (*CanonicalMetadata)(nil), // 4: cs3.storage.provider.v1beta1.CanonicalMetadata - (*ArbitraryMetadata)(nil), // 5: cs3.storage.provider.v1beta1.ArbitraryMetadata - (*ResourceChecksum)(nil), // 6: cs3.storage.provider.v1beta1.ResourceChecksum - (*ResourceChecksumPriority)(nil), // 7: cs3.storage.provider.v1beta1.ResourceChecksumPriority - (*Reference)(nil), // 8: cs3.storage.provider.v1beta1.Reference - (*ResourceId)(nil), // 9: cs3.storage.provider.v1beta1.ResourceId - (*ResourcePermissions)(nil), // 10: cs3.storage.provider.v1beta1.ResourcePermissions - (*Grant)(nil), // 11: cs3.storage.provider.v1beta1.Grant - (*Grantee)(nil), // 12: cs3.storage.provider.v1beta1.Grantee - (*FileVersion)(nil), // 13: cs3.storage.provider.v1beta1.FileVersion - (*RecycleItem)(nil), // 14: cs3.storage.provider.v1beta1.RecycleItem - (*FileUploadProtocol)(nil), // 15: cs3.storage.provider.v1beta1.FileUploadProtocol - (*FileDownloadProtocol)(nil), // 16: cs3.storage.provider.v1beta1.FileDownloadProtocol - nil, // 17: cs3.storage.provider.v1beta1.ArbitraryMetadata.MetadataEntry - (*v1beta1.Opaque)(nil), // 18: cs3.types.v1beta1.Opaque - (*v1beta1.Timestamp)(nil), // 19: cs3.types.v1beta1.Timestamp - (*v1beta11.UserId)(nil), // 20: cs3.identity.user.v1beta1.UserId -} -var file_cs3_storage_provider_v1beta1_resources_proto_depIdxs = []int32{ - 18, // 0: cs3.storage.provider.v1beta1.ResourceInfo.opaque:type_name -> cs3.types.v1beta1.Opaque - 0, // 1: cs3.storage.provider.v1beta1.ResourceInfo.type:type_name -> cs3.storage.provider.v1beta1.ResourceType - 9, // 2: cs3.storage.provider.v1beta1.ResourceInfo.id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 6, // 3: cs3.storage.provider.v1beta1.ResourceInfo.checksum:type_name -> cs3.storage.provider.v1beta1.ResourceChecksum - 19, // 4: cs3.storage.provider.v1beta1.ResourceInfo.mtime:type_name -> cs3.types.v1beta1.Timestamp - 10, // 5: cs3.storage.provider.v1beta1.ResourceInfo.permission_set:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions - 20, // 6: cs3.storage.provider.v1beta1.ResourceInfo.owner:type_name -> cs3.identity.user.v1beta1.UserId - 4, // 7: cs3.storage.provider.v1beta1.ResourceInfo.canonical_metadata:type_name -> cs3.storage.provider.v1beta1.CanonicalMetadata - 5, // 8: cs3.storage.provider.v1beta1.ResourceInfo.arbitrary_metadata:type_name -> cs3.storage.provider.v1beta1.ArbitraryMetadata - 8, // 9: cs3.storage.provider.v1beta1.CanonicalMetadata.target:type_name -> cs3.storage.provider.v1beta1.Reference - 17, // 10: cs3.storage.provider.v1beta1.ArbitraryMetadata.metadata:type_name -> cs3.storage.provider.v1beta1.ArbitraryMetadata.MetadataEntry - 1, // 11: cs3.storage.provider.v1beta1.ResourceChecksum.type:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumType - 1, // 12: cs3.storage.provider.v1beta1.ResourceChecksumPriority.type:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumType - 9, // 13: cs3.storage.provider.v1beta1.Reference.id:type_name -> cs3.storage.provider.v1beta1.ResourceId - 12, // 14: cs3.storage.provider.v1beta1.Grant.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 10, // 15: cs3.storage.provider.v1beta1.Grant.permissions:type_name -> cs3.storage.provider.v1beta1.ResourcePermissions - 2, // 16: cs3.storage.provider.v1beta1.Grantee.type:type_name -> cs3.storage.provider.v1beta1.GranteeType - 20, // 17: cs3.storage.provider.v1beta1.Grantee.id:type_name -> cs3.identity.user.v1beta1.UserId - 18, // 18: cs3.storage.provider.v1beta1.Grantee.opaque:type_name -> cs3.types.v1beta1.Opaque - 18, // 19: cs3.storage.provider.v1beta1.FileVersion.opaque:type_name -> cs3.types.v1beta1.Opaque - 18, // 20: cs3.storage.provider.v1beta1.RecycleItem.opaque:type_name -> cs3.types.v1beta1.Opaque - 0, // 21: cs3.storage.provider.v1beta1.RecycleItem.type:type_name -> cs3.storage.provider.v1beta1.ResourceType - 19, // 22: cs3.storage.provider.v1beta1.RecycleItem.deletion_time:type_name -> cs3.types.v1beta1.Timestamp - 18, // 23: cs3.storage.provider.v1beta1.FileUploadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 24: cs3.storage.provider.v1beta1.FileUploadProtocol.available_checksums:type_name -> cs3.storage.provider.v1beta1.ResourceChecksumPriority - 18, // 25: cs3.storage.provider.v1beta1.FileDownloadProtocol.opaque:type_name -> cs3.types.v1beta1.Opaque - 26, // [26:26] is the sub-list for method output_type - 26, // [26:26] is the sub-list for method input_type - 26, // [26:26] is the sub-list for extension type_name - 26, // [26:26] is the sub-list for extension extendee - 0, // [0:26] is the sub-list for field type_name -} - -func init() { file_cs3_storage_provider_v1beta1_resources_proto_init() } -func file_cs3_storage_provider_v1beta1_resources_proto_init() { - if File_cs3_storage_provider_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanonicalMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArbitraryMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceChecksum); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceChecksumPriority); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Reference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourcePermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Grant); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Grantee); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RecycleItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileUploadProtocol); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileDownloadProtocol); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cs3_storage_provider_v1beta1_resources_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*Reference_Path)(nil), - (*Reference_Id)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cs3_storage_provider_v1beta1_resources_proto_rawDesc, - NumEnums: 3, - NumMessages: 15, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_storage_provider_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_storage_provider_v1beta1_resources_proto_depIdxs, - EnumInfos: file_cs3_storage_provider_v1beta1_resources_proto_enumTypes, - MessageInfos: file_cs3_storage_provider_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_storage_provider_v1beta1_resources_proto = out.File - file_cs3_storage_provider_v1beta1_resources_proto_rawDesc = nil - file_cs3_storage_provider_v1beta1_resources_proto_goTypes = nil - file_cs3_storage_provider_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go deleted file mode 100644 index 4061e821..00000000 --- a/build/go-cs3apis/cs3/storage/provider/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/storage/provider/v1beta1/resources.proto - -package providerv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go deleted file mode 100644 index e590af4a..00000000 --- a/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.go +++ /dev/null @@ -1,839 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/storage/registry/v1beta1/registry_api.proto - -package registryv1beta1 - -import ( - context "context" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type GetHomeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *GetHomeRequest) Reset() { - *x = GetHomeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetHomeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetHomeRequest) ProtoMessage() {} - -func (x *GetHomeRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetHomeRequest.ProtoReflect.Descriptor instead. -func (*GetHomeRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{0} -} - -func (x *GetHomeRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetHomeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The storage provider for the user home. - Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` -} - -func (x *GetHomeResponse) Reset() { - *x = GetHomeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetHomeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetHomeResponse) ProtoMessage() {} - -func (x *GetHomeResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetHomeResponse.ProtoReflect.Descriptor instead. -func (*GetHomeResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{1} -} - -func (x *GetHomeResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetHomeResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetHomeResponse) GetProvider() *ProviderInfo { - if x != nil { - return x.Provider - } - return nil -} - -type GetStorageProviderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The reference for the resource. - Ref *v1beta12.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (x *GetStorageProviderRequest) Reset() { - *x = GetStorageProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetStorageProviderRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetStorageProviderRequest) ProtoMessage() {} - -func (x *GetStorageProviderRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetStorageProviderRequest.ProtoReflect.Descriptor instead. -func (*GetStorageProviderRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{2} -} - -func (x *GetStorageProviderRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetStorageProviderRequest) GetRef() *v1beta12.Reference { - if x != nil { - return x.Ref - } - return nil -} - -type GetStorageProviderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The storage provider handling the requested storage resource. - Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` -} - -func (x *GetStorageProviderResponse) Reset() { - *x = GetStorageProviderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetStorageProviderResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetStorageProviderResponse) ProtoMessage() {} - -func (x *GetStorageProviderResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_registry_api_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 GetStorageProviderResponse.ProtoReflect.Descriptor instead. -func (*GetStorageProviderResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{3} -} - -func (x *GetStorageProviderResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetStorageProviderResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *GetStorageProviderResponse) GetProvider() *ProviderInfo { - if x != nil { - return x.Provider - } - return nil -} - -type ListStorageProvidersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter? -} - -func (x *ListStorageProvidersRequest) Reset() { - *x = ListStorageProvidersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListStorageProvidersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListStorageProvidersRequest) ProtoMessage() {} - -func (x *ListStorageProvidersRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_registry_api_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 ListStorageProvidersRequest.ProtoReflect.Descriptor instead. -func (*ListStorageProvidersRequest) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{4} -} - -func (x *ListStorageProvidersRequest) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type ListStorageProvidersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta11.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The list of storage providers this registry knows about. - Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` -} - -func (x *ListStorageProvidersResponse) Reset() { - *x = ListStorageProvidersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListStorageProvidersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListStorageProvidersResponse) ProtoMessage() {} - -func (x *ListStorageProvidersResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_registry_api_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 ListStorageProvidersResponse.ProtoReflect.Descriptor instead. -func (*ListStorageProvidersResponse) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP(), []int{5} -} - -func (x *ListStorageProvidersResponse) GetStatus() *v1beta11.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *ListStorageProvidersResponse) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ListStorageProvidersResponse) GetProviders() []*ProviderInfo { - if x != nil { - return x.Providers - } - return nil -} - -var File_cs3_storage_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor - -var file_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc = []byte{ - 0x0a, 0x2f, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x1c, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, - 0x1c, 0x63, 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, - 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, - 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x48, - 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xbd, 0x01, - 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x89, 0x01, - 0x0a, 0x19, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x39, - 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x22, 0xc8, 0x01, 0x0a, 0x1a, 0x47, 0x65, - 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, - 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x46, 0x0a, 0x08, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x22, 0x50, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x73, 0x32, 0x8f, 0x03, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x41, 0x50, 0x49, 0x12, 0x87, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x37, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x8d, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x39, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x66, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x12, 0x2c, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x8b, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x10, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x52, 0xaa, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x2e, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, - 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x43, 0x73, 0x33, 0x5c, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, - 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescOnce sync.Once - file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData = file_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc -) - -func file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescGZIP() []byte { - file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescOnce.Do(func() { - file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData) - }) - return file_cs3_storage_registry_v1beta1_registry_api_proto_rawDescData -} - -var file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_cs3_storage_registry_v1beta1_registry_api_proto_goTypes = []interface{}{ - (*GetHomeRequest)(nil), // 0: cs3.storage.registry.v1beta1.GetHomeRequest - (*GetHomeResponse)(nil), // 1: cs3.storage.registry.v1beta1.GetHomeResponse - (*GetStorageProviderRequest)(nil), // 2: cs3.storage.registry.v1beta1.GetStorageProviderRequest - (*GetStorageProviderResponse)(nil), // 3: cs3.storage.registry.v1beta1.GetStorageProviderResponse - (*ListStorageProvidersRequest)(nil), // 4: cs3.storage.registry.v1beta1.ListStorageProvidersRequest - (*ListStorageProvidersResponse)(nil), // 5: cs3.storage.registry.v1beta1.ListStorageProvidersResponse - (*v1beta1.Opaque)(nil), // 6: cs3.types.v1beta1.Opaque - (*v1beta11.Status)(nil), // 7: cs3.rpc.v1beta1.Status - (*ProviderInfo)(nil), // 8: cs3.storage.registry.v1beta1.ProviderInfo - (*v1beta12.Reference)(nil), // 9: cs3.storage.provider.v1beta1.Reference -} -var file_cs3_storage_registry_v1beta1_registry_api_proto_depIdxs = []int32{ - 6, // 0: cs3.storage.registry.v1beta1.GetHomeRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 1: cs3.storage.registry.v1beta1.GetHomeResponse.status:type_name -> cs3.rpc.v1beta1.Status - 6, // 2: cs3.storage.registry.v1beta1.GetHomeResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 8, // 3: cs3.storage.registry.v1beta1.GetHomeResponse.provider:type_name -> cs3.storage.registry.v1beta1.ProviderInfo - 6, // 4: cs3.storage.registry.v1beta1.GetStorageProviderRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 9, // 5: cs3.storage.registry.v1beta1.GetStorageProviderRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 7, // 6: cs3.storage.registry.v1beta1.GetStorageProviderResponse.status:type_name -> cs3.rpc.v1beta1.Status - 6, // 7: cs3.storage.registry.v1beta1.GetStorageProviderResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 8, // 8: cs3.storage.registry.v1beta1.GetStorageProviderResponse.provider:type_name -> cs3.storage.registry.v1beta1.ProviderInfo - 6, // 9: cs3.storage.registry.v1beta1.ListStorageProvidersRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 7, // 10: cs3.storage.registry.v1beta1.ListStorageProvidersResponse.status:type_name -> cs3.rpc.v1beta1.Status - 6, // 11: cs3.storage.registry.v1beta1.ListStorageProvidersResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 8, // 12: cs3.storage.registry.v1beta1.ListStorageProvidersResponse.providers:type_name -> cs3.storage.registry.v1beta1.ProviderInfo - 2, // 13: cs3.storage.registry.v1beta1.RegistryAPI.GetStorageProvider:input_type -> cs3.storage.registry.v1beta1.GetStorageProviderRequest - 4, // 14: cs3.storage.registry.v1beta1.RegistryAPI.ListStorageProviders:input_type -> cs3.storage.registry.v1beta1.ListStorageProvidersRequest - 0, // 15: cs3.storage.registry.v1beta1.RegistryAPI.GetHome:input_type -> cs3.storage.registry.v1beta1.GetHomeRequest - 3, // 16: cs3.storage.registry.v1beta1.RegistryAPI.GetStorageProvider:output_type -> cs3.storage.registry.v1beta1.GetStorageProviderResponse - 5, // 17: cs3.storage.registry.v1beta1.RegistryAPI.ListStorageProviders:output_type -> cs3.storage.registry.v1beta1.ListStorageProvidersResponse - 1, // 18: cs3.storage.registry.v1beta1.RegistryAPI.GetHome:output_type -> cs3.storage.registry.v1beta1.GetHomeResponse - 16, // [16:19] is the sub-list for method output_type - 13, // [13:16] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name -} - -func init() { file_cs3_storage_registry_v1beta1_registry_api_proto_init() } -func file_cs3_storage_registry_v1beta1_registry_api_proto_init() { - if File_cs3_storage_registry_v1beta1_registry_api_proto != nil { - return - } - file_cs3_storage_registry_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetHomeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetHomeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetStorageProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetStorageProviderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListStorageProvidersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListStorageProvidersResponse); 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_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_storage_registry_v1beta1_registry_api_proto_goTypes, - DependencyIndexes: file_cs3_storage_registry_v1beta1_registry_api_proto_depIdxs, - MessageInfos: file_cs3_storage_registry_v1beta1_registry_api_proto_msgTypes, - }.Build() - File_cs3_storage_registry_v1beta1_registry_api_proto = out.File - file_cs3_storage_registry_v1beta1_registry_api_proto_rawDesc = nil - file_cs3_storage_registry_v1beta1_registry_api_proto_goTypes = nil - file_cs3_storage_registry_v1beta1_registry_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// RegistryAPIClient is the client API for RegistryAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RegistryAPIClient interface { - // Returns the storage provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...grpc.CallOption) (*GetStorageProviderResponse, error) - // Returns a list of the available storage providers known by this registry. - ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...grpc.CallOption) (*ListStorageProvidersResponse, error) - // Gets the user home storage provider. - GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) -} - -type registryAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient { - return ®istryAPIClient{cc} -} - -func (c *registryAPIClient) GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...grpc.CallOption) (*GetStorageProviderResponse, error) { - out := new(GetStorageProviderResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIClient) ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...grpc.CallOption) (*ListStorageProvidersResponse, error) { - out := new(ListStorageProvidersResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIClient) GetHome(ctx context.Context, in *GetHomeRequest, opts ...grpc.CallOption) (*GetHomeResponse, error) { - out := new(GetHomeResponse) - err := c.cc.Invoke(ctx, "/cs3.storage.registry.v1beta1.RegistryAPI/GetHome", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RegistryAPIServer is the server API for RegistryAPI service. -type RegistryAPIServer interface { - // Returns the storage provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetStorageProvider(context.Context, *GetStorageProviderRequest) (*GetStorageProviderResponse, error) - // Returns a list of the available storage providers known by this registry. - ListStorageProviders(context.Context, *ListStorageProvidersRequest) (*ListStorageProvidersResponse, error) - // Gets the user home storage provider. - GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) -} - -// UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations. -type UnimplementedRegistryAPIServer struct { -} - -func (*UnimplementedRegistryAPIServer) GetStorageProvider(context.Context, *GetStorageProviderRequest) (*GetStorageProviderResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStorageProvider not implemented") -} -func (*UnimplementedRegistryAPIServer) ListStorageProviders(context.Context, *ListStorageProvidersRequest) (*ListStorageProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListStorageProviders not implemented") -} -func (*UnimplementedRegistryAPIServer) GetHome(context.Context, *GetHomeRequest) (*GetHomeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetHome not implemented") -} - -func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer) { - s.RegisterService(&_RegistryAPI_serviceDesc, srv) -} - -func _RegistryAPI_GetStorageProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetStorageProviderRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RegistryAPIServer).GetStorageProvider(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RegistryAPIServer).GetStorageProvider(ctx, req.(*GetStorageProviderRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RegistryAPI_ListStorageProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListStorageProvidersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RegistryAPIServer).ListStorageProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RegistryAPIServer).ListStorageProviders(ctx, req.(*ListStorageProvidersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RegistryAPI_GetHome_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetHomeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RegistryAPIServer).GetHome(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.storage.registry.v1beta1.RegistryAPI/GetHome", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RegistryAPIServer).GetHome(ctx, req.(*GetHomeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RegistryAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.storage.registry.v1beta1.RegistryAPI", - HandlerType: (*RegistryAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetStorageProvider", - Handler: _RegistryAPI_GetStorageProvider_Handler, - }, - { - MethodName: "ListStorageProviders", - Handler: _RegistryAPI_ListStorageProviders_Handler, - }, - { - MethodName: "GetHome", - Handler: _RegistryAPI_GetHome_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/storage/registry/v1beta1/registry_api.proto", -} diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go deleted file mode 100644 index cc8d99ed..00000000 --- a/build/go-cs3apis/cs3/storage/registry/v1beta1/registry_api.pb.micro.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/storage/registry/v1beta1/registry_api.proto - -package registryv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for RegistryAPI service - -func NewRegistryAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for RegistryAPI service - -type RegistryAPIService interface { - // Returns the storage provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...client.CallOption) (*GetStorageProviderResponse, error) - // Returns a list of the available storage providers known by this registry. - ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...client.CallOption) (*ListStorageProvidersResponse, error) - // Gets the user home storage provider. - GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) -} - -type registryAPIService struct { - c client.Client - name string -} - -func NewRegistryAPIService(name string, c client.Client) RegistryAPIService { - return ®istryAPIService{ - c: c, - name: name, - } -} - -func (c *registryAPIService) GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, opts ...client.CallOption) (*GetStorageProviderResponse, error) { - req := c.c.NewRequest(c.name, "RegistryAPI.GetStorageProvider", in) - out := new(GetStorageProviderResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIService) ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, opts ...client.CallOption) (*ListStorageProvidersResponse, error) { - req := c.c.NewRequest(c.name, "RegistryAPI.ListStorageProviders", in) - out := new(ListStorageProvidersResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *registryAPIService) GetHome(ctx context.Context, in *GetHomeRequest, opts ...client.CallOption) (*GetHomeResponse, error) { - req := c.c.NewRequest(c.name, "RegistryAPI.GetHome", in) - out := new(GetHomeResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for RegistryAPI service - -type RegistryAPIHandler interface { - // Returns the storage provider that is reponsible for the given - // resource reference. - // MUST return CODE_NOT_FOUND if the reference does not exist. - GetStorageProvider(context.Context, *GetStorageProviderRequest, *GetStorageProviderResponse) error - // Returns a list of the available storage providers known by this registry. - ListStorageProviders(context.Context, *ListStorageProvidersRequest, *ListStorageProvidersResponse) error - // Gets the user home storage provider. - GetHome(context.Context, *GetHomeRequest, *GetHomeResponse) error -} - -func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error { - type registryAPI interface { - GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, out *GetStorageProviderResponse) error - ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, out *ListStorageProvidersResponse) error - GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error - } - type RegistryAPI struct { - registryAPI - } - h := ®istryAPIHandler{hdlr} - return s.Handle(s.NewHandler(&RegistryAPI{h}, opts...)) -} - -type registryAPIHandler struct { - RegistryAPIHandler -} - -func (h *registryAPIHandler) GetStorageProvider(ctx context.Context, in *GetStorageProviderRequest, out *GetStorageProviderResponse) error { - return h.RegistryAPIHandler.GetStorageProvider(ctx, in, out) -} - -func (h *registryAPIHandler) ListStorageProviders(ctx context.Context, in *ListStorageProvidersRequest, out *ListStorageProvidersResponse) error { - return h.RegistryAPIHandler.ListStorageProviders(ctx, in, out) -} - -func (h *registryAPIHandler) GetHome(ctx context.Context, in *GetHomeRequest, out *GetHomeResponse) error { - return h.RegistryAPIHandler.GetHome(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go deleted file mode 100644 index a0ab9c74..00000000 --- a/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.go +++ /dev/null @@ -1,337 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/storage/registry/v1beta1/resources.proto - -package registryv1beta1 - -import ( - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// The information for the storage provider. -type ProviderInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // OPTIONAL. - // Opaque information (containing storage-specific information). - // For example, additional metadata attached to the resource. - Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` - // REQUIRED. - // The storage provider id that will become part of the - // resource id. - // For example, if the provider_id is "home", resources obtained - // from this storage provider will have a resource id like "home:1234". - ProviderId string `protobuf:"bytes,2,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` - // REQUIRED. - // The public path prefix this storage provider handles. - // In Unix literature, the mount path. - // For example, if the provider_path is "/home", resources obtained - // from this storage provier will have a resource path lik "/home/docs". - ProviderPath string `protobuf:"bytes,3,opt,name=provider_path,json=providerPath,proto3" json:"provider_path,omitempty"` - // REQUIRED. - // The address where the storage provider can be reached. - // For example, tcp://localhost:1099. - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - // OPTIONAL. - // Information to describe the functionalities - // offered by the storage provider. Meant to be read - // by humans. - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - // REQUIRED. - // List of available methods. - Features *ProviderInfo_Features `protobuf:"bytes,6,opt,name=features,proto3" json:"features,omitempty"` -} - -func (x *ProviderInfo) Reset() { - *x = ProviderInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderInfo) ProtoMessage() {} - -func (x *ProviderInfo) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_resources_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 ProviderInfo.ProtoReflect.Descriptor instead. -func (*ProviderInfo) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -func (x *ProviderInfo) GetProviderId() string { - if x != nil { - return x.ProviderId - } - return "" -} - -func (x *ProviderInfo) GetProviderPath() string { - if x != nil { - return x.ProviderPath - } - return "" -} - -func (x *ProviderInfo) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *ProviderInfo) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *ProviderInfo) GetFeatures() *ProviderInfo_Features { - if x != nil { - return x.Features - } - return nil -} - -// REQUIRED. -// Represents the list of features available -// on this storage provider. If the feature is not supported, -// the related service methods MUST return CODE_UNIMPLEMENTED. -type ProviderInfo_Features struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Recycle bool `protobuf:"varint,1,opt,name=recycle,proto3" json:"recycle,omitempty"` - FileVersions bool `protobuf:"varint,2,opt,name=file_versions,json=fileVersions,proto3" json:"file_versions,omitempty"` -} - -func (x *ProviderInfo_Features) Reset() { - *x = ProviderInfo_Features{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderInfo_Features) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderInfo_Features) ProtoMessage() {} - -func (x *ProviderInfo_Features) ProtoReflect() protoreflect.Message { - mi := &file_cs3_storage_registry_v1beta1_resources_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 ProviderInfo_Features.ProtoReflect.Descriptor instead. -func (*ProviderInfo_Features) Descriptor() ([]byte, []int) { - return file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *ProviderInfo_Features) GetRecycle() bool { - if x != nil { - return x.Recycle - } - return false -} - -func (x *ProviderInfo_Features) GetFileVersions() bool { - if x != nil { - return x.FileVersions - } - return false -} - -var File_cs3_storage_registry_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_storage_registry_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x2c, 0x63, 0x73, 0x33, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, - 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1d, 0x63, 0x73, - 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x02, 0x0a, 0x0c, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, - 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x4f, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x2e, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x1a, 0x49, 0x0a, 0x08, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x18, - 0x0a, 0x07, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x72, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x89, 0x01, - 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x53, 0x52, 0xaa, 0x02, 0x1c, 0x43, 0x73, - 0x33, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x43, 0x73, 0x33, - 0x5c, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_cs3_storage_registry_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_storage_registry_v1beta1_resources_proto_rawDescData = file_cs3_storage_registry_v1beta1_resources_proto_rawDesc -) - -func file_cs3_storage_registry_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_storage_registry_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_storage_registry_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_storage_registry_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_storage_registry_v1beta1_resources_proto_rawDescData -} - -var file_cs3_storage_registry_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cs3_storage_registry_v1beta1_resources_proto_goTypes = []interface{}{ - (*ProviderInfo)(nil), // 0: cs3.storage.registry.v1beta1.ProviderInfo - (*ProviderInfo_Features)(nil), // 1: cs3.storage.registry.v1beta1.ProviderInfo.Features - (*v1beta1.Opaque)(nil), // 2: cs3.types.v1beta1.Opaque -} -var file_cs3_storage_registry_v1beta1_resources_proto_depIdxs = []int32{ - 2, // 0: cs3.storage.registry.v1beta1.ProviderInfo.opaque:type_name -> cs3.types.v1beta1.Opaque - 1, // 1: cs3.storage.registry.v1beta1.ProviderInfo.features:type_name -> cs3.storage.registry.v1beta1.ProviderInfo.Features - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_cs3_storage_registry_v1beta1_resources_proto_init() } -func file_cs3_storage_registry_v1beta1_resources_proto_init() { - if File_cs3_storage_registry_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_storage_registry_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderInfo_Features); 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_cs3_storage_registry_v1beta1_resources_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_storage_registry_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_storage_registry_v1beta1_resources_proto_depIdxs, - MessageInfos: file_cs3_storage_registry_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_storage_registry_v1beta1_resources_proto = out.File - file_cs3_storage_registry_v1beta1_resources_proto_rawDesc = nil - file_cs3_storage_registry_v1beta1_resources_proto_goTypes = nil - file_cs3_storage_registry_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go deleted file mode 100644 index 6681efc5..00000000 --- a/build/go-cs3apis/cs3/storage/registry/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/storage/registry/v1beta1/resources.proto - -package registryv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go b/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go deleted file mode 100644 index c619883e..00000000 --- a/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.go +++ /dev/null @@ -1,455 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/tx/v1beta1/resources.proto - -package txv1beta1 - -import ( - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Status represents transfer status. -type TxInfo_Status int32 - -const ( - TxInfo_STATUS_INVALID TxInfo_Status = 0 - // The destination could not be found. - TxInfo_STATUS_DESTINATION_NOT_FOUND TxInfo_Status = 1 - // A new data transfer - TxInfo_STATUS_TRANSFER_NEW TxInfo_Status = 2 - // The data transfer is awaiting acceptance from the destination - TxInfo_STATUS_TRANSFER_AWAITING_ACCEPTANCE TxInfo_Status = 3 - // The data transfer is accepted by the destination. - TxInfo_STATUS_TRANSFER_ACCEPTED TxInfo_Status = 4 - // The data transfer has started and not yet completed. - TxInfo_STATUS_TRANSFER_IN_PROGRESS TxInfo_Status = 5 - // The data transfer has completed. - TxInfo_STATUS_TRANSFER_COMPLETE TxInfo_Status = 6 - // The data transfer has failed. - TxInfo_STATUS_TRANSFER_FAILED TxInfo_Status = 7 - // The data transfer had been cancelled. - TxInfo_STATUS_TRANSFER_CANCELLED TxInfo_Status = 8 - // The request for cancelling the data transfer has failed. - TxInfo_STATUS_TRANSFER_CANCEL_FAILED TxInfo_Status = 9 - // The transfer has expired somewhere down the line. - TxInfo_STATUS_TRANSFER_EXPIRED TxInfo_Status = 10 -) - -// Enum value maps for TxInfo_Status. -var ( - TxInfo_Status_name = map[int32]string{ - 0: "STATUS_INVALID", - 1: "STATUS_DESTINATION_NOT_FOUND", - 2: "STATUS_TRANSFER_NEW", - 3: "STATUS_TRANSFER_AWAITING_ACCEPTANCE", - 4: "STATUS_TRANSFER_ACCEPTED", - 5: "STATUS_TRANSFER_IN_PROGRESS", - 6: "STATUS_TRANSFER_COMPLETE", - 7: "STATUS_TRANSFER_FAILED", - 8: "STATUS_TRANSFER_CANCELLED", - 9: "STATUS_TRANSFER_CANCEL_FAILED", - 10: "STATUS_TRANSFER_EXPIRED", - } - TxInfo_Status_value = map[string]int32{ - "STATUS_INVALID": 0, - "STATUS_DESTINATION_NOT_FOUND": 1, - "STATUS_TRANSFER_NEW": 2, - "STATUS_TRANSFER_AWAITING_ACCEPTANCE": 3, - "STATUS_TRANSFER_ACCEPTED": 4, - "STATUS_TRANSFER_IN_PROGRESS": 5, - "STATUS_TRANSFER_COMPLETE": 6, - "STATUS_TRANSFER_FAILED": 7, - "STATUS_TRANSFER_CANCELLED": 8, - "STATUS_TRANSFER_CANCEL_FAILED": 9, - "STATUS_TRANSFER_EXPIRED": 10, - } -) - -func (x TxInfo_Status) Enum() *TxInfo_Status { - p := new(TxInfo_Status) - *p = x - return p -} - -func (x TxInfo_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (TxInfo_Status) Descriptor() protoreflect.EnumDescriptor { - return file_cs3_tx_v1beta1_resources_proto_enumTypes[0].Descriptor() -} - -func (TxInfo_Status) Type() protoreflect.EnumType { - return &file_cs3_tx_v1beta1_resources_proto_enumTypes[0] -} - -func (x TxInfo_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use TxInfo_Status.Descriptor instead. -func (TxInfo_Status) EnumDescriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{1, 0} -} - -// TxId uniquely identifies a transfer in the transfer provider namespace. -type TxId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The internal transfer id used by the service implementor - // to uniquely identity the transfer in the internal - // implementation of the service. - OpaqueId string `protobuf:"bytes,1,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` -} - -func (x *TxId) Reset() { - *x = TxId{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TxId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TxId) ProtoMessage() {} - -func (x *TxId) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_resources_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 TxId.ProtoReflect.Descriptor instead. -func (*TxId) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{0} -} - -func (x *TxId) GetOpaqueId() string { - if x != nil { - return x.OpaqueId - } - return "" -} - -// TxInfo represents information about a transfer. -type TxInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The transfer identifier. - Id *TxId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // REQUIRED. - // Reference of the resource to be transfered. - Ref *v1beta1.Reference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The transfer status. Eg.: STATUS_TRANSFER_FAILED. - // Note: the description field may provide additional information on the transfer status. - Status TxInfo_Status `protobuf:"varint,3,opt,name=status,proto3,enum=cs3.tx.v1beta1.TxInfo_Status" json:"status,omitempty"` - // REQUIRED. - // The destination (receiver of the transfer) - Grantee *v1beta1.Grantee `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"` - // REQUIRED. - // Uniquely identifies a principal who initiates the transfer creation. - Creator *v1beta11.UserId `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` - // REQUIRED. - // Creation time of the transfer. - Ctime *v1beta12.Timestamp `protobuf:"bytes,6,opt,name=ctime,proto3" json:"ctime,omitempty"` - // OPTIONAL. - // Information to describe the transfer status. - // Eg. may contain information about a transfer failure. - // Meant to be human-readable. - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *TxInfo) Reset() { - *x = TxInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TxInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TxInfo) ProtoMessage() {} - -func (x *TxInfo) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_resources_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 TxInfo.ProtoReflect.Descriptor instead. -func (*TxInfo) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_resources_proto_rawDescGZIP(), []int{1} -} - -func (x *TxInfo) GetId() *TxId { - if x != nil { - return x.Id - } - return nil -} - -func (x *TxInfo) GetRef() *v1beta1.Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *TxInfo) GetStatus() TxInfo_Status { - if x != nil { - return x.Status - } - return TxInfo_STATUS_INVALID -} - -func (x *TxInfo) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -func (x *TxInfo) GetCreator() *v1beta11.UserId { - if x != nil { - return x.Creator - } - return nil -} - -func (x *TxInfo) GetCtime() *v1beta12.Timestamp { - if x != nil { - return x.Ctime - } - return nil -} - -func (x *TxInfo) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_cs3_tx_v1beta1_resources_proto protoreflect.FileDescriptor - -var file_cs3_tx_v1beta1_resources_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x1a, 0x29, 0x63, 0x73, 0x33, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, - 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x23, 0x0a, 0x04, 0x54, 0x78, 0x49, 0x64, - 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x49, 0x64, 0x22, 0xcf, 0x05, - 0x0a, 0x06, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, - 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x6e, 0x66, - 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x3f, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, - 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x32, - 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x63, 0x74, 0x69, - 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd8, 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, - 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, - 0x55, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x4e, 0x45, 0x57, 0x10, 0x02, 0x12, 0x27, - 0x0a, 0x23, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, - 0x52, 0x5f, 0x41, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, - 0x54, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, - 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, - 0x52, 0x45, 0x53, 0x53, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, - 0x54, 0x45, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, - 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x07, - 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, - 0x46, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x08, 0x12, - 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, - 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, - 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x52, 0x41, - 0x4e, 0x53, 0x46, 0x45, 0x52, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x0a, 0x42, - 0x59, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, 0x74, 0x78, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, 0xaa, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x2e, 0x54, - 0x78, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x5c, - 0x54, 0x78, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_cs3_tx_v1beta1_resources_proto_rawDescOnce sync.Once - file_cs3_tx_v1beta1_resources_proto_rawDescData = file_cs3_tx_v1beta1_resources_proto_rawDesc -) - -func file_cs3_tx_v1beta1_resources_proto_rawDescGZIP() []byte { - file_cs3_tx_v1beta1_resources_proto_rawDescOnce.Do(func() { - file_cs3_tx_v1beta1_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_tx_v1beta1_resources_proto_rawDescData) - }) - return file_cs3_tx_v1beta1_resources_proto_rawDescData -} - -var file_cs3_tx_v1beta1_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_cs3_tx_v1beta1_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_cs3_tx_v1beta1_resources_proto_goTypes = []interface{}{ - (TxInfo_Status)(0), // 0: cs3.tx.v1beta1.TxInfo.Status - (*TxId)(nil), // 1: cs3.tx.v1beta1.TxId - (*TxInfo)(nil), // 2: cs3.tx.v1beta1.TxInfo - (*v1beta1.Reference)(nil), // 3: cs3.storage.provider.v1beta1.Reference - (*v1beta1.Grantee)(nil), // 4: cs3.storage.provider.v1beta1.Grantee - (*v1beta11.UserId)(nil), // 5: cs3.identity.user.v1beta1.UserId - (*v1beta12.Timestamp)(nil), // 6: cs3.types.v1beta1.Timestamp -} -var file_cs3_tx_v1beta1_resources_proto_depIdxs = []int32{ - 1, // 0: cs3.tx.v1beta1.TxInfo.id:type_name -> cs3.tx.v1beta1.TxId - 3, // 1: cs3.tx.v1beta1.TxInfo.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 0, // 2: cs3.tx.v1beta1.TxInfo.status:type_name -> cs3.tx.v1beta1.TxInfo.Status - 4, // 3: cs3.tx.v1beta1.TxInfo.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 5, // 4: cs3.tx.v1beta1.TxInfo.creator:type_name -> cs3.identity.user.v1beta1.UserId - 6, // 5: cs3.tx.v1beta1.TxInfo.ctime:type_name -> cs3.types.v1beta1.Timestamp - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_cs3_tx_v1beta1_resources_proto_init() } -func file_cs3_tx_v1beta1_resources_proto_init() { - if File_cs3_tx_v1beta1_resources_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_tx_v1beta1_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_tx_v1beta1_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxInfo); 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_cs3_tx_v1beta1_resources_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_tx_v1beta1_resources_proto_goTypes, - DependencyIndexes: file_cs3_tx_v1beta1_resources_proto_depIdxs, - EnumInfos: file_cs3_tx_v1beta1_resources_proto_enumTypes, - MessageInfos: file_cs3_tx_v1beta1_resources_proto_msgTypes, - }.Build() - File_cs3_tx_v1beta1_resources_proto = out.File - file_cs3_tx_v1beta1_resources_proto_rawDesc = nil - file_cs3_tx_v1beta1_resources_proto_goTypes = nil - file_cs3_tx_v1beta1_resources_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go b/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go deleted file mode 100644 index 664f67b4..00000000 --- a/build/go-cs3apis/cs3/tx/v1beta1/resources.pb.micro.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/tx/v1beta1/resources.proto - -package txv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/identity/user/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package diff --git a/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go b/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go deleted file mode 100644 index 9e38f47a..00000000 --- a/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.go +++ /dev/null @@ -1,865 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/tx/v1beta1/tx_api.proto - -package txv1beta1 - -import ( - context "context" - v1beta12 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - v1beta1 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - v1beta11 "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type CreateTransferRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // Reference of the resource to be transfered. - Ref *v1beta1.Reference `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` - // REQUIRED. - // The destination (receiver of the transfer) - Grantee *v1beta1.Grantee `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CreateTransferRequest) Reset() { - *x = CreateTransferRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTransferRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTransferRequest) ProtoMessage() {} - -func (x *CreateTransferRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_tx_api_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 CreateTransferRequest.ProtoReflect.Descriptor instead. -func (*CreateTransferRequest) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{0} -} - -func (x *CreateTransferRequest) GetRef() *v1beta1.Reference { - if x != nil { - return x.Ref - } - return nil -} - -func (x *CreateTransferRequest) GetGrantee() *v1beta1.Grantee { - if x != nil { - return x.Grantee - } - return nil -} - -func (x *CreateTransferRequest) GetOpaque() *v1beta11.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CreateTransferResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // REQUIRED. - // TxInfo, includes transfer id, status, description. - TxInfo *TxInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CreateTransferResponse) Reset() { - *x = CreateTransferResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTransferResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTransferResponse) ProtoMessage() {} - -func (x *CreateTransferResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_tx_api_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 CreateTransferResponse.ProtoReflect.Descriptor instead. -func (*CreateTransferResponse) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateTransferResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateTransferResponse) GetTxInfo() *TxInfo { - if x != nil { - return x.TxInfo - } - return nil -} - -func (x *CreateTransferResponse) GetOpaque() *v1beta11.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetTransferStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The transfer identifier. - TxId *TxId `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta11.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *GetTransferStatusRequest) Reset() { - *x = GetTransferStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTransferStatusRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTransferStatusRequest) ProtoMessage() {} - -func (x *GetTransferStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_tx_api_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 GetTransferStatusRequest.ProtoReflect.Descriptor instead. -func (*GetTransferStatusRequest) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{2} -} - -func (x *GetTransferStatusRequest) GetTxId() *TxId { - if x != nil { - return x.TxId - } - return nil -} - -func (x *GetTransferStatusRequest) GetOpaque() *v1beta11.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type GetTransferStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // REQUIRED. - // TxInfo, includes ao. transfer id, status, description. - TxInfo *TxInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *GetTransferStatusResponse) Reset() { - *x = GetTransferStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTransferStatusResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTransferStatusResponse) ProtoMessage() {} - -func (x *GetTransferStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_tx_api_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 GetTransferStatusResponse.ProtoReflect.Descriptor instead. -func (*GetTransferStatusResponse) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{3} -} - -func (x *GetTransferStatusResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetTransferStatusResponse) GetTxInfo() *TxInfo { - if x != nil { - return x.TxInfo - } - return nil -} - -func (x *GetTransferStatusResponse) GetOpaque() *v1beta11.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CancelTransferRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The transfer identifier. - TxId *TxId `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta11.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CancelTransferRequest) Reset() { - *x = CancelTransferRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelTransferRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelTransferRequest) ProtoMessage() {} - -func (x *CancelTransferRequest) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_tx_api_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 CancelTransferRequest.ProtoReflect.Descriptor instead. -func (*CancelTransferRequest) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{4} -} - -func (x *CancelTransferRequest) GetTxId() *TxId { - if x != nil { - return x.TxId - } - return nil -} - -func (x *CancelTransferRequest) GetOpaque() *v1beta11.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -type CancelTransferResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The response status. - Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - // REQUIRED. - // TxInfo, includes ao. transfer id, status, description. - TxInfo *TxInfo `protobuf:"bytes,2,opt,name=tx_info,json=txInfo,proto3" json:"tx_info,omitempty"` - // OPTIONAL. - // Opaque information. - Opaque *v1beta11.Opaque `protobuf:"bytes,3,opt,name=opaque,proto3" json:"opaque,omitempty"` -} - -func (x *CancelTransferResponse) Reset() { - *x = CancelTransferResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_tx_v1beta1_tx_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelTransferResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelTransferResponse) ProtoMessage() {} - -func (x *CancelTransferResponse) ProtoReflect() protoreflect.Message { - mi := &file_cs3_tx_v1beta1_tx_api_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 CancelTransferResponse.ProtoReflect.Descriptor instead. -func (*CancelTransferResponse) Descriptor() ([]byte, []int) { - return file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP(), []int{5} -} - -func (x *CancelTransferResponse) GetStatus() *v1beta12.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CancelTransferResponse) GetTxInfo() *TxInfo { - if x != nil { - return x.TxInfo - } - return nil -} - -func (x *CancelTransferResponse) GetOpaque() *v1beta11.Opaque { - if x != nil { - return x.Opaque - } - return nil -} - -var File_cs3_tx_v1beta1_tx_api_proto protoreflect.FileDescriptor - -var file_cs3_tx_v1beta1_tx_api_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x74, 0x78, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x63, - 0x73, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x63, 0x73, 0x33, - 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x73, 0x33, 0x2f, 0x74, - 0x78, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x39, 0x0a, 0x03, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x03, 0x72, 0x65, 0x66, 0x12, 0x3f, 0x0a, - 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x65, 0x65, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x31, - 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x22, 0xad, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, - 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, - 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, - 0x65, 0x22, 0x78, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, - 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, - 0x49, 0x64, 0x52, 0x04, 0x74, 0x78, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, - 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x19, - 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x74, 0x78, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, - 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0x75, - 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x78, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x64, 0x52, 0x04, 0x74, 0x78, - 0x49, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x74, 0x78, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x32, 0xb3, 0x02, 0x0a, 0x05, 0x54, 0x78, 0x41, 0x50, 0x49, 0x12, - 0x5f, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x12, 0x25, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, - 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x0e, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x55, 0x0a, 0x12, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x0a, 0x54, 0x78, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x09, 0x74, 0x78, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x58, - 0xaa, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x2e, 0x54, 0x78, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, - 0x31, 0xca, 0x02, 0x0e, 0x43, 0x73, 0x33, 0x5c, 0x54, 0x78, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, - 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cs3_tx_v1beta1_tx_api_proto_rawDescOnce sync.Once - file_cs3_tx_v1beta1_tx_api_proto_rawDescData = file_cs3_tx_v1beta1_tx_api_proto_rawDesc -) - -func file_cs3_tx_v1beta1_tx_api_proto_rawDescGZIP() []byte { - file_cs3_tx_v1beta1_tx_api_proto_rawDescOnce.Do(func() { - file_cs3_tx_v1beta1_tx_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_tx_v1beta1_tx_api_proto_rawDescData) - }) - return file_cs3_tx_v1beta1_tx_api_proto_rawDescData -} - -var file_cs3_tx_v1beta1_tx_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_cs3_tx_v1beta1_tx_api_proto_goTypes = []interface{}{ - (*CreateTransferRequest)(nil), // 0: cs3.tx.v1beta1.CreateTransferRequest - (*CreateTransferResponse)(nil), // 1: cs3.tx.v1beta1.CreateTransferResponse - (*GetTransferStatusRequest)(nil), // 2: cs3.tx.v1beta1.GetTransferStatusRequest - (*GetTransferStatusResponse)(nil), // 3: cs3.tx.v1beta1.GetTransferStatusResponse - (*CancelTransferRequest)(nil), // 4: cs3.tx.v1beta1.CancelTransferRequest - (*CancelTransferResponse)(nil), // 5: cs3.tx.v1beta1.CancelTransferResponse - (*v1beta1.Reference)(nil), // 6: cs3.storage.provider.v1beta1.Reference - (*v1beta1.Grantee)(nil), // 7: cs3.storage.provider.v1beta1.Grantee - (*v1beta11.Opaque)(nil), // 8: cs3.types.v1beta1.Opaque - (*v1beta12.Status)(nil), // 9: cs3.rpc.v1beta1.Status - (*TxInfo)(nil), // 10: cs3.tx.v1beta1.TxInfo - (*TxId)(nil), // 11: cs3.tx.v1beta1.TxId -} -var file_cs3_tx_v1beta1_tx_api_proto_depIdxs = []int32{ - 6, // 0: cs3.tx.v1beta1.CreateTransferRequest.ref:type_name -> cs3.storage.provider.v1beta1.Reference - 7, // 1: cs3.tx.v1beta1.CreateTransferRequest.grantee:type_name -> cs3.storage.provider.v1beta1.Grantee - 8, // 2: cs3.tx.v1beta1.CreateTransferRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 9, // 3: cs3.tx.v1beta1.CreateTransferResponse.status:type_name -> cs3.rpc.v1beta1.Status - 10, // 4: cs3.tx.v1beta1.CreateTransferResponse.tx_info:type_name -> cs3.tx.v1beta1.TxInfo - 8, // 5: cs3.tx.v1beta1.CreateTransferResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 11, // 6: cs3.tx.v1beta1.GetTransferStatusRequest.tx_id:type_name -> cs3.tx.v1beta1.TxId - 8, // 7: cs3.tx.v1beta1.GetTransferStatusRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 9, // 8: cs3.tx.v1beta1.GetTransferStatusResponse.status:type_name -> cs3.rpc.v1beta1.Status - 10, // 9: cs3.tx.v1beta1.GetTransferStatusResponse.tx_info:type_name -> cs3.tx.v1beta1.TxInfo - 8, // 10: cs3.tx.v1beta1.GetTransferStatusResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 11, // 11: cs3.tx.v1beta1.CancelTransferRequest.tx_id:type_name -> cs3.tx.v1beta1.TxId - 8, // 12: cs3.tx.v1beta1.CancelTransferRequest.opaque:type_name -> cs3.types.v1beta1.Opaque - 9, // 13: cs3.tx.v1beta1.CancelTransferResponse.status:type_name -> cs3.rpc.v1beta1.Status - 10, // 14: cs3.tx.v1beta1.CancelTransferResponse.tx_info:type_name -> cs3.tx.v1beta1.TxInfo - 8, // 15: cs3.tx.v1beta1.CancelTransferResponse.opaque:type_name -> cs3.types.v1beta1.Opaque - 0, // 16: cs3.tx.v1beta1.TxAPI.CreateTransfer:input_type -> cs3.tx.v1beta1.CreateTransferRequest - 2, // 17: cs3.tx.v1beta1.TxAPI.GetTransferStatus:input_type -> cs3.tx.v1beta1.GetTransferStatusRequest - 4, // 18: cs3.tx.v1beta1.TxAPI.CancelTransfer:input_type -> cs3.tx.v1beta1.CancelTransferRequest - 1, // 19: cs3.tx.v1beta1.TxAPI.CreateTransfer:output_type -> cs3.tx.v1beta1.CreateTransferResponse - 3, // 20: cs3.tx.v1beta1.TxAPI.GetTransferStatus:output_type -> cs3.tx.v1beta1.GetTransferStatusResponse - 5, // 21: cs3.tx.v1beta1.TxAPI.CancelTransfer:output_type -> cs3.tx.v1beta1.CancelTransferResponse - 19, // [19:22] is the sub-list for method output_type - 16, // [16:19] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name -} - -func init() { file_cs3_tx_v1beta1_tx_api_proto_init() } -func file_cs3_tx_v1beta1_tx_api_proto_init() { - if File_cs3_tx_v1beta1_tx_api_proto != nil { - return - } - file_cs3_tx_v1beta1_resources_proto_init() - if !protoimpl.UnsafeEnabled { - file_cs3_tx_v1beta1_tx_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTransferRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_tx_v1beta1_tx_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTransferResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_tx_v1beta1_tx_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransferStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_tx_v1beta1_tx_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransferStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_tx_v1beta1_tx_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelTransferRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_tx_v1beta1_tx_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelTransferResponse); 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_cs3_tx_v1beta1_tx_api_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cs3_tx_v1beta1_tx_api_proto_goTypes, - DependencyIndexes: file_cs3_tx_v1beta1_tx_api_proto_depIdxs, - MessageInfos: file_cs3_tx_v1beta1_tx_api_proto_msgTypes, - }.Build() - File_cs3_tx_v1beta1_tx_api_proto = out.File - file_cs3_tx_v1beta1_tx_api_proto_rawDesc = nil - file_cs3_tx_v1beta1_tx_api_proto_goTypes = nil - file_cs3_tx_v1beta1_tx_api_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// TxAPIClient is the client API for TxAPI service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type TxAPIClient interface { - // Creates (requests the destination to accept) a transfer. - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...grpc.CallOption) (*CreateTransferResponse, error) - // Requests a transfer status. - GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...grpc.CallOption) (*GetTransferStatusResponse, error) - // Requests to cancel a transfer. - CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...grpc.CallOption) (*CancelTransferResponse, error) -} - -type txAPIClient struct { - cc grpc.ClientConnInterface -} - -func NewTxAPIClient(cc grpc.ClientConnInterface) TxAPIClient { - return &txAPIClient{cc} -} - -func (c *txAPIClient) CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...grpc.CallOption) (*CreateTransferResponse, error) { - out := new(CreateTransferResponse) - err := c.cc.Invoke(ctx, "/cs3.tx.v1beta1.TxAPI/CreateTransfer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *txAPIClient) GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...grpc.CallOption) (*GetTransferStatusResponse, error) { - out := new(GetTransferStatusResponse) - err := c.cc.Invoke(ctx, "/cs3.tx.v1beta1.TxAPI/GetTransferStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *txAPIClient) CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...grpc.CallOption) (*CancelTransferResponse, error) { - out := new(CancelTransferResponse) - err := c.cc.Invoke(ctx, "/cs3.tx.v1beta1.TxAPI/CancelTransfer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// TxAPIServer is the server API for TxAPI service. -type TxAPIServer interface { - // Creates (requests the destination to accept) a transfer. - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(context.Context, *CreateTransferRequest) (*CreateTransferResponse, error) - // Requests a transfer status. - GetTransferStatus(context.Context, *GetTransferStatusRequest) (*GetTransferStatusResponse, error) - // Requests to cancel a transfer. - CancelTransfer(context.Context, *CancelTransferRequest) (*CancelTransferResponse, error) -} - -// UnimplementedTxAPIServer can be embedded to have forward compatible implementations. -type UnimplementedTxAPIServer struct { -} - -func (*UnimplementedTxAPIServer) CreateTransfer(context.Context, *CreateTransferRequest) (*CreateTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTransfer not implemented") -} -func (*UnimplementedTxAPIServer) GetTransferStatus(context.Context, *GetTransferStatusRequest) (*GetTransferStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTransferStatus not implemented") -} -func (*UnimplementedTxAPIServer) CancelTransfer(context.Context, *CancelTransferRequest) (*CancelTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelTransfer not implemented") -} - -func RegisterTxAPIServer(s *grpc.Server, srv TxAPIServer) { - s.RegisterService(&_TxAPI_serviceDesc, srv) -} - -func _TxAPI_CreateTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTransferRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TxAPIServer).CreateTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.tx.v1beta1.TxAPI/CreateTransfer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TxAPIServer).CreateTransfer(ctx, req.(*CreateTransferRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TxAPI_GetTransferStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetTransferStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TxAPIServer).GetTransferStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.tx.v1beta1.TxAPI/GetTransferStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TxAPIServer).GetTransferStatus(ctx, req.(*GetTransferStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TxAPI_CancelTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CancelTransferRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TxAPIServer).CancelTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cs3.tx.v1beta1.TxAPI/CancelTransfer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TxAPIServer).CancelTransfer(ctx, req.(*CancelTransferRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _TxAPI_serviceDesc = grpc.ServiceDesc{ - ServiceName: "cs3.tx.v1beta1.TxAPI", - HandlerType: (*TxAPIServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateTransfer", - Handler: _TxAPI_CreateTransfer_Handler, - }, - { - MethodName: "GetTransferStatus", - Handler: _TxAPI_GetTransferStatus_Handler, - }, - { - MethodName: "CancelTransfer", - Handler: _TxAPI_CancelTransfer_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "cs3/tx/v1beta1/tx_api.proto", -} diff --git a/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go b/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go deleted file mode 100644 index dd8abccd..00000000 --- a/build/go-cs3apis/cs3/tx/v1beta1/tx_api.pb.micro.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/tx/v1beta1/tx_api.proto - -package txv1beta1 - -import ( - fmt "fmt" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/rpc/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/storage/provider/v1beta1" - _ "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/types/v1beta1" - proto "github.com/golang/protobuf/proto" - math "math" -) - -import ( - context "context" - api "github.com/asim/go-micro/v3/api" - client "github.com/asim/go-micro/v3/client" - server "github.com/asim/go-micro/v3/server" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Reference imports to suppress errors if they are not otherwise used. -var _ api.Endpoint -var _ context.Context -var _ client.Option -var _ server.Option - -// Api Endpoints for TxAPI service - -func NewTxAPIEndpoints() []*api.Endpoint { - return []*api.Endpoint{} -} - -// Client API for TxAPI service - -type TxAPIService interface { - // Creates (requests the destination to accept) a transfer. - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...client.CallOption) (*CreateTransferResponse, error) - // Requests a transfer status. - GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...client.CallOption) (*GetTransferStatusResponse, error) - // Requests to cancel a transfer. - CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...client.CallOption) (*CancelTransferResponse, error) -} - -type txAPIService struct { - c client.Client - name string -} - -func NewTxAPIService(name string, c client.Client) TxAPIService { - return &txAPIService{ - c: c, - name: name, - } -} - -func (c *txAPIService) CreateTransfer(ctx context.Context, in *CreateTransferRequest, opts ...client.CallOption) (*CreateTransferResponse, error) { - req := c.c.NewRequest(c.name, "TxAPI.CreateTransfer", in) - out := new(CreateTransferResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *txAPIService) GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, opts ...client.CallOption) (*GetTransferStatusResponse, error) { - req := c.c.NewRequest(c.name, "TxAPI.GetTransferStatus", in) - out := new(GetTransferStatusResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *txAPIService) CancelTransfer(ctx context.Context, in *CancelTransferRequest, opts ...client.CallOption) (*CancelTransferResponse, error) { - req := c.c.NewRequest(c.name, "TxAPI.CancelTransfer", in) - out := new(CancelTransferResponse) - err := c.c.Call(ctx, req, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for TxAPI service - -type TxAPIHandler interface { - // Creates (requests the destination to accept) a transfer. - // Returns a response containing a TxInfo (transfer info) object. - CreateTransfer(context.Context, *CreateTransferRequest, *CreateTransferResponse) error - // Requests a transfer status. - GetTransferStatus(context.Context, *GetTransferStatusRequest, *GetTransferStatusResponse) error - // Requests to cancel a transfer. - CancelTransfer(context.Context, *CancelTransferRequest, *CancelTransferResponse) error -} - -func RegisterTxAPIHandler(s server.Server, hdlr TxAPIHandler, opts ...server.HandlerOption) error { - type txAPI interface { - CreateTransfer(ctx context.Context, in *CreateTransferRequest, out *CreateTransferResponse) error - GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, out *GetTransferStatusResponse) error - CancelTransfer(ctx context.Context, in *CancelTransferRequest, out *CancelTransferResponse) error - } - type TxAPI struct { - txAPI - } - h := &txAPIHandler{hdlr} - return s.Handle(s.NewHandler(&TxAPI{h}, opts...)) -} - -type txAPIHandler struct { - TxAPIHandler -} - -func (h *txAPIHandler) CreateTransfer(ctx context.Context, in *CreateTransferRequest, out *CreateTransferResponse) error { - return h.TxAPIHandler.CreateTransfer(ctx, in, out) -} - -func (h *txAPIHandler) GetTransferStatus(ctx context.Context, in *GetTransferStatusRequest, out *GetTransferStatusResponse) error { - return h.TxAPIHandler.GetTransferStatus(ctx, in, out) -} - -func (h *txAPIHandler) CancelTransfer(ctx context.Context, in *CancelTransferRequest, out *CancelTransferResponse) error { - return h.TxAPIHandler.CancelTransfer(ctx, in, out) -} diff --git a/build/go-cs3apis/cs3/types/v1beta1/types.pb.go b/build/go-cs3apis/cs3/types/v1beta1/types.pb.go deleted file mode 100644 index f2f8dec1..00000000 --- a/build/go-cs3apis/cs3/types/v1beta1/types.pb.go +++ /dev/null @@ -1,357 +0,0 @@ -// Copyright 2018-2019 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.23.0 -// protoc v3.11.0 -// source: cs3/types/v1beta1/types.proto - -package typesv1beta1 - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - 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) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// Opaque represents opaque information -// in a form on a map. -// For example, a local filesystem can -// use this message to include filesystem -// extended attributes. -type Opaque struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - Map map[string]*OpaqueEntry `protobuf:"bytes,1,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *Opaque) Reset() { - *x = Opaque{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_types_v1beta1_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Opaque) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Opaque) ProtoMessage() {} - -func (x *Opaque) ProtoReflect() protoreflect.Message { - mi := &file_cs3_types_v1beta1_types_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 Opaque.ProtoReflect.Descriptor instead. -func (*Opaque) Descriptor() ([]byte, []int) { - return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{0} -} - -func (x *Opaque) GetMap() map[string]*OpaqueEntry { - if x != nil { - return x.Map - } - return nil -} - -// OpaqueEntry represents the encoded -// opaque value. -type OpaqueEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // REQUIRED. - // The decoder to use: json, xml, toml, ... - // TODO(labkode): make encoder a fixed set using a enum type? - Decoder string `protobuf:"bytes,1,opt,name=decoder,proto3" json:"decoder,omitempty"` - // REQUIRED. - // The encoded value. - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *OpaqueEntry) Reset() { - *x = OpaqueEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_types_v1beta1_types_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpaqueEntry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpaqueEntry) ProtoMessage() {} - -func (x *OpaqueEntry) ProtoReflect() protoreflect.Message { - mi := &file_cs3_types_v1beta1_types_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 OpaqueEntry.ProtoReflect.Descriptor instead. -func (*OpaqueEntry) Descriptor() ([]byte, []int) { - return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{1} -} - -func (x *OpaqueEntry) GetDecoder() string { - if x != nil { - return x.Decoder - } - return "" -} - -func (x *OpaqueEntry) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - -// Adapted from Google google/protobuf/timestamp.proto. -// A Timestamp represents a point in time independent of any time zone or local -// calendar, encoded as a count of seconds and fractions of seconds at -// nanosecond resolution. The count is relative to an epoch at UTC midnight on -// January 1, 1970, in the proleptic Gregorian calendar which extends the -// Gregorian calendar backwards to year one. -// -// The range MUST be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. -// Restricting to this range ensures the conversion from and to [RFC -// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. -type Timestamp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - Seconds uint64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. - // Value MUST be from 0 to 999,999,999 - // inclusive. - Nanos uint32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` -} - -func (x *Timestamp) Reset() { - *x = Timestamp{} - if protoimpl.UnsafeEnabled { - mi := &file_cs3_types_v1beta1_types_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Timestamp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Timestamp) ProtoMessage() {} - -func (x *Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_cs3_types_v1beta1_types_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 Timestamp.ProtoReflect.Descriptor instead. -func (*Timestamp) Descriptor() ([]byte, []int) { - return file_cs3_types_v1beta1_types_proto_rawDescGZIP(), []int{2} -} - -func (x *Timestamp) GetSeconds() uint64 { - if x != nil { - return x.Seconds - } - return 0 -} - -func (x *Timestamp) GetNanos() uint32 { - if x != nil { - return x.Nanos - } - return 0 -} - -var File_cs3_types_v1beta1_types_proto protoreflect.FileDescriptor - -var file_cs3_types_v1beta1_types_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x63, 0x73, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x11, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x22, 0x96, 0x01, 0x0a, 0x06, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x34, 0x0a, - 0x03, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x73, 0x33, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, - 0x6d, 0x61, 0x70, 0x1a, 0x56, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x63, 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0b, 0x4f, - 0x70, 0x61, 0x71, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, - 0x63, 0x6f, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x63, - 0x6f, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x61, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x63, - 0x73, 0x33, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0c, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x43, - 0x54, 0x58, 0xaa, 0x02, 0x11, 0x43, 0x73, 0x33, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, - 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x11, 0x43, 0x73, 0x33, 0x5c, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x5c, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_cs3_types_v1beta1_types_proto_rawDescOnce sync.Once - file_cs3_types_v1beta1_types_proto_rawDescData = file_cs3_types_v1beta1_types_proto_rawDesc -) - -func file_cs3_types_v1beta1_types_proto_rawDescGZIP() []byte { - file_cs3_types_v1beta1_types_proto_rawDescOnce.Do(func() { - file_cs3_types_v1beta1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_cs3_types_v1beta1_types_proto_rawDescData) - }) - return file_cs3_types_v1beta1_types_proto_rawDescData -} - -var file_cs3_types_v1beta1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_cs3_types_v1beta1_types_proto_goTypes = []interface{}{ - (*Opaque)(nil), // 0: cs3.types.v1beta1.Opaque - (*OpaqueEntry)(nil), // 1: cs3.types.v1beta1.OpaqueEntry - (*Timestamp)(nil), // 2: cs3.types.v1beta1.Timestamp - nil, // 3: cs3.types.v1beta1.Opaque.MapEntry -} -var file_cs3_types_v1beta1_types_proto_depIdxs = []int32{ - 3, // 0: cs3.types.v1beta1.Opaque.map:type_name -> cs3.types.v1beta1.Opaque.MapEntry - 1, // 1: cs3.types.v1beta1.Opaque.MapEntry.value:type_name -> cs3.types.v1beta1.OpaqueEntry - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_cs3_types_v1beta1_types_proto_init() } -func file_cs3_types_v1beta1_types_proto_init() { - if File_cs3_types_v1beta1_types_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cs3_types_v1beta1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Opaque); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_types_v1beta1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpaqueEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cs3_types_v1beta1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Timestamp); 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_cs3_types_v1beta1_types_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_cs3_types_v1beta1_types_proto_goTypes, - DependencyIndexes: file_cs3_types_v1beta1_types_proto_depIdxs, - MessageInfos: file_cs3_types_v1beta1_types_proto_msgTypes, - }.Build() - File_cs3_types_v1beta1_types_proto = out.File - file_cs3_types_v1beta1_types_proto_rawDesc = nil - file_cs3_types_v1beta1_types_proto_goTypes = nil - file_cs3_types_v1beta1_types_proto_depIdxs = nil -} diff --git a/build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go b/build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go deleted file mode 100644 index a3b4c6a7..00000000 --- a/build/go-cs3apis/cs3/types/v1beta1/types.pb.micro.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by protoc-gen-micro. DO NOT EDIT. -// source: cs3/types/v1beta1/types.proto - -package typesv1beta1 - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package From 52804fd08a7ea66310547f74129b9bf2f9fa7ae7 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 11:54:04 +0200 Subject: [PATCH 06/17] remove go-cs43 submodule --- go-cs3apis | 1 - 1 file changed, 1 deletion(-) delete mode 160000 go-cs3apis diff --git a/go-cs3apis b/go-cs3apis deleted file mode 160000 index 416ed6cf..00000000 --- a/go-cs3apis +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 416ed6cf8b00baa3b05dcfa6c08ebfe6557f020c From 82a17f1f5e02177756a61c5f50c918164c0b5795 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 11:55:12 +0200 Subject: [PATCH 07/17] undo prototool changes --- prototool.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/prototool.yaml b/prototool.yaml index 4383af96..e6150164 100644 --- a/prototool.yaml +++ b/prototool.yaml @@ -31,8 +31,4 @@ generate: - name : go type: go flags: plugins=grpc - output: build/go-cs3apis - - name : micro - type: go - flags: plugins=grpc - output: build/go-cs3apis + output: build/go-cs3apis \ No newline at end of file From d890bbc1ea89becc70b9ae97ba323ebe128897a2 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 11:55:34 +0200 Subject: [PATCH 08/17] redo build --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index bed0f101..d4eb46df 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ prototool.yaml +build \ No newline at end of file From faa39def44d4a6e576ae90840b94e1e836cee8bd Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 11:55:51 +0200 Subject: [PATCH 09/17] redo build --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d4eb46df..5204793d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ prototool.yaml -build \ No newline at end of file +build From 9385b0f51fbfea344700e128a5e4f05410205832 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 12:07:59 +0200 Subject: [PATCH 10/17] fix linter --- cs3/admin/group/v1beta1/group_api.proto | 19 ++++++++++--------- .../{admin_api.proto => user_api.proto} | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) rename cs3/admin/user/v1beta1/{admin_api.proto => user_api.proto} (85%) diff --git a/cs3/admin/group/v1beta1/group_api.proto b/cs3/admin/group/v1beta1/group_api.proto index bce264d9..c51fde1b 100644 --- a/cs3/admin/group/v1beta1/group_api.proto +++ b/cs3/admin/group/v1beta1/group_api.proto @@ -21,11 +21,11 @@ syntax = "proto3"; package cs3.admin.group.v1beta1; option csharp_namespace = "Cs3.Admin.Group.V1Beta1"; -option go_package = "admingroupv1beta1"; +option go_package = "groupv1beta1"; option java_multiple_files = true; -option java_outer_classname = "AdminGroupApiProto"; +option java_outer_classname = "GroupApiProto"; option java_package = "com.cs3.admin.group.v1beta1"; -option objc_class_prefix = "CIU"; +option objc_class_prefix = "CAG"; option php_namespace = "Cs3\\Admin\\Group\\V1Beta1"; import "cs3/identity/group/v1beta1/resources.proto"; @@ -33,16 +33,17 @@ import "cs3/identity/user/v1beta1/resources.proto"; import "cs3/rpc/v1beta1/status.proto"; import "cs3/types/v1beta1/types.proto"; +// Provides a write only API for managing groups. service GroupAPI { // Create a group. - rpc Create(CreateGroupRequest) returns (CreateGroupResponse); + rpc Create(CreateRequest) returns (CreateResponse); // Delete a group. - rpc Delete(DeleteGroupRequest) returns (DeleteGroupResponse); + rpc Delete(DeleteRequest) returns (DeleteResponse); // Add a user to a group. rpc AddUser(AddUserRequest) returns (AddUserResponse); } -message CreateGroupRequest { +message CreateRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries cs3.types.v1beta1.Opaque opaque = 1; @@ -51,7 +52,7 @@ message CreateGroupRequest { cs3.identity.group.v1beta1.Group group = 3; } -message CreateGroupResponse { +message CreateResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; @@ -63,7 +64,7 @@ message CreateGroupResponse { cs3.identity.group.v1beta1.Group group = 3; } -message DeleteGroupRequest { +message DeleteRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries. cs3.types.v1beta1.Opaque opaque = 1; @@ -72,7 +73,7 @@ message DeleteGroupRequest { cs3.identity.group.v1beta1.GroupId groupid = 2; } -message DeleteGroupResponse { +message DeleteResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; diff --git a/cs3/admin/user/v1beta1/admin_api.proto b/cs3/admin/user/v1beta1/user_api.proto similarity index 85% rename from cs3/admin/user/v1beta1/admin_api.proto rename to cs3/admin/user/v1beta1/user_api.proto index c15b64f6..f0805416 100644 --- a/cs3/admin/user/v1beta1/admin_api.proto +++ b/cs3/admin/user/v1beta1/user_api.proto @@ -21,25 +21,26 @@ syntax = "proto3"; package cs3.admin.user.v1beta1; option csharp_namespace = "Cs3.Admin.User.V1Beta1"; -option go_package = "adminuserv1beta1"; +option go_package = "userv1beta1"; option java_multiple_files = true; -option java_outer_classname = "AdminUserApiProto"; +option java_outer_classname = "AdminApiProto"; option java_package = "com.cs3.admin.user.v1beta1"; -option objc_class_prefix = "CIU"; +option objc_class_prefix = "CAU"; option php_namespace = "Cs3\\Admin\\User\\V1Beta1"; import "cs3/identity/user/v1beta1/resources.proto"; import "cs3/rpc/v1beta1/status.proto"; import "cs3/types/v1beta1/types.proto"; +// Provides a write only API for managing users. service UserAPI { // Create a user account. - rpc Create(CreateUserRequest) returns (CreateUserResponse); + rpc Create(CreateRequest) returns (CreateResponse); // Delete a user account. - rpc Delete(DeleteUserRequest) returns (DeleteUserResponse); + rpc Delete(DeleteRequest) returns (DeleteResponse); } -message CreateUserRequest { +message CreateRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries cs3.types.v1beta1.Opaque opaque = 1; @@ -48,7 +49,7 @@ message CreateUserRequest { cs3.identity.user.v1beta1.User user = 3; } -message CreateUserResponse { +message CreateResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; @@ -60,7 +61,7 @@ message CreateUserResponse { cs3.identity.user.v1beta1.User user = 3; } -message DeleteUserRequest { +message DeleteRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries cs3.types.v1beta1.Opaque opaque = 1; @@ -69,7 +70,7 @@ message DeleteUserRequest { cs3.identity.user.v1beta1.UserId userid = 2; } -message DeleteUserResponse { +message DeleteResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; From 2dce1fc910c2a3a3dc6ba5769a334f6b203c42ac Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 12:08:51 +0200 Subject: [PATCH 11/17] fix linter UserApiProto --- cs3/admin/user/v1beta1/user_api.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cs3/admin/user/v1beta1/user_api.proto b/cs3/admin/user/v1beta1/user_api.proto index f0805416..e43a136f 100644 --- a/cs3/admin/user/v1beta1/user_api.proto +++ b/cs3/admin/user/v1beta1/user_api.proto @@ -23,7 +23,7 @@ package cs3.admin.user.v1beta1; option csharp_namespace = "Cs3.Admin.User.V1Beta1"; option go_package = "userv1beta1"; option java_multiple_files = true; -option java_outer_classname = "AdminApiProto"; +option java_outer_classname = "UserApiProto"; option java_package = "com.cs3.admin.user.v1beta1"; option objc_class_prefix = "CAU"; option php_namespace = "Cs3\\Admin\\User\\V1Beta1"; From 03281c5216fc952061b081d3354bb025e6cec54c Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 14 Apr 2021 12:29:41 +0200 Subject: [PATCH 12/17] add remove user from group --- cs3/admin/group/v1beta1/group_api.proto | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/cs3/admin/group/v1beta1/group_api.proto b/cs3/admin/group/v1beta1/group_api.proto index c51fde1b..3565136a 100644 --- a/cs3/admin/group/v1beta1/group_api.proto +++ b/cs3/admin/group/v1beta1/group_api.proto @@ -41,6 +41,8 @@ service GroupAPI { rpc Delete(DeleteRequest) returns (DeleteResponse); // Add a user to a group. rpc AddUser(AddUserRequest) returns (AddUserResponse); + // Remove a user from a group. + rpc RemoveUser(RemoveUserRequest) returns (RemoveUserResponse); } message CreateRequest { @@ -101,4 +103,25 @@ message AddUserResponse { // OPTIONAL. // Opaque information. cs3.types.v1beta1.Opaque opaque = 2; +} + +message RemoveUserRequest { + // REQUIRED. + // ID of the user to add to the group + cs3.identity.user.v1beta1.UserId userid = 1; + // REQUIRED. + // ID of the target group. + cs3.identity.group.v1beta1.GroupId groupid = 2; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 3; +} + +message RemoveUserResponse { + // REQUIRED. + // The response status. + cs3.rpc.v1beta1.Status status = 1; + // OPTIONAL. + // Opaque information. + cs3.types.v1beta1.Opaque opaque = 2; } \ No newline at end of file From 7e5c4fe217cf590e145b4f7e9bfb9abb7f565711 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 21 Apr 2021 15:14:47 +0200 Subject: [PATCH 13/17] run make --- cs3/admin/group/v1beta1/group_api.proto | 2 +- cs3/admin/user/v1beta1/user_api.proto | 2 +- docs/index.html | 600 ++++++++++++++++++++++++ 3 files changed, 602 insertions(+), 2 deletions(-) diff --git a/cs3/admin/group/v1beta1/group_api.proto b/cs3/admin/group/v1beta1/group_api.proto index 3565136a..696fe74f 100644 --- a/cs3/admin/group/v1beta1/group_api.proto +++ b/cs3/admin/group/v1beta1/group_api.proto @@ -124,4 +124,4 @@ message RemoveUserResponse { // OPTIONAL. // Opaque information. cs3.types.v1beta1.Opaque opaque = 2; -} \ No newline at end of file +} diff --git a/cs3/admin/user/v1beta1/user_api.proto b/cs3/admin/user/v1beta1/user_api.proto index e43a136f..d8c72432 100644 --- a/cs3/admin/user/v1beta1/user_api.proto +++ b/cs3/admin/user/v1beta1/user_api.proto @@ -77,4 +77,4 @@ message DeleteResponse { // OPTIONAL. // Opaque information. cs3.types.v1beta1.Opaque opaque = 2; -} \ No newline at end of file +} diff --git a/docs/index.html b/docs/index.html index 7e87f54d..407a4da3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -410,6 +410,84 @@

Table of Contents

+
  • + cs3/admin/group/v1beta1/group_api.proto + +
  • + + +
  • + cs3/admin/user/v1beta1/user_api.proto + +
  • + +
  • cs3/app/provider/v1beta1/provider_api.proto
      @@ -4149,6 +4227,528 @@

      Timestamp

      +
      +

      cs3/admin/group/v1beta1/group_api.proto

      Top +
      +

      + + +

      AddUserRequest

      +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      useridcs3.identity.user.v1beta1.UserId

      REQUIRED. +ID of the user to add to the group

      groupidcs3.identity.group.v1beta1.GroupId

      REQUIRED. +ID of the target group.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      + + + + + +

      AddUserResponse

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      statuscs3.rpc.v1beta1.Status

      REQUIRED. +The response status.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      + + + + + +

      CreateRequest

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries

      groupcs3.identity.group.v1beta1.Group

      REQUIRED. +The information of group to be created.

      + + + + + +

      CreateResponse

      +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      statuscs3.rpc.v1beta1.Status

      REQUIRED. +The response status.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      groupcs3.identity.group.v1beta1.Group

      REQUIRED. +The group information.

      + + + + + +

      DeleteRequest

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries.

      groupidcs3.identity.group.v1beta1.GroupId

      REQUIRED. +The group to be deleted, given their ID.

      + + + + + +

      DeleteResponse

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      statuscs3.rpc.v1beta1.Status

      REQUIRED. +The response status.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      + + + + + +

      RemoveUserRequest

      +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      useridcs3.identity.user.v1beta1.UserId

      REQUIRED. +ID of the user to add to the group

      groupidcs3.identity.group.v1beta1.GroupId

      REQUIRED. +ID of the target group.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      + + + + + +

      RemoveUserResponse

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      statuscs3.rpc.v1beta1.Status

      REQUIRED. +The response status.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      + + + + + + + + + + + +

      GroupAPI

      +

      Provides a write only API for managing groups.

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Method NameRequest TypeResponse TypeDescription
      CreateCreateRequestCreateResponse

      Create a group.

      DeleteDeleteRequestDeleteResponse

      Delete a group.

      AddUserAddUserRequestAddUserResponse

      Add a user to a group.

      RemoveUserRemoveUserRequestRemoveUserResponse

      Remove a user from a group.

      + + + + +
      +

      cs3/admin/user/v1beta1/user_api.proto

      Top +
      +

      + + +

      CreateRequest

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries

      usercs3.identity.user.v1beta1.User

      REQUIRED. +The information of user to be created.

      + + + + + +

      CreateResponse

      +

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      statuscs3.rpc.v1beta1.Status

      REQUIRED. +The response status.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      usercs3.identity.user.v1beta1.User

      REQUIRED. +The user information.

      + + + + + +

      DeleteRequest

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries

      useridcs3.identity.user.v1beta1.UserId

      REQUIRED. +The user to be deleted, given their ID.

      + + + + + +

      DeleteResponse

      +

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      statuscs3.rpc.v1beta1.Status

      REQUIRED. +The response status.

      opaquecs3.types.v1beta1.Opaque

      OPTIONAL. +Opaque information.

      + + + + + + + + + + + +

      UserAPI

      +

      Provides a write only API for managing users.

      + + + + + + + + + + + + + + + + + + + + + +
      Method NameRequest TypeResponse TypeDescription
      CreateCreateRequestCreateResponse

      Create a user account.

      DeleteDeleteRequestDeleteResponse

      Delete a user account.

      + + + +

      cs3/app/provider/v1beta1/provider_api.proto

      Top
      From cbd740981de1e476740be95502a30cf889d962d8 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 21 Apr 2021 15:19:10 +0200 Subject: [PATCH 14/17] apply review comments --- cs3/admin/group/v1beta1/group_api.proto | 8 ++++---- cs3/admin/user/v1beta1/user_api.proto | 2 +- docs/index.html | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cs3/admin/group/v1beta1/group_api.proto b/cs3/admin/group/v1beta1/group_api.proto index 696fe74f..ab15262f 100644 --- a/cs3/admin/group/v1beta1/group_api.proto +++ b/cs3/admin/group/v1beta1/group_api.proto @@ -51,7 +51,7 @@ message CreateRequest { cs3.types.v1beta1.Opaque opaque = 1; // REQUIRED. // The information of group to be created. - cs3.identity.group.v1beta1.Group group = 3; + cs3.identity.group.v1beta1.Group group = 2; } message CreateResponse { @@ -72,7 +72,7 @@ message DeleteRequest { cs3.types.v1beta1.Opaque opaque = 1; // REQUIRED. // The group to be deleted, given their ID. - cs3.identity.group.v1beta1.GroupId groupid = 2; + cs3.identity.group.v1beta1.GroupId group_id = 2; } message DeleteResponse { @@ -90,7 +90,7 @@ message AddUserRequest { cs3.identity.user.v1beta1.UserId userid = 1; // REQUIRED. // ID of the target group. - cs3.identity.group.v1beta1.GroupId groupid = 2; + cs3.identity.group.v1beta1.GroupId group_id = 2; // OPTIONAL. // Opaque information. cs3.types.v1beta1.Opaque opaque = 3; @@ -111,7 +111,7 @@ message RemoveUserRequest { cs3.identity.user.v1beta1.UserId userid = 1; // REQUIRED. // ID of the target group. - cs3.identity.group.v1beta1.GroupId groupid = 2; + cs3.identity.group.v1beta1.GroupId group_id = 2; // OPTIONAL. // Opaque information. cs3.types.v1beta1.Opaque opaque = 3; diff --git a/cs3/admin/user/v1beta1/user_api.proto b/cs3/admin/user/v1beta1/user_api.proto index d8c72432..6725658a 100644 --- a/cs3/admin/user/v1beta1/user_api.proto +++ b/cs3/admin/user/v1beta1/user_api.proto @@ -46,7 +46,7 @@ message CreateRequest { cs3.types.v1beta1.Opaque opaque = 1; // REQUIRED. // The information of user to be created. - cs3.identity.user.v1beta1.User user = 3; + cs3.identity.user.v1beta1.User user = 2; } message CreateResponse { diff --git a/docs/index.html b/docs/index.html index 407a4da3..05546f01 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4252,7 +4252,7 @@

      AddUserRequest

      - groupid + group_id cs3.identity.group.v1beta1.GroupId

      REQUIRED. @@ -4400,7 +4400,7 @@

      DeleteRequest

      - groupid + group_id cs3.identity.group.v1beta1.GroupId

      REQUIRED. @@ -4466,7 +4466,7 @@

      RemoveUserRequest

      - groupid + group_id cs3.identity.group.v1beta1.GroupId

      REQUIRED. From 568a1fcebfebd7cb9b958848919c6c011e5d2321 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 21 Apr 2021 15:25:04 +0200 Subject: [PATCH 15/17] apply review comments --- cs3/admin/group/v1beta1/group_api.proto | 4 ++-- docs/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cs3/admin/group/v1beta1/group_api.proto b/cs3/admin/group/v1beta1/group_api.proto index ab15262f..57ae3b4d 100644 --- a/cs3/admin/group/v1beta1/group_api.proto +++ b/cs3/admin/group/v1beta1/group_api.proto @@ -87,7 +87,7 @@ message DeleteResponse { message AddUserRequest { // REQUIRED. // ID of the user to add to the group - cs3.identity.user.v1beta1.UserId userid = 1; + cs3.identity.user.v1beta1.UserId user_id = 1; // REQUIRED. // ID of the target group. cs3.identity.group.v1beta1.GroupId group_id = 2; @@ -108,7 +108,7 @@ message AddUserResponse { message RemoveUserRequest { // REQUIRED. // ID of the user to add to the group - cs3.identity.user.v1beta1.UserId userid = 1; + cs3.identity.user.v1beta1.UserId user_id = 1; // REQUIRED. // ID of the target group. cs3.identity.group.v1beta1.GroupId group_id = 2; diff --git a/docs/index.html b/docs/index.html index 05546f01..320c0433 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4244,7 +4244,7 @@

      AddUserRequest

      - userid + user_id cs3.identity.user.v1beta1.UserId

      REQUIRED. @@ -4458,7 +4458,7 @@

      RemoveUserRequest

      - userid + user_id cs3.identity.user.v1beta1.UserId

      REQUIRED. From 87e1a0381125b682a6eb0eb2813fc796c815d98e Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 21 Apr 2021 15:25:52 +0200 Subject: [PATCH 16/17] apply review comments: userid -> user_id --- cs3/admin/user/v1beta1/user_api.proto | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cs3/admin/user/v1beta1/user_api.proto b/cs3/admin/user/v1beta1/user_api.proto index 6725658a..830ced0c 100644 --- a/cs3/admin/user/v1beta1/user_api.proto +++ b/cs3/admin/user/v1beta1/user_api.proto @@ -67,7 +67,7 @@ message DeleteRequest { cs3.types.v1beta1.Opaque opaque = 1; // REQUIRED. // The user to be deleted, given their ID. - cs3.identity.user.v1beta1.UserId userid = 2; + cs3.identity.user.v1beta1.UserId user_id = 2; } message DeleteResponse { diff --git a/docs/index.html b/docs/index.html index 320c0433..f404a762 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4668,7 +4668,7 @@

      DeleteRequest

      - userid + user_id cs3.identity.user.v1beta1.UserId

      REQUIRED. From 5a97007dc750a39f3cdaf504d5f91d1181e78893 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 21 Apr 2021 15:45:34 +0200 Subject: [PATCH 17/17] rename methods as per google guidelines --- cs3/admin/group/v1beta1/group_api.proto | 24 +++---- cs3/admin/user/v1beta1/user_api.proto | 12 ++-- docs/index.html | 84 ++++++++++++------------- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/cs3/admin/group/v1beta1/group_api.proto b/cs3/admin/group/v1beta1/group_api.proto index 57ae3b4d..a74dd746 100644 --- a/cs3/admin/group/v1beta1/group_api.proto +++ b/cs3/admin/group/v1beta1/group_api.proto @@ -36,16 +36,16 @@ import "cs3/types/v1beta1/types.proto"; // Provides a write only API for managing groups. service GroupAPI { // Create a group. - rpc Create(CreateRequest) returns (CreateResponse); + rpc CreateGroup(CreateGroupRequest) returns (CreateGroupResponse); // Delete a group. - rpc Delete(DeleteRequest) returns (DeleteResponse); + rpc DeleteGroup(DeleteGroupRequest) returns (DeleteGroupResponse); // Add a user to a group. - rpc AddUser(AddUserRequest) returns (AddUserResponse); + rpc AddUserToGroup(AddUserToGroupRequest) returns (AddUserToGroupResponse); // Remove a user from a group. - rpc RemoveUser(RemoveUserRequest) returns (RemoveUserResponse); + rpc RemoveUserFromGroup(RemoveUserFromGroupRequest) returns (RemoveUserFromGroupResponse); } -message CreateRequest { +message CreateGroupRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries cs3.types.v1beta1.Opaque opaque = 1; @@ -54,7 +54,7 @@ message CreateRequest { cs3.identity.group.v1beta1.Group group = 2; } -message CreateResponse { +message CreateGroupResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; @@ -66,7 +66,7 @@ message CreateResponse { cs3.identity.group.v1beta1.Group group = 3; } -message DeleteRequest { +message DeleteGroupRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries. cs3.types.v1beta1.Opaque opaque = 1; @@ -75,7 +75,7 @@ message DeleteRequest { cs3.identity.group.v1beta1.GroupId group_id = 2; } -message DeleteResponse { +message DeleteGroupResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; @@ -84,7 +84,7 @@ message DeleteResponse { cs3.types.v1beta1.Opaque opaque = 2; } -message AddUserRequest { +message AddUserToGroupRequest { // REQUIRED. // ID of the user to add to the group cs3.identity.user.v1beta1.UserId user_id = 1; @@ -96,7 +96,7 @@ message AddUserRequest { cs3.types.v1beta1.Opaque opaque = 3; } -message AddUserResponse { +message AddUserToGroupResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; @@ -105,7 +105,7 @@ message AddUserResponse { cs3.types.v1beta1.Opaque opaque = 2; } -message RemoveUserRequest { +message RemoveUserFromGroupRequest { // REQUIRED. // ID of the user to add to the group cs3.identity.user.v1beta1.UserId user_id = 1; @@ -117,7 +117,7 @@ message RemoveUserRequest { cs3.types.v1beta1.Opaque opaque = 3; } -message RemoveUserResponse { +message RemoveUserFromGroupResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; diff --git a/cs3/admin/user/v1beta1/user_api.proto b/cs3/admin/user/v1beta1/user_api.proto index 830ced0c..7466ee53 100644 --- a/cs3/admin/user/v1beta1/user_api.proto +++ b/cs3/admin/user/v1beta1/user_api.proto @@ -35,12 +35,12 @@ import "cs3/types/v1beta1/types.proto"; // Provides a write only API for managing users. service UserAPI { // Create a user account. - rpc Create(CreateRequest) returns (CreateResponse); + rpc CreateUser(CreateUserRequest) returns (CreateUserResponse); // Delete a user account. - rpc Delete(DeleteRequest) returns (DeleteResponse); + rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse); } -message CreateRequest { +message CreateUserRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries cs3.types.v1beta1.Opaque opaque = 1; @@ -49,7 +49,7 @@ message CreateRequest { cs3.identity.user.v1beta1.User user = 2; } -message CreateResponse { +message CreateUserResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; @@ -61,7 +61,7 @@ message CreateResponse { cs3.identity.user.v1beta1.User user = 3; } -message DeleteRequest { +message DeleteUserRequest { // OPTIONAL. // Opaque information. Allow to send any arbitrary data a service might use that is outside the API boundaries cs3.types.v1beta1.Opaque opaque = 1; @@ -70,7 +70,7 @@ message DeleteRequest { cs3.identity.user.v1beta1.UserId user_id = 2; } -message DeleteResponse { +message DeleteUserResponse { // REQUIRED. // The response status. cs3.rpc.v1beta1.Status status = 1; diff --git a/docs/index.html b/docs/index.html index f404a762..41bd3607 100644 --- a/docs/index.html +++ b/docs/index.html @@ -415,35 +415,35 @@

      Table of Contents