diff --git a/Makefile b/Makefile index 10c27fb2..0acb7936 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,6 @@ COLOR := "\e[1;36m%s\e[0m\n" PINNED_DEPENDENCIES := \ PROTO_ROOT := proto/api -PROTO_CLOUD_ROOT := proto/api-cloud PROTO_OUT := . PROTO_IMPORTS = \ -I=$(PROTO_ROOT) @@ -55,7 +54,6 @@ go-grpc: clean .go-helpers-installed $(PROTO_OUT) printf $(COLOR) "Compile for go-gRPC..." go run ./cmd/protogen \ --root=$(PROTO_ROOT) \ - --root=$(PROTO_CLOUD_ROOT) \ --output=$(PROTO_OUT) \ --exclude=internal \ --exclude=proto/api/google \ @@ -82,10 +80,8 @@ grpc-mock: printf $(COLOR) "Generate gRPC mocks..." mockgen -package operatorservicemock -source operatorservice/v1/service_grpc.pb.go -destination operatorservicemock/v1/service_grpc.pb.mock.go mockgen -package workflowservicemock -source workflowservice/v1/service_grpc.pb.go -destination workflowservicemock/v1/service_grpc.pb.mock.go - mockgen -package cloudservicemock -source cloud/cloudservice/v1/service_grpc.pb.go -destination cloud/cloudservicemock/v1/service_grpc.pb.mock.go go run ./cmd/mockgen-fix OperatorService operatorservicemock/v1/service_grpc.pb.mock.go go run ./cmd/mockgen-fix WorkflowService workflowservicemock/v1/service_grpc.pb.mock.go - go run ./cmd/mockgen-fix CloudService cloud/cloudservicemock/v1/service_grpc.pb.mock.go .PHONY: proxy proxy: gen-proto-desc @@ -100,7 +96,6 @@ gen-proto-desc: printf $(COLOR) "Generating proto descriptors..." go run ./cmd/protogen \ --root=$(PROTO_ROOT) \ - --root=$(PROTO_CLOUD_ROOT) \ --output=$(PROTO_OUT) \ --exclude=internal \ --exclude=proto/api/google \ @@ -156,5 +151,3 @@ clean: printf $(COLOR) "Deleting generated go files..." # Delete all directories with *.pb.go and *.mock.go files from $(PROTO_OUT) find $(PROTO_OUT) \( -name "*.pb.go" -o -name "*.mock.go" -o -name "*.go-helpers.go" \) | xargs -I{} dirname {} | egrep -v 'testprotos' | sort -u | xargs rm -rf - # Delete entire cloud dir - rm -rf cloud diff --git a/cloud/account/v1/message.go-helpers.pb.go b/cloud/account/v1/message.go-helpers.pb.go deleted file mode 100644 index 5e1f4cde..00000000 --- a/cloud/account/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,176 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package account - -import ( - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type MetricsSpec to the protobuf v3 wire format -func (val *MetricsSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type MetricsSpec from the protobuf v3 wire format -func (val *MetricsSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *MetricsSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two MetricsSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *MetricsSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *MetricsSpec - switch t := that.(type) { - case *MetricsSpec: - that1 = t - case MetricsSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type AccountSpec to the protobuf v3 wire format -func (val *AccountSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type AccountSpec from the protobuf v3 wire format -func (val *AccountSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *AccountSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two AccountSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *AccountSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *AccountSpec - switch t := that.(type) { - case *AccountSpec: - that1 = t - case AccountSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Metrics to the protobuf v3 wire format -func (val *Metrics) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Metrics from the protobuf v3 wire format -func (val *Metrics) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Metrics) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Metrics values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Metrics) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Metrics - switch t := that.(type) { - case *Metrics: - that1 = t - case Metrics: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Account to the protobuf v3 wire format -func (val *Account) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Account from the protobuf v3 wire format -func (val *Account) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Account) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Account values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Account) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Account - switch t := that.(type) { - case *Account: - that1 = t - case Account: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} diff --git a/cloud/account/v1/message.pb.go b/cloud/account/v1/message.pb.go deleted file mode 100644 index c504a65a..00000000 --- a/cloud/account/v1/message.pb.go +++ /dev/null @@ -1,351 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/account/v1/message.proto - -package account - -import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - - v1 "go.temporal.io/api/cloud/resource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -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) -) - -type MetricsSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication. - // This must only be one value, but the CA can have a chain. - AcceptedClientCa []byte `protobuf:"bytes,2,opt,name=accepted_client_ca,json=acceptedClientCa,proto3" json:"accepted_client_ca,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MetricsSpec) Reset() { - *x = MetricsSpec{} - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MetricsSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricsSpec) ProtoMessage() {} - -func (x *MetricsSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricsSpec.ProtoReflect.Descriptor instead. -func (*MetricsSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_account_v1_message_proto_rawDescGZIP(), []int{0} -} - -func (x *MetricsSpec) GetAcceptedClientCa() []byte { - if x != nil { - return x.AcceptedClientCa - } - return nil -} - -type AccountSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The metrics specification for this account. - // If not specified, metrics will not be enabled. - Metrics *MetricsSpec `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AccountSpec) Reset() { - *x = AccountSpec{} - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AccountSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountSpec) ProtoMessage() {} - -func (x *AccountSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AccountSpec.ProtoReflect.Descriptor instead. -func (*AccountSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_account_v1_message_proto_rawDescGZIP(), []int{1} -} - -func (x *AccountSpec) GetMetrics() *MetricsSpec { - if x != nil { - return x.Metrics - } - return nil -} - -type Metrics struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The prometheus metrics endpoint uri. - // This is only populated when the metrics is enabled in the metrics specification. - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Metrics) Reset() { - *x = Metrics{} - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Metrics) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Metrics) ProtoMessage() {} - -func (x *Metrics) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Metrics.ProtoReflect.Descriptor instead. -func (*Metrics) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_account_v1_message_proto_rawDescGZIP(), []int{2} -} - -func (x *Metrics) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -type Account struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the account. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The account specification. - Spec *AccountSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The current version of the account specification. - // The next update operation will have to include this version. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The current state of the account. - State v1.ResourceState `protobuf:"varint,4,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The id of the async operation that is updating the account, if any. - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // Information related to metrics. - Metrics *Metrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Account) Reset() { - *x = Account{} - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Account) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Account) ProtoMessage() {} - -func (x *Account) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_account_v1_message_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Account.ProtoReflect.Descriptor instead. -func (*Account) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_account_v1_message_proto_rawDescGZIP(), []int{3} -} - -func (x *Account) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Account) GetSpec() *AccountSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *Account) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *Account) GetState() v1.ResourceState { - if x != nil { - return x.State - } - return v1.ResourceState(0) -} - -func (x *Account) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -func (x *Account) GetMetrics() *Metrics { - if x != nil { - return x.Metrics - } - return nil -} - -var File_temporal_api_cloud_account_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_account_v1_message_proto_rawDesc = "" + - "\n" + - "+temporal/api/cloud/account/v1/message.proto\x12\x1dtemporal.api.cloud.account.v1\x1a,temporal/api/cloud/resource/v1/message.proto\";\n" + - "\vMetricsSpec\x12,\n" + - "\x12accepted_client_ca\x18\x02 \x01(\fR\x10acceptedClientCa\"S\n" + - "\vAccountSpec\x12D\n" + - "\ametrics\x18\x01 \x01(\v2*.temporal.api.cloud.account.v1.MetricsSpecR\ametrics\"\x1b\n" + - "\aMetrics\x12\x10\n" + - "\x03uri\x18\x01 \x01(\tR\x03uri\"\xb9\x02\n" + - "\aAccount\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12>\n" + - "\x04spec\x18\x02 \x01(\v2*.temporal.api.cloud.account.v1.AccountSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12C\n" + - "\x05state\x18\x04 \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\x12@\n" + - "\ametrics\x18\x06 \x01(\v2&.temporal.api.cloud.account.v1.MetricsR\ametricsB\xa7\x01\n" + - " io.temporal.api.cloud.account.v1B\fMessageProtoP\x01Z+go.temporal.io/api/cloud/account/v1;account\xaa\x02\x1fTemporalio.Api.Cloud.Account.V1\xea\x02#Temporalio::Api::Cloud::Account::V1b\x06proto3" - -var ( - file_temporal_api_cloud_account_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_account_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_account_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_account_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_account_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_account_v1_message_proto_rawDesc), len(file_temporal_api_cloud_account_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_account_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_account_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_temporal_api_cloud_account_v1_message_proto_goTypes = []any{ - (*MetricsSpec)(nil), // 0: temporal.api.cloud.account.v1.MetricsSpec - (*AccountSpec)(nil), // 1: temporal.api.cloud.account.v1.AccountSpec - (*Metrics)(nil), // 2: temporal.api.cloud.account.v1.Metrics - (*Account)(nil), // 3: temporal.api.cloud.account.v1.Account - (v1.ResourceState)(0), // 4: temporal.api.cloud.resource.v1.ResourceState -} -var file_temporal_api_cloud_account_v1_message_proto_depIdxs = []int32{ - 0, // 0: temporal.api.cloud.account.v1.AccountSpec.metrics:type_name -> temporal.api.cloud.account.v1.MetricsSpec - 1, // 1: temporal.api.cloud.account.v1.Account.spec:type_name -> temporal.api.cloud.account.v1.AccountSpec - 4, // 2: temporal.api.cloud.account.v1.Account.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 2, // 3: temporal.api.cloud.account.v1.Account.metrics:type_name -> temporal.api.cloud.account.v1.Metrics - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_temporal_api_cloud_account_v1_message_proto_init() } -func file_temporal_api_cloud_account_v1_message_proto_init() { - if File_temporal_api_cloud_account_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_account_v1_message_proto_rawDesc), len(file_temporal_api_cloud_account_v1_message_proto_rawDesc)), - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_account_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_account_v1_message_proto_depIdxs, - MessageInfos: file_temporal_api_cloud_account_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_account_v1_message_proto = out.File - file_temporal_api_cloud_account_v1_message_proto_goTypes = nil - file_temporal_api_cloud_account_v1_message_proto_depIdxs = nil -} diff --git a/cloud/cloudservice/v1/request_response.go-helpers.pb.go b/cloud/cloudservice/v1/request_response.go-helpers.pb.go deleted file mode 100644 index 8ff38f55..00000000 --- a/cloud/cloudservice/v1/request_response.go-helpers.pb.go +++ /dev/null @@ -1,3506 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package cloudservice - -import ( - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type GetUsersRequest to the protobuf v3 wire format -func (val *GetUsersRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUsersRequest from the protobuf v3 wire format -func (val *GetUsersRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUsersRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUsersRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUsersRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUsersRequest - switch t := that.(type) { - case *GetUsersRequest: - that1 = t - case GetUsersRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUsersResponse to the protobuf v3 wire format -func (val *GetUsersResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUsersResponse from the protobuf v3 wire format -func (val *GetUsersResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUsersResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUsersResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUsersResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUsersResponse - switch t := that.(type) { - case *GetUsersResponse: - that1 = t - case GetUsersResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUserRequest to the protobuf v3 wire format -func (val *GetUserRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUserRequest from the protobuf v3 wire format -func (val *GetUserRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUserRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUserRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUserRequest - switch t := that.(type) { - case *GetUserRequest: - that1 = t - case GetUserRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUserResponse to the protobuf v3 wire format -func (val *GetUserResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUserResponse from the protobuf v3 wire format -func (val *GetUserResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUserResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUserResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUserResponse - switch t := that.(type) { - case *GetUserResponse: - that1 = t - case GetUserResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateUserRequest to the protobuf v3 wire format -func (val *CreateUserRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateUserRequest from the protobuf v3 wire format -func (val *CreateUserRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateUserRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateUserRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateUserRequest - switch t := that.(type) { - case *CreateUserRequest: - that1 = t - case CreateUserRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateUserResponse to the protobuf v3 wire format -func (val *CreateUserResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateUserResponse from the protobuf v3 wire format -func (val *CreateUserResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateUserResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateUserResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateUserResponse - switch t := that.(type) { - case *CreateUserResponse: - that1 = t - case CreateUserResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateUserRequest to the protobuf v3 wire format -func (val *UpdateUserRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateUserRequest from the protobuf v3 wire format -func (val *UpdateUserRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateUserRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateUserRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateUserRequest - switch t := that.(type) { - case *UpdateUserRequest: - that1 = t - case UpdateUserRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateUserResponse to the protobuf v3 wire format -func (val *UpdateUserResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateUserResponse from the protobuf v3 wire format -func (val *UpdateUserResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateUserResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateUserResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateUserResponse - switch t := that.(type) { - case *UpdateUserResponse: - that1 = t - case UpdateUserResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteUserRequest to the protobuf v3 wire format -func (val *DeleteUserRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteUserRequest from the protobuf v3 wire format -func (val *DeleteUserRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteUserRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteUserRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteUserRequest - switch t := that.(type) { - case *DeleteUserRequest: - that1 = t - case DeleteUserRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteUserResponse to the protobuf v3 wire format -func (val *DeleteUserResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteUserResponse from the protobuf v3 wire format -func (val *DeleteUserResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteUserResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteUserResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteUserResponse - switch t := that.(type) { - case *DeleteUserResponse: - that1 = t - case DeleteUserResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type SetUserNamespaceAccessRequest to the protobuf v3 wire format -func (val *SetUserNamespaceAccessRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type SetUserNamespaceAccessRequest from the protobuf v3 wire format -func (val *SetUserNamespaceAccessRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *SetUserNamespaceAccessRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two SetUserNamespaceAccessRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *SetUserNamespaceAccessRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *SetUserNamespaceAccessRequest - switch t := that.(type) { - case *SetUserNamespaceAccessRequest: - that1 = t - case SetUserNamespaceAccessRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type SetUserNamespaceAccessResponse to the protobuf v3 wire format -func (val *SetUserNamespaceAccessResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type SetUserNamespaceAccessResponse from the protobuf v3 wire format -func (val *SetUserNamespaceAccessResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *SetUserNamespaceAccessResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two SetUserNamespaceAccessResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *SetUserNamespaceAccessResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *SetUserNamespaceAccessResponse - switch t := that.(type) { - case *SetUserNamespaceAccessResponse: - that1 = t - case SetUserNamespaceAccessResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetAsyncOperationRequest to the protobuf v3 wire format -func (val *GetAsyncOperationRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetAsyncOperationRequest from the protobuf v3 wire format -func (val *GetAsyncOperationRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetAsyncOperationRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetAsyncOperationRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetAsyncOperationRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetAsyncOperationRequest - switch t := that.(type) { - case *GetAsyncOperationRequest: - that1 = t - case GetAsyncOperationRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetAsyncOperationResponse to the protobuf v3 wire format -func (val *GetAsyncOperationResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetAsyncOperationResponse from the protobuf v3 wire format -func (val *GetAsyncOperationResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetAsyncOperationResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetAsyncOperationResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetAsyncOperationResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetAsyncOperationResponse - switch t := that.(type) { - case *GetAsyncOperationResponse: - that1 = t - case GetAsyncOperationResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateNamespaceRequest to the protobuf v3 wire format -func (val *CreateNamespaceRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateNamespaceRequest from the protobuf v3 wire format -func (val *CreateNamespaceRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateNamespaceRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateNamespaceRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateNamespaceRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateNamespaceRequest - switch t := that.(type) { - case *CreateNamespaceRequest: - that1 = t - case CreateNamespaceRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateNamespaceResponse to the protobuf v3 wire format -func (val *CreateNamespaceResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateNamespaceResponse from the protobuf v3 wire format -func (val *CreateNamespaceResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateNamespaceResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateNamespaceResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateNamespaceResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateNamespaceResponse - switch t := that.(type) { - case *CreateNamespaceResponse: - that1 = t - case CreateNamespaceResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespacesRequest to the protobuf v3 wire format -func (val *GetNamespacesRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespacesRequest from the protobuf v3 wire format -func (val *GetNamespacesRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespacesRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespacesRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespacesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespacesRequest - switch t := that.(type) { - case *GetNamespacesRequest: - that1 = t - case GetNamespacesRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespacesResponse to the protobuf v3 wire format -func (val *GetNamespacesResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespacesResponse from the protobuf v3 wire format -func (val *GetNamespacesResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespacesResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespacesResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespacesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespacesResponse - switch t := that.(type) { - case *GetNamespacesResponse: - that1 = t - case GetNamespacesResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespaceRequest to the protobuf v3 wire format -func (val *GetNamespaceRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespaceRequest from the protobuf v3 wire format -func (val *GetNamespaceRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespaceRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespaceRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespaceRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespaceRequest - switch t := that.(type) { - case *GetNamespaceRequest: - that1 = t - case GetNamespaceRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespaceResponse to the protobuf v3 wire format -func (val *GetNamespaceResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespaceResponse from the protobuf v3 wire format -func (val *GetNamespaceResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespaceResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespaceResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespaceResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespaceResponse - switch t := that.(type) { - case *GetNamespaceResponse: - that1 = t - case GetNamespaceResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateNamespaceRequest to the protobuf v3 wire format -func (val *UpdateNamespaceRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateNamespaceRequest from the protobuf v3 wire format -func (val *UpdateNamespaceRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateNamespaceRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateNamespaceRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateNamespaceRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateNamespaceRequest - switch t := that.(type) { - case *UpdateNamespaceRequest: - that1 = t - case UpdateNamespaceRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateNamespaceResponse to the protobuf v3 wire format -func (val *UpdateNamespaceResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateNamespaceResponse from the protobuf v3 wire format -func (val *UpdateNamespaceResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateNamespaceResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateNamespaceResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateNamespaceResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateNamespaceResponse - switch t := that.(type) { - case *UpdateNamespaceResponse: - that1 = t - case UpdateNamespaceResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type RenameCustomSearchAttributeRequest to the protobuf v3 wire format -func (val *RenameCustomSearchAttributeRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type RenameCustomSearchAttributeRequest from the protobuf v3 wire format -func (val *RenameCustomSearchAttributeRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *RenameCustomSearchAttributeRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two RenameCustomSearchAttributeRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *RenameCustomSearchAttributeRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *RenameCustomSearchAttributeRequest - switch t := that.(type) { - case *RenameCustomSearchAttributeRequest: - that1 = t - case RenameCustomSearchAttributeRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type RenameCustomSearchAttributeResponse to the protobuf v3 wire format -func (val *RenameCustomSearchAttributeResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type RenameCustomSearchAttributeResponse from the protobuf v3 wire format -func (val *RenameCustomSearchAttributeResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *RenameCustomSearchAttributeResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two RenameCustomSearchAttributeResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *RenameCustomSearchAttributeResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *RenameCustomSearchAttributeResponse - switch t := that.(type) { - case *RenameCustomSearchAttributeResponse: - that1 = t - case RenameCustomSearchAttributeResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteNamespaceRequest to the protobuf v3 wire format -func (val *DeleteNamespaceRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteNamespaceRequest from the protobuf v3 wire format -func (val *DeleteNamespaceRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteNamespaceRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteNamespaceRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteNamespaceRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteNamespaceRequest - switch t := that.(type) { - case *DeleteNamespaceRequest: - that1 = t - case DeleteNamespaceRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteNamespaceResponse to the protobuf v3 wire format -func (val *DeleteNamespaceResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteNamespaceResponse from the protobuf v3 wire format -func (val *DeleteNamespaceResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteNamespaceResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteNamespaceResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteNamespaceResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteNamespaceResponse - switch t := that.(type) { - case *DeleteNamespaceResponse: - that1 = t - case DeleteNamespaceResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type FailoverNamespaceRegionRequest to the protobuf v3 wire format -func (val *FailoverNamespaceRegionRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type FailoverNamespaceRegionRequest from the protobuf v3 wire format -func (val *FailoverNamespaceRegionRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *FailoverNamespaceRegionRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two FailoverNamespaceRegionRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *FailoverNamespaceRegionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *FailoverNamespaceRegionRequest - switch t := that.(type) { - case *FailoverNamespaceRegionRequest: - that1 = t - case FailoverNamespaceRegionRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type FailoverNamespaceRegionResponse to the protobuf v3 wire format -func (val *FailoverNamespaceRegionResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type FailoverNamespaceRegionResponse from the protobuf v3 wire format -func (val *FailoverNamespaceRegionResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *FailoverNamespaceRegionResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two FailoverNamespaceRegionResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *FailoverNamespaceRegionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *FailoverNamespaceRegionResponse - switch t := that.(type) { - case *FailoverNamespaceRegionResponse: - that1 = t - case FailoverNamespaceRegionResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type AddNamespaceRegionRequest to the protobuf v3 wire format -func (val *AddNamespaceRegionRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type AddNamespaceRegionRequest from the protobuf v3 wire format -func (val *AddNamespaceRegionRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *AddNamespaceRegionRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two AddNamespaceRegionRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *AddNamespaceRegionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *AddNamespaceRegionRequest - switch t := that.(type) { - case *AddNamespaceRegionRequest: - that1 = t - case AddNamespaceRegionRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type AddNamespaceRegionResponse to the protobuf v3 wire format -func (val *AddNamespaceRegionResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type AddNamespaceRegionResponse from the protobuf v3 wire format -func (val *AddNamespaceRegionResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *AddNamespaceRegionResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two AddNamespaceRegionResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *AddNamespaceRegionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *AddNamespaceRegionResponse - switch t := that.(type) { - case *AddNamespaceRegionResponse: - that1 = t - case AddNamespaceRegionResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetRegionsRequest to the protobuf v3 wire format -func (val *GetRegionsRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetRegionsRequest from the protobuf v3 wire format -func (val *GetRegionsRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetRegionsRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetRegionsRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetRegionsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetRegionsRequest - switch t := that.(type) { - case *GetRegionsRequest: - that1 = t - case GetRegionsRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetRegionsResponse to the protobuf v3 wire format -func (val *GetRegionsResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetRegionsResponse from the protobuf v3 wire format -func (val *GetRegionsResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetRegionsResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetRegionsResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetRegionsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetRegionsResponse - switch t := that.(type) { - case *GetRegionsResponse: - that1 = t - case GetRegionsResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetRegionRequest to the protobuf v3 wire format -func (val *GetRegionRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetRegionRequest from the protobuf v3 wire format -func (val *GetRegionRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetRegionRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetRegionRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetRegionRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetRegionRequest - switch t := that.(type) { - case *GetRegionRequest: - that1 = t - case GetRegionRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetRegionResponse to the protobuf v3 wire format -func (val *GetRegionResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetRegionResponse from the protobuf v3 wire format -func (val *GetRegionResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetRegionResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetRegionResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetRegionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetRegionResponse - switch t := that.(type) { - case *GetRegionResponse: - that1 = t - case GetRegionResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetApiKeysRequest to the protobuf v3 wire format -func (val *GetApiKeysRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetApiKeysRequest from the protobuf v3 wire format -func (val *GetApiKeysRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetApiKeysRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetApiKeysRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetApiKeysRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetApiKeysRequest - switch t := that.(type) { - case *GetApiKeysRequest: - that1 = t - case GetApiKeysRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetApiKeysResponse to the protobuf v3 wire format -func (val *GetApiKeysResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetApiKeysResponse from the protobuf v3 wire format -func (val *GetApiKeysResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetApiKeysResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetApiKeysResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetApiKeysResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetApiKeysResponse - switch t := that.(type) { - case *GetApiKeysResponse: - that1 = t - case GetApiKeysResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetApiKeyRequest to the protobuf v3 wire format -func (val *GetApiKeyRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetApiKeyRequest from the protobuf v3 wire format -func (val *GetApiKeyRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetApiKeyRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetApiKeyRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetApiKeyRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetApiKeyRequest - switch t := that.(type) { - case *GetApiKeyRequest: - that1 = t - case GetApiKeyRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetApiKeyResponse to the protobuf v3 wire format -func (val *GetApiKeyResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetApiKeyResponse from the protobuf v3 wire format -func (val *GetApiKeyResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetApiKeyResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetApiKeyResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetApiKeyResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetApiKeyResponse - switch t := that.(type) { - case *GetApiKeyResponse: - that1 = t - case GetApiKeyResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateApiKeyRequest to the protobuf v3 wire format -func (val *CreateApiKeyRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateApiKeyRequest from the protobuf v3 wire format -func (val *CreateApiKeyRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateApiKeyRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateApiKeyRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateApiKeyRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateApiKeyRequest - switch t := that.(type) { - case *CreateApiKeyRequest: - that1 = t - case CreateApiKeyRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateApiKeyResponse to the protobuf v3 wire format -func (val *CreateApiKeyResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateApiKeyResponse from the protobuf v3 wire format -func (val *CreateApiKeyResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateApiKeyResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateApiKeyResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateApiKeyResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateApiKeyResponse - switch t := that.(type) { - case *CreateApiKeyResponse: - that1 = t - case CreateApiKeyResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateApiKeyRequest to the protobuf v3 wire format -func (val *UpdateApiKeyRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateApiKeyRequest from the protobuf v3 wire format -func (val *UpdateApiKeyRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateApiKeyRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateApiKeyRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateApiKeyRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateApiKeyRequest - switch t := that.(type) { - case *UpdateApiKeyRequest: - that1 = t - case UpdateApiKeyRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateApiKeyResponse to the protobuf v3 wire format -func (val *UpdateApiKeyResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateApiKeyResponse from the protobuf v3 wire format -func (val *UpdateApiKeyResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateApiKeyResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateApiKeyResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateApiKeyResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateApiKeyResponse - switch t := that.(type) { - case *UpdateApiKeyResponse: - that1 = t - case UpdateApiKeyResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteApiKeyRequest to the protobuf v3 wire format -func (val *DeleteApiKeyRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteApiKeyRequest from the protobuf v3 wire format -func (val *DeleteApiKeyRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteApiKeyRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteApiKeyRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteApiKeyRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteApiKeyRequest - switch t := that.(type) { - case *DeleteApiKeyRequest: - that1 = t - case DeleteApiKeyRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteApiKeyResponse to the protobuf v3 wire format -func (val *DeleteApiKeyResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteApiKeyResponse from the protobuf v3 wire format -func (val *DeleteApiKeyResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteApiKeyResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteApiKeyResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteApiKeyResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteApiKeyResponse - switch t := that.(type) { - case *DeleteApiKeyResponse: - that1 = t - case DeleteApiKeyResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNexusEndpointsRequest to the protobuf v3 wire format -func (val *GetNexusEndpointsRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNexusEndpointsRequest from the protobuf v3 wire format -func (val *GetNexusEndpointsRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNexusEndpointsRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNexusEndpointsRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNexusEndpointsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNexusEndpointsRequest - switch t := that.(type) { - case *GetNexusEndpointsRequest: - that1 = t - case GetNexusEndpointsRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNexusEndpointsResponse to the protobuf v3 wire format -func (val *GetNexusEndpointsResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNexusEndpointsResponse from the protobuf v3 wire format -func (val *GetNexusEndpointsResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNexusEndpointsResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNexusEndpointsResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNexusEndpointsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNexusEndpointsResponse - switch t := that.(type) { - case *GetNexusEndpointsResponse: - that1 = t - case GetNexusEndpointsResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNexusEndpointRequest to the protobuf v3 wire format -func (val *GetNexusEndpointRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNexusEndpointRequest from the protobuf v3 wire format -func (val *GetNexusEndpointRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNexusEndpointRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNexusEndpointRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNexusEndpointRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNexusEndpointRequest - switch t := that.(type) { - case *GetNexusEndpointRequest: - that1 = t - case GetNexusEndpointRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNexusEndpointResponse to the protobuf v3 wire format -func (val *GetNexusEndpointResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNexusEndpointResponse from the protobuf v3 wire format -func (val *GetNexusEndpointResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNexusEndpointResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNexusEndpointResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNexusEndpointResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNexusEndpointResponse - switch t := that.(type) { - case *GetNexusEndpointResponse: - that1 = t - case GetNexusEndpointResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateNexusEndpointRequest to the protobuf v3 wire format -func (val *CreateNexusEndpointRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateNexusEndpointRequest from the protobuf v3 wire format -func (val *CreateNexusEndpointRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateNexusEndpointRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateNexusEndpointRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateNexusEndpointRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateNexusEndpointRequest - switch t := that.(type) { - case *CreateNexusEndpointRequest: - that1 = t - case CreateNexusEndpointRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateNexusEndpointResponse to the protobuf v3 wire format -func (val *CreateNexusEndpointResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateNexusEndpointResponse from the protobuf v3 wire format -func (val *CreateNexusEndpointResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateNexusEndpointResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateNexusEndpointResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateNexusEndpointResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateNexusEndpointResponse - switch t := that.(type) { - case *CreateNexusEndpointResponse: - that1 = t - case CreateNexusEndpointResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateNexusEndpointRequest to the protobuf v3 wire format -func (val *UpdateNexusEndpointRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateNexusEndpointRequest from the protobuf v3 wire format -func (val *UpdateNexusEndpointRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateNexusEndpointRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateNexusEndpointRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateNexusEndpointRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateNexusEndpointRequest - switch t := that.(type) { - case *UpdateNexusEndpointRequest: - that1 = t - case UpdateNexusEndpointRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateNexusEndpointResponse to the protobuf v3 wire format -func (val *UpdateNexusEndpointResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateNexusEndpointResponse from the protobuf v3 wire format -func (val *UpdateNexusEndpointResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateNexusEndpointResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateNexusEndpointResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateNexusEndpointResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateNexusEndpointResponse - switch t := that.(type) { - case *UpdateNexusEndpointResponse: - that1 = t - case UpdateNexusEndpointResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteNexusEndpointRequest to the protobuf v3 wire format -func (val *DeleteNexusEndpointRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteNexusEndpointRequest from the protobuf v3 wire format -func (val *DeleteNexusEndpointRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteNexusEndpointRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteNexusEndpointRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteNexusEndpointRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteNexusEndpointRequest - switch t := that.(type) { - case *DeleteNexusEndpointRequest: - that1 = t - case DeleteNexusEndpointRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteNexusEndpointResponse to the protobuf v3 wire format -func (val *DeleteNexusEndpointResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteNexusEndpointResponse from the protobuf v3 wire format -func (val *DeleteNexusEndpointResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteNexusEndpointResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteNexusEndpointResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteNexusEndpointResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteNexusEndpointResponse - switch t := that.(type) { - case *DeleteNexusEndpointResponse: - that1 = t - case DeleteNexusEndpointResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUserGroupsRequest to the protobuf v3 wire format -func (val *GetUserGroupsRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUserGroupsRequest from the protobuf v3 wire format -func (val *GetUserGroupsRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUserGroupsRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUserGroupsRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUserGroupsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUserGroupsRequest - switch t := that.(type) { - case *GetUserGroupsRequest: - that1 = t - case GetUserGroupsRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUserGroupsResponse to the protobuf v3 wire format -func (val *GetUserGroupsResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUserGroupsResponse from the protobuf v3 wire format -func (val *GetUserGroupsResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUserGroupsResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUserGroupsResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUserGroupsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUserGroupsResponse - switch t := that.(type) { - case *GetUserGroupsResponse: - that1 = t - case GetUserGroupsResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUserGroupRequest to the protobuf v3 wire format -func (val *GetUserGroupRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUserGroupRequest from the protobuf v3 wire format -func (val *GetUserGroupRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUserGroupRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUserGroupRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUserGroupRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUserGroupRequest - switch t := that.(type) { - case *GetUserGroupRequest: - that1 = t - case GetUserGroupRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUserGroupResponse to the protobuf v3 wire format -func (val *GetUserGroupResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUserGroupResponse from the protobuf v3 wire format -func (val *GetUserGroupResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUserGroupResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUserGroupResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUserGroupResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUserGroupResponse - switch t := that.(type) { - case *GetUserGroupResponse: - that1 = t - case GetUserGroupResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateUserGroupRequest to the protobuf v3 wire format -func (val *CreateUserGroupRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateUserGroupRequest from the protobuf v3 wire format -func (val *CreateUserGroupRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateUserGroupRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateUserGroupRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateUserGroupRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateUserGroupRequest - switch t := that.(type) { - case *CreateUserGroupRequest: - that1 = t - case CreateUserGroupRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateUserGroupResponse to the protobuf v3 wire format -func (val *CreateUserGroupResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateUserGroupResponse from the protobuf v3 wire format -func (val *CreateUserGroupResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateUserGroupResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateUserGroupResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateUserGroupResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateUserGroupResponse - switch t := that.(type) { - case *CreateUserGroupResponse: - that1 = t - case CreateUserGroupResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateUserGroupRequest to the protobuf v3 wire format -func (val *UpdateUserGroupRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateUserGroupRequest from the protobuf v3 wire format -func (val *UpdateUserGroupRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateUserGroupRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateUserGroupRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateUserGroupRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateUserGroupRequest - switch t := that.(type) { - case *UpdateUserGroupRequest: - that1 = t - case UpdateUserGroupRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateUserGroupResponse to the protobuf v3 wire format -func (val *UpdateUserGroupResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateUserGroupResponse from the protobuf v3 wire format -func (val *UpdateUserGroupResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateUserGroupResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateUserGroupResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateUserGroupResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateUserGroupResponse - switch t := that.(type) { - case *UpdateUserGroupResponse: - that1 = t - case UpdateUserGroupResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteUserGroupRequest to the protobuf v3 wire format -func (val *DeleteUserGroupRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteUserGroupRequest from the protobuf v3 wire format -func (val *DeleteUserGroupRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteUserGroupRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteUserGroupRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteUserGroupRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteUserGroupRequest - switch t := that.(type) { - case *DeleteUserGroupRequest: - that1 = t - case DeleteUserGroupRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteUserGroupResponse to the protobuf v3 wire format -func (val *DeleteUserGroupResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteUserGroupResponse from the protobuf v3 wire format -func (val *DeleteUserGroupResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteUserGroupResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteUserGroupResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteUserGroupResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteUserGroupResponse - switch t := that.(type) { - case *DeleteUserGroupResponse: - that1 = t - case DeleteUserGroupResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type SetUserGroupNamespaceAccessRequest to the protobuf v3 wire format -func (val *SetUserGroupNamespaceAccessRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type SetUserGroupNamespaceAccessRequest from the protobuf v3 wire format -func (val *SetUserGroupNamespaceAccessRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *SetUserGroupNamespaceAccessRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two SetUserGroupNamespaceAccessRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *SetUserGroupNamespaceAccessRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *SetUserGroupNamespaceAccessRequest - switch t := that.(type) { - case *SetUserGroupNamespaceAccessRequest: - that1 = t - case SetUserGroupNamespaceAccessRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type SetUserGroupNamespaceAccessResponse to the protobuf v3 wire format -func (val *SetUserGroupNamespaceAccessResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type SetUserGroupNamespaceAccessResponse from the protobuf v3 wire format -func (val *SetUserGroupNamespaceAccessResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *SetUserGroupNamespaceAccessResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two SetUserGroupNamespaceAccessResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *SetUserGroupNamespaceAccessResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *SetUserGroupNamespaceAccessResponse - switch t := that.(type) { - case *SetUserGroupNamespaceAccessResponse: - that1 = t - case SetUserGroupNamespaceAccessResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateServiceAccountRequest to the protobuf v3 wire format -func (val *CreateServiceAccountRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateServiceAccountRequest from the protobuf v3 wire format -func (val *CreateServiceAccountRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateServiceAccountRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateServiceAccountRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateServiceAccountRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateServiceAccountRequest - switch t := that.(type) { - case *CreateServiceAccountRequest: - that1 = t - case CreateServiceAccountRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateServiceAccountResponse to the protobuf v3 wire format -func (val *CreateServiceAccountResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateServiceAccountResponse from the protobuf v3 wire format -func (val *CreateServiceAccountResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateServiceAccountResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateServiceAccountResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateServiceAccountResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateServiceAccountResponse - switch t := that.(type) { - case *CreateServiceAccountResponse: - that1 = t - case CreateServiceAccountResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetServiceAccountRequest to the protobuf v3 wire format -func (val *GetServiceAccountRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetServiceAccountRequest from the protobuf v3 wire format -func (val *GetServiceAccountRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetServiceAccountRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetServiceAccountRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetServiceAccountRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetServiceAccountRequest - switch t := that.(type) { - case *GetServiceAccountRequest: - that1 = t - case GetServiceAccountRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetServiceAccountResponse to the protobuf v3 wire format -func (val *GetServiceAccountResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetServiceAccountResponse from the protobuf v3 wire format -func (val *GetServiceAccountResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetServiceAccountResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetServiceAccountResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetServiceAccountResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetServiceAccountResponse - switch t := that.(type) { - case *GetServiceAccountResponse: - that1 = t - case GetServiceAccountResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetServiceAccountsRequest to the protobuf v3 wire format -func (val *GetServiceAccountsRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetServiceAccountsRequest from the protobuf v3 wire format -func (val *GetServiceAccountsRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetServiceAccountsRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetServiceAccountsRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetServiceAccountsRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetServiceAccountsRequest - switch t := that.(type) { - case *GetServiceAccountsRequest: - that1 = t - case GetServiceAccountsRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetServiceAccountsResponse to the protobuf v3 wire format -func (val *GetServiceAccountsResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetServiceAccountsResponse from the protobuf v3 wire format -func (val *GetServiceAccountsResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetServiceAccountsResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetServiceAccountsResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetServiceAccountsResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetServiceAccountsResponse - switch t := that.(type) { - case *GetServiceAccountsResponse: - that1 = t - case GetServiceAccountsResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateServiceAccountRequest to the protobuf v3 wire format -func (val *UpdateServiceAccountRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateServiceAccountRequest from the protobuf v3 wire format -func (val *UpdateServiceAccountRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateServiceAccountRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateServiceAccountRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateServiceAccountRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateServiceAccountRequest - switch t := that.(type) { - case *UpdateServiceAccountRequest: - that1 = t - case UpdateServiceAccountRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateServiceAccountResponse to the protobuf v3 wire format -func (val *UpdateServiceAccountResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateServiceAccountResponse from the protobuf v3 wire format -func (val *UpdateServiceAccountResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateServiceAccountResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateServiceAccountResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateServiceAccountResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateServiceAccountResponse - switch t := that.(type) { - case *UpdateServiceAccountResponse: - that1 = t - case UpdateServiceAccountResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteServiceAccountRequest to the protobuf v3 wire format -func (val *DeleteServiceAccountRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteServiceAccountRequest from the protobuf v3 wire format -func (val *DeleteServiceAccountRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteServiceAccountRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteServiceAccountRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteServiceAccountRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteServiceAccountRequest - switch t := that.(type) { - case *DeleteServiceAccountRequest: - that1 = t - case DeleteServiceAccountRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteServiceAccountResponse to the protobuf v3 wire format -func (val *DeleteServiceAccountResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteServiceAccountResponse from the protobuf v3 wire format -func (val *DeleteServiceAccountResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteServiceAccountResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteServiceAccountResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteServiceAccountResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteServiceAccountResponse - switch t := that.(type) { - case *DeleteServiceAccountResponse: - that1 = t - case DeleteServiceAccountResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUsageRequest to the protobuf v3 wire format -func (val *GetUsageRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUsageRequest from the protobuf v3 wire format -func (val *GetUsageRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUsageRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUsageRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUsageRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUsageRequest - switch t := that.(type) { - case *GetUsageRequest: - that1 = t - case GetUsageRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetUsageResponse to the protobuf v3 wire format -func (val *GetUsageResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetUsageResponse from the protobuf v3 wire format -func (val *GetUsageResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetUsageResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetUsageResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetUsageResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetUsageResponse - switch t := that.(type) { - case *GetUsageResponse: - that1 = t - case GetUsageResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetAccountRequest to the protobuf v3 wire format -func (val *GetAccountRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetAccountRequest from the protobuf v3 wire format -func (val *GetAccountRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetAccountRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetAccountRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetAccountRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetAccountRequest - switch t := that.(type) { - case *GetAccountRequest: - that1 = t - case GetAccountRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetAccountResponse to the protobuf v3 wire format -func (val *GetAccountResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetAccountResponse from the protobuf v3 wire format -func (val *GetAccountResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetAccountResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetAccountResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetAccountResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetAccountResponse - switch t := that.(type) { - case *GetAccountResponse: - that1 = t - case GetAccountResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateAccountRequest to the protobuf v3 wire format -func (val *UpdateAccountRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateAccountRequest from the protobuf v3 wire format -func (val *UpdateAccountRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateAccountRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateAccountRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateAccountRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateAccountRequest - switch t := that.(type) { - case *UpdateAccountRequest: - that1 = t - case UpdateAccountRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateAccountResponse to the protobuf v3 wire format -func (val *UpdateAccountResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateAccountResponse from the protobuf v3 wire format -func (val *UpdateAccountResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateAccountResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateAccountResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateAccountResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateAccountResponse - switch t := that.(type) { - case *UpdateAccountResponse: - that1 = t - case UpdateAccountResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateNamespaceExportSinkRequest to the protobuf v3 wire format -func (val *CreateNamespaceExportSinkRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateNamespaceExportSinkRequest from the protobuf v3 wire format -func (val *CreateNamespaceExportSinkRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateNamespaceExportSinkRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateNamespaceExportSinkRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateNamespaceExportSinkRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateNamespaceExportSinkRequest - switch t := that.(type) { - case *CreateNamespaceExportSinkRequest: - that1 = t - case CreateNamespaceExportSinkRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CreateNamespaceExportSinkResponse to the protobuf v3 wire format -func (val *CreateNamespaceExportSinkResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CreateNamespaceExportSinkResponse from the protobuf v3 wire format -func (val *CreateNamespaceExportSinkResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CreateNamespaceExportSinkResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CreateNamespaceExportSinkResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CreateNamespaceExportSinkResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CreateNamespaceExportSinkResponse - switch t := that.(type) { - case *CreateNamespaceExportSinkResponse: - that1 = t - case CreateNamespaceExportSinkResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespaceExportSinkRequest to the protobuf v3 wire format -func (val *GetNamespaceExportSinkRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespaceExportSinkRequest from the protobuf v3 wire format -func (val *GetNamespaceExportSinkRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespaceExportSinkRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespaceExportSinkRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespaceExportSinkRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespaceExportSinkRequest - switch t := that.(type) { - case *GetNamespaceExportSinkRequest: - that1 = t - case GetNamespaceExportSinkRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespaceExportSinkResponse to the protobuf v3 wire format -func (val *GetNamespaceExportSinkResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespaceExportSinkResponse from the protobuf v3 wire format -func (val *GetNamespaceExportSinkResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespaceExportSinkResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespaceExportSinkResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespaceExportSinkResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespaceExportSinkResponse - switch t := that.(type) { - case *GetNamespaceExportSinkResponse: - that1 = t - case GetNamespaceExportSinkResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespaceExportSinksRequest to the protobuf v3 wire format -func (val *GetNamespaceExportSinksRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespaceExportSinksRequest from the protobuf v3 wire format -func (val *GetNamespaceExportSinksRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespaceExportSinksRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespaceExportSinksRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespaceExportSinksRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespaceExportSinksRequest - switch t := that.(type) { - case *GetNamespaceExportSinksRequest: - that1 = t - case GetNamespaceExportSinksRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GetNamespaceExportSinksResponse to the protobuf v3 wire format -func (val *GetNamespaceExportSinksResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GetNamespaceExportSinksResponse from the protobuf v3 wire format -func (val *GetNamespaceExportSinksResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GetNamespaceExportSinksResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GetNamespaceExportSinksResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GetNamespaceExportSinksResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GetNamespaceExportSinksResponse - switch t := that.(type) { - case *GetNamespaceExportSinksResponse: - that1 = t - case GetNamespaceExportSinksResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateNamespaceExportSinkRequest to the protobuf v3 wire format -func (val *UpdateNamespaceExportSinkRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateNamespaceExportSinkRequest from the protobuf v3 wire format -func (val *UpdateNamespaceExportSinkRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateNamespaceExportSinkRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateNamespaceExportSinkRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateNamespaceExportSinkRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateNamespaceExportSinkRequest - switch t := that.(type) { - case *UpdateNamespaceExportSinkRequest: - that1 = t - case UpdateNamespaceExportSinkRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UpdateNamespaceExportSinkResponse to the protobuf v3 wire format -func (val *UpdateNamespaceExportSinkResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UpdateNamespaceExportSinkResponse from the protobuf v3 wire format -func (val *UpdateNamespaceExportSinkResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UpdateNamespaceExportSinkResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UpdateNamespaceExportSinkResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UpdateNamespaceExportSinkResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UpdateNamespaceExportSinkResponse - switch t := that.(type) { - case *UpdateNamespaceExportSinkResponse: - that1 = t - case UpdateNamespaceExportSinkResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteNamespaceExportSinkRequest to the protobuf v3 wire format -func (val *DeleteNamespaceExportSinkRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteNamespaceExportSinkRequest from the protobuf v3 wire format -func (val *DeleteNamespaceExportSinkRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteNamespaceExportSinkRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteNamespaceExportSinkRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteNamespaceExportSinkRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteNamespaceExportSinkRequest - switch t := that.(type) { - case *DeleteNamespaceExportSinkRequest: - that1 = t - case DeleteNamespaceExportSinkRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type DeleteNamespaceExportSinkResponse to the protobuf v3 wire format -func (val *DeleteNamespaceExportSinkResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type DeleteNamespaceExportSinkResponse from the protobuf v3 wire format -func (val *DeleteNamespaceExportSinkResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *DeleteNamespaceExportSinkResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two DeleteNamespaceExportSinkResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *DeleteNamespaceExportSinkResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *DeleteNamespaceExportSinkResponse - switch t := that.(type) { - case *DeleteNamespaceExportSinkResponse: - that1 = t - case DeleteNamespaceExportSinkResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ValidateNamespaceExportSinkRequest to the protobuf v3 wire format -func (val *ValidateNamespaceExportSinkRequest) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ValidateNamespaceExportSinkRequest from the protobuf v3 wire format -func (val *ValidateNamespaceExportSinkRequest) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ValidateNamespaceExportSinkRequest) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ValidateNamespaceExportSinkRequest values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ValidateNamespaceExportSinkRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ValidateNamespaceExportSinkRequest - switch t := that.(type) { - case *ValidateNamespaceExportSinkRequest: - that1 = t - case ValidateNamespaceExportSinkRequest: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ValidateNamespaceExportSinkResponse to the protobuf v3 wire format -func (val *ValidateNamespaceExportSinkResponse) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ValidateNamespaceExportSinkResponse from the protobuf v3 wire format -func (val *ValidateNamespaceExportSinkResponse) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ValidateNamespaceExportSinkResponse) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ValidateNamespaceExportSinkResponse values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ValidateNamespaceExportSinkResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ValidateNamespaceExportSinkResponse - switch t := that.(type) { - case *ValidateNamespaceExportSinkResponse: - that1 = t - case ValidateNamespaceExportSinkResponse: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} diff --git a/cloud/cloudservice/v1/request_response.pb.go b/cloud/cloudservice/v1/request_response.pb.go deleted file mode 100644 index fd6f66c4..00000000 --- a/cloud/cloudservice/v1/request_response.pb.go +++ /dev/null @@ -1,5829 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/cloudservice/v1/request_response.proto - -package cloudservice - -import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - - v16 "go.temporal.io/api/cloud/account/v1" - v1 "go.temporal.io/api/cloud/identity/v1" - v12 "go.temporal.io/api/cloud/namespace/v1" - v14 "go.temporal.io/api/cloud/nexus/v1" - v11 "go.temporal.io/api/cloud/operation/v1" - v13 "go.temporal.io/api/cloud/region/v1" - v15 "go.temporal.io/api/cloud/usage/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -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) -) - -type GetUsersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The requested size of the page to retrieve - optional. - // Cannot exceed 1000. Defaults to 100. - PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response - optional. - PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Filter users by email address - optional. - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - // Filter users by the namespace they have access to - optional. - Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUsersRequest) Reset() { - *x = GetUsersRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUsersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUsersRequest) ProtoMessage() {} - -func (x *GetUsersRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead. -func (*GetUsersRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{0} -} - -func (x *GetUsersRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetUsersRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *GetUsersRequest) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *GetUsersRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -type GetUsersResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of users in ascending ids order - Users []*v1.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` - // The next page's token - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUsersResponse) Reset() { - *x = GetUsersResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUsersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUsersResponse) ProtoMessage() {} - -func (x *GetUsersResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead. -func (*GetUsersResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{1} -} - -func (x *GetUsersResponse) GetUsers() []*v1.User { - if x != nil { - return x.Users - } - return nil -} - -func (x *GetUsersResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type GetUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the user to get - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserRequest) Reset() { - *x = GetUserRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[2] - 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_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[2] - if 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_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{2} -} - -func (x *GetUserRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type GetUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The user - User *v1.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserResponse) Reset() { - *x = GetUserResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[3] - 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_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[3] - if 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_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{3} -} - -func (x *GetUserResponse) GetUser() *v1.User { - if x != nil { - return x.User - } - return nil -} - -type CreateUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The spec for the user to invite - Spec *v1.UserSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - // The id to use for this async operation - optional - AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateUserRequest) Reset() { - *x = CreateUserRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserRequest) ProtoMessage() {} - -func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead. -func (*CreateUserRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateUserRequest) GetSpec() *v1.UserSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *CreateUserRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type CreateUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the user that was invited - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - // The async operation - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,2,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateUserResponse) Reset() { - *x = CreateUserResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateUserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserResponse) ProtoMessage() {} - -func (x *CreateUserResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead. -func (*CreateUserResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{5} -} - -func (x *CreateUserResponse) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *CreateUserResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type UpdateUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the user to update - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - // The new user specification - Spec *v1.UserSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the user for which this update is intended for - // The latest version can be found in the GetUser operation response - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateUserRequest) Reset() { - *x = UpdateUserRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserRequest) ProtoMessage() {} - -func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{6} -} - -func (x *UpdateUserRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UpdateUserRequest) GetSpec() *v1.UserSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateUserRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateUserRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateUserResponse) Reset() { - *x = UpdateUserResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateUserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserResponse) ProtoMessage() {} - -func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead. -func (*UpdateUserResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{7} -} - -func (x *UpdateUserResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type DeleteUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the user to delete - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - // The version of the user for which this delete is intended for - // The latest version can be found in the GetUser operation response - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteUserRequest) Reset() { - *x = DeleteUserRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteUserRequest) ProtoMessage() {} - -func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead. -func (*DeleteUserRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{8} -} - -func (x *DeleteUserRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *DeleteUserRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *DeleteUserRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type DeleteUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteUserResponse) Reset() { - *x = DeleteUserResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteUserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteUserResponse) ProtoMessage() {} - -func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead. -func (*DeleteUserResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{9} -} - -func (x *DeleteUserResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type SetUserNamespaceAccessRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to set permissions for - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The id of the user to set permissions for - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - // The namespace access to assign the user - Access *v1.NamespaceAccess `protobuf:"bytes,3,opt,name=access,proto3" json:"access,omitempty"` - // The version of the user for which this update is intended for - // The latest version can be found in the GetUser operation response - ResourceVersion string `protobuf:"bytes,4,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetUserNamespaceAccessRequest) Reset() { - *x = SetUserNamespaceAccessRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetUserNamespaceAccessRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetUserNamespaceAccessRequest) ProtoMessage() {} - -func (x *SetUserNamespaceAccessRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetUserNamespaceAccessRequest.ProtoReflect.Descriptor instead. -func (*SetUserNamespaceAccessRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{10} -} - -func (x *SetUserNamespaceAccessRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *SetUserNamespaceAccessRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *SetUserNamespaceAccessRequest) GetAccess() *v1.NamespaceAccess { - if x != nil { - return x.Access - } - return nil -} - -func (x *SetUserNamespaceAccessRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *SetUserNamespaceAccessRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type SetUserNamespaceAccessResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetUserNamespaceAccessResponse) Reset() { - *x = SetUserNamespaceAccessResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetUserNamespaceAccessResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetUserNamespaceAccessResponse) ProtoMessage() {} - -func (x *SetUserNamespaceAccessResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetUserNamespaceAccessResponse.ProtoReflect.Descriptor instead. -func (*SetUserNamespaceAccessResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{11} -} - -func (x *SetUserNamespaceAccessResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetAsyncOperationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the async operation to get - AsyncOperationId string `protobuf:"bytes,1,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetAsyncOperationRequest) Reset() { - *x = GetAsyncOperationRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetAsyncOperationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAsyncOperationRequest) ProtoMessage() {} - -func (x *GetAsyncOperationRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAsyncOperationRequest.ProtoReflect.Descriptor instead. -func (*GetAsyncOperationRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{12} -} - -func (x *GetAsyncOperationRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type GetAsyncOperationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetAsyncOperationResponse) Reset() { - *x = GetAsyncOperationResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetAsyncOperationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAsyncOperationResponse) ProtoMessage() {} - -func (x *GetAsyncOperationResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAsyncOperationResponse.ProtoReflect.Descriptor instead. -func (*GetAsyncOperationResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{13} -} - -func (x *GetAsyncOperationResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type CreateNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace specification. - Spec *v12.NamespaceSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateNamespaceRequest) Reset() { - *x = CreateNamespaceRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNamespaceRequest) ProtoMessage() {} - -func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead. -func (*CreateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{14} -} - -func (x *CreateNamespaceRequest) GetSpec() *v12.NamespaceSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *CreateNamespaceRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type CreateNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace that was created. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,2,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateNamespaceResponse) Reset() { - *x = CreateNamespaceResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNamespaceResponse) ProtoMessage() {} - -func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[15] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead. -func (*CreateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{15} -} - -func (x *CreateNamespaceResponse) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *CreateNamespaceResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetNamespacesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The requested size of the page to retrieve. - // Cannot exceed 1000. - // Optional, defaults to 100. - PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response. - // Optional, defaults to empty. - PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Filter namespaces by their name. - // Optional, defaults to empty. - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespacesRequest) Reset() { - *x = GetNamespacesRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespacesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespacesRequest) ProtoMessage() {} - -func (x *GetNamespacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespacesRequest.ProtoReflect.Descriptor instead. -func (*GetNamespacesRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{16} -} - -func (x *GetNamespacesRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetNamespacesRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *GetNamespacesRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type GetNamespacesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of namespaces in ascending name order. - Namespaces []*v12.Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` - // The next page's token. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespacesResponse) Reset() { - *x = GetNamespacesResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespacesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespacesResponse) ProtoMessage() {} - -func (x *GetNamespacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespacesResponse.ProtoReflect.Descriptor instead. -func (*GetNamespacesResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{17} -} - -func (x *GetNamespacesResponse) GetNamespaces() []*v12.Namespace { - if x != nil { - return x.Namespaces - } - return nil -} - -func (x *GetNamespacesResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type GetNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to get. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespaceRequest) Reset() { - *x = GetNamespaceRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceRequest) ProtoMessage() {} - -func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead. -func (*GetNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{18} -} - -func (x *GetNamespaceRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -type GetNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace. - Namespace *v12.Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespaceResponse) Reset() { - *x = GetNamespaceResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceResponse) ProtoMessage() {} - -func (x *GetNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[19] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceResponse.ProtoReflect.Descriptor instead. -func (*GetNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{19} -} - -func (x *GetNamespaceResponse) GetNamespace() *v12.Namespace { - if x != nil { - return x.Namespace - } - return nil -} - -type UpdateNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to update. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The new namespace specification. - Spec *v12.NamespaceSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the namespace for which this update is intended for. - // The latest version can be found in the namespace status. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateNamespaceRequest) Reset() { - *x = UpdateNamespaceRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNamespaceRequest) ProtoMessage() {} - -func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[20] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{20} -} - -func (x *UpdateNamespaceRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *UpdateNamespaceRequest) GetSpec() *v12.NamespaceSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateNamespaceRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateNamespaceRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateNamespaceResponse) Reset() { - *x = UpdateNamespaceResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNamespaceResponse) ProtoMessage() {} - -func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[21] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{21} -} - -func (x *UpdateNamespaceResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type RenameCustomSearchAttributeRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to rename the custom search attribute for. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The existing name of the custom search attribute to be renamed. - ExistingCustomSearchAttributeName string `protobuf:"bytes,2,opt,name=existing_custom_search_attribute_name,json=existingCustomSearchAttributeName,proto3" json:"existing_custom_search_attribute_name,omitempty"` - // The new name of the custom search attribute. - NewCustomSearchAttributeName string `protobuf:"bytes,3,opt,name=new_custom_search_attribute_name,json=newCustomSearchAttributeName,proto3" json:"new_custom_search_attribute_name,omitempty"` - // The version of the namespace for which this update is intended for. - // The latest version can be found in the namespace status. - ResourceVersion string `protobuf:"bytes,4,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RenameCustomSearchAttributeRequest) Reset() { - *x = RenameCustomSearchAttributeRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RenameCustomSearchAttributeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RenameCustomSearchAttributeRequest) ProtoMessage() {} - -func (x *RenameCustomSearchAttributeRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[22] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RenameCustomSearchAttributeRequest.ProtoReflect.Descriptor instead. -func (*RenameCustomSearchAttributeRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{22} -} - -func (x *RenameCustomSearchAttributeRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *RenameCustomSearchAttributeRequest) GetExistingCustomSearchAttributeName() string { - if x != nil { - return x.ExistingCustomSearchAttributeName - } - return "" -} - -func (x *RenameCustomSearchAttributeRequest) GetNewCustomSearchAttributeName() string { - if x != nil { - return x.NewCustomSearchAttributeName - } - return "" -} - -func (x *RenameCustomSearchAttributeRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *RenameCustomSearchAttributeRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type RenameCustomSearchAttributeResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RenameCustomSearchAttributeResponse) Reset() { - *x = RenameCustomSearchAttributeResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RenameCustomSearchAttributeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RenameCustomSearchAttributeResponse) ProtoMessage() {} - -func (x *RenameCustomSearchAttributeResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[23] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RenameCustomSearchAttributeResponse.ProtoReflect.Descriptor instead. -func (*RenameCustomSearchAttributeResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{23} -} - -func (x *RenameCustomSearchAttributeResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type DeleteNamespaceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to delete. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The version of the namespace for which this delete is intended for. - // The latest version can be found in the namespace status. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteNamespaceRequest) Reset() { - *x = DeleteNamespaceRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteNamespaceRequest) ProtoMessage() {} - -func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[24] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead. -func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{24} -} - -func (x *DeleteNamespaceRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *DeleteNamespaceRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *DeleteNamespaceRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type DeleteNamespaceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteNamespaceResponse) Reset() { - *x = DeleteNamespaceResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteNamespaceResponse) ProtoMessage() {} - -func (x *DeleteNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[25] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteNamespaceResponse.ProtoReflect.Descriptor instead. -func (*DeleteNamespaceResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{25} -} - -func (x *DeleteNamespaceResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type FailoverNamespaceRegionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to failover. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The id of the region to failover to. - // Must be a region that the namespace is currently available in. - Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FailoverNamespaceRegionRequest) Reset() { - *x = FailoverNamespaceRegionRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FailoverNamespaceRegionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailoverNamespaceRegionRequest) ProtoMessage() {} - -func (x *FailoverNamespaceRegionRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[26] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FailoverNamespaceRegionRequest.ProtoReflect.Descriptor instead. -func (*FailoverNamespaceRegionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{26} -} - -func (x *FailoverNamespaceRegionRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *FailoverNamespaceRegionRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *FailoverNamespaceRegionRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type FailoverNamespaceRegionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *FailoverNamespaceRegionResponse) Reset() { - *x = FailoverNamespaceRegionResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *FailoverNamespaceRegionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailoverNamespaceRegionResponse) ProtoMessage() {} - -func (x *FailoverNamespaceRegionResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[27] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FailoverNamespaceRegionResponse.ProtoReflect.Descriptor instead. -func (*FailoverNamespaceRegionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{27} -} - -func (x *FailoverNamespaceRegionResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type AddNamespaceRegionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to add the region to. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The id of the standby region to add to the namespace. - // The GetRegions API can be used to get the list of valid region ids. - // Example: "aws-us-west-2". - Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` - // The version of the namespace for which this add region operation is intended for. - // The latest version can be found in the GetNamespace operation response. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AddNamespaceRegionRequest) Reset() { - *x = AddNamespaceRegionRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AddNamespaceRegionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddNamespaceRegionRequest) ProtoMessage() {} - -func (x *AddNamespaceRegionRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[28] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddNamespaceRegionRequest.ProtoReflect.Descriptor instead. -func (*AddNamespaceRegionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{28} -} - -func (x *AddNamespaceRegionRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *AddNamespaceRegionRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *AddNamespaceRegionRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *AddNamespaceRegionRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type AddNamespaceRegionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AddNamespaceRegionResponse) Reset() { - *x = AddNamespaceRegionResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AddNamespaceRegionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddNamespaceRegionResponse) ProtoMessage() {} - -func (x *AddNamespaceRegionResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[29] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddNamespaceRegionResponse.ProtoReflect.Descriptor instead. -func (*AddNamespaceRegionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{29} -} - -func (x *AddNamespaceRegionResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetRegionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetRegionsRequest) Reset() { - *x = GetRegionsRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetRegionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRegionsRequest) ProtoMessage() {} - -func (x *GetRegionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[30] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRegionsRequest.ProtoReflect.Descriptor instead. -func (*GetRegionsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{30} -} - -type GetRegionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The temporal cloud regions. - Regions []*v13.Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetRegionsResponse) Reset() { - *x = GetRegionsResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetRegionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRegionsResponse) ProtoMessage() {} - -func (x *GetRegionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[31] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRegionsResponse.ProtoReflect.Descriptor instead. -func (*GetRegionsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{31} -} - -func (x *GetRegionsResponse) GetRegions() []*v13.Region { - if x != nil { - return x.Regions - } - return nil -} - -type GetRegionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the region to get. - Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetRegionRequest) Reset() { - *x = GetRegionRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetRegionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRegionRequest) ProtoMessage() {} - -func (x *GetRegionRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[32] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRegionRequest.ProtoReflect.Descriptor instead. -func (*GetRegionRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{32} -} - -func (x *GetRegionRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -type GetRegionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The temporal cloud region. - Region *v13.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetRegionResponse) Reset() { - *x = GetRegionResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetRegionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRegionResponse) ProtoMessage() {} - -func (x *GetRegionResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[33] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRegionResponse.ProtoReflect.Descriptor instead. -func (*GetRegionResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{33} -} - -func (x *GetRegionResponse) GetRegion() *v13.Region { - if x != nil { - return x.Region - } - return nil -} - -type GetApiKeysRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The requested size of the page to retrieve - optional. - // Cannot exceed 1000. Defaults to 100. - PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response - optional. - PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Filter api keys by owner id - optional. - OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // Filter api keys by owner type - optional. - // Possible values: user, service-account - // - // Deprecated: Marked as deprecated in temporal/api/cloud/cloudservice/v1/request_response.proto. - OwnerTypeDeprecated string `protobuf:"bytes,4,opt,name=owner_type_deprecated,json=ownerTypeDeprecated,proto3" json:"owner_type_deprecated,omitempty"` - // Filter api keys by owner type - optional. - // temporal:enums:replaces=owner_type_deprecated - OwnerType v1.OwnerType `protobuf:"varint,5,opt,name=owner_type,json=ownerType,proto3,enum=temporal.api.cloud.identity.v1.OwnerType" json:"owner_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetApiKeysRequest) Reset() { - *x = GetApiKeysRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetApiKeysRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetApiKeysRequest) ProtoMessage() {} - -func (x *GetApiKeysRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[34] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetApiKeysRequest.ProtoReflect.Descriptor instead. -func (*GetApiKeysRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{34} -} - -func (x *GetApiKeysRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetApiKeysRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *GetApiKeysRequest) GetOwnerId() string { - if x != nil { - return x.OwnerId - } - return "" -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/cloudservice/v1/request_response.proto. -func (x *GetApiKeysRequest) GetOwnerTypeDeprecated() string { - if x != nil { - return x.OwnerTypeDeprecated - } - return "" -} - -func (x *GetApiKeysRequest) GetOwnerType() v1.OwnerType { - if x != nil { - return x.OwnerType - } - return v1.OwnerType(0) -} - -type GetApiKeysResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of api keys in ascending id order. - ApiKeys []*v1.ApiKey `protobuf:"bytes,1,rep,name=api_keys,json=apiKeys,proto3" json:"api_keys,omitempty"` - // The next page's token. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetApiKeysResponse) Reset() { - *x = GetApiKeysResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetApiKeysResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetApiKeysResponse) ProtoMessage() {} - -func (x *GetApiKeysResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[35] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetApiKeysResponse.ProtoReflect.Descriptor instead. -func (*GetApiKeysResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{35} -} - -func (x *GetApiKeysResponse) GetApiKeys() []*v1.ApiKey { - if x != nil { - return x.ApiKeys - } - return nil -} - -func (x *GetApiKeysResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type GetApiKeyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the api key to get. - KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetApiKeyRequest) Reset() { - *x = GetApiKeyRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetApiKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetApiKeyRequest) ProtoMessage() {} - -func (x *GetApiKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[36] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetApiKeyRequest.ProtoReflect.Descriptor instead. -func (*GetApiKeyRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{36} -} - -func (x *GetApiKeyRequest) GetKeyId() string { - if x != nil { - return x.KeyId - } - return "" -} - -type GetApiKeyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The api key. - ApiKey *v1.ApiKey `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetApiKeyResponse) Reset() { - *x = GetApiKeyResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetApiKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetApiKeyResponse) ProtoMessage() {} - -func (x *GetApiKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[37] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetApiKeyResponse.ProtoReflect.Descriptor instead. -func (*GetApiKeyResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{37} -} - -func (x *GetApiKeyResponse) GetApiKey() *v1.ApiKey { - if x != nil { - return x.ApiKey - } - return nil -} - -type CreateApiKeyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The spec for the api key to create. - // Create api key only supports service-account owner type for now. - Spec *v1.ApiKeySpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateApiKeyRequest) Reset() { - *x = CreateApiKeyRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateApiKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateApiKeyRequest) ProtoMessage() {} - -func (x *CreateApiKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[38] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateApiKeyRequest.ProtoReflect.Descriptor instead. -func (*CreateApiKeyRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{38} -} - -func (x *CreateApiKeyRequest) GetSpec() *v1.ApiKeySpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *CreateApiKeyRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type CreateApiKeyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the api key created. - KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - // The token of the api key created. - // This is a secret and should be stored securely. - // It will not be retrievable after this response. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,3,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateApiKeyResponse) Reset() { - *x = CreateApiKeyResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateApiKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateApiKeyResponse) ProtoMessage() {} - -func (x *CreateApiKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[39] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateApiKeyResponse.ProtoReflect.Descriptor instead. -func (*CreateApiKeyResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{39} -} - -func (x *CreateApiKeyResponse) GetKeyId() string { - if x != nil { - return x.KeyId - } - return "" -} - -func (x *CreateApiKeyResponse) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *CreateApiKeyResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type UpdateApiKeyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the api key to update. - KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - // The new api key specification. - Spec *v1.ApiKeySpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the api key for which this update is intended for. - // The latest version can be found in the GetApiKey operation response. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateApiKeyRequest) Reset() { - *x = UpdateApiKeyRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateApiKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateApiKeyRequest) ProtoMessage() {} - -func (x *UpdateApiKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[40] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateApiKeyRequest.ProtoReflect.Descriptor instead. -func (*UpdateApiKeyRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{40} -} - -func (x *UpdateApiKeyRequest) GetKeyId() string { - if x != nil { - return x.KeyId - } - return "" -} - -func (x *UpdateApiKeyRequest) GetSpec() *v1.ApiKeySpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateApiKeyRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateApiKeyRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateApiKeyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateApiKeyResponse) Reset() { - *x = UpdateApiKeyResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateApiKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateApiKeyResponse) ProtoMessage() {} - -func (x *UpdateApiKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[41] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateApiKeyResponse.ProtoReflect.Descriptor instead. -func (*UpdateApiKeyResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{41} -} - -func (x *UpdateApiKeyResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type DeleteApiKeyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the api key to delete. - KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - // The version of the api key for which this delete is intended for. - // The latest version can be found in the GetApiKey operation response. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteApiKeyRequest) Reset() { - *x = DeleteApiKeyRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteApiKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteApiKeyRequest) ProtoMessage() {} - -func (x *DeleteApiKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[42] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteApiKeyRequest.ProtoReflect.Descriptor instead. -func (*DeleteApiKeyRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{42} -} - -func (x *DeleteApiKeyRequest) GetKeyId() string { - if x != nil { - return x.KeyId - } - return "" -} - -func (x *DeleteApiKeyRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *DeleteApiKeyRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type DeleteApiKeyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteApiKeyResponse) Reset() { - *x = DeleteApiKeyResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteApiKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteApiKeyResponse) ProtoMessage() {} - -func (x *DeleteApiKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[43] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteApiKeyResponse.ProtoReflect.Descriptor instead. -func (*DeleteApiKeyResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{43} -} - -func (x *DeleteApiKeyResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetNexusEndpointsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The requested size of the page to retrieve - optional. - // Cannot exceed 1000. Defaults to 100. - PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response - optional. - PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // optional, treated as an AND if specified - TargetNamespaceId string `protobuf:"bytes,3,opt,name=target_namespace_id,json=targetNamespaceId,proto3" json:"target_namespace_id,omitempty"` - // optional, treated as an AND if specified - TargetTaskQueue string `protobuf:"bytes,4,opt,name=target_task_queue,json=targetTaskQueue,proto3" json:"target_task_queue,omitempty"` - // Filter endpoints by their name - optional, treated as an AND if specified. Specifying this will result in zero or one results. - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNexusEndpointsRequest) Reset() { - *x = GetNexusEndpointsRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNexusEndpointsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNexusEndpointsRequest) ProtoMessage() {} - -func (x *GetNexusEndpointsRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[44] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNexusEndpointsRequest.ProtoReflect.Descriptor instead. -func (*GetNexusEndpointsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{44} -} - -func (x *GetNexusEndpointsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetNexusEndpointsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *GetNexusEndpointsRequest) GetTargetNamespaceId() string { - if x != nil { - return x.TargetNamespaceId - } - return "" -} - -func (x *GetNexusEndpointsRequest) GetTargetTaskQueue() string { - if x != nil { - return x.TargetTaskQueue - } - return "" -} - -func (x *GetNexusEndpointsRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type GetNexusEndpointsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of endpoints in ascending id order. - Endpoints []*v14.Endpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` - // The next page's token. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNexusEndpointsResponse) Reset() { - *x = GetNexusEndpointsResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNexusEndpointsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNexusEndpointsResponse) ProtoMessage() {} - -func (x *GetNexusEndpointsResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[45] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNexusEndpointsResponse.ProtoReflect.Descriptor instead. -func (*GetNexusEndpointsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{45} -} - -func (x *GetNexusEndpointsResponse) GetEndpoints() []*v14.Endpoint { - if x != nil { - return x.Endpoints - } - return nil -} - -func (x *GetNexusEndpointsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type GetNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the nexus endpoint to get. - EndpointId string `protobuf:"bytes,1,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNexusEndpointRequest) Reset() { - *x = GetNexusEndpointRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNexusEndpointRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNexusEndpointRequest) ProtoMessage() {} - -func (x *GetNexusEndpointRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[46] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*GetNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{46} -} - -func (x *GetNexusEndpointRequest) GetEndpointId() string { - if x != nil { - return x.EndpointId - } - return "" -} - -type GetNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The nexus endpoint. - Endpoint *v14.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNexusEndpointResponse) Reset() { - *x = GetNexusEndpointResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNexusEndpointResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNexusEndpointResponse) ProtoMessage() {} - -func (x *GetNexusEndpointResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[47] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*GetNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{47} -} - -func (x *GetNexusEndpointResponse) GetEndpoint() *v14.Endpoint { - if x != nil { - return x.Endpoint - } - return nil -} - -type CreateNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The spec for the nexus endpoint. - Spec *v14.EndpointSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateNexusEndpointRequest) Reset() { - *x = CreateNexusEndpointRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateNexusEndpointRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNexusEndpointRequest) ProtoMessage() {} - -func (x *CreateNexusEndpointRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[48] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*CreateNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{48} -} - -func (x *CreateNexusEndpointRequest) GetSpec() *v14.EndpointSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *CreateNexusEndpointRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type CreateNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the endpoint that was created. - EndpointId string `protobuf:"bytes,1,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,2,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateNexusEndpointResponse) Reset() { - *x = CreateNexusEndpointResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateNexusEndpointResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNexusEndpointResponse) ProtoMessage() {} - -func (x *CreateNexusEndpointResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[49] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*CreateNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{49} -} - -func (x *CreateNexusEndpointResponse) GetEndpointId() string { - if x != nil { - return x.EndpointId - } - return "" -} - -func (x *CreateNexusEndpointResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type UpdateNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the nexus endpoint to update. - EndpointId string `protobuf:"bytes,1,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` - // The updated nexus endpoint specification. - Spec *v14.EndpointSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the nexus endpoint for which this update is intended for. - // The latest version can be found in the GetNexusEndpoint operation response. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateNexusEndpointRequest) Reset() { - *x = UpdateNexusEndpointRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateNexusEndpointRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNexusEndpointRequest) ProtoMessage() {} - -func (x *UpdateNexusEndpointRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[50] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*UpdateNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{50} -} - -func (x *UpdateNexusEndpointRequest) GetEndpointId() string { - if x != nil { - return x.EndpointId - } - return "" -} - -func (x *UpdateNexusEndpointRequest) GetSpec() *v14.EndpointSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateNexusEndpointRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateNexusEndpointRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateNexusEndpointResponse) Reset() { - *x = UpdateNexusEndpointResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateNexusEndpointResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNexusEndpointResponse) ProtoMessage() {} - -func (x *UpdateNexusEndpointResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[51] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*UpdateNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{51} -} - -func (x *UpdateNexusEndpointResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type DeleteNexusEndpointRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the nexus endpoint to delete. - EndpointId string `protobuf:"bytes,1,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` - // The version of the endpoint for which this delete is intended for. - // The latest version can be found in the GetNexusEndpoint operation response. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteNexusEndpointRequest) Reset() { - *x = DeleteNexusEndpointRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteNexusEndpointRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteNexusEndpointRequest) ProtoMessage() {} - -func (x *DeleteNexusEndpointRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[52] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteNexusEndpointRequest.ProtoReflect.Descriptor instead. -func (*DeleteNexusEndpointRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{52} -} - -func (x *DeleteNexusEndpointRequest) GetEndpointId() string { - if x != nil { - return x.EndpointId - } - return "" -} - -func (x *DeleteNexusEndpointRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *DeleteNexusEndpointRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type DeleteNexusEndpointResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteNexusEndpointResponse) Reset() { - *x = DeleteNexusEndpointResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteNexusEndpointResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteNexusEndpointResponse) ProtoMessage() {} - -func (x *DeleteNexusEndpointResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[53] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteNexusEndpointResponse.ProtoReflect.Descriptor instead. -func (*DeleteNexusEndpointResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{53} -} - -func (x *DeleteNexusEndpointResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetUserGroupsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The requested size of the page to retrieve - optional. - // Cannot exceed 1000. Defaults to 100. - PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response - optional. - PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Filter groups by the namespace they have access to - optional. - Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - // Filter groups by the display name - optional. - DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // Filter groups by the google group specification - optional. - GoogleGroup *GetUserGroupsRequest_GoogleGroupFilter `protobuf:"bytes,5,opt,name=google_group,json=googleGroup,proto3" json:"google_group,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserGroupsRequest) Reset() { - *x = GetUserGroupsRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[54] - 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_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[54] - if 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_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{54} -} - -func (x *GetUserGroupsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetUserGroupsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *GetUserGroupsRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *GetUserGroupsRequest) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *GetUserGroupsRequest) GetGoogleGroup() *GetUserGroupsRequest_GoogleGroupFilter { - if x != nil { - return x.GoogleGroup - } - return nil -} - -type GetUserGroupsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of groups in ascending name order. - Groups []*v1.UserGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` - // The next page's token. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserGroupsResponse) Reset() { - *x = GetUserGroupsResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[55] - 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_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[55] - if 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_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{55} -} - -func (x *GetUserGroupsResponse) GetGroups() []*v1.UserGroup { - if x != nil { - return x.Groups - } - return nil -} - -func (x *GetUserGroupsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type GetUserGroupRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the group to get. - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserGroupRequest) Reset() { - *x = GetUserGroupRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUserGroupRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserGroupRequest) ProtoMessage() {} - -func (x *GetUserGroupRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[56] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUserGroupRequest.ProtoReflect.Descriptor instead. -func (*GetUserGroupRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{56} -} - -func (x *GetUserGroupRequest) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -type GetUserGroupResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The group. - Group *v1.UserGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserGroupResponse) Reset() { - *x = GetUserGroupResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUserGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserGroupResponse) ProtoMessage() {} - -func (x *GetUserGroupResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[57] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUserGroupResponse.ProtoReflect.Descriptor instead. -func (*GetUserGroupResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{57} -} - -func (x *GetUserGroupResponse) GetGroup() *v1.UserGroup { - if x != nil { - return x.Group - } - return nil -} - -type CreateUserGroupRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The spec for the group to create. - Spec *v1.UserGroupSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateUserGroupRequest) Reset() { - *x = CreateUserGroupRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateUserGroupRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserGroupRequest) ProtoMessage() {} - -func (x *CreateUserGroupRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[58] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateUserGroupRequest.ProtoReflect.Descriptor instead. -func (*CreateUserGroupRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{58} -} - -func (x *CreateUserGroupRequest) GetSpec() *v1.UserGroupSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *CreateUserGroupRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type CreateUserGroupResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the group that was created. - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,2,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateUserGroupResponse) Reset() { - *x = CreateUserGroupResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateUserGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserGroupResponse) ProtoMessage() {} - -func (x *CreateUserGroupResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[59] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateUserGroupResponse.ProtoReflect.Descriptor instead. -func (*CreateUserGroupResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{59} -} - -func (x *CreateUserGroupResponse) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *CreateUserGroupResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type UpdateUserGroupRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the group to update. - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // The new group specification. - Spec *v1.UserGroupSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the group for which this update is intended for. - // The latest version can be found in the GetGroup operation response. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateUserGroupRequest) Reset() { - *x = UpdateUserGroupRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateUserGroupRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserGroupRequest) ProtoMessage() {} - -func (x *UpdateUserGroupRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[60] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserGroupRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserGroupRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{60} -} - -func (x *UpdateUserGroupRequest) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *UpdateUserGroupRequest) GetSpec() *v1.UserGroupSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateUserGroupRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateUserGroupRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateUserGroupResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateUserGroupResponse) Reset() { - *x = UpdateUserGroupResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateUserGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserGroupResponse) ProtoMessage() {} - -func (x *UpdateUserGroupResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[61] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserGroupResponse.ProtoReflect.Descriptor instead. -func (*UpdateUserGroupResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{61} -} - -func (x *UpdateUserGroupResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type DeleteUserGroupRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the group to delete. - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // The version of the group for which this delete is intended for. - // The latest version can be found in the GetGroup operation response. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteUserGroupRequest) Reset() { - *x = DeleteUserGroupRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteUserGroupRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteUserGroupRequest) ProtoMessage() {} - -func (x *DeleteUserGroupRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[62] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteUserGroupRequest.ProtoReflect.Descriptor instead. -func (*DeleteUserGroupRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{62} -} - -func (x *DeleteUserGroupRequest) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *DeleteUserGroupRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *DeleteUserGroupRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type DeleteUserGroupResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteUserGroupResponse) Reset() { - *x = DeleteUserGroupResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteUserGroupResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteUserGroupResponse) ProtoMessage() {} - -func (x *DeleteUserGroupResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[63] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteUserGroupResponse.ProtoReflect.Descriptor instead. -func (*DeleteUserGroupResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{63} -} - -func (x *DeleteUserGroupResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type SetUserGroupNamespaceAccessRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to set permissions for. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The id of the group to set permissions for. - GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // The namespace access to assign the group. If left empty, the group will be removed from the namespace access. - Access *v1.NamespaceAccess `protobuf:"bytes,3,opt,name=access,proto3" json:"access,omitempty"` - // The version of the group for which this update is intended for. - // The latest version can be found in the GetGroup operation response. - ResourceVersion string `protobuf:"bytes,4,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetUserGroupNamespaceAccessRequest) Reset() { - *x = SetUserGroupNamespaceAccessRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetUserGroupNamespaceAccessRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetUserGroupNamespaceAccessRequest) ProtoMessage() {} - -func (x *SetUserGroupNamespaceAccessRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[64] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetUserGroupNamespaceAccessRequest.ProtoReflect.Descriptor instead. -func (*SetUserGroupNamespaceAccessRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{64} -} - -func (x *SetUserGroupNamespaceAccessRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *SetUserGroupNamespaceAccessRequest) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *SetUserGroupNamespaceAccessRequest) GetAccess() *v1.NamespaceAccess { - if x != nil { - return x.Access - } - return nil -} - -func (x *SetUserGroupNamespaceAccessRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *SetUserGroupNamespaceAccessRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type SetUserGroupNamespaceAccessResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetUserGroupNamespaceAccessResponse) Reset() { - *x = SetUserGroupNamespaceAccessResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetUserGroupNamespaceAccessResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetUserGroupNamespaceAccessResponse) ProtoMessage() {} - -func (x *SetUserGroupNamespaceAccessResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[65] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetUserGroupNamespaceAccessResponse.ProtoReflect.Descriptor instead. -func (*SetUserGroupNamespaceAccessResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{65} -} - -func (x *SetUserGroupNamespaceAccessResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type CreateServiceAccountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The spec of the service account to create. - Spec *v1.ServiceAccountSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - // The ID to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateServiceAccountRequest) Reset() { - *x = CreateServiceAccountRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateServiceAccountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateServiceAccountRequest) ProtoMessage() {} - -func (x *CreateServiceAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[66] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateServiceAccountRequest.ProtoReflect.Descriptor instead. -func (*CreateServiceAccountRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{66} -} - -func (x *CreateServiceAccountRequest) GetSpec() *v1.ServiceAccountSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *CreateServiceAccountRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type CreateServiceAccountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the created service account. - ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,2,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateServiceAccountResponse) Reset() { - *x = CreateServiceAccountResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateServiceAccountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateServiceAccountResponse) ProtoMessage() {} - -func (x *CreateServiceAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[67] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateServiceAccountResponse.ProtoReflect.Descriptor instead. -func (*CreateServiceAccountResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{67} -} - -func (x *CreateServiceAccountResponse) GetServiceAccountId() string { - if x != nil { - return x.ServiceAccountId - } - return "" -} - -func (x *CreateServiceAccountResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetServiceAccountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // ID of the service account to retrieve. - ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetServiceAccountRequest) Reset() { - *x = GetServiceAccountRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetServiceAccountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetServiceAccountRequest) ProtoMessage() {} - -func (x *GetServiceAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[68] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetServiceAccountRequest.ProtoReflect.Descriptor instead. -func (*GetServiceAccountRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{68} -} - -func (x *GetServiceAccountRequest) GetServiceAccountId() string { - if x != nil { - return x.ServiceAccountId - } - return "" -} - -type GetServiceAccountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The service account retrieved. - ServiceAccount *v1.ServiceAccount `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetServiceAccountResponse) Reset() { - *x = GetServiceAccountResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetServiceAccountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetServiceAccountResponse) ProtoMessage() {} - -func (x *GetServiceAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[69] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetServiceAccountResponse.ProtoReflect.Descriptor instead. -func (*GetServiceAccountResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{69} -} - -func (x *GetServiceAccountResponse) GetServiceAccount() *v1.ServiceAccount { - if x != nil { - return x.ServiceAccount - } - return nil -} - -type GetServiceAccountsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The requested size of the page to retrieve - optional. - // Cannot exceed 1000. Defaults to 100. - PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response - optional. - PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetServiceAccountsRequest) Reset() { - *x = GetServiceAccountsRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetServiceAccountsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetServiceAccountsRequest) ProtoMessage() {} - -func (x *GetServiceAccountsRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[70] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetServiceAccountsRequest.ProtoReflect.Descriptor instead. -func (*GetServiceAccountsRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{70} -} - -func (x *GetServiceAccountsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetServiceAccountsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -type GetServiceAccountsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of service accounts in ascending ID order. - ServiceAccount []*v1.ServiceAccount `protobuf:"bytes,1,rep,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` - // The next page token, set if there is another page. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetServiceAccountsResponse) Reset() { - *x = GetServiceAccountsResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetServiceAccountsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetServiceAccountsResponse) ProtoMessage() {} - -func (x *GetServiceAccountsResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[71] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetServiceAccountsResponse.ProtoReflect.Descriptor instead. -func (*GetServiceAccountsResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{71} -} - -func (x *GetServiceAccountsResponse) GetServiceAccount() []*v1.ServiceAccount { - if x != nil { - return x.ServiceAccount - } - return nil -} - -func (x *GetServiceAccountsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type UpdateServiceAccountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the service account to update. - ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - // The new service account specification. - Spec *v1.ServiceAccountSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the service account for which this update is intended for. - // The latest version can be found in the GetServiceAccount response. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The ID to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateServiceAccountRequest) Reset() { - *x = UpdateServiceAccountRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateServiceAccountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateServiceAccountRequest) ProtoMessage() {} - -func (x *UpdateServiceAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[72] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateServiceAccountRequest.ProtoReflect.Descriptor instead. -func (*UpdateServiceAccountRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{72} -} - -func (x *UpdateServiceAccountRequest) GetServiceAccountId() string { - if x != nil { - return x.ServiceAccountId - } - return "" -} - -func (x *UpdateServiceAccountRequest) GetSpec() *v1.ServiceAccountSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateServiceAccountRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateServiceAccountRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateServiceAccountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateServiceAccountResponse) Reset() { - *x = UpdateServiceAccountResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateServiceAccountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateServiceAccountResponse) ProtoMessage() {} - -func (x *UpdateServiceAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[73] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateServiceAccountResponse.ProtoReflect.Descriptor instead. -func (*UpdateServiceAccountResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{73} -} - -func (x *UpdateServiceAccountResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type DeleteServiceAccountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The ID of the service account to delete; - ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"` - // The version of the service account for which this update is intended for. - // The latest version can be found in the GetServiceAccount response. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The ID to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteServiceAccountRequest) Reset() { - *x = DeleteServiceAccountRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteServiceAccountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteServiceAccountRequest) ProtoMessage() {} - -func (x *DeleteServiceAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[74] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteServiceAccountRequest.ProtoReflect.Descriptor instead. -func (*DeleteServiceAccountRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{74} -} - -func (x *DeleteServiceAccountRequest) GetServiceAccountId() string { - if x != nil { - return x.ServiceAccountId - } - return "" -} - -func (x *DeleteServiceAccountRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *DeleteServiceAccountRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type DeleteServiceAccountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteServiceAccountResponse) Reset() { - *x = DeleteServiceAccountResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteServiceAccountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteServiceAccountResponse) ProtoMessage() {} - -func (x *DeleteServiceAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[75] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteServiceAccountResponse.ProtoReflect.Descriptor instead. -func (*DeleteServiceAccountResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{75} -} - -func (x *DeleteServiceAccountResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetUsageRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Filter for UTC time >= - optional. - // Defaults to: start of the current month. - // Must be: within the last 90 days from the current date. - // Must be: midnight UTC time. - StartTimeInclusive *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time_inclusive,json=startTimeInclusive,proto3" json:"start_time_inclusive,omitempty"` - // Filter for UTC time < - optional. - // Defaults to: start of the next UTC day. - // Must be: within the last 90 days from the current date. - // Must be: midnight UTC time. - EndTimeExclusive *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time_exclusive,json=endTimeExclusive,proto3" json:"end_time_exclusive,omitempty"` - // The requested size of the page to retrieve - optional. - // Each count corresponds to a single object - per day per namespace - // Cannot exceed 1000. Defaults to 100. - PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response - optional. - PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUsageRequest) Reset() { - *x = GetUsageRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUsageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUsageRequest) ProtoMessage() {} - -func (x *GetUsageRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[76] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUsageRequest.ProtoReflect.Descriptor instead. -func (*GetUsageRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{76} -} - -func (x *GetUsageRequest) GetStartTimeInclusive() *timestamppb.Timestamp { - if x != nil { - return x.StartTimeInclusive - } - return nil -} - -func (x *GetUsageRequest) GetEndTimeExclusive() *timestamppb.Timestamp { - if x != nil { - return x.EndTimeExclusive - } - return nil -} - -func (x *GetUsageRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetUsageRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -type GetUsageResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of data based on granularity (per Day for now) - // Ordered by: time range in ascending order - Summaries []*v15.Summary `protobuf:"bytes,1,rep,name=summaries,proto3" json:"summaries,omitempty"` - // The next page's token. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUsageResponse) Reset() { - *x = GetUsageResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUsageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUsageResponse) ProtoMessage() {} - -func (x *GetUsageResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[77] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUsageResponse.ProtoReflect.Descriptor instead. -func (*GetUsageResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{77} -} - -func (x *GetUsageResponse) GetSummaries() []*v15.Summary { - if x != nil { - return x.Summaries - } - return nil -} - -func (x *GetUsageResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type GetAccountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetAccountRequest) Reset() { - *x = GetAccountRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetAccountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAccountRequest) ProtoMessage() {} - -func (x *GetAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[78] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead. -func (*GetAccountRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{78} -} - -type GetAccountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The account. - Account *v16.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetAccountResponse) Reset() { - *x = GetAccountResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetAccountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAccountResponse) ProtoMessage() {} - -func (x *GetAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[79] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead. -func (*GetAccountResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{79} -} - -func (x *GetAccountResponse) GetAccount() *v16.Account { - if x != nil { - return x.Account - } - return nil -} - -type UpdateAccountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The updated account specification to apply. - Spec *v16.AccountSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the account for which this update is intended for. - // The latest version can be found in the GetAccount operation response. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation. - // Optional, if not provided a random id will be generated. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateAccountRequest) Reset() { - *x = UpdateAccountRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateAccountRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateAccountRequest) ProtoMessage() {} - -func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[80] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead. -func (*UpdateAccountRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{80} -} - -func (x *UpdateAccountRequest) GetSpec() *v16.AccountSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateAccountRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateAccountRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateAccountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateAccountResponse) Reset() { - *x = UpdateAccountResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateAccountResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateAccountResponse) ProtoMessage() {} - -func (x *UpdateAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[81] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateAccountResponse.ProtoReflect.Descriptor instead. -func (*UpdateAccountResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{81} -} - -func (x *UpdateAccountResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type CreateNamespaceExportSinkRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace under which the sink is configured. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The specification for the export sink. - Spec *v12.ExportSinkSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // Optional. The ID to use for this async operation. - AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateNamespaceExportSinkRequest) Reset() { - *x = CreateNamespaceExportSinkRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateNamespaceExportSinkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNamespaceExportSinkRequest) ProtoMessage() {} - -func (x *CreateNamespaceExportSinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[82] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNamespaceExportSinkRequest.ProtoReflect.Descriptor instead. -func (*CreateNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{82} -} - -func (x *CreateNamespaceExportSinkRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *CreateNamespaceExportSinkRequest) GetSpec() *v12.ExportSinkSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *CreateNamespaceExportSinkRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type CreateNamespaceExportSinkResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateNamespaceExportSinkResponse) Reset() { - *x = CreateNamespaceExportSinkResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateNamespaceExportSinkResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNamespaceExportSinkResponse) ProtoMessage() {} - -func (x *CreateNamespaceExportSinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[83] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNamespaceExportSinkResponse.ProtoReflect.Descriptor instead. -func (*CreateNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{83} -} - -func (x *CreateNamespaceExportSinkResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type GetNamespaceExportSinkRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to which the sink belongs. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The name of the sink to retrieve. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespaceExportSinkRequest) Reset() { - *x = GetNamespaceExportSinkRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespaceExportSinkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceExportSinkRequest) ProtoMessage() {} - -func (x *GetNamespaceExportSinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[84] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceExportSinkRequest.ProtoReflect.Descriptor instead. -func (*GetNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{84} -} - -func (x *GetNamespaceExportSinkRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *GetNamespaceExportSinkRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type GetNamespaceExportSinkResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The export sink retrieved. - Sink *v12.ExportSink `protobuf:"bytes,1,opt,name=sink,proto3" json:"sink,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespaceExportSinkResponse) Reset() { - *x = GetNamespaceExportSinkResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespaceExportSinkResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceExportSinkResponse) ProtoMessage() {} - -func (x *GetNamespaceExportSinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[85] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceExportSinkResponse.ProtoReflect.Descriptor instead. -func (*GetNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{85} -} - -func (x *GetNamespaceExportSinkResponse) GetSink() *v12.ExportSink { - if x != nil { - return x.Sink - } - return nil -} - -type GetNamespaceExportSinksRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to which the sinks belong. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The requested size of the page to retrieve. Cannot exceed 1000. - // Defaults to 100 if not specified. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // The page token if this is continuing from another response - optional. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespaceExportSinksRequest) Reset() { - *x = GetNamespaceExportSinksRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespaceExportSinksRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceExportSinksRequest) ProtoMessage() {} - -func (x *GetNamespaceExportSinksRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[86] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceExportSinksRequest.ProtoReflect.Descriptor instead. -func (*GetNamespaceExportSinksRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{86} -} - -func (x *GetNamespaceExportSinksRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *GetNamespaceExportSinksRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *GetNamespaceExportSinksRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -type GetNamespaceExportSinksResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of export sinks retrieved. - Sinks []*v12.ExportSink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"` - // The next page token, set if there is another page. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetNamespaceExportSinksResponse) Reset() { - *x = GetNamespaceExportSinksResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetNamespaceExportSinksResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceExportSinksResponse) ProtoMessage() {} - -func (x *GetNamespaceExportSinksResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[87] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceExportSinksResponse.ProtoReflect.Descriptor instead. -func (*GetNamespaceExportSinksResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{87} -} - -func (x *GetNamespaceExportSinksResponse) GetSinks() []*v12.ExportSink { - if x != nil { - return x.Sinks - } - return nil -} - -func (x *GetNamespaceExportSinksResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -type UpdateNamespaceExportSinkRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to which the sink belongs. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The updated export sink specification. - Spec *v12.ExportSinkSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the sink to update. The latest version can be - // retrieved using the GetNamespaceExportSink call. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The ID to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateNamespaceExportSinkRequest) Reset() { - *x = UpdateNamespaceExportSinkRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateNamespaceExportSinkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNamespaceExportSinkRequest) ProtoMessage() {} - -func (x *UpdateNamespaceExportSinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[88] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNamespaceExportSinkRequest.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{88} -} - -func (x *UpdateNamespaceExportSinkRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *UpdateNamespaceExportSinkRequest) GetSpec() *v12.ExportSinkSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *UpdateNamespaceExportSinkRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UpdateNamespaceExportSinkRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type UpdateNamespaceExportSinkResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateNamespaceExportSinkResponse) Reset() { - *x = UpdateNamespaceExportSinkResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateNamespaceExportSinkResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNamespaceExportSinkResponse) ProtoMessage() {} - -func (x *UpdateNamespaceExportSinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[89] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNamespaceExportSinkResponse.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{89} -} - -func (x *UpdateNamespaceExportSinkResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type DeleteNamespaceExportSinkRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to which the sink belongs. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The name of the sink to delete. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // The version of the sink to delete. The latest version can be - // retrieved using the GetNamespaceExportSink call. - ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The ID to use for this async operation - optional. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteNamespaceExportSinkRequest) Reset() { - *x = DeleteNamespaceExportSinkRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteNamespaceExportSinkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteNamespaceExportSinkRequest) ProtoMessage() {} - -func (x *DeleteNamespaceExportSinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[90] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteNamespaceExportSinkRequest.ProtoReflect.Descriptor instead. -func (*DeleteNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{90} -} - -func (x *DeleteNamespaceExportSinkRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *DeleteNamespaceExportSinkRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *DeleteNamespaceExportSinkRequest) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *DeleteNamespaceExportSinkRequest) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type DeleteNamespaceExportSinkResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The async operation. - AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *DeleteNamespaceExportSinkResponse) Reset() { - *x = DeleteNamespaceExportSinkResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *DeleteNamespaceExportSinkResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteNamespaceExportSinkResponse) ProtoMessage() {} - -func (x *DeleteNamespaceExportSinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[91] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteNamespaceExportSinkResponse.ProtoReflect.Descriptor instead. -func (*DeleteNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{91} -} - -func (x *DeleteNamespaceExportSinkResponse) GetAsyncOperation() *v11.AsyncOperation { - if x != nil { - return x.AsyncOperation - } - return nil -} - -type ValidateNamespaceExportSinkRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace to which the sink belongs. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The export sink specification to validate. - Spec *v12.ExportSinkSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ValidateNamespaceExportSinkRequest) Reset() { - *x = ValidateNamespaceExportSinkRequest{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ValidateNamespaceExportSinkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidateNamespaceExportSinkRequest) ProtoMessage() {} - -func (x *ValidateNamespaceExportSinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[92] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ValidateNamespaceExportSinkRequest.ProtoReflect.Descriptor instead. -func (*ValidateNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{92} -} - -func (x *ValidateNamespaceExportSinkRequest) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *ValidateNamespaceExportSinkRequest) GetSpec() *v12.ExportSinkSpec { - if x != nil { - return x.Spec - } - return nil -} - -type ValidateNamespaceExportSinkResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ValidateNamespaceExportSinkResponse) Reset() { - *x = ValidateNamespaceExportSinkResponse{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ValidateNamespaceExportSinkResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidateNamespaceExportSinkResponse) ProtoMessage() {} - -func (x *ValidateNamespaceExportSinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[93] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ValidateNamespaceExportSinkResponse.ProtoReflect.Descriptor instead. -func (*ValidateNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{93} -} - -type GetUserGroupsRequest_GoogleGroupFilter struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Filter groups by the google group email - optional. - EmailAddress string `protobuf:"bytes,1,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserGroupsRequest_GoogleGroupFilter) Reset() { - *x = GetUserGroupsRequest_GoogleGroupFilter{} - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUserGroupsRequest_GoogleGroupFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserGroupsRequest_GoogleGroupFilter) ProtoMessage() {} - -func (x *GetUserGroupsRequest_GoogleGroupFilter) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes[94] - if 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_GoogleGroupFilter.ProtoReflect.Descriptor instead. -func (*GetUserGroupsRequest_GoogleGroupFilter) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP(), []int{54, 0} -} - -func (x *GetUserGroupsRequest_GoogleGroupFilter) GetEmailAddress() string { - if x != nil { - return x.EmailAddress - } - return "" -} - -var File_temporal_api_cloud_cloudservice_v1_request_response_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDesc = "" + - "\n" + - "9temporal/api/cloud/cloudservice/v1/request_response.proto\x12\"temporal.api.cloud.cloudservice.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-temporal/api/cloud/operation/v1/message.proto\x1a,temporal/api/cloud/identity/v1/message.proto\x1a-temporal/api/cloud/namespace/v1/message.proto\x1a)temporal/api/cloud/nexus/v1/message.proto\x1a*temporal/api/cloud/region/v1/message.proto\x1a+temporal/api/cloud/account/v1/message.proto\x1a)temporal/api/cloud/usage/v1/message.proto\"\x81\x01\n" + - "\x0fGetUsersRequest\x12\x1b\n" + - "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x02 \x01(\tR\tpageToken\x12\x14\n" + - "\x05email\x18\x03 \x01(\tR\x05email\x12\x1c\n" + - "\tnamespace\x18\x04 \x01(\tR\tnamespace\"v\n" + - "\x10GetUsersResponse\x12:\n" + - "\x05users\x18\x01 \x03(\v2$.temporal.api.cloud.identity.v1.UserR\x05users\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\")\n" + - "\x0eGetUserRequest\x12\x17\n" + - "\auser_id\x18\x01 \x01(\tR\x06userId\"K\n" + - "\x0fGetUserResponse\x128\n" + - "\x04user\x18\x01 \x01(\v2$.temporal.api.cloud.identity.v1.UserR\x04user\"\x7f\n" + - "\x11CreateUserRequest\x12<\n" + - "\x04spec\x18\x01 \x01(\v2(.temporal.api.cloud.identity.v1.UserSpecR\x04spec\x12,\n" + - "\x12async_operation_id\x18\x02 \x01(\tR\x10asyncOperationId\"\x87\x01\n" + - "\x12CreateUserResponse\x12\x17\n" + - "\auser_id\x18\x01 \x01(\tR\x06userId\x12X\n" + - "\x0fasync_operation\x18\x02 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xc3\x01\n" + - "\x11UpdateUserRequest\x12\x17\n" + - "\auser_id\x18\x01 \x01(\tR\x06userId\x12<\n" + - "\x04spec\x18\x02 \x01(\v2(.temporal.api.cloud.identity.v1.UserSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"n\n" + - "\x12UpdateUserResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x85\x01\n" + - "\x11DeleteUserRequest\x12\x17\n" + - "\auser_id\x18\x01 \x01(\tR\x06userId\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"n\n" + - "\x12DeleteUserResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xf8\x01\n" + - "\x1dSetUserNamespaceAccessRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x17\n" + - "\auser_id\x18\x02 \x01(\tR\x06userId\x12G\n" + - "\x06access\x18\x03 \x01(\v2/.temporal.api.cloud.identity.v1.NamespaceAccessR\x06access\x12)\n" + - "\x10resource_version\x18\x04 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\"z\n" + - "\x1eSetUserNamespaceAccessResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"H\n" + - "\x18GetAsyncOperationRequest\x12,\n" + - "\x12async_operation_id\x18\x01 \x01(\tR\x10asyncOperationId\"u\n" + - "\x19GetAsyncOperationResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x8a\x01\n" + - "\x16CreateNamespaceRequest\x12B\n" + - "\x04spec\x18\x02 \x01(\v2..temporal.api.cloud.namespace.v1.NamespaceSpecR\x04spec\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"\x91\x01\n" + - "\x17CreateNamespaceResponse\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12X\n" + - "\x0fasync_operation\x18\x02 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"f\n" + - "\x14GetNamespacesRequest\x12\x1b\n" + - "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x02 \x01(\tR\tpageToken\x12\x12\n" + - "\x04name\x18\x03 \x01(\tR\x04name\"\x8b\x01\n" + - "\x15GetNamespacesResponse\x12J\n" + - "\n" + - "namespaces\x18\x01 \x03(\v2*.temporal.api.cloud.namespace.v1.NamespaceR\n" + - "namespaces\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"3\n" + - "\x13GetNamespaceRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\"`\n" + - "\x14GetNamespaceResponse\x12H\n" + - "\tnamespace\x18\x01 \x01(\v2*.temporal.api.cloud.namespace.v1.NamespaceR\tnamespace\"\xd3\x01\n" + - "\x16UpdateNamespaceRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12B\n" + - "\x04spec\x18\x02 \x01(\v2..temporal.api.cloud.namespace.v1.NamespaceSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"s\n" + - "\x17UpdateNamespaceResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xb5\x02\n" + - "\"RenameCustomSearchAttributeRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12P\n" + - "%existing_custom_search_attribute_name\x18\x02 \x01(\tR!existingCustomSearchAttributeName\x12F\n" + - " new_custom_search_attribute_name\x18\x03 \x01(\tR\x1cnewCustomSearchAttributeName\x12)\n" + - "\x10resource_version\x18\x04 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\"\x7f\n" + - "#RenameCustomSearchAttributeResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x8f\x01\n" + - "\x16DeleteNamespaceRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"s\n" + - "\x17DeleteNamespaceResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x84\x01\n" + - "\x1eFailoverNamespaceRegionRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x16\n" + - "\x06region\x18\x02 \x01(\tR\x06region\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"{\n" + - "\x1fFailoverNamespaceRegionResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xaa\x01\n" + - "\x19AddNamespaceRegionRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x16\n" + - "\x06region\x18\x02 \x01(\tR\x06region\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"v\n" + - "\x1aAddNamespaceRegionResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x13\n" + - "\x11GetRegionsRequest\"T\n" + - "\x12GetRegionsResponse\x12>\n" + - "\aregions\x18\x01 \x03(\v2$.temporal.api.cloud.region.v1.RegionR\aregions\"*\n" + - "\x10GetRegionRequest\x12\x16\n" + - "\x06region\x18\x01 \x01(\tR\x06region\"Q\n" + - "\x11GetRegionResponse\x12<\n" + - "\x06region\x18\x01 \x01(\v2$.temporal.api.cloud.region.v1.RegionR\x06region\"\xec\x01\n" + - "\x11GetApiKeysRequest\x12\x1b\n" + - "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x02 \x01(\tR\tpageToken\x12\x19\n" + - "\bowner_id\x18\x03 \x01(\tR\aownerId\x126\n" + - "\x15owner_type_deprecated\x18\x04 \x01(\tB\x02\x18\x01R\x13ownerTypeDeprecated\x12H\n" + - "\n" + - "owner_type\x18\x05 \x01(\x0e2).temporal.api.cloud.identity.v1.OwnerTypeR\townerType\"\x7f\n" + - "\x12GetApiKeysResponse\x12A\n" + - "\bapi_keys\x18\x01 \x03(\v2&.temporal.api.cloud.identity.v1.ApiKeyR\aapiKeys\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\")\n" + - "\x10GetApiKeyRequest\x12\x15\n" + - "\x06key_id\x18\x01 \x01(\tR\x05keyId\"T\n" + - "\x11GetApiKeyResponse\x12?\n" + - "\aapi_key\x18\x01 \x01(\v2&.temporal.api.cloud.identity.v1.ApiKeyR\x06apiKey\"\x83\x01\n" + - "\x13CreateApiKeyRequest\x12>\n" + - "\x04spec\x18\x01 \x01(\v2*.temporal.api.cloud.identity.v1.ApiKeySpecR\x04spec\x12,\n" + - "\x12async_operation_id\x18\x02 \x01(\tR\x10asyncOperationId\"\x9d\x01\n" + - "\x14CreateApiKeyResponse\x12\x15\n" + - "\x06key_id\x18\x01 \x01(\tR\x05keyId\x12\x14\n" + - "\x05token\x18\x02 \x01(\tR\x05token\x12X\n" + - "\x0fasync_operation\x18\x03 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xc5\x01\n" + - "\x13UpdateApiKeyRequest\x12\x15\n" + - "\x06key_id\x18\x01 \x01(\tR\x05keyId\x12>\n" + - "\x04spec\x18\x02 \x01(\v2*.temporal.api.cloud.identity.v1.ApiKeySpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"p\n" + - "\x14UpdateApiKeyResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x85\x01\n" + - "\x13DeleteApiKeyRequest\x12\x15\n" + - "\x06key_id\x18\x01 \x01(\tR\x05keyId\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"p\n" + - "\x14DeleteApiKeyResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xc6\x01\n" + - "\x18GetNexusEndpointsRequest\x12\x1b\n" + - "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x02 \x01(\tR\tpageToken\x12.\n" + - "\x13target_namespace_id\x18\x03 \x01(\tR\x11targetNamespaceId\x12*\n" + - "\x11target_task_queue\x18\x04 \x01(\tR\x0ftargetTaskQueue\x12\x12\n" + - "\x04name\x18\x05 \x01(\tR\x04name\"\x88\x01\n" + - "\x19GetNexusEndpointsResponse\x12C\n" + - "\tendpoints\x18\x01 \x03(\v2%.temporal.api.cloud.nexus.v1.EndpointR\tendpoints\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\":\n" + - "\x17GetNexusEndpointRequest\x12\x1f\n" + - "\vendpoint_id\x18\x01 \x01(\tR\n" + - "endpointId\"]\n" + - "\x18GetNexusEndpointResponse\x12A\n" + - "\bendpoint\x18\x01 \x01(\v2%.temporal.api.cloud.nexus.v1.EndpointR\bendpoint\"\x89\x01\n" + - "\x1aCreateNexusEndpointRequest\x12=\n" + - "\x04spec\x18\x01 \x01(\v2).temporal.api.cloud.nexus.v1.EndpointSpecR\x04spec\x12,\n" + - "\x12async_operation_id\x18\x02 \x01(\tR\x10asyncOperationId\"\x98\x01\n" + - "\x1bCreateNexusEndpointResponse\x12\x1f\n" + - "\vendpoint_id\x18\x01 \x01(\tR\n" + - "endpointId\x12X\n" + - "\x0fasync_operation\x18\x02 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xd5\x01\n" + - "\x1aUpdateNexusEndpointRequest\x12\x1f\n" + - "\vendpoint_id\x18\x01 \x01(\tR\n" + - "endpointId\x12=\n" + - "\x04spec\x18\x02 \x01(\v2).temporal.api.cloud.nexus.v1.EndpointSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"w\n" + - "\x1bUpdateNexusEndpointResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x96\x01\n" + - "\x1aDeleteNexusEndpointRequest\x12\x1f\n" + - "\vendpoint_id\x18\x01 \x01(\tR\n" + - "endpointId\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"w\n" + - "\x1bDeleteNexusEndpointResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xbc\x02\n" + - "\x14GetUserGroupsRequest\x12\x1b\n" + - "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x02 \x01(\tR\tpageToken\x12\x1c\n" + - "\tnamespace\x18\x03 \x01(\tR\tnamespace\x12!\n" + - "\fdisplay_name\x18\x04 \x01(\tR\vdisplayName\x12m\n" + - "\fgoogle_group\x18\x05 \x01(\v2J.temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.GoogleGroupFilterR\vgoogleGroup\x1a8\n" + - "\x11GoogleGroupFilter\x12#\n" + - "\remail_address\x18\x01 \x01(\tR\femailAddress\"\x82\x01\n" + - "\x15GetUserGroupsResponse\x12A\n" + - "\x06groups\x18\x01 \x03(\v2).temporal.api.cloud.identity.v1.UserGroupR\x06groups\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"0\n" + - "\x13GetUserGroupRequest\x12\x19\n" + - "\bgroup_id\x18\x01 \x01(\tR\agroupId\"W\n" + - "\x14GetUserGroupResponse\x12?\n" + - "\x05group\x18\x01 \x01(\v2).temporal.api.cloud.identity.v1.UserGroupR\x05group\"\x89\x01\n" + - "\x16CreateUserGroupRequest\x12A\n" + - "\x04spec\x18\x01 \x01(\v2-.temporal.api.cloud.identity.v1.UserGroupSpecR\x04spec\x12,\n" + - "\x12async_operation_id\x18\x02 \x01(\tR\x10asyncOperationId\"\x8e\x01\n" + - "\x17CreateUserGroupResponse\x12\x19\n" + - "\bgroup_id\x18\x01 \x01(\tR\agroupId\x12X\n" + - "\x0fasync_operation\x18\x02 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xcf\x01\n" + - "\x16UpdateUserGroupRequest\x12\x19\n" + - "\bgroup_id\x18\x01 \x01(\tR\agroupId\x12A\n" + - "\x04spec\x18\x02 \x01(\v2-.temporal.api.cloud.identity.v1.UserGroupSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"s\n" + - "\x17UpdateUserGroupResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x8c\x01\n" + - "\x16DeleteUserGroupRequest\x12\x19\n" + - "\bgroup_id\x18\x01 \x01(\tR\agroupId\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"s\n" + - "\x17DeleteUserGroupResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xff\x01\n" + - "\"SetUserGroupNamespaceAccessRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x19\n" + - "\bgroup_id\x18\x02 \x01(\tR\agroupId\x12G\n" + - "\x06access\x18\x03 \x01(\v2/.temporal.api.cloud.identity.v1.NamespaceAccessR\x06access\x12)\n" + - "\x10resource_version\x18\x04 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\"\x7f\n" + - "#SetUserGroupNamespaceAccessResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x93\x01\n" + - "\x1bCreateServiceAccountRequest\x12F\n" + - "\x04spec\x18\x01 \x01(\v22.temporal.api.cloud.identity.v1.ServiceAccountSpecR\x04spec\x12,\n" + - "\x12async_operation_id\x18\x02 \x01(\tR\x10asyncOperationId\"\xa6\x01\n" + - "\x1cCreateServiceAccountResponse\x12,\n" + - "\x12service_account_id\x18\x01 \x01(\tR\x10serviceAccountId\x12X\n" + - "\x0fasync_operation\x18\x02 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"H\n" + - "\x18GetServiceAccountRequest\x12,\n" + - "\x12service_account_id\x18\x01 \x01(\tR\x10serviceAccountId\"t\n" + - "\x19GetServiceAccountResponse\x12W\n" + - "\x0fservice_account\x18\x01 \x01(\v2..temporal.api.cloud.identity.v1.ServiceAccountR\x0eserviceAccount\"W\n" + - "\x19GetServiceAccountsRequest\x12\x1b\n" + - "\tpage_size\x18\x01 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x02 \x01(\tR\tpageToken\"\x9d\x01\n" + - "\x1aGetServiceAccountsResponse\x12W\n" + - "\x0fservice_account\x18\x01 \x03(\v2..temporal.api.cloud.identity.v1.ServiceAccountR\x0eserviceAccount\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xec\x01\n" + - "\x1bUpdateServiceAccountRequest\x12,\n" + - "\x12service_account_id\x18\x01 \x01(\tR\x10serviceAccountId\x12F\n" + - "\x04spec\x18\x02 \x01(\v22.temporal.api.cloud.identity.v1.ServiceAccountSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"x\n" + - "\x1cUpdateServiceAccountResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xa4\x01\n" + - "\x1bDeleteServiceAccountRequest\x12,\n" + - "\x12service_account_id\x18\x01 \x01(\tR\x10serviceAccountId\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"x\n" + - "\x1cDeleteServiceAccountResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xe5\x01\n" + - "\x0fGetUsageRequest\x12L\n" + - "\x14start_time_inclusive\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x12startTimeInclusive\x12H\n" + - "\x12end_time_exclusive\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x10endTimeExclusive\x12\x1b\n" + - "\tpage_size\x18\x03 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x04 \x01(\tR\tpageToken\"~\n" + - "\x10GetUsageResponse\x12B\n" + - "\tsummaries\x18\x01 \x03(\v2$.temporal.api.cloud.usage.v1.SummaryR\tsummaries\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x13\n" + - "\x11GetAccountRequest\"V\n" + - "\x12GetAccountResponse\x12@\n" + - "\aaccount\x18\x01 \x01(\v2&.temporal.api.cloud.account.v1.AccountR\aaccount\"\xaf\x01\n" + - "\x14UpdateAccountRequest\x12>\n" + - "\x04spec\x18\x01 \x01(\v2*.temporal.api.cloud.account.v1.AccountSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"q\n" + - "\x15UpdateAccountResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xb3\x01\n" + - " CreateNamespaceExportSinkRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12C\n" + - "\x04spec\x18\x02 \x01(\v2/.temporal.api.cloud.namespace.v1.ExportSinkSpecR\x04spec\x12,\n" + - "\x12async_operation_id\x18\x03 \x01(\tR\x10asyncOperationId\"}\n" + - "!CreateNamespaceExportSinkResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"Q\n" + - "\x1dGetNamespaceExportSinkRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\"a\n" + - "\x1eGetNamespaceExportSinkResponse\x12?\n" + - "\x04sink\x18\x01 \x01(\v2+.temporal.api.cloud.namespace.v1.ExportSinkR\x04sink\"z\n" + - "\x1eGetNamespaceExportSinksRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x1b\n" + - "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" + - "\n" + - "page_token\x18\x03 \x01(\tR\tpageToken\"\x8c\x01\n" + - "\x1fGetNamespaceExportSinksResponse\x12A\n" + - "\x05sinks\x18\x01 \x03(\v2+.temporal.api.cloud.namespace.v1.ExportSinkR\x05sinks\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xde\x01\n" + - " UpdateNamespaceExportSinkRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12C\n" + - "\x04spec\x18\x02 \x01(\v2/.temporal.api.cloud.namespace.v1.ExportSinkSpecR\x04spec\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"}\n" + - "!UpdateNamespaceExportSinkResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\xad\x01\n" + - " DeleteNamespaceExportSinkRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12)\n" + - "\x10resource_version\x18\x03 \x01(\tR\x0fresourceVersion\x12,\n" + - "\x12async_operation_id\x18\x04 \x01(\tR\x10asyncOperationId\"}\n" + - "!DeleteNamespaceExportSinkResponse\x12X\n" + - "\x0fasync_operation\x18\x01 \x01(\v2/.temporal.api.cloud.operation.v1.AsyncOperationR\x0easyncOperation\"\x87\x01\n" + - "\"ValidateNamespaceExportSinkRequest\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12C\n" + - "\x04spec\x18\x02 \x01(\v2/.temporal.api.cloud.namespace.v1.ExportSinkSpecR\x04spec\"%\n" + - "#ValidateNamespaceExportSinkResponseB\xc8\x01\n" + - "%io.temporal.api.cloud.cloudservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/cloud/cloudservice/v1;cloudservice\xaa\x02$Temporalio.Api.Cloud.CloudService.V1\xea\x02(Temporalio::Api::Cloud::CloudService::V1b\x06proto3" - -var ( - file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescOnce sync.Once - file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescData []byte -) - -func file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDesc), len(file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDesc))) - }) - return file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDescData -} - -var file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 95) -var file_temporal_api_cloud_cloudservice_v1_request_response_proto_goTypes = []any{ - (*GetUsersRequest)(nil), // 0: temporal.api.cloud.cloudservice.v1.GetUsersRequest - (*GetUsersResponse)(nil), // 1: temporal.api.cloud.cloudservice.v1.GetUsersResponse - (*GetUserRequest)(nil), // 2: temporal.api.cloud.cloudservice.v1.GetUserRequest - (*GetUserResponse)(nil), // 3: temporal.api.cloud.cloudservice.v1.GetUserResponse - (*CreateUserRequest)(nil), // 4: temporal.api.cloud.cloudservice.v1.CreateUserRequest - (*CreateUserResponse)(nil), // 5: temporal.api.cloud.cloudservice.v1.CreateUserResponse - (*UpdateUserRequest)(nil), // 6: temporal.api.cloud.cloudservice.v1.UpdateUserRequest - (*UpdateUserResponse)(nil), // 7: temporal.api.cloud.cloudservice.v1.UpdateUserResponse - (*DeleteUserRequest)(nil), // 8: temporal.api.cloud.cloudservice.v1.DeleteUserRequest - (*DeleteUserResponse)(nil), // 9: temporal.api.cloud.cloudservice.v1.DeleteUserResponse - (*SetUserNamespaceAccessRequest)(nil), // 10: temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest - (*SetUserNamespaceAccessResponse)(nil), // 11: temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse - (*GetAsyncOperationRequest)(nil), // 12: temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest - (*GetAsyncOperationResponse)(nil), // 13: temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse - (*CreateNamespaceRequest)(nil), // 14: temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest - (*CreateNamespaceResponse)(nil), // 15: temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse - (*GetNamespacesRequest)(nil), // 16: temporal.api.cloud.cloudservice.v1.GetNamespacesRequest - (*GetNamespacesResponse)(nil), // 17: temporal.api.cloud.cloudservice.v1.GetNamespacesResponse - (*GetNamespaceRequest)(nil), // 18: temporal.api.cloud.cloudservice.v1.GetNamespaceRequest - (*GetNamespaceResponse)(nil), // 19: temporal.api.cloud.cloudservice.v1.GetNamespaceResponse - (*UpdateNamespaceRequest)(nil), // 20: temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest - (*UpdateNamespaceResponse)(nil), // 21: temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse - (*RenameCustomSearchAttributeRequest)(nil), // 22: temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest - (*RenameCustomSearchAttributeResponse)(nil), // 23: temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse - (*DeleteNamespaceRequest)(nil), // 24: temporal.api.cloud.cloudservice.v1.DeleteNamespaceRequest - (*DeleteNamespaceResponse)(nil), // 25: temporal.api.cloud.cloudservice.v1.DeleteNamespaceResponse - (*FailoverNamespaceRegionRequest)(nil), // 26: temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionRequest - (*FailoverNamespaceRegionResponse)(nil), // 27: temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionResponse - (*AddNamespaceRegionRequest)(nil), // 28: temporal.api.cloud.cloudservice.v1.AddNamespaceRegionRequest - (*AddNamespaceRegionResponse)(nil), // 29: temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse - (*GetRegionsRequest)(nil), // 30: temporal.api.cloud.cloudservice.v1.GetRegionsRequest - (*GetRegionsResponse)(nil), // 31: temporal.api.cloud.cloudservice.v1.GetRegionsResponse - (*GetRegionRequest)(nil), // 32: temporal.api.cloud.cloudservice.v1.GetRegionRequest - (*GetRegionResponse)(nil), // 33: temporal.api.cloud.cloudservice.v1.GetRegionResponse - (*GetApiKeysRequest)(nil), // 34: temporal.api.cloud.cloudservice.v1.GetApiKeysRequest - (*GetApiKeysResponse)(nil), // 35: temporal.api.cloud.cloudservice.v1.GetApiKeysResponse - (*GetApiKeyRequest)(nil), // 36: temporal.api.cloud.cloudservice.v1.GetApiKeyRequest - (*GetApiKeyResponse)(nil), // 37: temporal.api.cloud.cloudservice.v1.GetApiKeyResponse - (*CreateApiKeyRequest)(nil), // 38: temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest - (*CreateApiKeyResponse)(nil), // 39: temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse - (*UpdateApiKeyRequest)(nil), // 40: temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest - (*UpdateApiKeyResponse)(nil), // 41: temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse - (*DeleteApiKeyRequest)(nil), // 42: temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest - (*DeleteApiKeyResponse)(nil), // 43: temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse - (*GetNexusEndpointsRequest)(nil), // 44: temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest - (*GetNexusEndpointsResponse)(nil), // 45: temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse - (*GetNexusEndpointRequest)(nil), // 46: temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest - (*GetNexusEndpointResponse)(nil), // 47: temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse - (*CreateNexusEndpointRequest)(nil), // 48: temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest - (*CreateNexusEndpointResponse)(nil), // 49: temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse - (*UpdateNexusEndpointRequest)(nil), // 50: temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest - (*UpdateNexusEndpointResponse)(nil), // 51: temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse - (*DeleteNexusEndpointRequest)(nil), // 52: temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest - (*DeleteNexusEndpointResponse)(nil), // 53: temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse - (*GetUserGroupsRequest)(nil), // 54: temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest - (*GetUserGroupsResponse)(nil), // 55: temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse - (*GetUserGroupRequest)(nil), // 56: temporal.api.cloud.cloudservice.v1.GetUserGroupRequest - (*GetUserGroupResponse)(nil), // 57: temporal.api.cloud.cloudservice.v1.GetUserGroupResponse - (*CreateUserGroupRequest)(nil), // 58: temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest - (*CreateUserGroupResponse)(nil), // 59: temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse - (*UpdateUserGroupRequest)(nil), // 60: temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest - (*UpdateUserGroupResponse)(nil), // 61: temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse - (*DeleteUserGroupRequest)(nil), // 62: temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest - (*DeleteUserGroupResponse)(nil), // 63: temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse - (*SetUserGroupNamespaceAccessRequest)(nil), // 64: temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest - (*SetUserGroupNamespaceAccessResponse)(nil), // 65: temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse - (*CreateServiceAccountRequest)(nil), // 66: temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest - (*CreateServiceAccountResponse)(nil), // 67: temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse - (*GetServiceAccountRequest)(nil), // 68: temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest - (*GetServiceAccountResponse)(nil), // 69: temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse - (*GetServiceAccountsRequest)(nil), // 70: temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest - (*GetServiceAccountsResponse)(nil), // 71: temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse - (*UpdateServiceAccountRequest)(nil), // 72: temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest - (*UpdateServiceAccountResponse)(nil), // 73: temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse - (*DeleteServiceAccountRequest)(nil), // 74: temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest - (*DeleteServiceAccountResponse)(nil), // 75: temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse - (*GetUsageRequest)(nil), // 76: temporal.api.cloud.cloudservice.v1.GetUsageRequest - (*GetUsageResponse)(nil), // 77: temporal.api.cloud.cloudservice.v1.GetUsageResponse - (*GetAccountRequest)(nil), // 78: temporal.api.cloud.cloudservice.v1.GetAccountRequest - (*GetAccountResponse)(nil), // 79: temporal.api.cloud.cloudservice.v1.GetAccountResponse - (*UpdateAccountRequest)(nil), // 80: temporal.api.cloud.cloudservice.v1.UpdateAccountRequest - (*UpdateAccountResponse)(nil), // 81: temporal.api.cloud.cloudservice.v1.UpdateAccountResponse - (*CreateNamespaceExportSinkRequest)(nil), // 82: temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest - (*CreateNamespaceExportSinkResponse)(nil), // 83: temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse - (*GetNamespaceExportSinkRequest)(nil), // 84: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkRequest - (*GetNamespaceExportSinkResponse)(nil), // 85: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse - (*GetNamespaceExportSinksRequest)(nil), // 86: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksRequest - (*GetNamespaceExportSinksResponse)(nil), // 87: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse - (*UpdateNamespaceExportSinkRequest)(nil), // 88: temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest - (*UpdateNamespaceExportSinkResponse)(nil), // 89: temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse - (*DeleteNamespaceExportSinkRequest)(nil), // 90: temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkRequest - (*DeleteNamespaceExportSinkResponse)(nil), // 91: temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse - (*ValidateNamespaceExportSinkRequest)(nil), // 92: temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest - (*ValidateNamespaceExportSinkResponse)(nil), // 93: temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkResponse - (*GetUserGroupsRequest_GoogleGroupFilter)(nil), // 94: temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.GoogleGroupFilter - (*v1.User)(nil), // 95: temporal.api.cloud.identity.v1.User - (*v1.UserSpec)(nil), // 96: temporal.api.cloud.identity.v1.UserSpec - (*v11.AsyncOperation)(nil), // 97: temporal.api.cloud.operation.v1.AsyncOperation - (*v1.NamespaceAccess)(nil), // 98: temporal.api.cloud.identity.v1.NamespaceAccess - (*v12.NamespaceSpec)(nil), // 99: temporal.api.cloud.namespace.v1.NamespaceSpec - (*v12.Namespace)(nil), // 100: temporal.api.cloud.namespace.v1.Namespace - (*v13.Region)(nil), // 101: temporal.api.cloud.region.v1.Region - (v1.OwnerType)(0), // 102: temporal.api.cloud.identity.v1.OwnerType - (*v1.ApiKey)(nil), // 103: temporal.api.cloud.identity.v1.ApiKey - (*v1.ApiKeySpec)(nil), // 104: temporal.api.cloud.identity.v1.ApiKeySpec - (*v14.Endpoint)(nil), // 105: temporal.api.cloud.nexus.v1.Endpoint - (*v14.EndpointSpec)(nil), // 106: temporal.api.cloud.nexus.v1.EndpointSpec - (*v1.UserGroup)(nil), // 107: temporal.api.cloud.identity.v1.UserGroup - (*v1.UserGroupSpec)(nil), // 108: temporal.api.cloud.identity.v1.UserGroupSpec - (*v1.ServiceAccountSpec)(nil), // 109: temporal.api.cloud.identity.v1.ServiceAccountSpec - (*v1.ServiceAccount)(nil), // 110: temporal.api.cloud.identity.v1.ServiceAccount - (*timestamppb.Timestamp)(nil), // 111: google.protobuf.Timestamp - (*v15.Summary)(nil), // 112: temporal.api.cloud.usage.v1.Summary - (*v16.Account)(nil), // 113: temporal.api.cloud.account.v1.Account - (*v16.AccountSpec)(nil), // 114: temporal.api.cloud.account.v1.AccountSpec - (*v12.ExportSinkSpec)(nil), // 115: temporal.api.cloud.namespace.v1.ExportSinkSpec - (*v12.ExportSink)(nil), // 116: temporal.api.cloud.namespace.v1.ExportSink -} -var file_temporal_api_cloud_cloudservice_v1_request_response_proto_depIdxs = []int32{ - 95, // 0: temporal.api.cloud.cloudservice.v1.GetUsersResponse.users:type_name -> temporal.api.cloud.identity.v1.User - 95, // 1: temporal.api.cloud.cloudservice.v1.GetUserResponse.user:type_name -> temporal.api.cloud.identity.v1.User - 96, // 2: temporal.api.cloud.cloudservice.v1.CreateUserRequest.spec:type_name -> temporal.api.cloud.identity.v1.UserSpec - 97, // 3: temporal.api.cloud.cloudservice.v1.CreateUserResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 96, // 4: temporal.api.cloud.cloudservice.v1.UpdateUserRequest.spec:type_name -> temporal.api.cloud.identity.v1.UserSpec - 97, // 5: temporal.api.cloud.cloudservice.v1.UpdateUserResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 6: temporal.api.cloud.cloudservice.v1.DeleteUserResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 98, // 7: temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest.access:type_name -> temporal.api.cloud.identity.v1.NamespaceAccess - 97, // 8: temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 9: temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 99, // 10: temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest.spec:type_name -> temporal.api.cloud.namespace.v1.NamespaceSpec - 97, // 11: temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 100, // 12: temporal.api.cloud.cloudservice.v1.GetNamespacesResponse.namespaces:type_name -> temporal.api.cloud.namespace.v1.Namespace - 100, // 13: temporal.api.cloud.cloudservice.v1.GetNamespaceResponse.namespace:type_name -> temporal.api.cloud.namespace.v1.Namespace - 99, // 14: temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest.spec:type_name -> temporal.api.cloud.namespace.v1.NamespaceSpec - 97, // 15: temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 16: temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 17: temporal.api.cloud.cloudservice.v1.DeleteNamespaceResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 18: temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 19: temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 101, // 20: temporal.api.cloud.cloudservice.v1.GetRegionsResponse.regions:type_name -> temporal.api.cloud.region.v1.Region - 101, // 21: temporal.api.cloud.cloudservice.v1.GetRegionResponse.region:type_name -> temporal.api.cloud.region.v1.Region - 102, // 22: temporal.api.cloud.cloudservice.v1.GetApiKeysRequest.owner_type:type_name -> temporal.api.cloud.identity.v1.OwnerType - 103, // 23: temporal.api.cloud.cloudservice.v1.GetApiKeysResponse.api_keys:type_name -> temporal.api.cloud.identity.v1.ApiKey - 103, // 24: temporal.api.cloud.cloudservice.v1.GetApiKeyResponse.api_key:type_name -> temporal.api.cloud.identity.v1.ApiKey - 104, // 25: temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest.spec:type_name -> temporal.api.cloud.identity.v1.ApiKeySpec - 97, // 26: temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 104, // 27: temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest.spec:type_name -> temporal.api.cloud.identity.v1.ApiKeySpec - 97, // 28: temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 29: temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 105, // 30: temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse.endpoints:type_name -> temporal.api.cloud.nexus.v1.Endpoint - 105, // 31: temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse.endpoint:type_name -> temporal.api.cloud.nexus.v1.Endpoint - 106, // 32: temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest.spec:type_name -> temporal.api.cloud.nexus.v1.EndpointSpec - 97, // 33: temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 106, // 34: temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest.spec:type_name -> temporal.api.cloud.nexus.v1.EndpointSpec - 97, // 35: temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 36: temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 94, // 37: temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.google_group:type_name -> temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.GoogleGroupFilter - 107, // 38: temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse.groups:type_name -> temporal.api.cloud.identity.v1.UserGroup - 107, // 39: temporal.api.cloud.cloudservice.v1.GetUserGroupResponse.group:type_name -> temporal.api.cloud.identity.v1.UserGroup - 108, // 40: temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest.spec:type_name -> temporal.api.cloud.identity.v1.UserGroupSpec - 97, // 41: temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 108, // 42: temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest.spec:type_name -> temporal.api.cloud.identity.v1.UserGroupSpec - 97, // 43: temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 44: temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 98, // 45: temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest.access:type_name -> temporal.api.cloud.identity.v1.NamespaceAccess - 97, // 46: temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 109, // 47: temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest.spec:type_name -> temporal.api.cloud.identity.v1.ServiceAccountSpec - 97, // 48: temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 110, // 49: temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse.service_account:type_name -> temporal.api.cloud.identity.v1.ServiceAccount - 110, // 50: temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse.service_account:type_name -> temporal.api.cloud.identity.v1.ServiceAccount - 109, // 51: temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest.spec:type_name -> temporal.api.cloud.identity.v1.ServiceAccountSpec - 97, // 52: temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 53: temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 111, // 54: temporal.api.cloud.cloudservice.v1.GetUsageRequest.start_time_inclusive:type_name -> google.protobuf.Timestamp - 111, // 55: temporal.api.cloud.cloudservice.v1.GetUsageRequest.end_time_exclusive:type_name -> google.protobuf.Timestamp - 112, // 56: temporal.api.cloud.cloudservice.v1.GetUsageResponse.summaries:type_name -> temporal.api.cloud.usage.v1.Summary - 113, // 57: temporal.api.cloud.cloudservice.v1.GetAccountResponse.account:type_name -> temporal.api.cloud.account.v1.Account - 114, // 58: temporal.api.cloud.cloudservice.v1.UpdateAccountRequest.spec:type_name -> temporal.api.cloud.account.v1.AccountSpec - 97, // 59: temporal.api.cloud.cloudservice.v1.UpdateAccountResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 115, // 60: temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest.spec:type_name -> temporal.api.cloud.namespace.v1.ExportSinkSpec - 97, // 61: temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 116, // 62: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse.sink:type_name -> temporal.api.cloud.namespace.v1.ExportSink - 116, // 63: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse.sinks:type_name -> temporal.api.cloud.namespace.v1.ExportSink - 115, // 64: temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest.spec:type_name -> temporal.api.cloud.namespace.v1.ExportSinkSpec - 97, // 65: temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 97, // 66: temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse.async_operation:type_name -> temporal.api.cloud.operation.v1.AsyncOperation - 115, // 67: temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest.spec:type_name -> temporal.api.cloud.namespace.v1.ExportSinkSpec - 68, // [68:68] is the sub-list for method output_type - 68, // [68:68] is the sub-list for method input_type - 68, // [68:68] is the sub-list for extension type_name - 68, // [68:68] is the sub-list for extension extendee - 0, // [0:68] is the sub-list for field type_name -} - -func init() { file_temporal_api_cloud_cloudservice_v1_request_response_proto_init() } -func file_temporal_api_cloud_cloudservice_v1_request_response_proto_init() { - if File_temporal_api_cloud_cloudservice_v1_request_response_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDesc), len(file_temporal_api_cloud_cloudservice_v1_request_response_proto_rawDesc)), - NumEnums: 0, - NumMessages: 95, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_cloudservice_v1_request_response_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_cloudservice_v1_request_response_proto_depIdxs, - MessageInfos: file_temporal_api_cloud_cloudservice_v1_request_response_proto_msgTypes, - }.Build() - File_temporal_api_cloud_cloudservice_v1_request_response_proto = out.File - file_temporal_api_cloud_cloudservice_v1_request_response_proto_goTypes = nil - file_temporal_api_cloud_cloudservice_v1_request_response_proto_depIdxs = nil -} diff --git a/cloud/cloudservice/v1/service.pb.go b/cloud/cloudservice/v1/service.pb.go deleted file mode 100644 index d3e872dd..00000000 --- a/cloud/cloudservice/v1/service.pb.go +++ /dev/null @@ -1,328 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/cloudservice/v1/service.proto - -package cloudservice - -import ( - reflect "reflect" - unsafe "unsafe" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -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) -) - -var File_temporal_api_cloud_cloudservice_v1_service_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_cloudservice_v1_service_proto_rawDesc = "" + - "\n" + - "0temporal/api/cloud/cloudservice/v1/service.proto\x12\"temporal.api.cloud.cloudservice.v1\x1a9temporal/api/cloud/cloudservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\xafD\n" + - "\fCloudService\x12\x8b\x01\n" + - "\bGetUsers\x123.temporal.api.cloud.cloudservice.v1.GetUsersRequest\x1a4.temporal.api.cloud.cloudservice.v1.GetUsersResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\f/cloud/users\x12\x92\x01\n" + - "\aGetUser\x122.temporal.api.cloud.cloudservice.v1.GetUserRequest\x1a3.temporal.api.cloud.cloudservice.v1.GetUserResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/cloud/users/{user_id}\x12\x94\x01\n" + - "\n" + - "CreateUser\x125.temporal.api.cloud.cloudservice.v1.CreateUserRequest\x1a6.temporal.api.cloud.cloudservice.v1.CreateUserResponse\"\x17\x82\xd3\xe4\x93\x02\x11:\x01*\"\f/cloud/users\x12\x9e\x01\n" + - "\n" + - "UpdateUser\x125.temporal.api.cloud.cloudservice.v1.UpdateUserRequest\x1a6.temporal.api.cloud.cloudservice.v1.UpdateUserResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/cloud/users/{user_id}\x12\x9b\x01\n" + - "\n" + - "DeleteUser\x125.temporal.api.cloud.cloudservice.v1.DeleteUserRequest\x1a6.temporal.api.cloud.cloudservice.v1.DeleteUserResponse\"\x1e\x82\xd3\xe4\x93\x02\x18*\x16/cloud/users/{user_id}\x12\xe0\x01\n" + - "\x16SetUserNamespaceAccess\x12A.temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest\x1aB.temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse\"?\x82\xd3\xe4\x93\x029:\x01*\"4/cloud/namespaces/{namespace}/users/{user_id}/access\x12\xc0\x01\n" + - "\x11GetAsyncOperation\x12<.temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest\x1a=.temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse\".\x82\xd3\xe4\x93\x02(\x12&/cloud/operations/{async_operation_id}\x12\xa8\x01\n" + - "\x0fCreateNamespace\x12:.temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest\x1a;.temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/cloud/namespaces\x12\x9f\x01\n" + - "\rGetNamespaces\x128.temporal.api.cloud.cloudservice.v1.GetNamespacesRequest\x1a9.temporal.api.cloud.cloudservice.v1.GetNamespacesResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/cloud/namespaces\x12\xa8\x01\n" + - "\fGetNamespace\x127.temporal.api.cloud.cloudservice.v1.GetNamespaceRequest\x1a8.temporal.api.cloud.cloudservice.v1.GetNamespaceResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cloud/namespaces/{namespace}\x12\xb4\x01\n" + - "\x0fUpdateNamespace\x12:.temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest\x1a;.temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse\"(\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/cloud/namespaces/{namespace}\x12\xf7\x01\n" + - "\x1bRenameCustomSearchAttribute\x12F.temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest\x1aG.temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse\"G\x82\xd3\xe4\x93\x02A:\x01*\".temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse\"3\x82\xd3\xe4\x93\x02-:\x01*\"(/cloud/namespaces/{namespace}/add-region\x12\x93\x01\n" + - "\n" + - "GetRegions\x125.temporal.api.cloud.cloudservice.v1.GetRegionsRequest\x1a6.temporal.api.cloud.cloudservice.v1.GetRegionsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/cloud/regions\x12\x99\x01\n" + - "\tGetRegion\x124.temporal.api.cloud.cloudservice.v1.GetRegionRequest\x1a5.temporal.api.cloud.cloudservice.v1.GetRegionResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/cloud/regions/{region}\x12\x94\x01\n" + - "\n" + - "GetApiKeys\x125.temporal.api.cloud.cloudservice.v1.GetApiKeysRequest\x1a6.temporal.api.cloud.cloudservice.v1.GetApiKeysResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/cloud/api-keys\x12\x9a\x01\n" + - "\tGetApiKey\x124.temporal.api.cloud.cloudservice.v1.GetApiKeyRequest\x1a5.temporal.api.cloud.cloudservice.v1.GetApiKeyResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/cloud/api-keys/{key_id}\x12\x9d\x01\n" + - "\fCreateApiKey\x127.temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest\x1a8.temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/cloud/api-keys\x12\xa6\x01\n" + - "\fUpdateApiKey\x127.temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest\x1a8.temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/cloud/api-keys/{key_id}\x12\xa3\x01\n" + - "\fDeleteApiKey\x127.temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest\x1a8.temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse\" \x82\xd3\xe4\x93\x02\x1a*\x18/cloud/api-keys/{key_id}\x12\xb0\x01\n" + - "\x11GetNexusEndpoints\x12<.temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest\x1a=.temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/cloud/nexus/endpoints\x12\xbb\x01\n" + - "\x10GetNexusEndpoint\x12;.temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest\x1a<.temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse\",\x82\xd3\xe4\x93\x02&\x12$/cloud/nexus/endpoints/{endpoint_id}\x12\xb9\x01\n" + - "\x13CreateNexusEndpoint\x12>.temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest\x1a?.temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/cloud/nexus/endpoints\x12\xc7\x01\n" + - "\x13UpdateNexusEndpoint\x12>.temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest\x1a?.temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse\"/\x82\xd3\xe4\x93\x02):\x01*\"$/cloud/nexus/endpoints/{endpoint_id}\x12\xc4\x01\n" + - "\x13DeleteNexusEndpoint\x12>.temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest\x1a?.temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse\",\x82\xd3\xe4\x93\x02&*$/cloud/nexus/endpoints/{endpoint_id}\x12\xa0\x01\n" + - "\rGetUserGroups\x128.temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest\x1a9.temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/cloud/user-groups\x12\xa8\x01\n" + - "\fGetUserGroup\x127.temporal.api.cloud.cloudservice.v1.GetUserGroupRequest\x1a8.temporal.api.cloud.cloudservice.v1.GetUserGroupResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cloud/user-groups/{group_id}\x12\xa9\x01\n" + - "\x0fCreateUserGroup\x12:.temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest\x1a;.temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/cloud/user-groups\x12\xb4\x01\n" + - "\x0fUpdateUserGroup\x12:.temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest\x1a;.temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse\"(\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/cloud/user-groups/{group_id}\x12\xb1\x01\n" + - "\x0fDeleteUserGroup\x12:.temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest\x1a;.temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse\"%\x82\xd3\xe4\x93\x02\x1f*\x1d/cloud/user-groups/{group_id}\x12\xf6\x01\n" + - "\x1bSetUserGroupNamespaceAccess\x12F.temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest\x1aG.temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse\"F\x82\xd3\xe4\x93\x02@:\x01*\";/cloud/namespaces/{namespace}/user-groups/{group_id}/access\x12\xbd\x01\n" + - "\x14CreateServiceAccount\x12?.temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest\x1a@.temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/cloud/service-accounts\x12\xc6\x01\n" + - "\x11GetServiceAccount\x12<.temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest\x1a=.temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse\"4\x82\xd3\xe4\x93\x02.\x12,/cloud/service-accounts/{service_account_id}\x12\xb4\x01\n" + - "\x12GetServiceAccounts\x12=.temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest\x1a>.temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/cloud/service-accounts\x12\xd2\x01\n" + - "\x14UpdateServiceAccount\x12?.temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest\x1a@.temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse\"7\x82\xd3\xe4\x93\x021:\x01*\",/cloud/service-accounts/{service_account_id}\x12\xcf\x01\n" + - "\x14DeleteServiceAccount\x12?.temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest\x1a@.temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse\"4\x82\xd3\xe4\x93\x02.*,/cloud/service-accounts/{service_account_id}\x12\x8b\x01\n" + - "\bGetUsage\x123.temporal.api.cloud.cloudservice.v1.GetUsageRequest\x1a4.temporal.api.cloud.cloudservice.v1.GetUsageResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\f/cloud/usage\x12\x93\x01\n" + - "\n" + - "GetAccount\x125.temporal.api.cloud.cloudservice.v1.GetAccountRequest\x1a6.temporal.api.cloud.cloudservice.v1.GetAccountResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/cloud/account\x12\x9f\x01\n" + - "\rUpdateAccount\x128.temporal.api.cloud.cloudservice.v1.UpdateAccountRequest\x1a9.temporal.api.cloud.cloudservice.v1.UpdateAccountResponse\"\x19\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/cloud/account\x12\xdf\x01\n" + - "\x19CreateNamespaceExportSink\x12D.temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest\x1aE.temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse\"5\x82\xd3\xe4\x93\x02/:\x01*\"*/cloud/namespaces/{namespace}/export-sinks\x12\xda\x01\n" + - "\x16GetNamespaceExportSink\x12A.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkRequest\x1aB.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse\"9\x82\xd3\xe4\x93\x023\x121/cloud/namespaces/{namespace}/export-sinks/{name}\x12\xd6\x01\n" + - "\x17GetNamespaceExportSinks\x12B.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksRequest\x1aC.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse\"2\x82\xd3\xe4\x93\x02,\x12*/cloud/namespaces/{namespace}/export-sinks\x12\xeb\x01\n" + - "\x19UpdateNamespaceExportSink\x12D.temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest\x1aE.temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse\"A\x82\xd3\xe4\x93\x02;:\x01*\"6/cloud/namespaces/{namespace}/export-sinks/{spec.name}\x12\xe3\x01\n" + - "\x19DeleteNamespaceExportSink\x12D.temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkRequest\x1aE.temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse\"9\x82\xd3\xe4\x93\x023*1/cloud/namespaces/{namespace}/export-sinks/{name}\x12\xee\x01\n" + - "\x1bValidateNamespaceExportSink\x12F.temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest\x1aG.temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkResponse\">\x82\xd3\xe4\x93\x028:\x01*\"3/cloud/namespaces/{namespace}/export-sinks/validateB\xc0\x01\n" + - "%io.temporal.api.cloud.cloudservice.v1B\fServiceProtoP\x01Z5go.temporal.io/api/cloud/cloudservice/v1;cloudservice\xaa\x02$Temporalio.Api.Cloud.CloudService.V1\xea\x02(Temporalio::Api::Cloud::CloudService::V1b\x06proto3" - -var file_temporal_api_cloud_cloudservice_v1_service_proto_goTypes = []any{ - (*GetUsersRequest)(nil), // 0: temporal.api.cloud.cloudservice.v1.GetUsersRequest - (*GetUserRequest)(nil), // 1: temporal.api.cloud.cloudservice.v1.GetUserRequest - (*CreateUserRequest)(nil), // 2: temporal.api.cloud.cloudservice.v1.CreateUserRequest - (*UpdateUserRequest)(nil), // 3: temporal.api.cloud.cloudservice.v1.UpdateUserRequest - (*DeleteUserRequest)(nil), // 4: temporal.api.cloud.cloudservice.v1.DeleteUserRequest - (*SetUserNamespaceAccessRequest)(nil), // 5: temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest - (*GetAsyncOperationRequest)(nil), // 6: temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest - (*CreateNamespaceRequest)(nil), // 7: temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest - (*GetNamespacesRequest)(nil), // 8: temporal.api.cloud.cloudservice.v1.GetNamespacesRequest - (*GetNamespaceRequest)(nil), // 9: temporal.api.cloud.cloudservice.v1.GetNamespaceRequest - (*UpdateNamespaceRequest)(nil), // 10: temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest - (*RenameCustomSearchAttributeRequest)(nil), // 11: temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest - (*DeleteNamespaceRequest)(nil), // 12: temporal.api.cloud.cloudservice.v1.DeleteNamespaceRequest - (*FailoverNamespaceRegionRequest)(nil), // 13: temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionRequest - (*AddNamespaceRegionRequest)(nil), // 14: temporal.api.cloud.cloudservice.v1.AddNamespaceRegionRequest - (*GetRegionsRequest)(nil), // 15: temporal.api.cloud.cloudservice.v1.GetRegionsRequest - (*GetRegionRequest)(nil), // 16: temporal.api.cloud.cloudservice.v1.GetRegionRequest - (*GetApiKeysRequest)(nil), // 17: temporal.api.cloud.cloudservice.v1.GetApiKeysRequest - (*GetApiKeyRequest)(nil), // 18: temporal.api.cloud.cloudservice.v1.GetApiKeyRequest - (*CreateApiKeyRequest)(nil), // 19: temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest - (*UpdateApiKeyRequest)(nil), // 20: temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest - (*DeleteApiKeyRequest)(nil), // 21: temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest - (*GetNexusEndpointsRequest)(nil), // 22: temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest - (*GetNexusEndpointRequest)(nil), // 23: temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest - (*CreateNexusEndpointRequest)(nil), // 24: temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest - (*UpdateNexusEndpointRequest)(nil), // 25: temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest - (*DeleteNexusEndpointRequest)(nil), // 26: temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest - (*GetUserGroupsRequest)(nil), // 27: temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest - (*GetUserGroupRequest)(nil), // 28: temporal.api.cloud.cloudservice.v1.GetUserGroupRequest - (*CreateUserGroupRequest)(nil), // 29: temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest - (*UpdateUserGroupRequest)(nil), // 30: temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest - (*DeleteUserGroupRequest)(nil), // 31: temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest - (*SetUserGroupNamespaceAccessRequest)(nil), // 32: temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest - (*CreateServiceAccountRequest)(nil), // 33: temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest - (*GetServiceAccountRequest)(nil), // 34: temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest - (*GetServiceAccountsRequest)(nil), // 35: temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest - (*UpdateServiceAccountRequest)(nil), // 36: temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest - (*DeleteServiceAccountRequest)(nil), // 37: temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest - (*GetUsageRequest)(nil), // 38: temporal.api.cloud.cloudservice.v1.GetUsageRequest - (*GetAccountRequest)(nil), // 39: temporal.api.cloud.cloudservice.v1.GetAccountRequest - (*UpdateAccountRequest)(nil), // 40: temporal.api.cloud.cloudservice.v1.UpdateAccountRequest - (*CreateNamespaceExportSinkRequest)(nil), // 41: temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest - (*GetNamespaceExportSinkRequest)(nil), // 42: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkRequest - (*GetNamespaceExportSinksRequest)(nil), // 43: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksRequest - (*UpdateNamespaceExportSinkRequest)(nil), // 44: temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest - (*DeleteNamespaceExportSinkRequest)(nil), // 45: temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkRequest - (*ValidateNamespaceExportSinkRequest)(nil), // 46: temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest - (*GetUsersResponse)(nil), // 47: temporal.api.cloud.cloudservice.v1.GetUsersResponse - (*GetUserResponse)(nil), // 48: temporal.api.cloud.cloudservice.v1.GetUserResponse - (*CreateUserResponse)(nil), // 49: temporal.api.cloud.cloudservice.v1.CreateUserResponse - (*UpdateUserResponse)(nil), // 50: temporal.api.cloud.cloudservice.v1.UpdateUserResponse - (*DeleteUserResponse)(nil), // 51: temporal.api.cloud.cloudservice.v1.DeleteUserResponse - (*SetUserNamespaceAccessResponse)(nil), // 52: temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse - (*GetAsyncOperationResponse)(nil), // 53: temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse - (*CreateNamespaceResponse)(nil), // 54: temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse - (*GetNamespacesResponse)(nil), // 55: temporal.api.cloud.cloudservice.v1.GetNamespacesResponse - (*GetNamespaceResponse)(nil), // 56: temporal.api.cloud.cloudservice.v1.GetNamespaceResponse - (*UpdateNamespaceResponse)(nil), // 57: temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse - (*RenameCustomSearchAttributeResponse)(nil), // 58: temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse - (*DeleteNamespaceResponse)(nil), // 59: temporal.api.cloud.cloudservice.v1.DeleteNamespaceResponse - (*FailoverNamespaceRegionResponse)(nil), // 60: temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionResponse - (*AddNamespaceRegionResponse)(nil), // 61: temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse - (*GetRegionsResponse)(nil), // 62: temporal.api.cloud.cloudservice.v1.GetRegionsResponse - (*GetRegionResponse)(nil), // 63: temporal.api.cloud.cloudservice.v1.GetRegionResponse - (*GetApiKeysResponse)(nil), // 64: temporal.api.cloud.cloudservice.v1.GetApiKeysResponse - (*GetApiKeyResponse)(nil), // 65: temporal.api.cloud.cloudservice.v1.GetApiKeyResponse - (*CreateApiKeyResponse)(nil), // 66: temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse - (*UpdateApiKeyResponse)(nil), // 67: temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse - (*DeleteApiKeyResponse)(nil), // 68: temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse - (*GetNexusEndpointsResponse)(nil), // 69: temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse - (*GetNexusEndpointResponse)(nil), // 70: temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse - (*CreateNexusEndpointResponse)(nil), // 71: temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse - (*UpdateNexusEndpointResponse)(nil), // 72: temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse - (*DeleteNexusEndpointResponse)(nil), // 73: temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse - (*GetUserGroupsResponse)(nil), // 74: temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse - (*GetUserGroupResponse)(nil), // 75: temporal.api.cloud.cloudservice.v1.GetUserGroupResponse - (*CreateUserGroupResponse)(nil), // 76: temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse - (*UpdateUserGroupResponse)(nil), // 77: temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse - (*DeleteUserGroupResponse)(nil), // 78: temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse - (*SetUserGroupNamespaceAccessResponse)(nil), // 79: temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse - (*CreateServiceAccountResponse)(nil), // 80: temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse - (*GetServiceAccountResponse)(nil), // 81: temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse - (*GetServiceAccountsResponse)(nil), // 82: temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse - (*UpdateServiceAccountResponse)(nil), // 83: temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse - (*DeleteServiceAccountResponse)(nil), // 84: temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse - (*GetUsageResponse)(nil), // 85: temporal.api.cloud.cloudservice.v1.GetUsageResponse - (*GetAccountResponse)(nil), // 86: temporal.api.cloud.cloudservice.v1.GetAccountResponse - (*UpdateAccountResponse)(nil), // 87: temporal.api.cloud.cloudservice.v1.UpdateAccountResponse - (*CreateNamespaceExportSinkResponse)(nil), // 88: temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse - (*GetNamespaceExportSinkResponse)(nil), // 89: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse - (*GetNamespaceExportSinksResponse)(nil), // 90: temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse - (*UpdateNamespaceExportSinkResponse)(nil), // 91: temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse - (*DeleteNamespaceExportSinkResponse)(nil), // 92: temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse - (*ValidateNamespaceExportSinkResponse)(nil), // 93: temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkResponse -} -var file_temporal_api_cloud_cloudservice_v1_service_proto_depIdxs = []int32{ - 0, // 0: temporal.api.cloud.cloudservice.v1.CloudService.GetUsers:input_type -> temporal.api.cloud.cloudservice.v1.GetUsersRequest - 1, // 1: temporal.api.cloud.cloudservice.v1.CloudService.GetUser:input_type -> temporal.api.cloud.cloudservice.v1.GetUserRequest - 2, // 2: temporal.api.cloud.cloudservice.v1.CloudService.CreateUser:input_type -> temporal.api.cloud.cloudservice.v1.CreateUserRequest - 3, // 3: temporal.api.cloud.cloudservice.v1.CloudService.UpdateUser:input_type -> temporal.api.cloud.cloudservice.v1.UpdateUserRequest - 4, // 4: temporal.api.cloud.cloudservice.v1.CloudService.DeleteUser:input_type -> temporal.api.cloud.cloudservice.v1.DeleteUserRequest - 5, // 5: temporal.api.cloud.cloudservice.v1.CloudService.SetUserNamespaceAccess:input_type -> temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest - 6, // 6: temporal.api.cloud.cloudservice.v1.CloudService.GetAsyncOperation:input_type -> temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest - 7, // 7: temporal.api.cloud.cloudservice.v1.CloudService.CreateNamespace:input_type -> temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest - 8, // 8: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespaces:input_type -> temporal.api.cloud.cloudservice.v1.GetNamespacesRequest - 9, // 9: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespace:input_type -> temporal.api.cloud.cloudservice.v1.GetNamespaceRequest - 10, // 10: temporal.api.cloud.cloudservice.v1.CloudService.UpdateNamespace:input_type -> temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest - 11, // 11: temporal.api.cloud.cloudservice.v1.CloudService.RenameCustomSearchAttribute:input_type -> temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest - 12, // 12: temporal.api.cloud.cloudservice.v1.CloudService.DeleteNamespace:input_type -> temporal.api.cloud.cloudservice.v1.DeleteNamespaceRequest - 13, // 13: temporal.api.cloud.cloudservice.v1.CloudService.FailoverNamespaceRegion:input_type -> temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionRequest - 14, // 14: temporal.api.cloud.cloudservice.v1.CloudService.AddNamespaceRegion:input_type -> temporal.api.cloud.cloudservice.v1.AddNamespaceRegionRequest - 15, // 15: temporal.api.cloud.cloudservice.v1.CloudService.GetRegions:input_type -> temporal.api.cloud.cloudservice.v1.GetRegionsRequest - 16, // 16: temporal.api.cloud.cloudservice.v1.CloudService.GetRegion:input_type -> temporal.api.cloud.cloudservice.v1.GetRegionRequest - 17, // 17: temporal.api.cloud.cloudservice.v1.CloudService.GetApiKeys:input_type -> temporal.api.cloud.cloudservice.v1.GetApiKeysRequest - 18, // 18: temporal.api.cloud.cloudservice.v1.CloudService.GetApiKey:input_type -> temporal.api.cloud.cloudservice.v1.GetApiKeyRequest - 19, // 19: temporal.api.cloud.cloudservice.v1.CloudService.CreateApiKey:input_type -> temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest - 20, // 20: temporal.api.cloud.cloudservice.v1.CloudService.UpdateApiKey:input_type -> temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest - 21, // 21: temporal.api.cloud.cloudservice.v1.CloudService.DeleteApiKey:input_type -> temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest - 22, // 22: temporal.api.cloud.cloudservice.v1.CloudService.GetNexusEndpoints:input_type -> temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest - 23, // 23: temporal.api.cloud.cloudservice.v1.CloudService.GetNexusEndpoint:input_type -> temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest - 24, // 24: temporal.api.cloud.cloudservice.v1.CloudService.CreateNexusEndpoint:input_type -> temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest - 25, // 25: temporal.api.cloud.cloudservice.v1.CloudService.UpdateNexusEndpoint:input_type -> temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest - 26, // 26: temporal.api.cloud.cloudservice.v1.CloudService.DeleteNexusEndpoint:input_type -> temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest - 27, // 27: temporal.api.cloud.cloudservice.v1.CloudService.GetUserGroups:input_type -> temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest - 28, // 28: temporal.api.cloud.cloudservice.v1.CloudService.GetUserGroup:input_type -> temporal.api.cloud.cloudservice.v1.GetUserGroupRequest - 29, // 29: temporal.api.cloud.cloudservice.v1.CloudService.CreateUserGroup:input_type -> temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest - 30, // 30: temporal.api.cloud.cloudservice.v1.CloudService.UpdateUserGroup:input_type -> temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest - 31, // 31: temporal.api.cloud.cloudservice.v1.CloudService.DeleteUserGroup:input_type -> temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest - 32, // 32: temporal.api.cloud.cloudservice.v1.CloudService.SetUserGroupNamespaceAccess:input_type -> temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest - 33, // 33: temporal.api.cloud.cloudservice.v1.CloudService.CreateServiceAccount:input_type -> temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest - 34, // 34: temporal.api.cloud.cloudservice.v1.CloudService.GetServiceAccount:input_type -> temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest - 35, // 35: temporal.api.cloud.cloudservice.v1.CloudService.GetServiceAccounts:input_type -> temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest - 36, // 36: temporal.api.cloud.cloudservice.v1.CloudService.UpdateServiceAccount:input_type -> temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest - 37, // 37: temporal.api.cloud.cloudservice.v1.CloudService.DeleteServiceAccount:input_type -> temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest - 38, // 38: temporal.api.cloud.cloudservice.v1.CloudService.GetUsage:input_type -> temporal.api.cloud.cloudservice.v1.GetUsageRequest - 39, // 39: temporal.api.cloud.cloudservice.v1.CloudService.GetAccount:input_type -> temporal.api.cloud.cloudservice.v1.GetAccountRequest - 40, // 40: temporal.api.cloud.cloudservice.v1.CloudService.UpdateAccount:input_type -> temporal.api.cloud.cloudservice.v1.UpdateAccountRequest - 41, // 41: temporal.api.cloud.cloudservice.v1.CloudService.CreateNamespaceExportSink:input_type -> temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest - 42, // 42: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespaceExportSink:input_type -> temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkRequest - 43, // 43: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespaceExportSinks:input_type -> temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksRequest - 44, // 44: temporal.api.cloud.cloudservice.v1.CloudService.UpdateNamespaceExportSink:input_type -> temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest - 45, // 45: temporal.api.cloud.cloudservice.v1.CloudService.DeleteNamespaceExportSink:input_type -> temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkRequest - 46, // 46: temporal.api.cloud.cloudservice.v1.CloudService.ValidateNamespaceExportSink:input_type -> temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest - 47, // 47: temporal.api.cloud.cloudservice.v1.CloudService.GetUsers:output_type -> temporal.api.cloud.cloudservice.v1.GetUsersResponse - 48, // 48: temporal.api.cloud.cloudservice.v1.CloudService.GetUser:output_type -> temporal.api.cloud.cloudservice.v1.GetUserResponse - 49, // 49: temporal.api.cloud.cloudservice.v1.CloudService.CreateUser:output_type -> temporal.api.cloud.cloudservice.v1.CreateUserResponse - 50, // 50: temporal.api.cloud.cloudservice.v1.CloudService.UpdateUser:output_type -> temporal.api.cloud.cloudservice.v1.UpdateUserResponse - 51, // 51: temporal.api.cloud.cloudservice.v1.CloudService.DeleteUser:output_type -> temporal.api.cloud.cloudservice.v1.DeleteUserResponse - 52, // 52: temporal.api.cloud.cloudservice.v1.CloudService.SetUserNamespaceAccess:output_type -> temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse - 53, // 53: temporal.api.cloud.cloudservice.v1.CloudService.GetAsyncOperation:output_type -> temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse - 54, // 54: temporal.api.cloud.cloudservice.v1.CloudService.CreateNamespace:output_type -> temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse - 55, // 55: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespaces:output_type -> temporal.api.cloud.cloudservice.v1.GetNamespacesResponse - 56, // 56: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespace:output_type -> temporal.api.cloud.cloudservice.v1.GetNamespaceResponse - 57, // 57: temporal.api.cloud.cloudservice.v1.CloudService.UpdateNamespace:output_type -> temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse - 58, // 58: temporal.api.cloud.cloudservice.v1.CloudService.RenameCustomSearchAttribute:output_type -> temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse - 59, // 59: temporal.api.cloud.cloudservice.v1.CloudService.DeleteNamespace:output_type -> temporal.api.cloud.cloudservice.v1.DeleteNamespaceResponse - 60, // 60: temporal.api.cloud.cloudservice.v1.CloudService.FailoverNamespaceRegion:output_type -> temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionResponse - 61, // 61: temporal.api.cloud.cloudservice.v1.CloudService.AddNamespaceRegion:output_type -> temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse - 62, // 62: temporal.api.cloud.cloudservice.v1.CloudService.GetRegions:output_type -> temporal.api.cloud.cloudservice.v1.GetRegionsResponse - 63, // 63: temporal.api.cloud.cloudservice.v1.CloudService.GetRegion:output_type -> temporal.api.cloud.cloudservice.v1.GetRegionResponse - 64, // 64: temporal.api.cloud.cloudservice.v1.CloudService.GetApiKeys:output_type -> temporal.api.cloud.cloudservice.v1.GetApiKeysResponse - 65, // 65: temporal.api.cloud.cloudservice.v1.CloudService.GetApiKey:output_type -> temporal.api.cloud.cloudservice.v1.GetApiKeyResponse - 66, // 66: temporal.api.cloud.cloudservice.v1.CloudService.CreateApiKey:output_type -> temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse - 67, // 67: temporal.api.cloud.cloudservice.v1.CloudService.UpdateApiKey:output_type -> temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse - 68, // 68: temporal.api.cloud.cloudservice.v1.CloudService.DeleteApiKey:output_type -> temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse - 69, // 69: temporal.api.cloud.cloudservice.v1.CloudService.GetNexusEndpoints:output_type -> temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse - 70, // 70: temporal.api.cloud.cloudservice.v1.CloudService.GetNexusEndpoint:output_type -> temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse - 71, // 71: temporal.api.cloud.cloudservice.v1.CloudService.CreateNexusEndpoint:output_type -> temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse - 72, // 72: temporal.api.cloud.cloudservice.v1.CloudService.UpdateNexusEndpoint:output_type -> temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse - 73, // 73: temporal.api.cloud.cloudservice.v1.CloudService.DeleteNexusEndpoint:output_type -> temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse - 74, // 74: temporal.api.cloud.cloudservice.v1.CloudService.GetUserGroups:output_type -> temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse - 75, // 75: temporal.api.cloud.cloudservice.v1.CloudService.GetUserGroup:output_type -> temporal.api.cloud.cloudservice.v1.GetUserGroupResponse - 76, // 76: temporal.api.cloud.cloudservice.v1.CloudService.CreateUserGroup:output_type -> temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse - 77, // 77: temporal.api.cloud.cloudservice.v1.CloudService.UpdateUserGroup:output_type -> temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse - 78, // 78: temporal.api.cloud.cloudservice.v1.CloudService.DeleteUserGroup:output_type -> temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse - 79, // 79: temporal.api.cloud.cloudservice.v1.CloudService.SetUserGroupNamespaceAccess:output_type -> temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse - 80, // 80: temporal.api.cloud.cloudservice.v1.CloudService.CreateServiceAccount:output_type -> temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse - 81, // 81: temporal.api.cloud.cloudservice.v1.CloudService.GetServiceAccount:output_type -> temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse - 82, // 82: temporal.api.cloud.cloudservice.v1.CloudService.GetServiceAccounts:output_type -> temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse - 83, // 83: temporal.api.cloud.cloudservice.v1.CloudService.UpdateServiceAccount:output_type -> temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse - 84, // 84: temporal.api.cloud.cloudservice.v1.CloudService.DeleteServiceAccount:output_type -> temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse - 85, // 85: temporal.api.cloud.cloudservice.v1.CloudService.GetUsage:output_type -> temporal.api.cloud.cloudservice.v1.GetUsageResponse - 86, // 86: temporal.api.cloud.cloudservice.v1.CloudService.GetAccount:output_type -> temporal.api.cloud.cloudservice.v1.GetAccountResponse - 87, // 87: temporal.api.cloud.cloudservice.v1.CloudService.UpdateAccount:output_type -> temporal.api.cloud.cloudservice.v1.UpdateAccountResponse - 88, // 88: temporal.api.cloud.cloudservice.v1.CloudService.CreateNamespaceExportSink:output_type -> temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse - 89, // 89: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespaceExportSink:output_type -> temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse - 90, // 90: temporal.api.cloud.cloudservice.v1.CloudService.GetNamespaceExportSinks:output_type -> temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse - 91, // 91: temporal.api.cloud.cloudservice.v1.CloudService.UpdateNamespaceExportSink:output_type -> temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse - 92, // 92: temporal.api.cloud.cloudservice.v1.CloudService.DeleteNamespaceExportSink:output_type -> temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse - 93, // 93: temporal.api.cloud.cloudservice.v1.CloudService.ValidateNamespaceExportSink:output_type -> temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkResponse - 47, // [47:94] is the sub-list for method output_type - 0, // [0:47] 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_temporal_api_cloud_cloudservice_v1_service_proto_init() } -func file_temporal_api_cloud_cloudservice_v1_service_proto_init() { - if File_temporal_api_cloud_cloudservice_v1_service_proto != nil { - return - } - file_temporal_api_cloud_cloudservice_v1_request_response_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_cloudservice_v1_service_proto_rawDesc), len(file_temporal_api_cloud_cloudservice_v1_service_proto_rawDesc)), - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_temporal_api_cloud_cloudservice_v1_service_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_cloudservice_v1_service_proto_depIdxs, - }.Build() - File_temporal_api_cloud_cloudservice_v1_service_proto = out.File - file_temporal_api_cloud_cloudservice_v1_service_proto_goTypes = nil - file_temporal_api_cloud_cloudservice_v1_service_proto_depIdxs = nil -} diff --git a/cloud/cloudservice/v1/service.pb.gw.go b/cloud/cloudservice/v1/service.pb.gw.go deleted file mode 100644 index c10f8dab..00000000 --- a/cloud/cloudservice/v1/service.pb.gw.go +++ /dev/null @@ -1,3792 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: temporal/api/cloud/cloudservice/v1/service.proto - -/* -Package cloudservice is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package cloudservice - -import ( - "context" - "errors" - "io" - "net/http" - - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = errors.New - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) - -var filter_CloudService_GetUsers_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - -func request_CloudService_GetUsers_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUsersRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetUsers_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetUsers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetUsers_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUsersRequest - metadata runtime.ServerMetadata - ) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetUsers_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetUsers(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUserRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - msg, err := client.GetUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUserRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - msg, err := server.GetUser(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_CreateUser_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateUserRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.CreateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_CreateUser_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateUserRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.CreateUser(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateUserRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - msg, err := client.UpdateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateUserRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - msg, err := server.UpdateUser(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_DeleteUser_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} - -func request_CloudService_DeleteUser_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteUserRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteUser_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.DeleteUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_DeleteUser_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteUserRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteUser_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.DeleteUser(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_SetUserNamespaceAccess_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq SetUserNamespaceAccessRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - msg, err := client.SetUserNamespaceAccess(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_SetUserNamespaceAccess_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq SetUserNamespaceAccessRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - protoReq.UserId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - msg, err := server.SetUserNamespaceAccess(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetAsyncOperation_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetAsyncOperationRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["async_operation_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "async_operation_id") - } - protoReq.AsyncOperationId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "async_operation_id", err) - } - msg, err := client.GetAsyncOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetAsyncOperation_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetAsyncOperationRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["async_operation_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "async_operation_id") - } - protoReq.AsyncOperationId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "async_operation_id", err) - } - msg, err := server.GetAsyncOperation(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_CreateNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateNamespaceRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.CreateNamespace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_CreateNamespace_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateNamespaceRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.CreateNamespace(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_GetNamespaces_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - -func request_CloudService_GetNamespaces_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespacesRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetNamespaces_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetNamespaces(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetNamespaces_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespacesRequest - metadata runtime.ServerMetadata - ) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetNamespaces_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetNamespaces(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespaceRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := client.GetNamespace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetNamespace_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespaceRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := server.GetNamespace(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateNamespaceRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := client.UpdateNamespace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateNamespace_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateNamespaceRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := server.UpdateNamespace(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_RenameCustomSearchAttribute_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq RenameCustomSearchAttributeRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := client.RenameCustomSearchAttribute(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_RenameCustomSearchAttribute_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq RenameCustomSearchAttributeRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := server.RenameCustomSearchAttribute(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_DeleteNamespace_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} - -func request_CloudService_DeleteNamespace_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteNamespaceRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteNamespace_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.DeleteNamespace(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_DeleteNamespace_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteNamespaceRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteNamespace_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.DeleteNamespace(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_FailoverNamespaceRegion_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq FailoverNamespaceRegionRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := client.FailoverNamespaceRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_FailoverNamespaceRegion_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq FailoverNamespaceRegionRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := server.FailoverNamespaceRegion(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_AddNamespaceRegion_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq AddNamespaceRegionRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := client.AddNamespaceRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_AddNamespaceRegion_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq AddNamespaceRegionRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := server.AddNamespaceRegion(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetRegions_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetRegionsRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - msg, err := client.GetRegions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetRegions_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetRegionsRequest - metadata runtime.ServerMetadata - ) - msg, err := server.GetRegions(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetRegion_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetRegionRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["region"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "region") - } - protoReq.Region, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "region", err) - } - msg, err := client.GetRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetRegion_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetRegionRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["region"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "region") - } - protoReq.Region, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "region", err) - } - msg, err := server.GetRegion(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_GetApiKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - -func request_CloudService_GetApiKeys_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetApiKeysRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetApiKeys_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetApiKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetApiKeys_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetApiKeysRequest - metadata runtime.ServerMetadata - ) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetApiKeys_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetApiKeys(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetApiKey_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetApiKeyRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - protoReq.KeyId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - msg, err := client.GetApiKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetApiKey_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetApiKeyRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - protoReq.KeyId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - msg, err := server.GetApiKey(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_CreateApiKey_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateApiKeyRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.CreateApiKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_CreateApiKey_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateApiKeyRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.CreateApiKey(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateApiKey_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateApiKeyRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - protoReq.KeyId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - msg, err := client.UpdateApiKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateApiKey_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateApiKeyRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - protoReq.KeyId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - msg, err := server.UpdateApiKey(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_DeleteApiKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"key_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} - -func request_CloudService_DeleteApiKey_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteApiKeyRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - protoReq.KeyId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteApiKey_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.DeleteApiKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_DeleteApiKey_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteApiKeyRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - protoReq.KeyId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteApiKey_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.DeleteApiKey(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_GetNexusEndpoints_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - -func request_CloudService_GetNexusEndpoints_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNexusEndpointsRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetNexusEndpoints_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetNexusEndpoints(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetNexusEndpoints_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNexusEndpointsRequest - metadata runtime.ServerMetadata - ) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetNexusEndpoints_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetNexusEndpoints(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNexusEndpointRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["endpoint_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "endpoint_id") - } - protoReq.EndpointId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "endpoint_id", err) - } - msg, err := client.GetNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNexusEndpointRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["endpoint_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "endpoint_id") - } - protoReq.EndpointId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "endpoint_id", err) - } - msg, err := server.GetNexusEndpoint(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_CreateNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateNexusEndpointRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.CreateNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_CreateNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateNexusEndpointRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.CreateNexusEndpoint(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateNexusEndpointRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["endpoint_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "endpoint_id") - } - protoReq.EndpointId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "endpoint_id", err) - } - msg, err := client.UpdateNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateNexusEndpointRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["endpoint_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "endpoint_id") - } - protoReq.EndpointId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "endpoint_id", err) - } - msg, err := server.UpdateNexusEndpoint(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_DeleteNexusEndpoint_0 = &utilities.DoubleArray{Encoding: map[string]int{"endpoint_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} - -func request_CloudService_DeleteNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteNexusEndpointRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["endpoint_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "endpoint_id") - } - protoReq.EndpointId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "endpoint_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteNexusEndpoint_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.DeleteNexusEndpoint(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_DeleteNexusEndpoint_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteNexusEndpointRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["endpoint_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "endpoint_id") - } - protoReq.EndpointId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "endpoint_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteNexusEndpoint_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.DeleteNexusEndpoint(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_GetUserGroups_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - -func request_CloudService_GetUserGroups_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUserGroupsRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetUserGroups_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetUserGroups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetUserGroups_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUserGroupsRequest - metadata runtime.ServerMetadata - ) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetUserGroups_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetUserGroups(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUserGroupRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - msg, err := client.GetUserGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUserGroupRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - msg, err := server.GetUserGroup(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_CreateUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateUserGroupRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.CreateUserGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_CreateUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateUserGroupRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.CreateUserGroup(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateUserGroupRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - msg, err := client.UpdateUserGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateUserGroupRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - msg, err := server.UpdateUserGroup(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_DeleteUserGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"group_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} - -func request_CloudService_DeleteUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteUserGroupRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteUserGroup_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.DeleteUserGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_DeleteUserGroup_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteUserGroupRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteUserGroup_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.DeleteUserGroup(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_SetUserGroupNamespaceAccess_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq SetUserGroupNamespaceAccessRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - msg, err := client.SetUserGroupNamespaceAccess(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_SetUserGroupNamespaceAccess_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq SetUserGroupNamespaceAccessRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["group_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "group_id") - } - protoReq.GroupId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "group_id", err) - } - msg, err := server.SetUserGroupNamespaceAccess(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_CreateServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateServiceAccountRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.CreateServiceAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_CreateServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateServiceAccountRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.CreateServiceAccount(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetServiceAccountRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["service_account_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "service_account_id") - } - protoReq.ServiceAccountId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "service_account_id", err) - } - msg, err := client.GetServiceAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetServiceAccountRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["service_account_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "service_account_id") - } - protoReq.ServiceAccountId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "service_account_id", err) - } - msg, err := server.GetServiceAccount(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_GetServiceAccounts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - -func request_CloudService_GetServiceAccounts_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetServiceAccountsRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetServiceAccounts_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetServiceAccounts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetServiceAccounts_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetServiceAccountsRequest - metadata runtime.ServerMetadata - ) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetServiceAccounts_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetServiceAccounts(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateServiceAccountRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["service_account_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "service_account_id") - } - protoReq.ServiceAccountId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "service_account_id", err) - } - msg, err := client.UpdateServiceAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateServiceAccountRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["service_account_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "service_account_id") - } - protoReq.ServiceAccountId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "service_account_id", err) - } - msg, err := server.UpdateServiceAccount(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_DeleteServiceAccount_0 = &utilities.DoubleArray{Encoding: map[string]int{"service_account_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} - -func request_CloudService_DeleteServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteServiceAccountRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["service_account_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "service_account_id") - } - protoReq.ServiceAccountId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "service_account_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteServiceAccount_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.DeleteServiceAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_DeleteServiceAccount_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteServiceAccountRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["service_account_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "service_account_id") - } - protoReq.ServiceAccountId, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "service_account_id", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteServiceAccount_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.DeleteServiceAccount(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_GetUsage_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - -func request_CloudService_GetUsage_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUsageRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetUsage_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetUsage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetUsage_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetUsageRequest - metadata runtime.ServerMetadata - ) - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetUsage_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetUsage(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetAccount_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetAccountRequest - metadata runtime.ServerMetadata - ) - io.Copy(io.Discard, req.Body) - msg, err := client.GetAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetAccount_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetAccountRequest - metadata runtime.ServerMetadata - ) - msg, err := server.GetAccount(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateAccount_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateAccountRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.UpdateAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateAccount_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateAccountRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.UpdateAccount(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_CreateNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := client.CreateNamespaceExportSink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_CreateNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq CreateNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := server.CreateNamespaceExportSink(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_GetNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - protoReq.Name, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - msg, err := client.GetNamespaceExportSink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - protoReq.Name, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - msg, err := server.GetNamespaceExportSink(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_GetNamespaceExportSinks_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} - -func request_CloudService_GetNamespaceExportSinks_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespaceExportSinksRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetNamespaceExportSinks_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.GetNamespaceExportSinks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_GetNamespaceExportSinks_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GetNamespaceExportSinksRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_GetNamespaceExportSinks_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GetNamespaceExportSinks(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_UpdateNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["spec.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "spec.name") - } - err = runtime.PopulateFieldFromPath(&protoReq, "spec.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "spec.name", err) - } - msg, err := client.UpdateNamespaceExportSink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_UpdateNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq UpdateNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["spec.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "spec.name") - } - err = runtime.PopulateFieldFromPath(&protoReq, "spec.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "spec.name", err) - } - msg, err := server.UpdateNamespaceExportSink(ctx, &protoReq) - return msg, metadata, err -} - -var filter_CloudService_DeleteNamespaceExportSink_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} - -func request_CloudService_DeleteNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - io.Copy(io.Discard, req.Body) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - protoReq.Name, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteNamespaceExportSink_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.DeleteNamespaceExportSink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_DeleteNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq DeleteNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - protoReq.Name, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_CloudService_DeleteNamespaceExportSink_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.DeleteNamespaceExportSink(ctx, &protoReq) - return msg, metadata, err -} - -func request_CloudService_ValidateNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, client CloudServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq ValidateNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := client.ValidateNamespaceExportSink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_CloudService_ValidateNamespaceExportSink_0(ctx context.Context, marshaler runtime.Marshaler, server CloudServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq ValidateNamespaceExportSinkRequest - metadata runtime.ServerMetadata - err error - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - val, ok := pathParams["namespace"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "namespace") - } - protoReq.Namespace, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err) - } - msg, err := server.ValidateNamespaceExportSink(ctx, &protoReq) - return msg, metadata, err -} - -// RegisterCloudServiceHandlerServer registers the http handlers for service CloudService to "mux". -// UnaryRPC :call CloudServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCloudServiceHandlerFromEndpoint instead. -// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. -func RegisterCloudServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CloudServiceServer) error { - mux.Handle(http.MethodGet, pattern_CloudService_GetUsers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsers", runtime.WithHTTPPathPattern("/cloud/users")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetUsers_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUsers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUser", runtime.WithHTTPPathPattern("/cloud/users/{user_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetUser_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateUser", runtime.WithHTTPPathPattern("/cloud/users")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_CreateUser_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateUser", runtime.WithHTTPPathPattern("/cloud/users/{user_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateUser_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteUser", runtime.WithHTTPPathPattern("/cloud/users/{user_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_DeleteUser_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_SetUserNamespaceAccess_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/SetUserNamespaceAccess", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/users/{user_id}/access")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_SetUserNamespaceAccess_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_SetUserNamespaceAccess_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetAsyncOperation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetAsyncOperation", runtime.WithHTTPPathPattern("/cloud/operations/{async_operation_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetAsyncOperation_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetAsyncOperation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_CreateNamespace_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespaces_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaces", runtime.WithHTTPPathPattern("/cloud/namespaces")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetNamespaces_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespaces_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetNamespace_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateNamespace_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_RenameCustomSearchAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/RenameCustomSearchAttribute", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/rename-custom-search-attribute")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_RenameCustomSearchAttribute_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_RenameCustomSearchAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_DeleteNamespace_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_FailoverNamespaceRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/FailoverNamespaceRegion", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/failover-region")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_FailoverNamespaceRegion_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_FailoverNamespaceRegion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_AddNamespaceRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/AddNamespaceRegion", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/add-region")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_AddNamespaceRegion_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_AddNamespaceRegion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetRegions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetRegions", runtime.WithHTTPPathPattern("/cloud/regions")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetRegions_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetRegions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetRegion", runtime.WithHTTPPathPattern("/cloud/regions/{region}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetRegion_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetRegion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetApiKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetApiKeys", runtime.WithHTTPPathPattern("/cloud/api-keys")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetApiKeys_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetApiKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys/{key_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetApiKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_CreateApiKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys/{key_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateApiKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys/{key_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_DeleteApiKey_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNexusEndpoints_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNexusEndpoints", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetNexusEndpoints_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNexusEndpoints_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints/{endpoint_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetNexusEndpoint_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_CreateNexusEndpoint_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints/{endpoint_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateNexusEndpoint_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints/{endpoint_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_DeleteNexusEndpoint_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUserGroups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUserGroups", runtime.WithHTTPPathPattern("/cloud/user-groups")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetUserGroups_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUserGroups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups/{group_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetUserGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_CreateUserGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups/{group_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateUserGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups/{group_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_DeleteUserGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_SetUserGroupNamespaceAccess_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/SetUserGroupNamespaceAccess", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/user-groups/{group_id}/access")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_SetUserGroupNamespaceAccess_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_SetUserGroupNamespaceAccess_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_CreateServiceAccount_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts/{service_account_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetServiceAccount_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetServiceAccounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetServiceAccounts", runtime.WithHTTPPathPattern("/cloud/service-accounts")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetServiceAccounts_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetServiceAccounts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts/{service_account_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateServiceAccount_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts/{service_account_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_DeleteServiceAccount_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUsage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsage", runtime.WithHTTPPathPattern("/cloud/usage")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetUsage_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUsage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetAccount", runtime.WithHTTPPathPattern("/cloud/account")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetAccount_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateAccount", runtime.WithHTTPPathPattern("/cloud/account")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateAccount_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_CreateNamespaceExportSink_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/{name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetNamespaceExportSink_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespaceExportSinks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSinks", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_GetNamespaceExportSinks_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespaceExportSinks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/{spec.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_UpdateNamespaceExportSink_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/{name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_DeleteNamespaceExportSink_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_ValidateNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/ValidateNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/validate")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_CloudService_ValidateNamespaceExportSink_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_ValidateNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - return nil -} - -// RegisterCloudServiceHandlerFromEndpoint is same as RegisterCloudServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterCloudServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.NewClient(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - return RegisterCloudServiceHandler(ctx, mux, conn) -} - -// RegisterCloudServiceHandler registers the http handlers for service CloudService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterCloudServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterCloudServiceHandlerClient(ctx, mux, NewCloudServiceClient(conn)) -} - -// RegisterCloudServiceHandlerClient registers the http handlers for service CloudService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CloudServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CloudServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "CloudServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares. -func RegisterCloudServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CloudServiceClient) error { - mux.Handle(http.MethodGet, pattern_CloudService_GetUsers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsers", runtime.WithHTTPPathPattern("/cloud/users")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetUsers_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUsers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUser", runtime.WithHTTPPathPattern("/cloud/users/{user_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetUser_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateUser", runtime.WithHTTPPathPattern("/cloud/users")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_CreateUser_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateUser", runtime.WithHTTPPathPattern("/cloud/users/{user_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateUser_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteUser", runtime.WithHTTPPathPattern("/cloud/users/{user_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_DeleteUser_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_SetUserNamespaceAccess_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/SetUserNamespaceAccess", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/users/{user_id}/access")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_SetUserNamespaceAccess_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_SetUserNamespaceAccess_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetAsyncOperation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetAsyncOperation", runtime.WithHTTPPathPattern("/cloud/operations/{async_operation_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetAsyncOperation_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetAsyncOperation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_CreateNamespace_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespaces_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaces", runtime.WithHTTPPathPattern("/cloud/namespaces")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetNamespaces_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespaces_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetNamespace_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateNamespace_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_RenameCustomSearchAttribute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/RenameCustomSearchAttribute", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/rename-custom-search-attribute")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_RenameCustomSearchAttribute_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_RenameCustomSearchAttribute_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteNamespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespace", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_DeleteNamespace_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteNamespace_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_FailoverNamespaceRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/FailoverNamespaceRegion", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/failover-region")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_FailoverNamespaceRegion_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_FailoverNamespaceRegion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_AddNamespaceRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/AddNamespaceRegion", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/add-region")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_AddNamespaceRegion_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_AddNamespaceRegion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetRegions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetRegions", runtime.WithHTTPPathPattern("/cloud/regions")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetRegions_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetRegions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetRegion", runtime.WithHTTPPathPattern("/cloud/regions/{region}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetRegion_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetRegion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetApiKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetApiKeys", runtime.WithHTTPPathPattern("/cloud/api-keys")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetApiKeys_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetApiKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys/{key_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetApiKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_CreateApiKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys/{key_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateApiKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteApiKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteApiKey", runtime.WithHTTPPathPattern("/cloud/api-keys/{key_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_DeleteApiKey_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteApiKey_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNexusEndpoints_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNexusEndpoints", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetNexusEndpoints_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNexusEndpoints_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints/{endpoint_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetNexusEndpoint_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_CreateNexusEndpoint_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints/{endpoint_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateNexusEndpoint_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteNexusEndpoint_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNexusEndpoint", runtime.WithHTTPPathPattern("/cloud/nexus/endpoints/{endpoint_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_DeleteNexusEndpoint_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteNexusEndpoint_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUserGroups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUserGroups", runtime.WithHTTPPathPattern("/cloud/user-groups")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetUserGroups_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUserGroups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups/{group_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetUserGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_CreateUserGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups/{group_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateUserGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteUserGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteUserGroup", runtime.WithHTTPPathPattern("/cloud/user-groups/{group_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_DeleteUserGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteUserGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_SetUserGroupNamespaceAccess_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/SetUserGroupNamespaceAccess", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/user-groups/{group_id}/access")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_SetUserGroupNamespaceAccess_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_SetUserGroupNamespaceAccess_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_CreateServiceAccount_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts/{service_account_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetServiceAccount_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetServiceAccounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetServiceAccounts", runtime.WithHTTPPathPattern("/cloud/service-accounts")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetServiceAccounts_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetServiceAccounts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts/{service_account_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateServiceAccount_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteServiceAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteServiceAccount", runtime.WithHTTPPathPattern("/cloud/service-accounts/{service_account_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_DeleteServiceAccount_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteServiceAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetUsage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsage", runtime.WithHTTPPathPattern("/cloud/usage")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetUsage_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetUsage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetAccount", runtime.WithHTTPPathPattern("/cloud/account")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetAccount_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateAccount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateAccount", runtime.WithHTTPPathPattern("/cloud/account")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateAccount_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_CreateNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_CreateNamespaceExportSink_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_CreateNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/{name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetNamespaceExportSink_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_CloudService_GetNamespaceExportSinks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSinks", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_GetNamespaceExportSinks_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_GetNamespaceExportSinks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_UpdateNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/{spec.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_UpdateNamespaceExportSink_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_UpdateNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodDelete, pattern_CloudService_DeleteNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/{name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_DeleteNamespaceExportSink_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_DeleteNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_CloudService_ValidateNamespaceExportSink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/temporal.api.cloud.cloudservice.v1.CloudService/ValidateNamespaceExportSink", runtime.WithHTTPPathPattern("/cloud/namespaces/{namespace}/export-sinks/validate")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_CloudService_ValidateNamespaceExportSink_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_CloudService_ValidateNamespaceExportSink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil -} - -var ( - pattern_CloudService_GetUsers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "users"}, "")) - pattern_CloudService_GetUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "users", "user_id"}, "")) - pattern_CloudService_CreateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "users"}, "")) - pattern_CloudService_UpdateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "users", "user_id"}, "")) - pattern_CloudService_DeleteUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "users", "user_id"}, "")) - pattern_CloudService_SetUserNamespaceAccess_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cloud", "namespaces", "namespace", "users", "user_id", "access"}, "")) - pattern_CloudService_GetAsyncOperation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "operations", "async_operation_id"}, "")) - pattern_CloudService_CreateNamespace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "namespaces"}, "")) - pattern_CloudService_GetNamespaces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "namespaces"}, "")) - pattern_CloudService_GetNamespace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "namespaces", "namespace"}, "")) - pattern_CloudService_UpdateNamespace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "namespaces", "namespace"}, "")) - pattern_CloudService_RenameCustomSearchAttribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"cloud", "namespaces", "namespace", "rename-custom-search-attribute"}, "")) - pattern_CloudService_DeleteNamespace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "namespaces", "namespace"}, "")) - pattern_CloudService_FailoverNamespaceRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"cloud", "namespaces", "namespace", "failover-region"}, "")) - pattern_CloudService_AddNamespaceRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"cloud", "namespaces", "namespace", "add-region"}, "")) - pattern_CloudService_GetRegions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "regions"}, "")) - pattern_CloudService_GetRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "regions", "region"}, "")) - pattern_CloudService_GetApiKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "api-keys"}, "")) - pattern_CloudService_GetApiKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "api-keys", "key_id"}, "")) - pattern_CloudService_CreateApiKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "api-keys"}, "")) - pattern_CloudService_UpdateApiKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "api-keys", "key_id"}, "")) - pattern_CloudService_DeleteApiKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "api-keys", "key_id"}, "")) - pattern_CloudService_GetNexusEndpoints_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"cloud", "nexus", "endpoints"}, "")) - pattern_CloudService_GetNexusEndpoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"cloud", "nexus", "endpoints", "endpoint_id"}, "")) - pattern_CloudService_CreateNexusEndpoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"cloud", "nexus", "endpoints"}, "")) - pattern_CloudService_UpdateNexusEndpoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"cloud", "nexus", "endpoints", "endpoint_id"}, "")) - pattern_CloudService_DeleteNexusEndpoint_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"cloud", "nexus", "endpoints", "endpoint_id"}, "")) - pattern_CloudService_GetUserGroups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "user-groups"}, "")) - pattern_CloudService_GetUserGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "user-groups", "group_id"}, "")) - pattern_CloudService_CreateUserGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "user-groups"}, "")) - pattern_CloudService_UpdateUserGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "user-groups", "group_id"}, "")) - pattern_CloudService_DeleteUserGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "user-groups", "group_id"}, "")) - pattern_CloudService_SetUserGroupNamespaceAccess_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"cloud", "namespaces", "namespace", "user-groups", "group_id", "access"}, "")) - pattern_CloudService_CreateServiceAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "service-accounts"}, "")) - pattern_CloudService_GetServiceAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "service-accounts", "service_account_id"}, "")) - pattern_CloudService_GetServiceAccounts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "service-accounts"}, "")) - pattern_CloudService_UpdateServiceAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "service-accounts", "service_account_id"}, "")) - pattern_CloudService_DeleteServiceAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"cloud", "service-accounts", "service_account_id"}, "")) - pattern_CloudService_GetUsage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "usage"}, "")) - pattern_CloudService_GetAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "account"}, "")) - pattern_CloudService_UpdateAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"cloud", "account"}, "")) - pattern_CloudService_CreateNamespaceExportSink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"cloud", "namespaces", "namespace", "export-sinks"}, "")) - pattern_CloudService_GetNamespaceExportSink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cloud", "namespaces", "namespace", "export-sinks", "name"}, "")) - pattern_CloudService_GetNamespaceExportSinks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"cloud", "namespaces", "namespace", "export-sinks"}, "")) - pattern_CloudService_UpdateNamespaceExportSink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cloud", "namespaces", "namespace", "export-sinks", "spec.name"}, "")) - pattern_CloudService_DeleteNamespaceExportSink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"cloud", "namespaces", "namespace", "export-sinks", "name"}, "")) - pattern_CloudService_ValidateNamespaceExportSink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"cloud", "namespaces", "namespace", "export-sinks", "validate"}, "")) -) - -var ( - forward_CloudService_GetUsers_0 = runtime.ForwardResponseMessage - forward_CloudService_GetUser_0 = runtime.ForwardResponseMessage - forward_CloudService_CreateUser_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateUser_0 = runtime.ForwardResponseMessage - forward_CloudService_DeleteUser_0 = runtime.ForwardResponseMessage - forward_CloudService_SetUserNamespaceAccess_0 = runtime.ForwardResponseMessage - forward_CloudService_GetAsyncOperation_0 = runtime.ForwardResponseMessage - forward_CloudService_CreateNamespace_0 = runtime.ForwardResponseMessage - forward_CloudService_GetNamespaces_0 = runtime.ForwardResponseMessage - forward_CloudService_GetNamespace_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateNamespace_0 = runtime.ForwardResponseMessage - forward_CloudService_RenameCustomSearchAttribute_0 = runtime.ForwardResponseMessage - forward_CloudService_DeleteNamespace_0 = runtime.ForwardResponseMessage - forward_CloudService_FailoverNamespaceRegion_0 = runtime.ForwardResponseMessage - forward_CloudService_AddNamespaceRegion_0 = runtime.ForwardResponseMessage - forward_CloudService_GetRegions_0 = runtime.ForwardResponseMessage - forward_CloudService_GetRegion_0 = runtime.ForwardResponseMessage - forward_CloudService_GetApiKeys_0 = runtime.ForwardResponseMessage - forward_CloudService_GetApiKey_0 = runtime.ForwardResponseMessage - forward_CloudService_CreateApiKey_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateApiKey_0 = runtime.ForwardResponseMessage - forward_CloudService_DeleteApiKey_0 = runtime.ForwardResponseMessage - forward_CloudService_GetNexusEndpoints_0 = runtime.ForwardResponseMessage - forward_CloudService_GetNexusEndpoint_0 = runtime.ForwardResponseMessage - forward_CloudService_CreateNexusEndpoint_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateNexusEndpoint_0 = runtime.ForwardResponseMessage - forward_CloudService_DeleteNexusEndpoint_0 = runtime.ForwardResponseMessage - forward_CloudService_GetUserGroups_0 = runtime.ForwardResponseMessage - forward_CloudService_GetUserGroup_0 = runtime.ForwardResponseMessage - forward_CloudService_CreateUserGroup_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateUserGroup_0 = runtime.ForwardResponseMessage - forward_CloudService_DeleteUserGroup_0 = runtime.ForwardResponseMessage - forward_CloudService_SetUserGroupNamespaceAccess_0 = runtime.ForwardResponseMessage - forward_CloudService_CreateServiceAccount_0 = runtime.ForwardResponseMessage - forward_CloudService_GetServiceAccount_0 = runtime.ForwardResponseMessage - forward_CloudService_GetServiceAccounts_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateServiceAccount_0 = runtime.ForwardResponseMessage - forward_CloudService_DeleteServiceAccount_0 = runtime.ForwardResponseMessage - forward_CloudService_GetUsage_0 = runtime.ForwardResponseMessage - forward_CloudService_GetAccount_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateAccount_0 = runtime.ForwardResponseMessage - forward_CloudService_CreateNamespaceExportSink_0 = runtime.ForwardResponseMessage - forward_CloudService_GetNamespaceExportSink_0 = runtime.ForwardResponseMessage - forward_CloudService_GetNamespaceExportSinks_0 = runtime.ForwardResponseMessage - forward_CloudService_UpdateNamespaceExportSink_0 = runtime.ForwardResponseMessage - forward_CloudService_DeleteNamespaceExportSink_0 = runtime.ForwardResponseMessage - forward_CloudService_ValidateNamespaceExportSink_0 = runtime.ForwardResponseMessage -) diff --git a/cloud/cloudservice/v1/service_grpc.pb.go b/cloud/cloudservice/v1/service_grpc.pb.go deleted file mode 100644 index 0e4f8716..00000000 --- a/cloud/cloudservice/v1/service_grpc.pb.go +++ /dev/null @@ -1,1996 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// plugins: -// - protoc-gen-go-grpc -// - protoc -// source: temporal/api/cloud/cloudservice/v1/service.proto - -package cloudservice - -import ( - context "context" - - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - CloudService_GetUsers_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsers" - CloudService_GetUser_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetUser" - CloudService_CreateUser_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/CreateUser" - CloudService_UpdateUser_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateUser" - CloudService_DeleteUser_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteUser" - CloudService_SetUserNamespaceAccess_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/SetUserNamespaceAccess" - CloudService_GetAsyncOperation_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetAsyncOperation" - CloudService_CreateNamespace_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespace" - CloudService_GetNamespaces_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaces" - CloudService_GetNamespace_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespace" - CloudService_UpdateNamespace_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespace" - CloudService_RenameCustomSearchAttribute_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/RenameCustomSearchAttribute" - CloudService_DeleteNamespace_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespace" - CloudService_FailoverNamespaceRegion_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/FailoverNamespaceRegion" - CloudService_AddNamespaceRegion_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/AddNamespaceRegion" - CloudService_GetRegions_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetRegions" - CloudService_GetRegion_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetRegion" - CloudService_GetApiKeys_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetApiKeys" - CloudService_GetApiKey_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetApiKey" - CloudService_CreateApiKey_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/CreateApiKey" - CloudService_UpdateApiKey_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateApiKey" - CloudService_DeleteApiKey_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteApiKey" - CloudService_GetNexusEndpoints_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetNexusEndpoints" - CloudService_GetNexusEndpoint_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetNexusEndpoint" - CloudService_CreateNexusEndpoint_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNexusEndpoint" - CloudService_UpdateNexusEndpoint_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNexusEndpoint" - CloudService_DeleteNexusEndpoint_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNexusEndpoint" - CloudService_GetUserGroups_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetUserGroups" - CloudService_GetUserGroup_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetUserGroup" - CloudService_CreateUserGroup_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/CreateUserGroup" - CloudService_UpdateUserGroup_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateUserGroup" - CloudService_DeleteUserGroup_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteUserGroup" - CloudService_SetUserGroupNamespaceAccess_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/SetUserGroupNamespaceAccess" - CloudService_CreateServiceAccount_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/CreateServiceAccount" - CloudService_GetServiceAccount_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetServiceAccount" - CloudService_GetServiceAccounts_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetServiceAccounts" - CloudService_UpdateServiceAccount_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateServiceAccount" - CloudService_DeleteServiceAccount_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteServiceAccount" - CloudService_GetUsage_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsage" - CloudService_GetAccount_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetAccount" - CloudService_UpdateAccount_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateAccount" - CloudService_CreateNamespaceExportSink_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespaceExportSink" - CloudService_GetNamespaceExportSink_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSink" - CloudService_GetNamespaceExportSinks_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSinks" - CloudService_UpdateNamespaceExportSink_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespaceExportSink" - CloudService_DeleteNamespaceExportSink_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespaceExportSink" - CloudService_ValidateNamespaceExportSink_FullMethodName = "/temporal.api.cloud.cloudservice.v1.CloudService/ValidateNamespaceExportSink" -) - -// CloudServiceClient is the client API for CloudService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// WARNING: This service is currently experimental and may change in -// incompatible ways. -type CloudServiceClient interface { - // Gets all known users - GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) - // Get a user - GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) - // Create a user - CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) - // Update a user - UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) - // Delete a user - DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) - // Set a user's access to a namespace - SetUserNamespaceAccess(ctx context.Context, in *SetUserNamespaceAccessRequest, opts ...grpc.CallOption) (*SetUserNamespaceAccessResponse, error) - // Get the latest information on an async operation - GetAsyncOperation(ctx context.Context, in *GetAsyncOperationRequest, opts ...grpc.CallOption) (*GetAsyncOperationResponse, error) - // Create a new namespace - CreateNamespace(ctx context.Context, in *CreateNamespaceRequest, opts ...grpc.CallOption) (*CreateNamespaceResponse, error) - // Get all namespaces - GetNamespaces(ctx context.Context, in *GetNamespacesRequest, opts ...grpc.CallOption) (*GetNamespacesResponse, error) - // Get a namespace - GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) - // Update a namespace - UpdateNamespace(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*UpdateNamespaceResponse, error) - // Rename an existing customer search attribute - RenameCustomSearchAttribute(ctx context.Context, in *RenameCustomSearchAttributeRequest, opts ...grpc.CallOption) (*RenameCustomSearchAttributeResponse, error) - // Delete a namespace - DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) - // Failover a multi-region namespace - FailoverNamespaceRegion(ctx context.Context, in *FailoverNamespaceRegionRequest, opts ...grpc.CallOption) (*FailoverNamespaceRegionResponse, error) - // Add a new region to a namespace - AddNamespaceRegion(ctx context.Context, in *AddNamespaceRegionRequest, opts ...grpc.CallOption) (*AddNamespaceRegionResponse, error) - // Get all regions - GetRegions(ctx context.Context, in *GetRegionsRequest, opts ...grpc.CallOption) (*GetRegionsResponse, error) - // Get a region - GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) - // Get all known API keys - GetApiKeys(ctx context.Context, in *GetApiKeysRequest, opts ...grpc.CallOption) (*GetApiKeysResponse, error) - // Get an API key - GetApiKey(ctx context.Context, in *GetApiKeyRequest, opts ...grpc.CallOption) (*GetApiKeyResponse, error) - // Create an API key - CreateApiKey(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error) - // Update an API key - UpdateApiKey(ctx context.Context, in *UpdateApiKeyRequest, opts ...grpc.CallOption) (*UpdateApiKeyResponse, error) - // Delete an API key - DeleteApiKey(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*DeleteApiKeyResponse, error) - // Gets nexus endpoints - GetNexusEndpoints(ctx context.Context, in *GetNexusEndpointsRequest, opts ...grpc.CallOption) (*GetNexusEndpointsResponse, error) - // Get a nexus endpoint - GetNexusEndpoint(ctx context.Context, in *GetNexusEndpointRequest, opts ...grpc.CallOption) (*GetNexusEndpointResponse, error) - // Create a nexus endpoint - CreateNexusEndpoint(ctx context.Context, in *CreateNexusEndpointRequest, opts ...grpc.CallOption) (*CreateNexusEndpointResponse, error) - // Update a nexus endpoint - UpdateNexusEndpoint(ctx context.Context, in *UpdateNexusEndpointRequest, opts ...grpc.CallOption) (*UpdateNexusEndpointResponse, error) - // Delete a nexus endpoint - DeleteNexusEndpoint(ctx context.Context, in *DeleteNexusEndpointRequest, opts ...grpc.CallOption) (*DeleteNexusEndpointResponse, error) - // Get all user groups - GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) - // Get a user group - GetUserGroup(ctx context.Context, in *GetUserGroupRequest, opts ...grpc.CallOption) (*GetUserGroupResponse, error) - // Create new a user group - CreateUserGroup(ctx context.Context, in *CreateUserGroupRequest, opts ...grpc.CallOption) (*CreateUserGroupResponse, error) - // Update a user group - UpdateUserGroup(ctx context.Context, in *UpdateUserGroupRequest, opts ...grpc.CallOption) (*UpdateUserGroupResponse, error) - // Delete a user group - DeleteUserGroup(ctx context.Context, in *DeleteUserGroupRequest, opts ...grpc.CallOption) (*DeleteUserGroupResponse, error) - // Set a user group's access to a namespace - SetUserGroupNamespaceAccess(ctx context.Context, in *SetUserGroupNamespaceAccessRequest, opts ...grpc.CallOption) (*SetUserGroupNamespaceAccessResponse, error) - // Create a service account. - CreateServiceAccount(ctx context.Context, in *CreateServiceAccountRequest, opts ...grpc.CallOption) (*CreateServiceAccountResponse, error) - // Get a service account. - GetServiceAccount(ctx context.Context, in *GetServiceAccountRequest, opts ...grpc.CallOption) (*GetServiceAccountResponse, error) - // Get service accounts. - GetServiceAccounts(ctx context.Context, in *GetServiceAccountsRequest, opts ...grpc.CallOption) (*GetServiceAccountsResponse, error) - // Update a service account. - UpdateServiceAccount(ctx context.Context, in *UpdateServiceAccountRequest, opts ...grpc.CallOption) (*UpdateServiceAccountResponse, error) - // Delete a service account. - DeleteServiceAccount(ctx context.Context, in *DeleteServiceAccountRequest, opts ...grpc.CallOption) (*DeleteServiceAccountResponse, error) - // WARNING: Pre-Release Feature - // Get usage data across namespaces - GetUsage(ctx context.Context, in *GetUsageRequest, opts ...grpc.CallOption) (*GetUsageResponse, error) - // Get account information. - GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) - // Update account information. - UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) - // Create an export sink - CreateNamespaceExportSink(ctx context.Context, in *CreateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*CreateNamespaceExportSinkResponse, error) - // Get an export sink - GetNamespaceExportSink(ctx context.Context, in *GetNamespaceExportSinkRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinkResponse, error) - // Get export sinks - GetNamespaceExportSinks(ctx context.Context, in *GetNamespaceExportSinksRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinksResponse, error) - // Update an export sink - UpdateNamespaceExportSink(ctx context.Context, in *UpdateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*UpdateNamespaceExportSinkResponse, error) - // Delete an export sink - DeleteNamespaceExportSink(ctx context.Context, in *DeleteNamespaceExportSinkRequest, opts ...grpc.CallOption) (*DeleteNamespaceExportSinkResponse, error) - // Validates an export sink configuration by delivering an empty test file to the specified sink. - // This operation verifies that the sink is correctly configured, accessible, and ready for data export. - ValidateNamespaceExportSink(ctx context.Context, in *ValidateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*ValidateNamespaceExportSinkResponse, error) -} - -type cloudServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewCloudServiceClient(cc grpc.ClientConnInterface) CloudServiceClient { - return &cloudServiceClient{cc} -} - -func (c *cloudServiceClient) GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUsersResponse) - err := c.cc.Invoke(ctx, CloudService_GetUsers_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUserResponse) - err := c.cc.Invoke(ctx, CloudService_GetUser_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CreateUserResponse) - err := c.cc.Invoke(ctx, CloudService_CreateUser_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateUserResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateUser_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteUserResponse) - err := c.cc.Invoke(ctx, CloudService_DeleteUser_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) SetUserNamespaceAccess(ctx context.Context, in *SetUserNamespaceAccessRequest, opts ...grpc.CallOption) (*SetUserNamespaceAccessResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(SetUserNamespaceAccessResponse) - err := c.cc.Invoke(ctx, CloudService_SetUserNamespaceAccess_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetAsyncOperation(ctx context.Context, in *GetAsyncOperationRequest, opts ...grpc.CallOption) (*GetAsyncOperationResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetAsyncOperationResponse) - err := c.cc.Invoke(ctx, CloudService_GetAsyncOperation_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) CreateNamespace(ctx context.Context, in *CreateNamespaceRequest, opts ...grpc.CallOption) (*CreateNamespaceResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CreateNamespaceResponse) - err := c.cc.Invoke(ctx, CloudService_CreateNamespace_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetNamespaces(ctx context.Context, in *GetNamespacesRequest, opts ...grpc.CallOption) (*GetNamespacesResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetNamespacesResponse) - err := c.cc.Invoke(ctx, CloudService_GetNamespaces_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetNamespaceResponse) - err := c.cc.Invoke(ctx, CloudService_GetNamespace_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateNamespace(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*UpdateNamespaceResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateNamespaceResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateNamespace_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) RenameCustomSearchAttribute(ctx context.Context, in *RenameCustomSearchAttributeRequest, opts ...grpc.CallOption) (*RenameCustomSearchAttributeResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(RenameCustomSearchAttributeResponse) - err := c.cc.Invoke(ctx, CloudService_RenameCustomSearchAttribute_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteNamespaceResponse) - err := c.cc.Invoke(ctx, CloudService_DeleteNamespace_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) FailoverNamespaceRegion(ctx context.Context, in *FailoverNamespaceRegionRequest, opts ...grpc.CallOption) (*FailoverNamespaceRegionResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(FailoverNamespaceRegionResponse) - err := c.cc.Invoke(ctx, CloudService_FailoverNamespaceRegion_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) AddNamespaceRegion(ctx context.Context, in *AddNamespaceRegionRequest, opts ...grpc.CallOption) (*AddNamespaceRegionResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AddNamespaceRegionResponse) - err := c.cc.Invoke(ctx, CloudService_AddNamespaceRegion_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetRegions(ctx context.Context, in *GetRegionsRequest, opts ...grpc.CallOption) (*GetRegionsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetRegionsResponse) - err := c.cc.Invoke(ctx, CloudService_GetRegions_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetRegionResponse) - err := c.cc.Invoke(ctx, CloudService_GetRegion_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetApiKeys(ctx context.Context, in *GetApiKeysRequest, opts ...grpc.CallOption) (*GetApiKeysResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetApiKeysResponse) - err := c.cc.Invoke(ctx, CloudService_GetApiKeys_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetApiKey(ctx context.Context, in *GetApiKeyRequest, opts ...grpc.CallOption) (*GetApiKeyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetApiKeyResponse) - err := c.cc.Invoke(ctx, CloudService_GetApiKey_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) CreateApiKey(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CreateApiKeyResponse) - err := c.cc.Invoke(ctx, CloudService_CreateApiKey_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateApiKey(ctx context.Context, in *UpdateApiKeyRequest, opts ...grpc.CallOption) (*UpdateApiKeyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateApiKeyResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateApiKey_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) DeleteApiKey(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*DeleteApiKeyResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteApiKeyResponse) - err := c.cc.Invoke(ctx, CloudService_DeleteApiKey_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetNexusEndpoints(ctx context.Context, in *GetNexusEndpointsRequest, opts ...grpc.CallOption) (*GetNexusEndpointsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetNexusEndpointsResponse) - err := c.cc.Invoke(ctx, CloudService_GetNexusEndpoints_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetNexusEndpoint(ctx context.Context, in *GetNexusEndpointRequest, opts ...grpc.CallOption) (*GetNexusEndpointResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetNexusEndpointResponse) - err := c.cc.Invoke(ctx, CloudService_GetNexusEndpoint_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) CreateNexusEndpoint(ctx context.Context, in *CreateNexusEndpointRequest, opts ...grpc.CallOption) (*CreateNexusEndpointResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CreateNexusEndpointResponse) - err := c.cc.Invoke(ctx, CloudService_CreateNexusEndpoint_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateNexusEndpoint(ctx context.Context, in *UpdateNexusEndpointRequest, opts ...grpc.CallOption) (*UpdateNexusEndpointResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateNexusEndpointResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateNexusEndpoint_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) DeleteNexusEndpoint(ctx context.Context, in *DeleteNexusEndpointRequest, opts ...grpc.CallOption) (*DeleteNexusEndpointResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteNexusEndpointResponse) - err := c.cc.Invoke(ctx, CloudService_DeleteNexusEndpoint_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUserGroupsResponse) - err := c.cc.Invoke(ctx, CloudService_GetUserGroups_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetUserGroup(ctx context.Context, in *GetUserGroupRequest, opts ...grpc.CallOption) (*GetUserGroupResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUserGroupResponse) - err := c.cc.Invoke(ctx, CloudService_GetUserGroup_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) CreateUserGroup(ctx context.Context, in *CreateUserGroupRequest, opts ...grpc.CallOption) (*CreateUserGroupResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CreateUserGroupResponse) - err := c.cc.Invoke(ctx, CloudService_CreateUserGroup_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateUserGroup(ctx context.Context, in *UpdateUserGroupRequest, opts ...grpc.CallOption) (*UpdateUserGroupResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateUserGroupResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateUserGroup_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) DeleteUserGroup(ctx context.Context, in *DeleteUserGroupRequest, opts ...grpc.CallOption) (*DeleteUserGroupResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteUserGroupResponse) - err := c.cc.Invoke(ctx, CloudService_DeleteUserGroup_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) SetUserGroupNamespaceAccess(ctx context.Context, in *SetUserGroupNamespaceAccessRequest, opts ...grpc.CallOption) (*SetUserGroupNamespaceAccessResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(SetUserGroupNamespaceAccessResponse) - err := c.cc.Invoke(ctx, CloudService_SetUserGroupNamespaceAccess_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) CreateServiceAccount(ctx context.Context, in *CreateServiceAccountRequest, opts ...grpc.CallOption) (*CreateServiceAccountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CreateServiceAccountResponse) - err := c.cc.Invoke(ctx, CloudService_CreateServiceAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetServiceAccount(ctx context.Context, in *GetServiceAccountRequest, opts ...grpc.CallOption) (*GetServiceAccountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetServiceAccountResponse) - err := c.cc.Invoke(ctx, CloudService_GetServiceAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetServiceAccounts(ctx context.Context, in *GetServiceAccountsRequest, opts ...grpc.CallOption) (*GetServiceAccountsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetServiceAccountsResponse) - err := c.cc.Invoke(ctx, CloudService_GetServiceAccounts_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateServiceAccount(ctx context.Context, in *UpdateServiceAccountRequest, opts ...grpc.CallOption) (*UpdateServiceAccountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateServiceAccountResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateServiceAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) DeleteServiceAccount(ctx context.Context, in *DeleteServiceAccountRequest, opts ...grpc.CallOption) (*DeleteServiceAccountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteServiceAccountResponse) - err := c.cc.Invoke(ctx, CloudService_DeleteServiceAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetUsage(ctx context.Context, in *GetUsageRequest, opts ...grpc.CallOption) (*GetUsageResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUsageResponse) - err := c.cc.Invoke(ctx, CloudService_GetUsage_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetAccountResponse) - err := c.cc.Invoke(ctx, CloudService_GetAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateAccountResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) CreateNamespaceExportSink(ctx context.Context, in *CreateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*CreateNamespaceExportSinkResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CreateNamespaceExportSinkResponse) - err := c.cc.Invoke(ctx, CloudService_CreateNamespaceExportSink_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetNamespaceExportSink(ctx context.Context, in *GetNamespaceExportSinkRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinkResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetNamespaceExportSinkResponse) - err := c.cc.Invoke(ctx, CloudService_GetNamespaceExportSink_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) GetNamespaceExportSinks(ctx context.Context, in *GetNamespaceExportSinksRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinksResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetNamespaceExportSinksResponse) - err := c.cc.Invoke(ctx, CloudService_GetNamespaceExportSinks_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateNamespaceExportSink(ctx context.Context, in *UpdateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*UpdateNamespaceExportSinkResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UpdateNamespaceExportSinkResponse) - err := c.cc.Invoke(ctx, CloudService_UpdateNamespaceExportSink_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) DeleteNamespaceExportSink(ctx context.Context, in *DeleteNamespaceExportSinkRequest, opts ...grpc.CallOption) (*DeleteNamespaceExportSinkResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(DeleteNamespaceExportSinkResponse) - err := c.cc.Invoke(ctx, CloudService_DeleteNamespaceExportSink_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) ValidateNamespaceExportSink(ctx context.Context, in *ValidateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*ValidateNamespaceExportSinkResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ValidateNamespaceExportSinkResponse) - err := c.cc.Invoke(ctx, CloudService_ValidateNamespaceExportSink_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// CloudServiceServer is the server API for CloudService service. -// All implementations must embed UnimplementedCloudServiceServer -// for forward compatibility. -// -// WARNING: This service is currently experimental and may change in -// incompatible ways. -type CloudServiceServer interface { - // Gets all known users - GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error) - // Get a user - GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) - // Create a user - CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) - // Update a user - UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) - // Delete a user - DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) - // Set a user's access to a namespace - SetUserNamespaceAccess(context.Context, *SetUserNamespaceAccessRequest) (*SetUserNamespaceAccessResponse, error) - // Get the latest information on an async operation - GetAsyncOperation(context.Context, *GetAsyncOperationRequest) (*GetAsyncOperationResponse, error) - // Create a new namespace - CreateNamespace(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error) - // Get all namespaces - GetNamespaces(context.Context, *GetNamespacesRequest) (*GetNamespacesResponse, error) - // Get a namespace - GetNamespace(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error) - // Update a namespace - UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error) - // Rename an existing customer search attribute - RenameCustomSearchAttribute(context.Context, *RenameCustomSearchAttributeRequest) (*RenameCustomSearchAttributeResponse, error) - // Delete a namespace - DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error) - // Failover a multi-region namespace - FailoverNamespaceRegion(context.Context, *FailoverNamespaceRegionRequest) (*FailoverNamespaceRegionResponse, error) - // Add a new region to a namespace - AddNamespaceRegion(context.Context, *AddNamespaceRegionRequest) (*AddNamespaceRegionResponse, error) - // Get all regions - GetRegions(context.Context, *GetRegionsRequest) (*GetRegionsResponse, error) - // Get a region - GetRegion(context.Context, *GetRegionRequest) (*GetRegionResponse, error) - // Get all known API keys - GetApiKeys(context.Context, *GetApiKeysRequest) (*GetApiKeysResponse, error) - // Get an API key - GetApiKey(context.Context, *GetApiKeyRequest) (*GetApiKeyResponse, error) - // Create an API key - CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error) - // Update an API key - UpdateApiKey(context.Context, *UpdateApiKeyRequest) (*UpdateApiKeyResponse, error) - // Delete an API key - DeleteApiKey(context.Context, *DeleteApiKeyRequest) (*DeleteApiKeyResponse, error) - // Gets nexus endpoints - GetNexusEndpoints(context.Context, *GetNexusEndpointsRequest) (*GetNexusEndpointsResponse, error) - // Get a nexus endpoint - GetNexusEndpoint(context.Context, *GetNexusEndpointRequest) (*GetNexusEndpointResponse, error) - // Create a nexus endpoint - CreateNexusEndpoint(context.Context, *CreateNexusEndpointRequest) (*CreateNexusEndpointResponse, error) - // Update a nexus endpoint - UpdateNexusEndpoint(context.Context, *UpdateNexusEndpointRequest) (*UpdateNexusEndpointResponse, error) - // Delete a nexus endpoint - DeleteNexusEndpoint(context.Context, *DeleteNexusEndpointRequest) (*DeleteNexusEndpointResponse, error) - // Get all user groups - GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) - // Get a user group - GetUserGroup(context.Context, *GetUserGroupRequest) (*GetUserGroupResponse, error) - // Create new a user group - CreateUserGroup(context.Context, *CreateUserGroupRequest) (*CreateUserGroupResponse, error) - // Update a user group - UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*UpdateUserGroupResponse, error) - // Delete a user group - DeleteUserGroup(context.Context, *DeleteUserGroupRequest) (*DeleteUserGroupResponse, error) - // Set a user group's access to a namespace - SetUserGroupNamespaceAccess(context.Context, *SetUserGroupNamespaceAccessRequest) (*SetUserGroupNamespaceAccessResponse, error) - // Create a service account. - CreateServiceAccount(context.Context, *CreateServiceAccountRequest) (*CreateServiceAccountResponse, error) - // Get a service account. - GetServiceAccount(context.Context, *GetServiceAccountRequest) (*GetServiceAccountResponse, error) - // Get service accounts. - GetServiceAccounts(context.Context, *GetServiceAccountsRequest) (*GetServiceAccountsResponse, error) - // Update a service account. - UpdateServiceAccount(context.Context, *UpdateServiceAccountRequest) (*UpdateServiceAccountResponse, error) - // Delete a service account. - DeleteServiceAccount(context.Context, *DeleteServiceAccountRequest) (*DeleteServiceAccountResponse, error) - // WARNING: Pre-Release Feature - // Get usage data across namespaces - GetUsage(context.Context, *GetUsageRequest) (*GetUsageResponse, error) - // Get account information. - GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) - // Update account information. - UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error) - // Create an export sink - CreateNamespaceExportSink(context.Context, *CreateNamespaceExportSinkRequest) (*CreateNamespaceExportSinkResponse, error) - // Get an export sink - GetNamespaceExportSink(context.Context, *GetNamespaceExportSinkRequest) (*GetNamespaceExportSinkResponse, error) - // Get export sinks - GetNamespaceExportSinks(context.Context, *GetNamespaceExportSinksRequest) (*GetNamespaceExportSinksResponse, error) - // Update an export sink - UpdateNamespaceExportSink(context.Context, *UpdateNamespaceExportSinkRequest) (*UpdateNamespaceExportSinkResponse, error) - // Delete an export sink - DeleteNamespaceExportSink(context.Context, *DeleteNamespaceExportSinkRequest) (*DeleteNamespaceExportSinkResponse, error) - // Validates an export sink configuration by delivering an empty test file to the specified sink. - // This operation verifies that the sink is correctly configured, accessible, and ready for data export. - ValidateNamespaceExportSink(context.Context, *ValidateNamespaceExportSinkRequest) (*ValidateNamespaceExportSinkResponse, error) - mustEmbedUnimplementedCloudServiceServer() -} - -// UnimplementedCloudServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedCloudServiceServer struct{} - -func (UnimplementedCloudServiceServer) GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUsers not implemented") -} -func (UnimplementedCloudServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") -} -func (UnimplementedCloudServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented") -} -func (UnimplementedCloudServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented") -} -func (UnimplementedCloudServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented") -} -func (UnimplementedCloudServiceServer) SetUserNamespaceAccess(context.Context, *SetUserNamespaceAccessRequest) (*SetUserNamespaceAccessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetUserNamespaceAccess not implemented") -} -func (UnimplementedCloudServiceServer) GetAsyncOperation(context.Context, *GetAsyncOperationRequest) (*GetAsyncOperationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAsyncOperation not implemented") -} -func (UnimplementedCloudServiceServer) CreateNamespace(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateNamespace not implemented") -} -func (UnimplementedCloudServiceServer) GetNamespaces(context.Context, *GetNamespacesRequest) (*GetNamespacesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamespaces not implemented") -} -func (UnimplementedCloudServiceServer) GetNamespace(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamespace not implemented") -} -func (UnimplementedCloudServiceServer) UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateNamespace not implemented") -} -func (UnimplementedCloudServiceServer) RenameCustomSearchAttribute(context.Context, *RenameCustomSearchAttributeRequest) (*RenameCustomSearchAttributeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RenameCustomSearchAttribute not implemented") -} -func (UnimplementedCloudServiceServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") -} -func (UnimplementedCloudServiceServer) FailoverNamespaceRegion(context.Context, *FailoverNamespaceRegionRequest) (*FailoverNamespaceRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FailoverNamespaceRegion not implemented") -} -func (UnimplementedCloudServiceServer) AddNamespaceRegion(context.Context, *AddNamespaceRegionRequest) (*AddNamespaceRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddNamespaceRegion not implemented") -} -func (UnimplementedCloudServiceServer) GetRegions(context.Context, *GetRegionsRequest) (*GetRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegions not implemented") -} -func (UnimplementedCloudServiceServer) GetRegion(context.Context, *GetRegionRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegion not implemented") -} -func (UnimplementedCloudServiceServer) GetApiKeys(context.Context, *GetApiKeysRequest) (*GetApiKeysResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetApiKeys not implemented") -} -func (UnimplementedCloudServiceServer) GetApiKey(context.Context, *GetApiKeyRequest) (*GetApiKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetApiKey not implemented") -} -func (UnimplementedCloudServiceServer) CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateApiKey not implemented") -} -func (UnimplementedCloudServiceServer) UpdateApiKey(context.Context, *UpdateApiKeyRequest) (*UpdateApiKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApiKey not implemented") -} -func (UnimplementedCloudServiceServer) DeleteApiKey(context.Context, *DeleteApiKeyRequest) (*DeleteApiKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteApiKey not implemented") -} -func (UnimplementedCloudServiceServer) GetNexusEndpoints(context.Context, *GetNexusEndpointsRequest) (*GetNexusEndpointsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNexusEndpoints not implemented") -} -func (UnimplementedCloudServiceServer) GetNexusEndpoint(context.Context, *GetNexusEndpointRequest) (*GetNexusEndpointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNexusEndpoint not implemented") -} -func (UnimplementedCloudServiceServer) CreateNexusEndpoint(context.Context, *CreateNexusEndpointRequest) (*CreateNexusEndpointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateNexusEndpoint not implemented") -} -func (UnimplementedCloudServiceServer) UpdateNexusEndpoint(context.Context, *UpdateNexusEndpointRequest) (*UpdateNexusEndpointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateNexusEndpoint not implemented") -} -func (UnimplementedCloudServiceServer) DeleteNexusEndpoint(context.Context, *DeleteNexusEndpointRequest) (*DeleteNexusEndpointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteNexusEndpoint not implemented") -} -func (UnimplementedCloudServiceServer) GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented") -} -func (UnimplementedCloudServiceServer) GetUserGroup(context.Context, *GetUserGroupRequest) (*GetUserGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserGroup not implemented") -} -func (UnimplementedCloudServiceServer) CreateUserGroup(context.Context, *CreateUserGroupRequest) (*CreateUserGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUserGroup not implemented") -} -func (UnimplementedCloudServiceServer) UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*UpdateUserGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserGroup not implemented") -} -func (UnimplementedCloudServiceServer) DeleteUserGroup(context.Context, *DeleteUserGroupRequest) (*DeleteUserGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteUserGroup not implemented") -} -func (UnimplementedCloudServiceServer) SetUserGroupNamespaceAccess(context.Context, *SetUserGroupNamespaceAccessRequest) (*SetUserGroupNamespaceAccessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetUserGroupNamespaceAccess not implemented") -} -func (UnimplementedCloudServiceServer) CreateServiceAccount(context.Context, *CreateServiceAccountRequest) (*CreateServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateServiceAccount not implemented") -} -func (UnimplementedCloudServiceServer) GetServiceAccount(context.Context, *GetServiceAccountRequest) (*GetServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetServiceAccount not implemented") -} -func (UnimplementedCloudServiceServer) GetServiceAccounts(context.Context, *GetServiceAccountsRequest) (*GetServiceAccountsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetServiceAccounts not implemented") -} -func (UnimplementedCloudServiceServer) UpdateServiceAccount(context.Context, *UpdateServiceAccountRequest) (*UpdateServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceAccount not implemented") -} -func (UnimplementedCloudServiceServer) DeleteServiceAccount(context.Context, *DeleteServiceAccountRequest) (*DeleteServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteServiceAccount not implemented") -} -func (UnimplementedCloudServiceServer) GetUsage(context.Context, *GetUsageRequest) (*GetUsageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUsage not implemented") -} -func (UnimplementedCloudServiceServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") -} -func (UnimplementedCloudServiceServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateAccount not implemented") -} -func (UnimplementedCloudServiceServer) CreateNamespaceExportSink(context.Context, *CreateNamespaceExportSinkRequest) (*CreateNamespaceExportSinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateNamespaceExportSink not implemented") -} -func (UnimplementedCloudServiceServer) GetNamespaceExportSink(context.Context, *GetNamespaceExportSinkRequest) (*GetNamespaceExportSinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamespaceExportSink not implemented") -} -func (UnimplementedCloudServiceServer) GetNamespaceExportSinks(context.Context, *GetNamespaceExportSinksRequest) (*GetNamespaceExportSinksResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamespaceExportSinks not implemented") -} -func (UnimplementedCloudServiceServer) UpdateNamespaceExportSink(context.Context, *UpdateNamespaceExportSinkRequest) (*UpdateNamespaceExportSinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateNamespaceExportSink not implemented") -} -func (UnimplementedCloudServiceServer) DeleteNamespaceExportSink(context.Context, *DeleteNamespaceExportSinkRequest) (*DeleteNamespaceExportSinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespaceExportSink not implemented") -} -func (UnimplementedCloudServiceServer) ValidateNamespaceExportSink(context.Context, *ValidateNamespaceExportSinkRequest) (*ValidateNamespaceExportSinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidateNamespaceExportSink not implemented") -} -func (UnimplementedCloudServiceServer) mustEmbedUnimplementedCloudServiceServer() {} -func (UnimplementedCloudServiceServer) testEmbeddedByValue() {} - -// UnsafeCloudServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to CloudServiceServer will -// result in compilation errors. -type UnsafeCloudServiceServer interface { - mustEmbedUnimplementedCloudServiceServer() -} - -func RegisterCloudServiceServer(s grpc.ServiceRegistrar, srv CloudServiceServer) { - // If the following call pancis, it indicates UnimplementedCloudServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&CloudService_ServiceDesc, srv) -} - -func _CloudService_GetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUsersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetUsers_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetUsers(ctx, req.(*GetUsersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_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.(CloudServiceServer).GetUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetUser_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetUser(ctx, req.(*GetUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).CreateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_CreateUser_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).CreateUser(ctx, req.(*CreateUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateUser_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateUser(ctx, req.(*UpdateUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).DeleteUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_DeleteUser_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).DeleteUser(ctx, req.(*DeleteUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_SetUserNamespaceAccess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetUserNamespaceAccessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).SetUserNamespaceAccess(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_SetUserNamespaceAccess_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).SetUserNamespaceAccess(ctx, req.(*SetUserNamespaceAccessRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetAsyncOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAsyncOperationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetAsyncOperation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetAsyncOperation_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetAsyncOperation(ctx, req.(*GetAsyncOperationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_CreateNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).CreateNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_CreateNamespace_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).CreateNamespace(ctx, req.(*CreateNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetNamespaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNamespacesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetNamespaces(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetNamespaces_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetNamespaces(ctx, req.(*GetNamespacesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetNamespace_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetNamespace(ctx, req.(*GetNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateNamespace_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateNamespace(ctx, req.(*UpdateNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_RenameCustomSearchAttribute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RenameCustomSearchAttributeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).RenameCustomSearchAttribute(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_RenameCustomSearchAttribute_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).RenameCustomSearchAttribute(ctx, req.(*RenameCustomSearchAttributeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_DeleteNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).DeleteNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_DeleteNamespace_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).DeleteNamespace(ctx, req.(*DeleteNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_FailoverNamespaceRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FailoverNamespaceRegionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).FailoverNamespaceRegion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_FailoverNamespaceRegion_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).FailoverNamespaceRegion(ctx, req.(*FailoverNamespaceRegionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_AddNamespaceRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddNamespaceRegionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).AddNamespaceRegion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_AddNamespaceRegion_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).AddNamespaceRegion(ctx, req.(*AddNamespaceRegionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRegionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetRegions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetRegions_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetRegions(ctx, req.(*GetRegionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRegionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetRegion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetRegion_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetRegion(ctx, req.(*GetRegionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetApiKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetApiKeysRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetApiKeys(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetApiKeys_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetApiKeys(ctx, req.(*GetApiKeysRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetApiKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetApiKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetApiKey_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetApiKey(ctx, req.(*GetApiKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_CreateApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateApiKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).CreateApiKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_CreateApiKey_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).CreateApiKey(ctx, req.(*CreateApiKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateApiKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateApiKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateApiKey_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateApiKey(ctx, req.(*UpdateApiKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_DeleteApiKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteApiKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).DeleteApiKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_DeleteApiKey_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).DeleteApiKey(ctx, req.(*DeleteApiKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetNexusEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNexusEndpointsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetNexusEndpoints(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetNexusEndpoints_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetNexusEndpoints(ctx, req.(*GetNexusEndpointsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetNexusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNexusEndpointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetNexusEndpoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetNexusEndpoint_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetNexusEndpoint(ctx, req.(*GetNexusEndpointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_CreateNexusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateNexusEndpointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).CreateNexusEndpoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_CreateNexusEndpoint_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).CreateNexusEndpoint(ctx, req.(*CreateNexusEndpointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateNexusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateNexusEndpointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateNexusEndpoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateNexusEndpoint_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateNexusEndpoint(ctx, req.(*UpdateNexusEndpointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_DeleteNexusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteNexusEndpointRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).DeleteNexusEndpoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_DeleteNexusEndpoint_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).DeleteNexusEndpoint(ctx, req.(*DeleteNexusEndpointRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_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.(CloudServiceServer).GetUserGroups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetUserGroups_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetUserGroups(ctx, req.(*GetUserGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetUserGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetUserGroup_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetUserGroup(ctx, req.(*GetUserGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_CreateUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateUserGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).CreateUserGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_CreateUserGroup_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).CreateUserGroup(ctx, req.(*CreateUserGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateUserGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateUserGroup_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateUserGroup(ctx, req.(*UpdateUserGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_DeleteUserGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteUserGroupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).DeleteUserGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_DeleteUserGroup_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).DeleteUserGroup(ctx, req.(*DeleteUserGroupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_SetUserGroupNamespaceAccess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetUserGroupNamespaceAccessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).SetUserGroupNamespaceAccess(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_SetUserGroupNamespaceAccess_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).SetUserGroupNamespaceAccess(ctx, req.(*SetUserGroupNamespaceAccessRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_CreateServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).CreateServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_CreateServiceAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).CreateServiceAccount(ctx, req.(*CreateServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetServiceAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetServiceAccount(ctx, req.(*GetServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetServiceAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetServiceAccountsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetServiceAccounts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetServiceAccounts_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetServiceAccounts(ctx, req.(*GetServiceAccountsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateServiceAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateServiceAccount(ctx, req.(*UpdateServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_DeleteServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).DeleteServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_DeleteServiceAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).DeleteServiceAccount(ctx, req.(*DeleteServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUsageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetUsage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetUsage_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetUsage(ctx, req.(*GetUsageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetAccount(ctx, req.(*GetAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateAccount(ctx, req.(*UpdateAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_CreateNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateNamespaceExportSinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).CreateNamespaceExportSink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_CreateNamespaceExportSink_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).CreateNamespaceExportSink(ctx, req.(*CreateNamespaceExportSinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNamespaceExportSinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetNamespaceExportSink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetNamespaceExportSink_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetNamespaceExportSink(ctx, req.(*GetNamespaceExportSinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_GetNamespaceExportSinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNamespaceExportSinksRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetNamespaceExportSinks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_GetNamespaceExportSinks_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetNamespaceExportSinks(ctx, req.(*GetNamespaceExportSinksRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateNamespaceExportSinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateNamespaceExportSink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_UpdateNamespaceExportSink_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateNamespaceExportSink(ctx, req.(*UpdateNamespaceExportSinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_DeleteNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteNamespaceExportSinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).DeleteNamespaceExportSink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_DeleteNamespaceExportSink_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).DeleteNamespaceExportSink(ctx, req.(*DeleteNamespaceExportSinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_ValidateNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidateNamespaceExportSinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).ValidateNamespaceExportSink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: CloudService_ValidateNamespaceExportSink_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).ValidateNamespaceExportSink(ctx, req.(*ValidateNamespaceExportSinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// CloudService_ServiceDesc is the grpc.ServiceDesc for CloudService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var CloudService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "temporal.api.cloud.cloudservice.v1.CloudService", - HandlerType: (*CloudServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetUsers", - Handler: _CloudService_GetUsers_Handler, - }, - { - MethodName: "GetUser", - Handler: _CloudService_GetUser_Handler, - }, - { - MethodName: "CreateUser", - Handler: _CloudService_CreateUser_Handler, - }, - { - MethodName: "UpdateUser", - Handler: _CloudService_UpdateUser_Handler, - }, - { - MethodName: "DeleteUser", - Handler: _CloudService_DeleteUser_Handler, - }, - { - MethodName: "SetUserNamespaceAccess", - Handler: _CloudService_SetUserNamespaceAccess_Handler, - }, - { - MethodName: "GetAsyncOperation", - Handler: _CloudService_GetAsyncOperation_Handler, - }, - { - MethodName: "CreateNamespace", - Handler: _CloudService_CreateNamespace_Handler, - }, - { - MethodName: "GetNamespaces", - Handler: _CloudService_GetNamespaces_Handler, - }, - { - MethodName: "GetNamespace", - Handler: _CloudService_GetNamespace_Handler, - }, - { - MethodName: "UpdateNamespace", - Handler: _CloudService_UpdateNamespace_Handler, - }, - { - MethodName: "RenameCustomSearchAttribute", - Handler: _CloudService_RenameCustomSearchAttribute_Handler, - }, - { - MethodName: "DeleteNamespace", - Handler: _CloudService_DeleteNamespace_Handler, - }, - { - MethodName: "FailoverNamespaceRegion", - Handler: _CloudService_FailoverNamespaceRegion_Handler, - }, - { - MethodName: "AddNamespaceRegion", - Handler: _CloudService_AddNamespaceRegion_Handler, - }, - { - MethodName: "GetRegions", - Handler: _CloudService_GetRegions_Handler, - }, - { - MethodName: "GetRegion", - Handler: _CloudService_GetRegion_Handler, - }, - { - MethodName: "GetApiKeys", - Handler: _CloudService_GetApiKeys_Handler, - }, - { - MethodName: "GetApiKey", - Handler: _CloudService_GetApiKey_Handler, - }, - { - MethodName: "CreateApiKey", - Handler: _CloudService_CreateApiKey_Handler, - }, - { - MethodName: "UpdateApiKey", - Handler: _CloudService_UpdateApiKey_Handler, - }, - { - MethodName: "DeleteApiKey", - Handler: _CloudService_DeleteApiKey_Handler, - }, - { - MethodName: "GetNexusEndpoints", - Handler: _CloudService_GetNexusEndpoints_Handler, - }, - { - MethodName: "GetNexusEndpoint", - Handler: _CloudService_GetNexusEndpoint_Handler, - }, - { - MethodName: "CreateNexusEndpoint", - Handler: _CloudService_CreateNexusEndpoint_Handler, - }, - { - MethodName: "UpdateNexusEndpoint", - Handler: _CloudService_UpdateNexusEndpoint_Handler, - }, - { - MethodName: "DeleteNexusEndpoint", - Handler: _CloudService_DeleteNexusEndpoint_Handler, - }, - { - MethodName: "GetUserGroups", - Handler: _CloudService_GetUserGroups_Handler, - }, - { - MethodName: "GetUserGroup", - Handler: _CloudService_GetUserGroup_Handler, - }, - { - MethodName: "CreateUserGroup", - Handler: _CloudService_CreateUserGroup_Handler, - }, - { - MethodName: "UpdateUserGroup", - Handler: _CloudService_UpdateUserGroup_Handler, - }, - { - MethodName: "DeleteUserGroup", - Handler: _CloudService_DeleteUserGroup_Handler, - }, - { - MethodName: "SetUserGroupNamespaceAccess", - Handler: _CloudService_SetUserGroupNamespaceAccess_Handler, - }, - { - MethodName: "CreateServiceAccount", - Handler: _CloudService_CreateServiceAccount_Handler, - }, - { - MethodName: "GetServiceAccount", - Handler: _CloudService_GetServiceAccount_Handler, - }, - { - MethodName: "GetServiceAccounts", - Handler: _CloudService_GetServiceAccounts_Handler, - }, - { - MethodName: "UpdateServiceAccount", - Handler: _CloudService_UpdateServiceAccount_Handler, - }, - { - MethodName: "DeleteServiceAccount", - Handler: _CloudService_DeleteServiceAccount_Handler, - }, - { - MethodName: "GetUsage", - Handler: _CloudService_GetUsage_Handler, - }, - { - MethodName: "GetAccount", - Handler: _CloudService_GetAccount_Handler, - }, - { - MethodName: "UpdateAccount", - Handler: _CloudService_UpdateAccount_Handler, - }, - { - MethodName: "CreateNamespaceExportSink", - Handler: _CloudService_CreateNamespaceExportSink_Handler, - }, - { - MethodName: "GetNamespaceExportSink", - Handler: _CloudService_GetNamespaceExportSink_Handler, - }, - { - MethodName: "GetNamespaceExportSinks", - Handler: _CloudService_GetNamespaceExportSinks_Handler, - }, - { - MethodName: "UpdateNamespaceExportSink", - Handler: _CloudService_UpdateNamespaceExportSink_Handler, - }, - { - MethodName: "DeleteNamespaceExportSink", - Handler: _CloudService_DeleteNamespaceExportSink_Handler, - }, - { - MethodName: "ValidateNamespaceExportSink", - Handler: _CloudService_ValidateNamespaceExportSink_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "temporal/api/cloud/cloudservice/v1/service.proto", -} diff --git a/cloud/cloudservicemock/v1/service_grpc.pb.mock.go b/cloud/cloudservicemock/v1/service_grpc.pb.mock.go deleted file mode 100644 index 27448ce1..00000000 --- a/cloud/cloudservicemock/v1/service_grpc.pb.mock.go +++ /dev/null @@ -1,1777 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by MockGen. DO NOT EDIT. -// Source: cloud/cloudservice/v1/service_grpc.pb.go - -// Package cloudservicemock is a generated GoMock package. -package cloudservicemock - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - cloudservice "go.temporal.io/api/cloud/cloudservice/v1" - grpc "google.golang.org/grpc" -) - -// MockCloudServiceClient is a mock of CloudServiceClient interface. -type MockCloudServiceClient struct { - ctrl *gomock.Controller - recorder *MockCloudServiceClientMockRecorder -} - -// MockCloudServiceClientMockRecorder is the mock recorder for MockCloudServiceClient. -type MockCloudServiceClientMockRecorder struct { - mock *MockCloudServiceClient -} - -// NewMockCloudServiceClient creates a new mock instance. -func NewMockCloudServiceClient(ctrl *gomock.Controller) *MockCloudServiceClient { - mock := &MockCloudServiceClient{ctrl: ctrl} - mock.recorder = &MockCloudServiceClientMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCloudServiceClient) EXPECT() *MockCloudServiceClientMockRecorder { - return m.recorder -} - -// AddNamespaceRegion mocks base method. -func (m *MockCloudServiceClient) AddNamespaceRegion(ctx context.Context, in *cloudservice.AddNamespaceRegionRequest, opts ...grpc.CallOption) (*cloudservice.AddNamespaceRegionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "AddNamespaceRegion", varargs...) - ret0, _ := ret[0].(*cloudservice.AddNamespaceRegionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// AddNamespaceRegion indicates an expected call of AddNamespaceRegion. -func (mr *MockCloudServiceClientMockRecorder) AddNamespaceRegion(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNamespaceRegion", reflect.TypeOf((*MockCloudServiceClient)(nil).AddNamespaceRegion), varargs...) -} - -// CreateApiKey mocks base method. -func (m *MockCloudServiceClient) CreateApiKey(ctx context.Context, in *cloudservice.CreateApiKeyRequest, opts ...grpc.CallOption) (*cloudservice.CreateApiKeyResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateApiKey", varargs...) - ret0, _ := ret[0].(*cloudservice.CreateApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateApiKey indicates an expected call of CreateApiKey. -func (mr *MockCloudServiceClientMockRecorder) CreateApiKey(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateApiKey", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateApiKey), varargs...) -} - -// CreateNamespace mocks base method. -func (m *MockCloudServiceClient) CreateNamespace(ctx context.Context, in *cloudservice.CreateNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.CreateNamespaceResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateNamespace", varargs...) - ret0, _ := ret[0].(*cloudservice.CreateNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateNamespace indicates an expected call of CreateNamespace. -func (mr *MockCloudServiceClientMockRecorder) CreateNamespace(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateNamespace), varargs...) -} - -// CreateNamespaceExportSink mocks base method. -func (m *MockCloudServiceClient) CreateNamespaceExportSink(ctx context.Context, in *cloudservice.CreateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.CreateNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateNamespaceExportSink", varargs...) - ret0, _ := ret[0].(*cloudservice.CreateNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateNamespaceExportSink indicates an expected call of CreateNamespaceExportSink. -func (mr *MockCloudServiceClientMockRecorder) CreateNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateNamespaceExportSink), varargs...) -} - -// CreateNexusEndpoint mocks base method. -func (m *MockCloudServiceClient) CreateNexusEndpoint(ctx context.Context, in *cloudservice.CreateNexusEndpointRequest, opts ...grpc.CallOption) (*cloudservice.CreateNexusEndpointResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateNexusEndpoint", varargs...) - ret0, _ := ret[0].(*cloudservice.CreateNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateNexusEndpoint indicates an expected call of CreateNexusEndpoint. -func (mr *MockCloudServiceClientMockRecorder) CreateNexusEndpoint(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNexusEndpoint", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateNexusEndpoint), varargs...) -} - -// CreateServiceAccount mocks base method. -func (m *MockCloudServiceClient) CreateServiceAccount(ctx context.Context, in *cloudservice.CreateServiceAccountRequest, opts ...grpc.CallOption) (*cloudservice.CreateServiceAccountResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateServiceAccount", varargs...) - ret0, _ := ret[0].(*cloudservice.CreateServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateServiceAccount indicates an expected call of CreateServiceAccount. -func (mr *MockCloudServiceClientMockRecorder) CreateServiceAccount(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceAccount", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateServiceAccount), varargs...) -} - -// CreateUser mocks base method. -func (m *MockCloudServiceClient) CreateUser(ctx context.Context, in *cloudservice.CreateUserRequest, opts ...grpc.CallOption) (*cloudservice.CreateUserResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateUser", varargs...) - ret0, _ := ret[0].(*cloudservice.CreateUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateUser indicates an expected call of CreateUser. -func (mr *MockCloudServiceClientMockRecorder) CreateUser(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateUser), varargs...) -} - -// CreateUserGroup mocks base method. -func (m *MockCloudServiceClient) CreateUserGroup(ctx context.Context, in *cloudservice.CreateUserGroupRequest, opts ...grpc.CallOption) (*cloudservice.CreateUserGroupResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CreateUserGroup", varargs...) - ret0, _ := ret[0].(*cloudservice.CreateUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateUserGroup indicates an expected call of CreateUserGroup. -func (mr *MockCloudServiceClientMockRecorder) CreateUserGroup(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserGroup", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateUserGroup), varargs...) -} - -// DeleteApiKey mocks base method. -func (m *MockCloudServiceClient) DeleteApiKey(ctx context.Context, in *cloudservice.DeleteApiKeyRequest, opts ...grpc.CallOption) (*cloudservice.DeleteApiKeyResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteApiKey", varargs...) - ret0, _ := ret[0].(*cloudservice.DeleteApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteApiKey indicates an expected call of DeleteApiKey. -func (mr *MockCloudServiceClientMockRecorder) DeleteApiKey(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApiKey", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteApiKey), varargs...) -} - -// DeleteNamespace mocks base method. -func (m *MockCloudServiceClient) DeleteNamespace(ctx context.Context, in *cloudservice.DeleteNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.DeleteNamespaceResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteNamespace", varargs...) - ret0, _ := ret[0].(*cloudservice.DeleteNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteNamespace indicates an expected call of DeleteNamespace. -func (mr *MockCloudServiceClientMockRecorder) DeleteNamespace(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteNamespace), varargs...) -} - -// DeleteNamespaceExportSink mocks base method. -func (m *MockCloudServiceClient) DeleteNamespaceExportSink(ctx context.Context, in *cloudservice.DeleteNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.DeleteNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteNamespaceExportSink", varargs...) - ret0, _ := ret[0].(*cloudservice.DeleteNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteNamespaceExportSink indicates an expected call of DeleteNamespaceExportSink. -func (mr *MockCloudServiceClientMockRecorder) DeleteNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteNamespaceExportSink), varargs...) -} - -// DeleteNexusEndpoint mocks base method. -func (m *MockCloudServiceClient) DeleteNexusEndpoint(ctx context.Context, in *cloudservice.DeleteNexusEndpointRequest, opts ...grpc.CallOption) (*cloudservice.DeleteNexusEndpointResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteNexusEndpoint", varargs...) - ret0, _ := ret[0].(*cloudservice.DeleteNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteNexusEndpoint indicates an expected call of DeleteNexusEndpoint. -func (mr *MockCloudServiceClientMockRecorder) DeleteNexusEndpoint(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNexusEndpoint", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteNexusEndpoint), varargs...) -} - -// DeleteServiceAccount mocks base method. -func (m *MockCloudServiceClient) DeleteServiceAccount(ctx context.Context, in *cloudservice.DeleteServiceAccountRequest, opts ...grpc.CallOption) (*cloudservice.DeleteServiceAccountResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteServiceAccount", varargs...) - ret0, _ := ret[0].(*cloudservice.DeleteServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteServiceAccount indicates an expected call of DeleteServiceAccount. -func (mr *MockCloudServiceClientMockRecorder) DeleteServiceAccount(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceAccount", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteServiceAccount), varargs...) -} - -// DeleteUser mocks base method. -func (m *MockCloudServiceClient) DeleteUser(ctx context.Context, in *cloudservice.DeleteUserRequest, opts ...grpc.CallOption) (*cloudservice.DeleteUserResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteUser", varargs...) - ret0, _ := ret[0].(*cloudservice.DeleteUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteUser indicates an expected call of DeleteUser. -func (mr *MockCloudServiceClientMockRecorder) DeleteUser(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteUser), varargs...) -} - -// DeleteUserGroup mocks base method. -func (m *MockCloudServiceClient) DeleteUserGroup(ctx context.Context, in *cloudservice.DeleteUserGroupRequest, opts ...grpc.CallOption) (*cloudservice.DeleteUserGroupResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteUserGroup", varargs...) - ret0, _ := ret[0].(*cloudservice.DeleteUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteUserGroup indicates an expected call of DeleteUserGroup. -func (mr *MockCloudServiceClientMockRecorder) DeleteUserGroup(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserGroup", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteUserGroup), varargs...) -} - -// FailoverNamespaceRegion mocks base method. -func (m *MockCloudServiceClient) FailoverNamespaceRegion(ctx context.Context, in *cloudservice.FailoverNamespaceRegionRequest, opts ...grpc.CallOption) (*cloudservice.FailoverNamespaceRegionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "FailoverNamespaceRegion", varargs...) - ret0, _ := ret[0].(*cloudservice.FailoverNamespaceRegionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// FailoverNamespaceRegion indicates an expected call of FailoverNamespaceRegion. -func (mr *MockCloudServiceClientMockRecorder) FailoverNamespaceRegion(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FailoverNamespaceRegion", reflect.TypeOf((*MockCloudServiceClient)(nil).FailoverNamespaceRegion), varargs...) -} - -// GetAccount mocks base method. -func (m *MockCloudServiceClient) GetAccount(ctx context.Context, in *cloudservice.GetAccountRequest, opts ...grpc.CallOption) (*cloudservice.GetAccountResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetAccount", varargs...) - ret0, _ := ret[0].(*cloudservice.GetAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetAccount indicates an expected call of GetAccount. -func (mr *MockCloudServiceClientMockRecorder) GetAccount(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockCloudServiceClient)(nil).GetAccount), varargs...) -} - -// GetApiKey mocks base method. -func (m *MockCloudServiceClient) GetApiKey(ctx context.Context, in *cloudservice.GetApiKeyRequest, opts ...grpc.CallOption) (*cloudservice.GetApiKeyResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetApiKey", varargs...) - ret0, _ := ret[0].(*cloudservice.GetApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetApiKey indicates an expected call of GetApiKey. -func (mr *MockCloudServiceClientMockRecorder) GetApiKey(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApiKey", reflect.TypeOf((*MockCloudServiceClient)(nil).GetApiKey), varargs...) -} - -// GetApiKeys mocks base method. -func (m *MockCloudServiceClient) GetApiKeys(ctx context.Context, in *cloudservice.GetApiKeysRequest, opts ...grpc.CallOption) (*cloudservice.GetApiKeysResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetApiKeys", varargs...) - ret0, _ := ret[0].(*cloudservice.GetApiKeysResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetApiKeys indicates an expected call of GetApiKeys. -func (mr *MockCloudServiceClientMockRecorder) GetApiKeys(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApiKeys", reflect.TypeOf((*MockCloudServiceClient)(nil).GetApiKeys), varargs...) -} - -// GetAsyncOperation mocks base method. -func (m *MockCloudServiceClient) GetAsyncOperation(ctx context.Context, in *cloudservice.GetAsyncOperationRequest, opts ...grpc.CallOption) (*cloudservice.GetAsyncOperationResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetAsyncOperation", varargs...) - ret0, _ := ret[0].(*cloudservice.GetAsyncOperationResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetAsyncOperation indicates an expected call of GetAsyncOperation. -func (mr *MockCloudServiceClientMockRecorder) GetAsyncOperation(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAsyncOperation", reflect.TypeOf((*MockCloudServiceClient)(nil).GetAsyncOperation), varargs...) -} - -// GetNamespace mocks base method. -func (m *MockCloudServiceClient) GetNamespace(ctx context.Context, in *cloudservice.GetNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetNamespace", varargs...) - ret0, _ := ret[0].(*cloudservice.GetNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespace indicates an expected call of GetNamespace. -func (mr *MockCloudServiceClientMockRecorder) GetNamespace(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNamespace), varargs...) -} - -// GetNamespaceExportSink mocks base method. -func (m *MockCloudServiceClient) GetNamespaceExportSink(ctx context.Context, in *cloudservice.GetNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetNamespaceExportSink", varargs...) - ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespaceExportSink indicates an expected call of GetNamespaceExportSink. -func (mr *MockCloudServiceClientMockRecorder) GetNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNamespaceExportSink), varargs...) -} - -// GetNamespaceExportSinks mocks base method. -func (m *MockCloudServiceClient) GetNamespaceExportSinks(ctx context.Context, in *cloudservice.GetNamespaceExportSinksRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceExportSinksResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetNamespaceExportSinks", varargs...) - ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinksResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespaceExportSinks indicates an expected call of GetNamespaceExportSinks. -func (mr *MockCloudServiceClientMockRecorder) GetNamespaceExportSinks(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSinks", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNamespaceExportSinks), varargs...) -} - -// GetNamespaces mocks base method. -func (m *MockCloudServiceClient) GetNamespaces(ctx context.Context, in *cloudservice.GetNamespacesRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespacesResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetNamespaces", varargs...) - ret0, _ := ret[0].(*cloudservice.GetNamespacesResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespaces indicates an expected call of GetNamespaces. -func (mr *MockCloudServiceClientMockRecorder) GetNamespaces(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaces", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNamespaces), varargs...) -} - -// GetNexusEndpoint mocks base method. -func (m *MockCloudServiceClient) GetNexusEndpoint(ctx context.Context, in *cloudservice.GetNexusEndpointRequest, opts ...grpc.CallOption) (*cloudservice.GetNexusEndpointResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetNexusEndpoint", varargs...) - ret0, _ := ret[0].(*cloudservice.GetNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNexusEndpoint indicates an expected call of GetNexusEndpoint. -func (mr *MockCloudServiceClientMockRecorder) GetNexusEndpoint(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNexusEndpoint", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNexusEndpoint), varargs...) -} - -// GetNexusEndpoints mocks base method. -func (m *MockCloudServiceClient) GetNexusEndpoints(ctx context.Context, in *cloudservice.GetNexusEndpointsRequest, opts ...grpc.CallOption) (*cloudservice.GetNexusEndpointsResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetNexusEndpoints", varargs...) - ret0, _ := ret[0].(*cloudservice.GetNexusEndpointsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNexusEndpoints indicates an expected call of GetNexusEndpoints. -func (mr *MockCloudServiceClientMockRecorder) GetNexusEndpoints(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNexusEndpoints", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNexusEndpoints), varargs...) -} - -// GetRegion mocks base method. -func (m *MockCloudServiceClient) GetRegion(ctx context.Context, in *cloudservice.GetRegionRequest, opts ...grpc.CallOption) (*cloudservice.GetRegionResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetRegion", varargs...) - ret0, _ := ret[0].(*cloudservice.GetRegionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetRegion indicates an expected call of GetRegion. -func (mr *MockCloudServiceClientMockRecorder) GetRegion(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegion", reflect.TypeOf((*MockCloudServiceClient)(nil).GetRegion), varargs...) -} - -// GetRegions mocks base method. -func (m *MockCloudServiceClient) GetRegions(ctx context.Context, in *cloudservice.GetRegionsRequest, opts ...grpc.CallOption) (*cloudservice.GetRegionsResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetRegions", varargs...) - ret0, _ := ret[0].(*cloudservice.GetRegionsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetRegions indicates an expected call of GetRegions. -func (mr *MockCloudServiceClientMockRecorder) GetRegions(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegions", reflect.TypeOf((*MockCloudServiceClient)(nil).GetRegions), varargs...) -} - -// GetServiceAccount mocks base method. -func (m *MockCloudServiceClient) GetServiceAccount(ctx context.Context, in *cloudservice.GetServiceAccountRequest, opts ...grpc.CallOption) (*cloudservice.GetServiceAccountResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetServiceAccount", varargs...) - ret0, _ := ret[0].(*cloudservice.GetServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetServiceAccount indicates an expected call of GetServiceAccount. -func (mr *MockCloudServiceClientMockRecorder) GetServiceAccount(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAccount", reflect.TypeOf((*MockCloudServiceClient)(nil).GetServiceAccount), varargs...) -} - -// GetServiceAccounts mocks base method. -func (m *MockCloudServiceClient) GetServiceAccounts(ctx context.Context, in *cloudservice.GetServiceAccountsRequest, opts ...grpc.CallOption) (*cloudservice.GetServiceAccountsResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetServiceAccounts", varargs...) - ret0, _ := ret[0].(*cloudservice.GetServiceAccountsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetServiceAccounts indicates an expected call of GetServiceAccounts. -func (mr *MockCloudServiceClientMockRecorder) GetServiceAccounts(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAccounts", reflect.TypeOf((*MockCloudServiceClient)(nil).GetServiceAccounts), varargs...) -} - -// GetUsage mocks base method. -func (m *MockCloudServiceClient) GetUsage(ctx context.Context, in *cloudservice.GetUsageRequest, opts ...grpc.CallOption) (*cloudservice.GetUsageResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUsage", varargs...) - ret0, _ := ret[0].(*cloudservice.GetUsageResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUsage indicates an expected call of GetUsage. -func (mr *MockCloudServiceClientMockRecorder) GetUsage(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsage", reflect.TypeOf((*MockCloudServiceClient)(nil).GetUsage), varargs...) -} - -// GetUser mocks base method. -func (m *MockCloudServiceClient) GetUser(ctx context.Context, in *cloudservice.GetUserRequest, opts ...grpc.CallOption) (*cloudservice.GetUserResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUser", varargs...) - ret0, _ := ret[0].(*cloudservice.GetUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUser indicates an expected call of GetUser. -func (mr *MockCloudServiceClientMockRecorder) GetUser(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockCloudServiceClient)(nil).GetUser), varargs...) -} - -// GetUserGroup mocks base method. -func (m *MockCloudServiceClient) GetUserGroup(ctx context.Context, in *cloudservice.GetUserGroupRequest, opts ...grpc.CallOption) (*cloudservice.GetUserGroupResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUserGroup", varargs...) - ret0, _ := ret[0].(*cloudservice.GetUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUserGroup indicates an expected call of GetUserGroup. -func (mr *MockCloudServiceClientMockRecorder) GetUserGroup(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserGroup", reflect.TypeOf((*MockCloudServiceClient)(nil).GetUserGroup), varargs...) -} - -// GetUserGroups mocks base method. -func (m *MockCloudServiceClient) GetUserGroups(ctx context.Context, in *cloudservice.GetUserGroupsRequest, opts ...grpc.CallOption) (*cloudservice.GetUserGroupsResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUserGroups", varargs...) - ret0, _ := ret[0].(*cloudservice.GetUserGroupsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUserGroups indicates an expected call of GetUserGroups. -func (mr *MockCloudServiceClientMockRecorder) GetUserGroups(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserGroups", reflect.TypeOf((*MockCloudServiceClient)(nil).GetUserGroups), varargs...) -} - -// GetUsers mocks base method. -func (m *MockCloudServiceClient) GetUsers(ctx context.Context, in *cloudservice.GetUsersRequest, opts ...grpc.CallOption) (*cloudservice.GetUsersResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetUsers", varargs...) - ret0, _ := ret[0].(*cloudservice.GetUsersResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUsers indicates an expected call of GetUsers. -func (mr *MockCloudServiceClientMockRecorder) GetUsers(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsers", reflect.TypeOf((*MockCloudServiceClient)(nil).GetUsers), varargs...) -} - -// RenameCustomSearchAttribute mocks base method. -func (m *MockCloudServiceClient) RenameCustomSearchAttribute(ctx context.Context, in *cloudservice.RenameCustomSearchAttributeRequest, opts ...grpc.CallOption) (*cloudservice.RenameCustomSearchAttributeResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "RenameCustomSearchAttribute", varargs...) - ret0, _ := ret[0].(*cloudservice.RenameCustomSearchAttributeResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// RenameCustomSearchAttribute indicates an expected call of RenameCustomSearchAttribute. -func (mr *MockCloudServiceClientMockRecorder) RenameCustomSearchAttribute(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenameCustomSearchAttribute", reflect.TypeOf((*MockCloudServiceClient)(nil).RenameCustomSearchAttribute), varargs...) -} - -// SetUserGroupNamespaceAccess mocks base method. -func (m *MockCloudServiceClient) SetUserGroupNamespaceAccess(ctx context.Context, in *cloudservice.SetUserGroupNamespaceAccessRequest, opts ...grpc.CallOption) (*cloudservice.SetUserGroupNamespaceAccessResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "SetUserGroupNamespaceAccess", varargs...) - ret0, _ := ret[0].(*cloudservice.SetUserGroupNamespaceAccessResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SetUserGroupNamespaceAccess indicates an expected call of SetUserGroupNamespaceAccess. -func (mr *MockCloudServiceClientMockRecorder) SetUserGroupNamespaceAccess(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserGroupNamespaceAccess", reflect.TypeOf((*MockCloudServiceClient)(nil).SetUserGroupNamespaceAccess), varargs...) -} - -// SetUserNamespaceAccess mocks base method. -func (m *MockCloudServiceClient) SetUserNamespaceAccess(ctx context.Context, in *cloudservice.SetUserNamespaceAccessRequest, opts ...grpc.CallOption) (*cloudservice.SetUserNamespaceAccessResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "SetUserNamespaceAccess", varargs...) - ret0, _ := ret[0].(*cloudservice.SetUserNamespaceAccessResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SetUserNamespaceAccess indicates an expected call of SetUserNamespaceAccess. -func (mr *MockCloudServiceClientMockRecorder) SetUserNamespaceAccess(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserNamespaceAccess", reflect.TypeOf((*MockCloudServiceClient)(nil).SetUserNamespaceAccess), varargs...) -} - -// UpdateAccount mocks base method. -func (m *MockCloudServiceClient) UpdateAccount(ctx context.Context, in *cloudservice.UpdateAccountRequest, opts ...grpc.CallOption) (*cloudservice.UpdateAccountResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateAccount", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateAccount indicates an expected call of UpdateAccount. -func (mr *MockCloudServiceClientMockRecorder) UpdateAccount(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccount", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateAccount), varargs...) -} - -// UpdateApiKey mocks base method. -func (m *MockCloudServiceClient) UpdateApiKey(ctx context.Context, in *cloudservice.UpdateApiKeyRequest, opts ...grpc.CallOption) (*cloudservice.UpdateApiKeyResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateApiKey", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateApiKey indicates an expected call of UpdateApiKey. -func (mr *MockCloudServiceClientMockRecorder) UpdateApiKey(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateApiKey", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateApiKey), varargs...) -} - -// UpdateNamespace mocks base method. -func (m *MockCloudServiceClient) UpdateNamespace(ctx context.Context, in *cloudservice.UpdateNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateNamespace", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateNamespace indicates an expected call of UpdateNamespace. -func (mr *MockCloudServiceClientMockRecorder) UpdateNamespace(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateNamespace), varargs...) -} - -// UpdateNamespaceExportSink mocks base method. -func (m *MockCloudServiceClient) UpdateNamespaceExportSink(ctx context.Context, in *cloudservice.UpdateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateNamespaceExportSink", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateNamespaceExportSink indicates an expected call of UpdateNamespaceExportSink. -func (mr *MockCloudServiceClientMockRecorder) UpdateNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateNamespaceExportSink), varargs...) -} - -// UpdateNexusEndpoint mocks base method. -func (m *MockCloudServiceClient) UpdateNexusEndpoint(ctx context.Context, in *cloudservice.UpdateNexusEndpointRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNexusEndpointResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateNexusEndpoint", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateNexusEndpoint indicates an expected call of UpdateNexusEndpoint. -func (mr *MockCloudServiceClientMockRecorder) UpdateNexusEndpoint(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNexusEndpoint", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateNexusEndpoint), varargs...) -} - -// UpdateServiceAccount mocks base method. -func (m *MockCloudServiceClient) UpdateServiceAccount(ctx context.Context, in *cloudservice.UpdateServiceAccountRequest, opts ...grpc.CallOption) (*cloudservice.UpdateServiceAccountResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateServiceAccount", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateServiceAccount indicates an expected call of UpdateServiceAccount. -func (mr *MockCloudServiceClientMockRecorder) UpdateServiceAccount(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceAccount", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateServiceAccount), varargs...) -} - -// UpdateUser mocks base method. -func (m *MockCloudServiceClient) UpdateUser(ctx context.Context, in *cloudservice.UpdateUserRequest, opts ...grpc.CallOption) (*cloudservice.UpdateUserResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateUser", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateUser indicates an expected call of UpdateUser. -func (mr *MockCloudServiceClientMockRecorder) UpdateUser(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateUser), varargs...) -} - -// UpdateUserGroup mocks base method. -func (m *MockCloudServiceClient) UpdateUserGroup(ctx context.Context, in *cloudservice.UpdateUserGroupRequest, opts ...grpc.CallOption) (*cloudservice.UpdateUserGroupResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "UpdateUserGroup", varargs...) - ret0, _ := ret[0].(*cloudservice.UpdateUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateUserGroup indicates an expected call of UpdateUserGroup. -func (mr *MockCloudServiceClientMockRecorder) UpdateUserGroup(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserGroup", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateUserGroup), varargs...) -} - -// ValidateNamespaceExportSink mocks base method. -func (m *MockCloudServiceClient) ValidateNamespaceExportSink(ctx context.Context, in *cloudservice.ValidateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.ValidateNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, in} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ValidateNamespaceExportSink", varargs...) - ret0, _ := ret[0].(*cloudservice.ValidateNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidateNamespaceExportSink indicates an expected call of ValidateNamespaceExportSink. -func (mr *MockCloudServiceClientMockRecorder) ValidateNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, in}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).ValidateNamespaceExportSink), varargs...) -} - -// MockCloudServiceServer is a mock of CloudServiceServer interface. -type MockCloudServiceServer struct { - cloudservice.UnimplementedCloudServiceServer - ctrl *gomock.Controller - recorder *MockCloudServiceServerMockRecorder -} - -var _ cloudservice.CloudServiceServer = (*MockCloudServiceServer)(nil) - -// MockCloudServiceServerMockRecorder is the mock recorder for MockCloudServiceServer. -type MockCloudServiceServerMockRecorder struct { - mock *MockCloudServiceServer -} - -// NewMockCloudServiceServer creates a new mock instance. -func NewMockCloudServiceServer(ctrl *gomock.Controller) *MockCloudServiceServer { - mock := &MockCloudServiceServer{ctrl: ctrl} - mock.recorder = &MockCloudServiceServerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCloudServiceServer) EXPECT() *MockCloudServiceServerMockRecorder { - return m.recorder -} - -// AddNamespaceRegion mocks base method. -func (m *MockCloudServiceServer) AddNamespaceRegion(arg0 context.Context, arg1 *cloudservice.AddNamespaceRegionRequest) (*cloudservice.AddNamespaceRegionResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddNamespaceRegion", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.AddNamespaceRegionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// AddNamespaceRegion indicates an expected call of AddNamespaceRegion. -func (mr *MockCloudServiceServerMockRecorder) AddNamespaceRegion(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNamespaceRegion", reflect.TypeOf((*MockCloudServiceServer)(nil).AddNamespaceRegion), arg0, arg1) -} - -// CreateApiKey mocks base method. -func (m *MockCloudServiceServer) CreateApiKey(arg0 context.Context, arg1 *cloudservice.CreateApiKeyRequest) (*cloudservice.CreateApiKeyResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateApiKey", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.CreateApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateApiKey indicates an expected call of CreateApiKey. -func (mr *MockCloudServiceServerMockRecorder) CreateApiKey(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateApiKey", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateApiKey), arg0, arg1) -} - -// CreateNamespace mocks base method. -func (m *MockCloudServiceServer) CreateNamespace(arg0 context.Context, arg1 *cloudservice.CreateNamespaceRequest) (*cloudservice.CreateNamespaceResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateNamespace", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.CreateNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateNamespace indicates an expected call of CreateNamespace. -func (mr *MockCloudServiceServerMockRecorder) CreateNamespace(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateNamespace), arg0, arg1) -} - -// CreateNamespaceExportSink mocks base method. -func (m *MockCloudServiceServer) CreateNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.CreateNamespaceExportSinkRequest) (*cloudservice.CreateNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateNamespaceExportSink", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.CreateNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateNamespaceExportSink indicates an expected call of CreateNamespaceExportSink. -func (mr *MockCloudServiceServerMockRecorder) CreateNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateNamespaceExportSink), arg0, arg1) -} - -// CreateNexusEndpoint mocks base method. -func (m *MockCloudServiceServer) CreateNexusEndpoint(arg0 context.Context, arg1 *cloudservice.CreateNexusEndpointRequest) (*cloudservice.CreateNexusEndpointResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateNexusEndpoint", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.CreateNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateNexusEndpoint indicates an expected call of CreateNexusEndpoint. -func (mr *MockCloudServiceServerMockRecorder) CreateNexusEndpoint(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNexusEndpoint", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateNexusEndpoint), arg0, arg1) -} - -// CreateServiceAccount mocks base method. -func (m *MockCloudServiceServer) CreateServiceAccount(arg0 context.Context, arg1 *cloudservice.CreateServiceAccountRequest) (*cloudservice.CreateServiceAccountResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateServiceAccount", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.CreateServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateServiceAccount indicates an expected call of CreateServiceAccount. -func (mr *MockCloudServiceServerMockRecorder) CreateServiceAccount(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceAccount", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateServiceAccount), arg0, arg1) -} - -// CreateUser mocks base method. -func (m *MockCloudServiceServer) CreateUser(arg0 context.Context, arg1 *cloudservice.CreateUserRequest) (*cloudservice.CreateUserResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateUser", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.CreateUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateUser indicates an expected call of CreateUser. -func (mr *MockCloudServiceServerMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateUser), arg0, arg1) -} - -// CreateUserGroup mocks base method. -func (m *MockCloudServiceServer) CreateUserGroup(arg0 context.Context, arg1 *cloudservice.CreateUserGroupRequest) (*cloudservice.CreateUserGroupResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateUserGroup", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.CreateUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateUserGroup indicates an expected call of CreateUserGroup. -func (mr *MockCloudServiceServerMockRecorder) CreateUserGroup(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserGroup", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateUserGroup), arg0, arg1) -} - -// DeleteApiKey mocks base method. -func (m *MockCloudServiceServer) DeleteApiKey(arg0 context.Context, arg1 *cloudservice.DeleteApiKeyRequest) (*cloudservice.DeleteApiKeyResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteApiKey", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.DeleteApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteApiKey indicates an expected call of DeleteApiKey. -func (mr *MockCloudServiceServerMockRecorder) DeleteApiKey(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApiKey", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteApiKey), arg0, arg1) -} - -// DeleteNamespace mocks base method. -func (m *MockCloudServiceServer) DeleteNamespace(arg0 context.Context, arg1 *cloudservice.DeleteNamespaceRequest) (*cloudservice.DeleteNamespaceResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteNamespace", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.DeleteNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteNamespace indicates an expected call of DeleteNamespace. -func (mr *MockCloudServiceServerMockRecorder) DeleteNamespace(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteNamespace), arg0, arg1) -} - -// DeleteNamespaceExportSink mocks base method. -func (m *MockCloudServiceServer) DeleteNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.DeleteNamespaceExportSinkRequest) (*cloudservice.DeleteNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteNamespaceExportSink", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.DeleteNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteNamespaceExportSink indicates an expected call of DeleteNamespaceExportSink. -func (mr *MockCloudServiceServerMockRecorder) DeleteNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteNamespaceExportSink), arg0, arg1) -} - -// DeleteNexusEndpoint mocks base method. -func (m *MockCloudServiceServer) DeleteNexusEndpoint(arg0 context.Context, arg1 *cloudservice.DeleteNexusEndpointRequest) (*cloudservice.DeleteNexusEndpointResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteNexusEndpoint", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.DeleteNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteNexusEndpoint indicates an expected call of DeleteNexusEndpoint. -func (mr *MockCloudServiceServerMockRecorder) DeleteNexusEndpoint(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNexusEndpoint", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteNexusEndpoint), arg0, arg1) -} - -// DeleteServiceAccount mocks base method. -func (m *MockCloudServiceServer) DeleteServiceAccount(arg0 context.Context, arg1 *cloudservice.DeleteServiceAccountRequest) (*cloudservice.DeleteServiceAccountResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteServiceAccount", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.DeleteServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteServiceAccount indicates an expected call of DeleteServiceAccount. -func (mr *MockCloudServiceServerMockRecorder) DeleteServiceAccount(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceAccount", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteServiceAccount), arg0, arg1) -} - -// DeleteUser mocks base method. -func (m *MockCloudServiceServer) DeleteUser(arg0 context.Context, arg1 *cloudservice.DeleteUserRequest) (*cloudservice.DeleteUserResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteUser", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.DeleteUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteUser indicates an expected call of DeleteUser. -func (mr *MockCloudServiceServerMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteUser), arg0, arg1) -} - -// DeleteUserGroup mocks base method. -func (m *MockCloudServiceServer) DeleteUserGroup(arg0 context.Context, arg1 *cloudservice.DeleteUserGroupRequest) (*cloudservice.DeleteUserGroupResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteUserGroup", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.DeleteUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DeleteUserGroup indicates an expected call of DeleteUserGroup. -func (mr *MockCloudServiceServerMockRecorder) DeleteUserGroup(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserGroup", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteUserGroup), arg0, arg1) -} - -// FailoverNamespaceRegion mocks base method. -func (m *MockCloudServiceServer) FailoverNamespaceRegion(arg0 context.Context, arg1 *cloudservice.FailoverNamespaceRegionRequest) (*cloudservice.FailoverNamespaceRegionResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FailoverNamespaceRegion", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.FailoverNamespaceRegionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// FailoverNamespaceRegion indicates an expected call of FailoverNamespaceRegion. -func (mr *MockCloudServiceServerMockRecorder) FailoverNamespaceRegion(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FailoverNamespaceRegion", reflect.TypeOf((*MockCloudServiceServer)(nil).FailoverNamespaceRegion), arg0, arg1) -} - -// GetAccount mocks base method. -func (m *MockCloudServiceServer) GetAccount(arg0 context.Context, arg1 *cloudservice.GetAccountRequest) (*cloudservice.GetAccountResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetAccount", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetAccount indicates an expected call of GetAccount. -func (mr *MockCloudServiceServerMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockCloudServiceServer)(nil).GetAccount), arg0, arg1) -} - -// GetApiKey mocks base method. -func (m *MockCloudServiceServer) GetApiKey(arg0 context.Context, arg1 *cloudservice.GetApiKeyRequest) (*cloudservice.GetApiKeyResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetApiKey", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetApiKey indicates an expected call of GetApiKey. -func (mr *MockCloudServiceServerMockRecorder) GetApiKey(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApiKey", reflect.TypeOf((*MockCloudServiceServer)(nil).GetApiKey), arg0, arg1) -} - -// GetApiKeys mocks base method. -func (m *MockCloudServiceServer) GetApiKeys(arg0 context.Context, arg1 *cloudservice.GetApiKeysRequest) (*cloudservice.GetApiKeysResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetApiKeys", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetApiKeysResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetApiKeys indicates an expected call of GetApiKeys. -func (mr *MockCloudServiceServerMockRecorder) GetApiKeys(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApiKeys", reflect.TypeOf((*MockCloudServiceServer)(nil).GetApiKeys), arg0, arg1) -} - -// GetAsyncOperation mocks base method. -func (m *MockCloudServiceServer) GetAsyncOperation(arg0 context.Context, arg1 *cloudservice.GetAsyncOperationRequest) (*cloudservice.GetAsyncOperationResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetAsyncOperation", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetAsyncOperationResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetAsyncOperation indicates an expected call of GetAsyncOperation. -func (mr *MockCloudServiceServerMockRecorder) GetAsyncOperation(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAsyncOperation", reflect.TypeOf((*MockCloudServiceServer)(nil).GetAsyncOperation), arg0, arg1) -} - -// GetNamespace mocks base method. -func (m *MockCloudServiceServer) GetNamespace(arg0 context.Context, arg1 *cloudservice.GetNamespaceRequest) (*cloudservice.GetNamespaceResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetNamespace", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespace indicates an expected call of GetNamespace. -func (mr *MockCloudServiceServerMockRecorder) GetNamespace(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNamespace), arg0, arg1) -} - -// GetNamespaceExportSink mocks base method. -func (m *MockCloudServiceServer) GetNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.GetNamespaceExportSinkRequest) (*cloudservice.GetNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetNamespaceExportSink", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespaceExportSink indicates an expected call of GetNamespaceExportSink. -func (mr *MockCloudServiceServerMockRecorder) GetNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNamespaceExportSink), arg0, arg1) -} - -// GetNamespaceExportSinks mocks base method. -func (m *MockCloudServiceServer) GetNamespaceExportSinks(arg0 context.Context, arg1 *cloudservice.GetNamespaceExportSinksRequest) (*cloudservice.GetNamespaceExportSinksResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetNamespaceExportSinks", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinksResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespaceExportSinks indicates an expected call of GetNamespaceExportSinks. -func (mr *MockCloudServiceServerMockRecorder) GetNamespaceExportSinks(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSinks", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNamespaceExportSinks), arg0, arg1) -} - -// GetNamespaces mocks base method. -func (m *MockCloudServiceServer) GetNamespaces(arg0 context.Context, arg1 *cloudservice.GetNamespacesRequest) (*cloudservice.GetNamespacesResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetNamespaces", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetNamespacesResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNamespaces indicates an expected call of GetNamespaces. -func (mr *MockCloudServiceServerMockRecorder) GetNamespaces(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaces", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNamespaces), arg0, arg1) -} - -// GetNexusEndpoint mocks base method. -func (m *MockCloudServiceServer) GetNexusEndpoint(arg0 context.Context, arg1 *cloudservice.GetNexusEndpointRequest) (*cloudservice.GetNexusEndpointResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetNexusEndpoint", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNexusEndpoint indicates an expected call of GetNexusEndpoint. -func (mr *MockCloudServiceServerMockRecorder) GetNexusEndpoint(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNexusEndpoint", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNexusEndpoint), arg0, arg1) -} - -// GetNexusEndpoints mocks base method. -func (m *MockCloudServiceServer) GetNexusEndpoints(arg0 context.Context, arg1 *cloudservice.GetNexusEndpointsRequest) (*cloudservice.GetNexusEndpointsResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetNexusEndpoints", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetNexusEndpointsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetNexusEndpoints indicates an expected call of GetNexusEndpoints. -func (mr *MockCloudServiceServerMockRecorder) GetNexusEndpoints(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNexusEndpoints", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNexusEndpoints), arg0, arg1) -} - -// GetRegion mocks base method. -func (m *MockCloudServiceServer) GetRegion(arg0 context.Context, arg1 *cloudservice.GetRegionRequest) (*cloudservice.GetRegionResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRegion", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetRegionResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetRegion indicates an expected call of GetRegion. -func (mr *MockCloudServiceServerMockRecorder) GetRegion(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegion", reflect.TypeOf((*MockCloudServiceServer)(nil).GetRegion), arg0, arg1) -} - -// GetRegions mocks base method. -func (m *MockCloudServiceServer) GetRegions(arg0 context.Context, arg1 *cloudservice.GetRegionsRequest) (*cloudservice.GetRegionsResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetRegions", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetRegionsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetRegions indicates an expected call of GetRegions. -func (mr *MockCloudServiceServerMockRecorder) GetRegions(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegions", reflect.TypeOf((*MockCloudServiceServer)(nil).GetRegions), arg0, arg1) -} - -// GetServiceAccount mocks base method. -func (m *MockCloudServiceServer) GetServiceAccount(arg0 context.Context, arg1 *cloudservice.GetServiceAccountRequest) (*cloudservice.GetServiceAccountResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetServiceAccount", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetServiceAccount indicates an expected call of GetServiceAccount. -func (mr *MockCloudServiceServerMockRecorder) GetServiceAccount(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAccount", reflect.TypeOf((*MockCloudServiceServer)(nil).GetServiceAccount), arg0, arg1) -} - -// GetServiceAccounts mocks base method. -func (m *MockCloudServiceServer) GetServiceAccounts(arg0 context.Context, arg1 *cloudservice.GetServiceAccountsRequest) (*cloudservice.GetServiceAccountsResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetServiceAccounts", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetServiceAccountsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetServiceAccounts indicates an expected call of GetServiceAccounts. -func (mr *MockCloudServiceServerMockRecorder) GetServiceAccounts(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAccounts", reflect.TypeOf((*MockCloudServiceServer)(nil).GetServiceAccounts), arg0, arg1) -} - -// GetUsage mocks base method. -func (m *MockCloudServiceServer) GetUsage(arg0 context.Context, arg1 *cloudservice.GetUsageRequest) (*cloudservice.GetUsageResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetUsage", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetUsageResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUsage indicates an expected call of GetUsage. -func (mr *MockCloudServiceServerMockRecorder) GetUsage(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsage", reflect.TypeOf((*MockCloudServiceServer)(nil).GetUsage), arg0, arg1) -} - -// GetUser mocks base method. -func (m *MockCloudServiceServer) GetUser(arg0 context.Context, arg1 *cloudservice.GetUserRequest) (*cloudservice.GetUserResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetUser", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUser indicates an expected call of GetUser. -func (mr *MockCloudServiceServerMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockCloudServiceServer)(nil).GetUser), arg0, arg1) -} - -// GetUserGroup mocks base method. -func (m *MockCloudServiceServer) GetUserGroup(arg0 context.Context, arg1 *cloudservice.GetUserGroupRequest) (*cloudservice.GetUserGroupResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetUserGroup", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUserGroup indicates an expected call of GetUserGroup. -func (mr *MockCloudServiceServerMockRecorder) GetUserGroup(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserGroup", reflect.TypeOf((*MockCloudServiceServer)(nil).GetUserGroup), arg0, arg1) -} - -// GetUserGroups mocks base method. -func (m *MockCloudServiceServer) GetUserGroups(arg0 context.Context, arg1 *cloudservice.GetUserGroupsRequest) (*cloudservice.GetUserGroupsResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetUserGroups", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetUserGroupsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUserGroups indicates an expected call of GetUserGroups. -func (mr *MockCloudServiceServerMockRecorder) GetUserGroups(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserGroups", reflect.TypeOf((*MockCloudServiceServer)(nil).GetUserGroups), arg0, arg1) -} - -// GetUsers mocks base method. -func (m *MockCloudServiceServer) GetUsers(arg0 context.Context, arg1 *cloudservice.GetUsersRequest) (*cloudservice.GetUsersResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetUsers", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.GetUsersResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetUsers indicates an expected call of GetUsers. -func (mr *MockCloudServiceServerMockRecorder) GetUsers(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsers", reflect.TypeOf((*MockCloudServiceServer)(nil).GetUsers), arg0, arg1) -} - -// RenameCustomSearchAttribute mocks base method. -func (m *MockCloudServiceServer) RenameCustomSearchAttribute(arg0 context.Context, arg1 *cloudservice.RenameCustomSearchAttributeRequest) (*cloudservice.RenameCustomSearchAttributeResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RenameCustomSearchAttribute", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.RenameCustomSearchAttributeResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// RenameCustomSearchAttribute indicates an expected call of RenameCustomSearchAttribute. -func (mr *MockCloudServiceServerMockRecorder) RenameCustomSearchAttribute(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenameCustomSearchAttribute", reflect.TypeOf((*MockCloudServiceServer)(nil).RenameCustomSearchAttribute), arg0, arg1) -} - -// SetUserGroupNamespaceAccess mocks base method. -func (m *MockCloudServiceServer) SetUserGroupNamespaceAccess(arg0 context.Context, arg1 *cloudservice.SetUserGroupNamespaceAccessRequest) (*cloudservice.SetUserGroupNamespaceAccessResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetUserGroupNamespaceAccess", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.SetUserGroupNamespaceAccessResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SetUserGroupNamespaceAccess indicates an expected call of SetUserGroupNamespaceAccess. -func (mr *MockCloudServiceServerMockRecorder) SetUserGroupNamespaceAccess(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserGroupNamespaceAccess", reflect.TypeOf((*MockCloudServiceServer)(nil).SetUserGroupNamespaceAccess), arg0, arg1) -} - -// SetUserNamespaceAccess mocks base method. -func (m *MockCloudServiceServer) SetUserNamespaceAccess(arg0 context.Context, arg1 *cloudservice.SetUserNamespaceAccessRequest) (*cloudservice.SetUserNamespaceAccessResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetUserNamespaceAccess", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.SetUserNamespaceAccessResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// SetUserNamespaceAccess indicates an expected call of SetUserNamespaceAccess. -func (mr *MockCloudServiceServerMockRecorder) SetUserNamespaceAccess(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserNamespaceAccess", reflect.TypeOf((*MockCloudServiceServer)(nil).SetUserNamespaceAccess), arg0, arg1) -} - -// UpdateAccount mocks base method. -func (m *MockCloudServiceServer) UpdateAccount(arg0 context.Context, arg1 *cloudservice.UpdateAccountRequest) (*cloudservice.UpdateAccountResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateAccount", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateAccount indicates an expected call of UpdateAccount. -func (mr *MockCloudServiceServerMockRecorder) UpdateAccount(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccount", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateAccount), arg0, arg1) -} - -// UpdateApiKey mocks base method. -func (m *MockCloudServiceServer) UpdateApiKey(arg0 context.Context, arg1 *cloudservice.UpdateApiKeyRequest) (*cloudservice.UpdateApiKeyResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateApiKey", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateApiKeyResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateApiKey indicates an expected call of UpdateApiKey. -func (mr *MockCloudServiceServerMockRecorder) UpdateApiKey(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateApiKey", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateApiKey), arg0, arg1) -} - -// UpdateNamespace mocks base method. -func (m *MockCloudServiceServer) UpdateNamespace(arg0 context.Context, arg1 *cloudservice.UpdateNamespaceRequest) (*cloudservice.UpdateNamespaceResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateNamespace", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateNamespaceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateNamespace indicates an expected call of UpdateNamespace. -func (mr *MockCloudServiceServerMockRecorder) UpdateNamespace(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateNamespace), arg0, arg1) -} - -// UpdateNamespaceExportSink mocks base method. -func (m *MockCloudServiceServer) UpdateNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.UpdateNamespaceExportSinkRequest) (*cloudservice.UpdateNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateNamespaceExportSink", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateNamespaceExportSink indicates an expected call of UpdateNamespaceExportSink. -func (mr *MockCloudServiceServerMockRecorder) UpdateNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateNamespaceExportSink), arg0, arg1) -} - -// UpdateNexusEndpoint mocks base method. -func (m *MockCloudServiceServer) UpdateNexusEndpoint(arg0 context.Context, arg1 *cloudservice.UpdateNexusEndpointRequest) (*cloudservice.UpdateNexusEndpointResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateNexusEndpoint", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateNexusEndpointResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateNexusEndpoint indicates an expected call of UpdateNexusEndpoint. -func (mr *MockCloudServiceServerMockRecorder) UpdateNexusEndpoint(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNexusEndpoint", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateNexusEndpoint), arg0, arg1) -} - -// UpdateServiceAccount mocks base method. -func (m *MockCloudServiceServer) UpdateServiceAccount(arg0 context.Context, arg1 *cloudservice.UpdateServiceAccountRequest) (*cloudservice.UpdateServiceAccountResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateServiceAccount", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateServiceAccountResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateServiceAccount indicates an expected call of UpdateServiceAccount. -func (mr *MockCloudServiceServerMockRecorder) UpdateServiceAccount(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceAccount", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateServiceAccount), arg0, arg1) -} - -// UpdateUser mocks base method. -func (m *MockCloudServiceServer) UpdateUser(arg0 context.Context, arg1 *cloudservice.UpdateUserRequest) (*cloudservice.UpdateUserResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateUser", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateUserResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateUser indicates an expected call of UpdateUser. -func (mr *MockCloudServiceServerMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateUser), arg0, arg1) -} - -// UpdateUserGroup mocks base method. -func (m *MockCloudServiceServer) UpdateUserGroup(arg0 context.Context, arg1 *cloudservice.UpdateUserGroupRequest) (*cloudservice.UpdateUserGroupResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateUserGroup", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.UpdateUserGroupResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateUserGroup indicates an expected call of UpdateUserGroup. -func (mr *MockCloudServiceServerMockRecorder) UpdateUserGroup(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserGroup", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateUserGroup), arg0, arg1) -} - -// ValidateNamespaceExportSink mocks base method. -func (m *MockCloudServiceServer) ValidateNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.ValidateNamespaceExportSinkRequest) (*cloudservice.ValidateNamespaceExportSinkResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidateNamespaceExportSink", arg0, arg1) - ret0, _ := ret[0].(*cloudservice.ValidateNamespaceExportSinkResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidateNamespaceExportSink indicates an expected call of ValidateNamespaceExportSink. -func (mr *MockCloudServiceServerMockRecorder) ValidateNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).ValidateNamespaceExportSink), arg0, arg1) -} - -// mustEmbedUnimplementedCloudServiceServer mocks base method. -func (m *MockCloudServiceServer) mustEmbedUnimplementedCloudServiceServer() { - m.ctrl.T.Helper() - m.ctrl.Call(m, "mustEmbedUnimplementedCloudServiceServer") -} - -// mustEmbedUnimplementedCloudServiceServer indicates an expected call of mustEmbedUnimplementedCloudServiceServer. -func (mr *MockCloudServiceServerMockRecorder) mustEmbedUnimplementedCloudServiceServer() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedCloudServiceServer", reflect.TypeOf((*MockCloudServiceServer)(nil).mustEmbedUnimplementedCloudServiceServer)) -} - -// MockUnsafeCloudServiceServer is a mock of UnsafeCloudServiceServer interface. -type MockUnsafeCloudServiceServer struct { - ctrl *gomock.Controller - recorder *MockUnsafeCloudServiceServerMockRecorder -} - -// MockUnsafeCloudServiceServerMockRecorder is the mock recorder for MockUnsafeCloudServiceServer. -type MockUnsafeCloudServiceServerMockRecorder struct { - mock *MockUnsafeCloudServiceServer -} - -// NewMockUnsafeCloudServiceServer creates a new mock instance. -func NewMockUnsafeCloudServiceServer(ctrl *gomock.Controller) *MockUnsafeCloudServiceServer { - mock := &MockUnsafeCloudServiceServer{ctrl: ctrl} - mock.recorder = &MockUnsafeCloudServiceServerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockUnsafeCloudServiceServer) EXPECT() *MockUnsafeCloudServiceServerMockRecorder { - return m.recorder -} - -// mustEmbedUnimplementedCloudServiceServer mocks base method. -func (m *MockUnsafeCloudServiceServer) mustEmbedUnimplementedCloudServiceServer() { - m.ctrl.T.Helper() - m.ctrl.Call(m, "mustEmbedUnimplementedCloudServiceServer") -} - -// mustEmbedUnimplementedCloudServiceServer indicates an expected call of mustEmbedUnimplementedCloudServiceServer. -func (mr *MockUnsafeCloudServiceServerMockRecorder) mustEmbedUnimplementedCloudServiceServer() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedCloudServiceServer", reflect.TypeOf((*MockUnsafeCloudServiceServer)(nil).mustEmbedUnimplementedCloudServiceServer)) -} diff --git a/cloud/identity/v1/message.go-helpers.pb.go b/cloud/identity/v1/message.go-helpers.pb.go deleted file mode 100644 index 0bd846e4..00000000 --- a/cloud/identity/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,567 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package identity - -import ( - "fmt" - - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type AccountAccess to the protobuf v3 wire format -func (val *AccountAccess) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type AccountAccess from the protobuf v3 wire format -func (val *AccountAccess) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *AccountAccess) Size() int { - return proto.Size(val) -} - -// Equal returns whether two AccountAccess values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *AccountAccess) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *AccountAccess - switch t := that.(type) { - case *AccountAccess: - that1 = t - case AccountAccess: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type NamespaceAccess to the protobuf v3 wire format -func (val *NamespaceAccess) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type NamespaceAccess from the protobuf v3 wire format -func (val *NamespaceAccess) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *NamespaceAccess) Size() int { - return proto.Size(val) -} - -// Equal returns whether two NamespaceAccess values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *NamespaceAccess) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *NamespaceAccess - switch t := that.(type) { - case *NamespaceAccess: - that1 = t - case NamespaceAccess: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Access to the protobuf v3 wire format -func (val *Access) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Access from the protobuf v3 wire format -func (val *Access) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Access) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Access values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Access) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Access - switch t := that.(type) { - case *Access: - that1 = t - case Access: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type NamespaceScopedAccess to the protobuf v3 wire format -func (val *NamespaceScopedAccess) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type NamespaceScopedAccess from the protobuf v3 wire format -func (val *NamespaceScopedAccess) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *NamespaceScopedAccess) Size() int { - return proto.Size(val) -} - -// Equal returns whether two NamespaceScopedAccess values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *NamespaceScopedAccess) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *NamespaceScopedAccess - switch t := that.(type) { - case *NamespaceScopedAccess: - that1 = t - case NamespaceScopedAccess: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UserSpec to the protobuf v3 wire format -func (val *UserSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UserSpec from the protobuf v3 wire format -func (val *UserSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UserSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UserSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UserSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UserSpec - switch t := that.(type) { - case *UserSpec: - that1 = t - case UserSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Invitation to the protobuf v3 wire format -func (val *Invitation) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Invitation from the protobuf v3 wire format -func (val *Invitation) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Invitation) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Invitation values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Invitation) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Invitation - switch t := that.(type) { - case *Invitation: - that1 = t - case Invitation: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type User to the protobuf v3 wire format -func (val *User) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type User from the protobuf v3 wire format -func (val *User) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *User) Size() int { - return proto.Size(val) -} - -// Equal returns whether two User values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *User) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *User - switch t := that.(type) { - case *User: - that1 = t - case User: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GoogleGroupSpec to the protobuf v3 wire format -func (val *GoogleGroupSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GoogleGroupSpec from the protobuf v3 wire format -func (val *GoogleGroupSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GoogleGroupSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GoogleGroupSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GoogleGroupSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GoogleGroupSpec - switch t := that.(type) { - case *GoogleGroupSpec: - that1 = t - case GoogleGroupSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UserGroupSpec to the protobuf v3 wire format -func (val *UserGroupSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UserGroupSpec from the protobuf v3 wire format -func (val *UserGroupSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UserGroupSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UserGroupSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UserGroupSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UserGroupSpec - switch t := that.(type) { - case *UserGroupSpec: - that1 = t - case UserGroupSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type UserGroup to the protobuf v3 wire format -func (val *UserGroup) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type UserGroup from the protobuf v3 wire format -func (val *UserGroup) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *UserGroup) Size() int { - return proto.Size(val) -} - -// Equal returns whether two UserGroup values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *UserGroup) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *UserGroup - switch t := that.(type) { - case *UserGroup: - that1 = t - case UserGroup: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ServiceAccount to the protobuf v3 wire format -func (val *ServiceAccount) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ServiceAccount from the protobuf v3 wire format -func (val *ServiceAccount) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ServiceAccount) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ServiceAccount values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ServiceAccount) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ServiceAccount - switch t := that.(type) { - case *ServiceAccount: - that1 = t - case ServiceAccount: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ServiceAccountSpec to the protobuf v3 wire format -func (val *ServiceAccountSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ServiceAccountSpec from the protobuf v3 wire format -func (val *ServiceAccountSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ServiceAccountSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ServiceAccountSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ServiceAccountSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ServiceAccountSpec - switch t := that.(type) { - case *ServiceAccountSpec: - that1 = t - case ServiceAccountSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ApiKey to the protobuf v3 wire format -func (val *ApiKey) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ApiKey from the protobuf v3 wire format -func (val *ApiKey) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ApiKey) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ApiKey values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ApiKey) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ApiKey - switch t := that.(type) { - case *ApiKey: - that1 = t - case ApiKey: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ApiKeySpec to the protobuf v3 wire format -func (val *ApiKeySpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ApiKeySpec from the protobuf v3 wire format -func (val *ApiKeySpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ApiKeySpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ApiKeySpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ApiKeySpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ApiKeySpec - switch t := that.(type) { - case *ApiKeySpec: - that1 = t - case ApiKeySpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -var ( - OwnerType_shorthandValue = map[string]int32{ - "Unspecified": 0, - "User": 1, - "ServiceAccount": 2, - } -) - -// OwnerTypeFromString parses a OwnerType value from either the protojson -// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to OwnerType -func OwnerTypeFromString(s string) (OwnerType, error) { - if v, ok := OwnerType_value[s]; ok { - return OwnerType(v), nil - } else if v, ok := OwnerType_shorthandValue[s]; ok { - return OwnerType(v), nil - } - return OwnerType(0), fmt.Errorf("%s is not a valid OwnerType", s) -} diff --git a/cloud/identity/v1/message.pb.go b/cloud/identity/v1/message.pb.go deleted file mode 100644 index 2ab6fa99..00000000 --- a/cloud/identity/v1/message.pb.go +++ /dev/null @@ -1,1595 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/identity/v1/message.proto - -package identity - -import ( - reflect "reflect" - "strconv" - sync "sync" - unsafe "unsafe" - - v1 "go.temporal.io/api/cloud/resource/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -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) -) - -type OwnerType int32 - -const ( - OWNER_TYPE_UNSPECIFIED OwnerType = 0 - OWNER_TYPE_USER OwnerType = 1 // The owner is a user. - OWNER_TYPE_SERVICE_ACCOUNT OwnerType = 2 // The owner is a service account. -) - -// Enum value maps for OwnerType. -var ( - OwnerType_name = map[int32]string{ - 0: "OWNER_TYPE_UNSPECIFIED", - 1: "OWNER_TYPE_USER", - 2: "OWNER_TYPE_SERVICE_ACCOUNT", - } - OwnerType_value = map[string]int32{ - "OWNER_TYPE_UNSPECIFIED": 0, - "OWNER_TYPE_USER": 1, - "OWNER_TYPE_SERVICE_ACCOUNT": 2, - } -) - -func (x OwnerType) Enum() *OwnerType { - p := new(OwnerType) - *p = x - return p -} - -func (x OwnerType) String() string { - switch x { - case OWNER_TYPE_UNSPECIFIED: - return "Unspecified" - case OWNER_TYPE_USER: - return "User" - case OWNER_TYPE_SERVICE_ACCOUNT: - return "ServiceAccount" - default: - return strconv.Itoa(int(x)) - } - -} - -func (OwnerType) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_identity_v1_message_proto_enumTypes[0].Descriptor() -} - -func (OwnerType) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_identity_v1_message_proto_enumTypes[0] -} - -func (x OwnerType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OwnerType.Descriptor instead. -func (OwnerType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{0} -} - -type AccountAccess_Role int32 - -const ( - AccountAccess_ROLE_UNSPECIFIED AccountAccess_Role = 0 - AccountAccess_ROLE_OWNER AccountAccess_Role = 1 - AccountAccess_ROLE_ADMIN AccountAccess_Role = // Gives full access to the account, including users, namespaces, and billing. - 2 - AccountAccess_ROLE_DEVELOPER AccountAccess_Role = // Gives full access to the account, including users and namespaces. - 3 - AccountAccess_ROLE_FINANCE_ADMIN AccountAccess_Role = // Gives access to create namespaces on the account. - 4 - AccountAccess_ROLE_READ AccountAccess_Role = // Gives read only access and write access for billing. - 5 // Gives read only access to the account. -) - -// Enum value maps for AccountAccess_Role. -var ( - AccountAccess_Role_name = map[int32]string{ - 0: "ROLE_UNSPECIFIED", - 1: "ROLE_OWNER", - 2: "ROLE_ADMIN", - 3: "ROLE_DEVELOPER", - 4: "ROLE_FINANCE_ADMIN", - 5: "ROLE_READ", - } - AccountAccess_Role_value = map[string]int32{ - "ROLE_UNSPECIFIED": 0, - "ROLE_OWNER": 1, - "ROLE_ADMIN": 2, - "ROLE_DEVELOPER": 3, - "ROLE_FINANCE_ADMIN": 4, - "ROLE_READ": 5, - } -) - -func (x AccountAccess_Role) Enum() *AccountAccess_Role { - p := new(AccountAccess_Role) - *p = x - return p -} - -func (x AccountAccess_Role) String() string { - switch x { - case AccountAccess_ROLE_UNSPECIFIED: - return "AccountAccessRoleUnspecified" - case AccountAccess_ROLE_OWNER: - return "AccountAccessRoleOwner" - case AccountAccess_ROLE_ADMIN: - return "AccountAccessRoleAdmin" - case AccountAccess_ROLE_DEVELOPER: - return "AccountAccessRoleDeveloper" - case AccountAccess_ROLE_FINANCE_ADMIN: - return "AccountAccessRoleFinanceAdmin" - case AccountAccess_ROLE_READ: - return "AccountAccessRoleRead" - default: - return strconv.Itoa(int(x)) - } - -} - -func (AccountAccess_Role) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_identity_v1_message_proto_enumTypes[1].Descriptor() -} - -func (AccountAccess_Role) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_identity_v1_message_proto_enumTypes[1] -} - -func (x AccountAccess_Role) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AccountAccess_Role.Descriptor instead. -func (AccountAccess_Role) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{0, 0} -} - -type NamespaceAccess_Permission int32 - -const ( - NamespaceAccess_PERMISSION_UNSPECIFIED NamespaceAccess_Permission = 0 - NamespaceAccess_PERMISSION_ADMIN NamespaceAccess_Permission = 1 - NamespaceAccess_PERMISSION_WRITE NamespaceAccess_Permission = // Gives full access to the namespace, including assigning namespace access to other users. - 2 - NamespaceAccess_PERMISSION_READ NamespaceAccess_Permission = // Gives write access to the namespace configuration and workflows within the namespace. - 3 // Gives read only access to the namespace configuration and workflows within the namespace. -) - -// Enum value maps for NamespaceAccess_Permission. -var ( - NamespaceAccess_Permission_name = map[int32]string{ - 0: "PERMISSION_UNSPECIFIED", - 1: "PERMISSION_ADMIN", - 2: "PERMISSION_WRITE", - 3: "PERMISSION_READ", - } - NamespaceAccess_Permission_value = map[string]int32{ - "PERMISSION_UNSPECIFIED": 0, - "PERMISSION_ADMIN": 1, - "PERMISSION_WRITE": 2, - "PERMISSION_READ": 3, - } -) - -func (x NamespaceAccess_Permission) Enum() *NamespaceAccess_Permission { - p := new(NamespaceAccess_Permission) - *p = x - return p -} - -func (x NamespaceAccess_Permission) String() string { - switch x { - case NamespaceAccess_PERMISSION_UNSPECIFIED: - return "NamespaceAccessPermissionUnspecified" - case NamespaceAccess_PERMISSION_ADMIN: - return "NamespaceAccessPermissionAdmin" - case NamespaceAccess_PERMISSION_WRITE: - return "NamespaceAccessPermissionWrite" - case NamespaceAccess_PERMISSION_READ: - return "NamespaceAccessPermissionRead" - default: - return strconv.Itoa(int(x)) - } - -} - -func (NamespaceAccess_Permission) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_identity_v1_message_proto_enumTypes[2].Descriptor() -} - -func (NamespaceAccess_Permission) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_identity_v1_message_proto_enumTypes[2] -} - -func (x NamespaceAccess_Permission) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NamespaceAccess_Permission.Descriptor instead. -func (NamespaceAccess_Permission) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{1, 0} -} - -type AccountAccess struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The role on the account, should be one of [owner, admin, developer, financeadmin, read] - // owner - gives full access to the account, including users, namespaces, and billing - // admin - gives full access the account, including users and namespaces - // developer - gives access to create namespaces on the account - // financeadmin - gives read only access and write access for billing - // read - gives read only access to the account - // Deprecated: Not supported after 2024-10-01-00 api version. Use role instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. - RoleDeprecated string `protobuf:"bytes,1,opt,name=role_deprecated,json=roleDeprecated,proto3" json:"role_deprecated,omitempty"` - // The role on the account. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=role_deprecated - Role AccountAccess_Role `protobuf:"varint,2,opt,name=role,proto3,enum=temporal.api.cloud.identity.v1.AccountAccess_Role" json:"role,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AccountAccess) Reset() { - *x = AccountAccess{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AccountAccess) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountAccess) ProtoMessage() {} - -func (x *AccountAccess) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AccountAccess.ProtoReflect.Descriptor instead. -func (*AccountAccess) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{0} -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. -func (x *AccountAccess) GetRoleDeprecated() string { - if x != nil { - return x.RoleDeprecated - } - return "" -} - -func (x *AccountAccess) GetRole() AccountAccess_Role { - if x != nil { - return x.Role - } - return AccountAccess_ROLE_UNSPECIFIED -} - -type NamespaceAccess struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The permission to the namespace, should be one of [admin, write, read] - // admin - gives full access to the namespace, including assigning namespace access to other users - // write - gives write access to the namespace configuration and workflows within the namespace - // read - gives read only access to the namespace configuration and workflows within the namespace - // Deprecated: Not supported after 2024-10-01-00 api version. Use permission instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. - PermissionDeprecated string `protobuf:"bytes,1,opt,name=permission_deprecated,json=permissionDeprecated,proto3" json:"permission_deprecated,omitempty"` - // The permission to the namespace. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=permission_deprecated - Permission NamespaceAccess_Permission `protobuf:"varint,2,opt,name=permission,proto3,enum=temporal.api.cloud.identity.v1.NamespaceAccess_Permission" json:"permission,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *NamespaceAccess) Reset() { - *x = NamespaceAccess{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NamespaceAccess) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamespaceAccess) ProtoMessage() {} - -func (x *NamespaceAccess) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamespaceAccess.ProtoReflect.Descriptor instead. -func (*NamespaceAccess) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{1} -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. -func (x *NamespaceAccess) GetPermissionDeprecated() string { - if x != nil { - return x.PermissionDeprecated - } - return "" -} - -func (x *NamespaceAccess) GetPermission() NamespaceAccess_Permission { - if x != nil { - return x.Permission - } - return NamespaceAccess_PERMISSION_UNSPECIFIED -} - -type Access struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The account access - AccountAccess *AccountAccess `protobuf:"bytes,1,opt,name=account_access,json=accountAccess,proto3" json:"account_access,omitempty"` - // The map of namespace accesses - // The key is the namespace name and the value is the access to the namespace - NamespaceAccesses map[string]*NamespaceAccess `protobuf:"bytes,2,rep,name=namespace_accesses,json=namespaceAccesses,proto3" json:"namespace_accesses,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Access) Reset() { - *x = Access{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Access) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Access) ProtoMessage() {} - -func (x *Access) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Access.ProtoReflect.Descriptor instead. -func (*Access) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{2} -} - -func (x *Access) GetAccountAccess() *AccountAccess { - if x != nil { - return x.AccountAccess - } - return nil -} - -func (x *Access) GetNamespaceAccesses() map[string]*NamespaceAccess { - if x != nil { - return x.NamespaceAccesses - } - return nil -} - -type NamespaceScopedAccess struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace the service account is assigned to - immutable. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The namespace access assigned to the service account - mutable. - Access *NamespaceAccess `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *NamespaceScopedAccess) Reset() { - *x = NamespaceScopedAccess{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NamespaceScopedAccess) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamespaceScopedAccess) ProtoMessage() {} - -func (x *NamespaceScopedAccess) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamespaceScopedAccess.ProtoReflect.Descriptor instead. -func (*NamespaceScopedAccess) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{3} -} - -func (x *NamespaceScopedAccess) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *NamespaceScopedAccess) GetAccess() *NamespaceAccess { - if x != nil { - return x.Access - } - return nil -} - -type UserSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The email address associated to the user - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - // The access to assigned to the user - Access *Access `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UserSpec) Reset() { - *x = UserSpec{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UserSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserSpec) ProtoMessage() {} - -func (x *UserSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserSpec.ProtoReflect.Descriptor instead. -func (*UserSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{4} -} - -func (x *UserSpec) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserSpec) GetAccess() *Access { - if x != nil { - return x.Access - } - return nil -} - -type Invitation struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The date and time when the user was created - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the invitation expires or has expired - ExpiredTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expired_time,json=expiredTime,proto3" json:"expired_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Invitation) Reset() { - *x = Invitation{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Invitation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Invitation) ProtoMessage() {} - -func (x *Invitation) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Invitation.ProtoReflect.Descriptor instead. -func (*Invitation) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{5} -} - -func (x *Invitation) GetCreatedTime() *timestamppb.Timestamp { - if x != nil { - return x.CreatedTime - } - return nil -} - -func (x *Invitation) GetExpiredTime() *timestamppb.Timestamp { - if x != nil { - return x.ExpiredTime - } - return nil -} - -type User struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the user - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The current version of the user specification - // The next update operation will have to include this version - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The user specification - Spec *UserSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the user - // Deprecated: Not supported after 2024-10-01-00 api version. Use state instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. - StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` - // The current state of the user. - // For any failed state, reach out to Temporal Cloud support for remediation. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=state_deprecated - State v1.ResourceState `protobuf:"varint,9,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The id of the async operation that is creating/updating/deleting the user, if any - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // The details of the open invitation sent to the user, if any - Invitation *Invitation `protobuf:"bytes,6,opt,name=invitation,proto3" json:"invitation,omitempty"` - // The date and time when the user was created - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the user was last modified - // Will not be set if the user has never been modified - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *User) Reset() { - *x = User{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[6] - 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_temporal_api_cloud_identity_v1_message_proto_msgTypes[6] - if 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_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{6} -} - -func (x *User) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *User) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *User) GetSpec() *UserSpec { - if x != nil { - return x.Spec - } - return nil -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. -func (x *User) GetStateDeprecated() string { - if x != nil { - return x.StateDeprecated - } - return "" -} - -func (x *User) GetState() v1.ResourceState { - if x != nil { - return x.State - } - return v1.ResourceState(0) -} - -func (x *User) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -func (x *User) GetInvitation() *Invitation { - if x != nil { - return x.Invitation - } - return nil -} - -func (x *User) GetCreatedTime() *timestamppb.Timestamp { - if x != nil { - return x.CreatedTime - } - return nil -} - -func (x *User) GetLastModifiedTime() *timestamppb.Timestamp { - if x != nil { - return x.LastModifiedTime - } - return nil -} - -type GoogleGroupSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The email address of the Google group. - // The email address is immutable. Once set during creation, it cannot be changed. - EmailAddress string `protobuf:"bytes,1,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GoogleGroupSpec) Reset() { - *x = GoogleGroupSpec{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GoogleGroupSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GoogleGroupSpec) ProtoMessage() {} - -func (x *GoogleGroupSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GoogleGroupSpec.ProtoReflect.Descriptor instead. -func (*GoogleGroupSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{7} -} - -func (x *GoogleGroupSpec) GetEmailAddress() string { - if x != nil { - return x.EmailAddress - } - return "" -} - -type UserGroupSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The display name of the group. - DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // The access assigned to the group. - Access *Access `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` - // The specification of the google group that this group is associated with. - // For now only google groups are supported, and this field is required. - GoogleGroup *GoogleGroupSpec `protobuf:"bytes,3,opt,name=google_group,json=googleGroup,proto3" json:"google_group,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UserGroupSpec) Reset() { - *x = UserGroupSpec{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UserGroupSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGroupSpec) ProtoMessage() {} - -func (x *UserGroupSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserGroupSpec.ProtoReflect.Descriptor instead. -func (*UserGroupSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{8} -} - -func (x *UserGroupSpec) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UserGroupSpec) GetAccess() *Access { - if x != nil { - return x.Access - } - return nil -} - -func (x *UserGroupSpec) GetGoogleGroup() *GoogleGroupSpec { - if x != nil { - return x.GoogleGroup - } - return nil -} - -type UserGroup struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the group - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The current version of the group specification - // The next update operation will have to include this version - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The group specification - Spec *UserGroupSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the group. - // Deprecated: Not supported after 2024-10-01-00 api version. Use state instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. - StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` - // The current state of the group. - // For any failed state, reach out to Temporal Cloud support for remediation. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=state_deprecated - State v1.ResourceState `protobuf:"varint,8,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The id of the async operation that is creating/updating/deleting the group, if any - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // The date and time when the group was created - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the group was last modified - // Will not be set if the group has never been modified - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UserGroup) Reset() { - *x = UserGroup{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UserGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGroup) ProtoMessage() {} - -func (x *UserGroup) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserGroup.ProtoReflect.Descriptor instead. -func (*UserGroup) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{9} -} - -func (x *UserGroup) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserGroup) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *UserGroup) GetSpec() *UserGroupSpec { - if x != nil { - return x.Spec - } - return nil -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. -func (x *UserGroup) GetStateDeprecated() string { - if x != nil { - return x.StateDeprecated - } - return "" -} - -func (x *UserGroup) GetState() v1.ResourceState { - if x != nil { - return x.State - } - return v1.ResourceState(0) -} - -func (x *UserGroup) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -func (x *UserGroup) GetCreatedTime() *timestamppb.Timestamp { - if x != nil { - return x.CreatedTime - } - return nil -} - -func (x *UserGroup) GetLastModifiedTime() *timestamppb.Timestamp { - if x != nil { - return x.LastModifiedTime - } - return nil -} - -type ServiceAccount struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the service account. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The current version of the service account specification. - // The next update operation will have to include this version. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The service account specification. - Spec *ServiceAccountSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the service account. - // Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. - // For any failed state, reach out to Temporal Cloud support for remediation. - // Deprecated: Not supported after 2024-10-01-00 api version. Use state instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. - StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` - // The current state of the service account. - // For any failed state, reach out to Temporal Cloud support for remediation. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=state_deprecated - State v1.ResourceState `protobuf:"varint,8,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The id of the async operation that is creating/updating/deleting the service account, if any. - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // The date and time when the service account was created. - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the service account was last modified - // Will not be set if the service account has never been modified. - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ServiceAccount) Reset() { - *x = ServiceAccount{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ServiceAccount) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceAccount) ProtoMessage() {} - -func (x *ServiceAccount) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServiceAccount.ProtoReflect.Descriptor instead. -func (*ServiceAccount) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{10} -} - -func (x *ServiceAccount) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ServiceAccount) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *ServiceAccount) GetSpec() *ServiceAccountSpec { - if x != nil { - return x.Spec - } - return nil -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. -func (x *ServiceAccount) GetStateDeprecated() string { - if x != nil { - return x.StateDeprecated - } - return "" -} - -func (x *ServiceAccount) GetState() v1.ResourceState { - if x != nil { - return x.State - } - return v1.ResourceState(0) -} - -func (x *ServiceAccount) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -func (x *ServiceAccount) GetCreatedTime() *timestamppb.Timestamp { - if x != nil { - return x.CreatedTime - } - return nil -} - -func (x *ServiceAccount) GetLastModifiedTime() *timestamppb.Timestamp { - if x != nil { - return x.LastModifiedTime - } - return nil -} - -type ServiceAccountSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The name associated with the service account. - // The name is mutable, but must be unique across all your active service accounts. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Note: one of `Access` or `NamespaceScopedAccess` must be provided, but not both. - // The access assigned to the service account. - // If set, creates an account scoped service account. - // The access is mutable. - Access *Access `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` - // The namespace scoped access assigned to the service account. - // If set, creates a namespace scoped service account (limited to a single namespace). - // The namespace scoped access is partially mutable. - // Refer to `NamespaceScopedAccess` for details. - NamespaceScopedAccess *NamespaceScopedAccess `protobuf:"bytes,4,opt,name=namespace_scoped_access,json=namespaceScopedAccess,proto3" json:"namespace_scoped_access,omitempty"` - // The description associated with the service account - optional. - // The description is mutable. - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ServiceAccountSpec) Reset() { - *x = ServiceAccountSpec{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ServiceAccountSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServiceAccountSpec) ProtoMessage() {} - -func (x *ServiceAccountSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServiceAccountSpec.ProtoReflect.Descriptor instead. -func (*ServiceAccountSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{11} -} - -func (x *ServiceAccountSpec) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ServiceAccountSpec) GetAccess() *Access { - if x != nil { - return x.Access - } - return nil -} - -func (x *ServiceAccountSpec) GetNamespaceScopedAccess() *NamespaceScopedAccess { - if x != nil { - return x.NamespaceScopedAccess - } - return nil -} - -func (x *ServiceAccountSpec) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -type ApiKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the API Key. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The current version of the API key specification. - // The next update operation will have to include this version. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The API key specification. - Spec *ApiKeySpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the API key. - // Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. - // For any failed state, reach out to Temporal Cloud support for remediation. - // Deprecated: Not supported after 2024-10-01-00 api version. Use state instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. - StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` - // The current state of the API key. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=state_deprecated - State v1.ResourceState `protobuf:"varint,8,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The id of the async operation that is creating/updating/deleting the API key, if any. - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // The date and time when the API key was created. - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the API key was last modified. - // Will not be set if the API key has never been modified. - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ApiKey) Reset() { - *x = ApiKey{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ApiKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApiKey) ProtoMessage() {} - -func (x *ApiKey) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApiKey.ProtoReflect.Descriptor instead. -func (*ApiKey) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{12} -} - -func (x *ApiKey) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ApiKey) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *ApiKey) GetSpec() *ApiKeySpec { - if x != nil { - return x.Spec - } - return nil -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. -func (x *ApiKey) GetStateDeprecated() string { - if x != nil { - return x.StateDeprecated - } - return "" -} - -func (x *ApiKey) GetState() v1.ResourceState { - if x != nil { - return x.State - } - return v1.ResourceState(0) -} - -func (x *ApiKey) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -func (x *ApiKey) GetCreatedTime() *timestamppb.Timestamp { - if x != nil { - return x.CreatedTime - } - return nil -} - -func (x *ApiKey) GetLastModifiedTime() *timestamppb.Timestamp { - if x != nil { - return x.LastModifiedTime - } - return nil -} - -type ApiKeySpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the owner to create the API key for. - // The owner id is immutable. Once set during creation, it cannot be changed. - // The owner id is the id of the user when the owner type is user. - // The owner id is the id of the service account when the owner type is service account. - OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // The type of the owner to create the API key for. - // The owner type is immutable. Once set during creation, it cannot be changed. - // Possible values: user, service-account. - // Deprecated: Not supported after 2024-10-01-00 api version. Use owner_type instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. - OwnerTypeDeprecated string `protobuf:"bytes,2,opt,name=owner_type_deprecated,json=ownerTypeDeprecated,proto3" json:"owner_type_deprecated,omitempty"` - // The type of the owner to create the API key for. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=owner_type_deprecated - OwnerType OwnerType `protobuf:"varint,7,opt,name=owner_type,json=ownerType,proto3,enum=temporal.api.cloud.identity.v1.OwnerType" json:"owner_type,omitempty"` - // The display name of the API key. - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // The description of the API key. - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - // The expiry time of the API key. - ExpiryTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"` - // True if the API key is disabled. - Disabled bool `protobuf:"varint,6,opt,name=disabled,proto3" json:"disabled,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ApiKeySpec) Reset() { - *x = ApiKeySpec{} - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ApiKeySpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApiKeySpec) ProtoMessage() {} - -func (x *ApiKeySpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_identity_v1_message_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApiKeySpec.ProtoReflect.Descriptor instead. -func (*ApiKeySpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP(), []int{13} -} - -func (x *ApiKeySpec) GetOwnerId() string { - if x != nil { - return x.OwnerId - } - return "" -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/identity/v1/message.proto. -func (x *ApiKeySpec) GetOwnerTypeDeprecated() string { - if x != nil { - return x.OwnerTypeDeprecated - } - return "" -} - -func (x *ApiKeySpec) GetOwnerType() OwnerType { - if x != nil { - return x.OwnerType - } - return OWNER_TYPE_UNSPECIFIED -} - -func (x *ApiKeySpec) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *ApiKeySpec) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *ApiKeySpec) GetExpiryTime() *timestamppb.Timestamp { - if x != nil { - return x.ExpiryTime - } - return nil -} - -func (x *ApiKeySpec) GetDisabled() bool { - if x != nil { - return x.Disabled - } - return false -} - -var File_temporal_api_cloud_identity_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_identity_v1_message_proto_rawDesc = "" + - "\n" + - ",temporal/api/cloud/identity/v1/message.proto\x12\x1etemporal.api.cloud.identity.v1\x1a,temporal/api/cloud/resource/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x01\n" + - "\rAccountAccess\x12+\n" + - "\x0frole_deprecated\x18\x01 \x01(\tB\x02\x18\x01R\x0eroleDeprecated\x12F\n" + - "\x04role\x18\x02 \x01(\x0e22.temporal.api.cloud.identity.v1.AccountAccess.RoleR\x04role\"w\n" + - "\x04Role\x12\x14\n" + - "\x10ROLE_UNSPECIFIED\x10\x00\x12\x0e\n" + - "\n" + - "ROLE_OWNER\x10\x01\x12\x0e\n" + - "\n" + - "ROLE_ADMIN\x10\x02\x12\x12\n" + - "\x0eROLE_DEVELOPER\x10\x03\x12\x16\n" + - "\x12ROLE_FINANCE_ADMIN\x10\x04\x12\r\n" + - "\tROLE_READ\x10\x05\"\x91\x02\n" + - "\x0fNamespaceAccess\x127\n" + - "\x15permission_deprecated\x18\x01 \x01(\tB\x02\x18\x01R\x14permissionDeprecated\x12Z\n" + - "\n" + - "permission\x18\x02 \x01(\x0e2:.temporal.api.cloud.identity.v1.NamespaceAccess.PermissionR\n" + - "permission\"i\n" + - "\n" + - "Permission\x12\x1a\n" + - "\x16PERMISSION_UNSPECIFIED\x10\x00\x12\x14\n" + - "\x10PERMISSION_ADMIN\x10\x01\x12\x14\n" + - "\x10PERMISSION_WRITE\x10\x02\x12\x13\n" + - "\x0fPERMISSION_READ\x10\x03\"\xc3\x02\n" + - "\x06Access\x12T\n" + - "\x0eaccount_access\x18\x01 \x01(\v2-.temporal.api.cloud.identity.v1.AccountAccessR\raccountAccess\x12l\n" + - "\x12namespace_accesses\x18\x02 \x03(\v2=.temporal.api.cloud.identity.v1.Access.NamespaceAccessesEntryR\x11namespaceAccesses\x1au\n" + - "\x16NamespaceAccessesEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12E\n" + - "\x05value\x18\x02 \x01(\v2/.temporal.api.cloud.identity.v1.NamespaceAccessR\x05value:\x028\x01\"~\n" + - "\x15NamespaceScopedAccess\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12G\n" + - "\x06access\x18\x02 \x01(\v2/.temporal.api.cloud.identity.v1.NamespaceAccessR\x06access\"`\n" + - "\bUserSpec\x12\x14\n" + - "\x05email\x18\x01 \x01(\tR\x05email\x12>\n" + - "\x06access\x18\x02 \x01(\v2&.temporal.api.cloud.identity.v1.AccessR\x06access\"\x8a\x01\n" + - "\n" + - "Invitation\x12=\n" + - "\fcreated_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12=\n" + - "\fexpired_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\vexpiredTime\"\xf6\x03\n" + - "\x04User\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12<\n" + - "\x04spec\x18\x03 \x01(\v2(.temporal.api.cloud.identity.v1.UserSpecR\x04spec\x12-\n" + - "\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01R\x0fstateDeprecated\x12C\n" + - "\x05state\x18\t \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\x12J\n" + - "\n" + - "invitation\x18\x06 \x01(\v2*.temporal.api.cloud.identity.v1.InvitationR\n" + - "invitation\x12=\n" + - "\fcreated_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12H\n" + - "\x12last_modified_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTime\"6\n" + - "\x0fGoogleGroupSpec\x12#\n" + - "\remail_address\x18\x01 \x01(\tR\femailAddress\"\xc6\x01\n" + - "\rUserGroupSpec\x12!\n" + - "\fdisplay_name\x18\x01 \x01(\tR\vdisplayName\x12>\n" + - "\x06access\x18\x02 \x01(\v2&.temporal.api.cloud.identity.v1.AccessR\x06access\x12R\n" + - "\fgoogle_group\x18\x03 \x01(\v2/.temporal.api.cloud.identity.v1.GoogleGroupSpecR\vgoogleGroup\"\xb4\x03\n" + - "\tUserGroup\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12A\n" + - "\x04spec\x18\x03 \x01(\v2-.temporal.api.cloud.identity.v1.UserGroupSpecR\x04spec\x12-\n" + - "\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01R\x0fstateDeprecated\x12C\n" + - "\x05state\x18\b \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\x12=\n" + - "\fcreated_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12H\n" + - "\x12last_modified_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTime\"\xbe\x03\n" + - "\x0eServiceAccount\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12F\n" + - "\x04spec\x18\x03 \x01(\v22.temporal.api.cloud.identity.v1.ServiceAccountSpecR\x04spec\x12-\n" + - "\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01R\x0fstateDeprecated\x12C\n" + - "\x05state\x18\b \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\x12=\n" + - "\fcreated_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12H\n" + - "\x12last_modified_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTime\"\xf9\x01\n" + - "\x12ServiceAccountSpec\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12>\n" + - "\x06access\x18\x02 \x01(\v2&.temporal.api.cloud.identity.v1.AccessR\x06access\x12m\n" + - "\x17namespace_scoped_access\x18\x04 \x01(\v25.temporal.api.cloud.identity.v1.NamespaceScopedAccessR\x15namespaceScopedAccess\x12 \n" + - "\vdescription\x18\x03 \x01(\tR\vdescription\"\xae\x03\n" + - "\x06ApiKey\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12>\n" + - "\x04spec\x18\x03 \x01(\v2*.temporal.api.cloud.identity.v1.ApiKeySpecR\x04spec\x12-\n" + - "\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01R\x0fstateDeprecated\x12C\n" + - "\x05state\x18\b \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\x12=\n" + - "\fcreated_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12H\n" + - "\x12last_modified_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTime\"\xc7\x02\n" + - "\n" + - "ApiKeySpec\x12\x19\n" + - "\bowner_id\x18\x01 \x01(\tR\aownerId\x126\n" + - "\x15owner_type_deprecated\x18\x02 \x01(\tB\x02\x18\x01R\x13ownerTypeDeprecated\x12H\n" + - "\n" + - "owner_type\x18\a \x01(\x0e2).temporal.api.cloud.identity.v1.OwnerTypeR\townerType\x12!\n" + - "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12 \n" + - "\vdescription\x18\x04 \x01(\tR\vdescription\x12;\n" + - "\vexpiry_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" + - "expiryTime\x12\x1a\n" + - "\bdisabled\x18\x06 \x01(\bR\bdisabled*\\\n" + - "\tOwnerType\x12\x1a\n" + - "\x16OWNER_TYPE_UNSPECIFIED\x10\x00\x12\x13\n" + - "\x0fOWNER_TYPE_USER\x10\x01\x12\x1e\n" + - "\x1aOWNER_TYPE_SERVICE_ACCOUNT\x10\x02B\xac\x01\n" + - "!io.temporal.api.cloud.identity.v1B\fMessageProtoP\x01Z-go.temporal.io/api/cloud/identity/v1;identity\xaa\x02 Temporalio.Api.Cloud.Identity.V1\xea\x02$Temporalio::Api::Cloud::Identity::V1b\x06proto3" - -var ( - file_temporal_api_cloud_identity_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_identity_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_identity_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_identity_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_identity_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_identity_v1_message_proto_rawDesc), len(file_temporal_api_cloud_identity_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_identity_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_identity_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_temporal_api_cloud_identity_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_temporal_api_cloud_identity_v1_message_proto_goTypes = []any{ - (OwnerType)(0), // 0: temporal.api.cloud.identity.v1.OwnerType - (AccountAccess_Role)(0), // 1: temporal.api.cloud.identity.v1.AccountAccess.Role - (NamespaceAccess_Permission)(0), // 2: temporal.api.cloud.identity.v1.NamespaceAccess.Permission - (*AccountAccess)(nil), // 3: temporal.api.cloud.identity.v1.AccountAccess - (*NamespaceAccess)(nil), // 4: temporal.api.cloud.identity.v1.NamespaceAccess - (*Access)(nil), // 5: temporal.api.cloud.identity.v1.Access - (*NamespaceScopedAccess)(nil), // 6: temporal.api.cloud.identity.v1.NamespaceScopedAccess - (*UserSpec)(nil), // 7: temporal.api.cloud.identity.v1.UserSpec - (*Invitation)(nil), // 8: temporal.api.cloud.identity.v1.Invitation - (*User)(nil), // 9: temporal.api.cloud.identity.v1.User - (*GoogleGroupSpec)(nil), // 10: temporal.api.cloud.identity.v1.GoogleGroupSpec - (*UserGroupSpec)(nil), // 11: temporal.api.cloud.identity.v1.UserGroupSpec - (*UserGroup)(nil), // 12: temporal.api.cloud.identity.v1.UserGroup - (*ServiceAccount)(nil), // 13: temporal.api.cloud.identity.v1.ServiceAccount - (*ServiceAccountSpec)(nil), // 14: temporal.api.cloud.identity.v1.ServiceAccountSpec - (*ApiKey)(nil), // 15: temporal.api.cloud.identity.v1.ApiKey - (*ApiKeySpec)(nil), // 16: temporal.api.cloud.identity.v1.ApiKeySpec - nil, // 17: temporal.api.cloud.identity.v1.Access.NamespaceAccessesEntry - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (v1.ResourceState)(0), // 19: temporal.api.cloud.resource.v1.ResourceState -} -var file_temporal_api_cloud_identity_v1_message_proto_depIdxs = []int32{ - 1, // 0: temporal.api.cloud.identity.v1.AccountAccess.role:type_name -> temporal.api.cloud.identity.v1.AccountAccess.Role - 2, // 1: temporal.api.cloud.identity.v1.NamespaceAccess.permission:type_name -> temporal.api.cloud.identity.v1.NamespaceAccess.Permission - 3, // 2: temporal.api.cloud.identity.v1.Access.account_access:type_name -> temporal.api.cloud.identity.v1.AccountAccess - 17, // 3: temporal.api.cloud.identity.v1.Access.namespace_accesses:type_name -> temporal.api.cloud.identity.v1.Access.NamespaceAccessesEntry - 4, // 4: temporal.api.cloud.identity.v1.NamespaceScopedAccess.access:type_name -> temporal.api.cloud.identity.v1.NamespaceAccess - 5, // 5: temporal.api.cloud.identity.v1.UserSpec.access:type_name -> temporal.api.cloud.identity.v1.Access - 18, // 6: temporal.api.cloud.identity.v1.Invitation.created_time:type_name -> google.protobuf.Timestamp - 18, // 7: temporal.api.cloud.identity.v1.Invitation.expired_time:type_name -> google.protobuf.Timestamp - 7, // 8: temporal.api.cloud.identity.v1.User.spec:type_name -> temporal.api.cloud.identity.v1.UserSpec - 19, // 9: temporal.api.cloud.identity.v1.User.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 8, // 10: temporal.api.cloud.identity.v1.User.invitation:type_name -> temporal.api.cloud.identity.v1.Invitation - 18, // 11: temporal.api.cloud.identity.v1.User.created_time:type_name -> google.protobuf.Timestamp - 18, // 12: temporal.api.cloud.identity.v1.User.last_modified_time:type_name -> google.protobuf.Timestamp - 5, // 13: temporal.api.cloud.identity.v1.UserGroupSpec.access:type_name -> temporal.api.cloud.identity.v1.Access - 10, // 14: temporal.api.cloud.identity.v1.UserGroupSpec.google_group:type_name -> temporal.api.cloud.identity.v1.GoogleGroupSpec - 11, // 15: temporal.api.cloud.identity.v1.UserGroup.spec:type_name -> temporal.api.cloud.identity.v1.UserGroupSpec - 19, // 16: temporal.api.cloud.identity.v1.UserGroup.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 18, // 17: temporal.api.cloud.identity.v1.UserGroup.created_time:type_name -> google.protobuf.Timestamp - 18, // 18: temporal.api.cloud.identity.v1.UserGroup.last_modified_time:type_name -> google.protobuf.Timestamp - 14, // 19: temporal.api.cloud.identity.v1.ServiceAccount.spec:type_name -> temporal.api.cloud.identity.v1.ServiceAccountSpec - 19, // 20: temporal.api.cloud.identity.v1.ServiceAccount.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 18, // 21: temporal.api.cloud.identity.v1.ServiceAccount.created_time:type_name -> google.protobuf.Timestamp - 18, // 22: temporal.api.cloud.identity.v1.ServiceAccount.last_modified_time:type_name -> google.protobuf.Timestamp - 5, // 23: temporal.api.cloud.identity.v1.ServiceAccountSpec.access:type_name -> temporal.api.cloud.identity.v1.Access - 6, // 24: temporal.api.cloud.identity.v1.ServiceAccountSpec.namespace_scoped_access:type_name -> temporal.api.cloud.identity.v1.NamespaceScopedAccess - 16, // 25: temporal.api.cloud.identity.v1.ApiKey.spec:type_name -> temporal.api.cloud.identity.v1.ApiKeySpec - 19, // 26: temporal.api.cloud.identity.v1.ApiKey.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 18, // 27: temporal.api.cloud.identity.v1.ApiKey.created_time:type_name -> google.protobuf.Timestamp - 18, // 28: temporal.api.cloud.identity.v1.ApiKey.last_modified_time:type_name -> google.protobuf.Timestamp - 0, // 29: temporal.api.cloud.identity.v1.ApiKeySpec.owner_type:type_name -> temporal.api.cloud.identity.v1.OwnerType - 18, // 30: temporal.api.cloud.identity.v1.ApiKeySpec.expiry_time:type_name -> google.protobuf.Timestamp - 4, // 31: temporal.api.cloud.identity.v1.Access.NamespaceAccessesEntry.value:type_name -> temporal.api.cloud.identity.v1.NamespaceAccess - 32, // [32:32] is the sub-list for method output_type - 32, // [32:32] is the sub-list for method input_type - 32, // [32:32] is the sub-list for extension type_name - 32, // [32:32] is the sub-list for extension extendee - 0, // [0:32] is the sub-list for field type_name -} - -func init() { file_temporal_api_cloud_identity_v1_message_proto_init() } -func file_temporal_api_cloud_identity_v1_message_proto_init() { - if File_temporal_api_cloud_identity_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_identity_v1_message_proto_rawDesc), len(file_temporal_api_cloud_identity_v1_message_proto_rawDesc)), - NumEnums: 3, - NumMessages: 15, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_identity_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_identity_v1_message_proto_depIdxs, - EnumInfos: file_temporal_api_cloud_identity_v1_message_proto_enumTypes, - MessageInfos: file_temporal_api_cloud_identity_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_identity_v1_message_proto = out.File - file_temporal_api_cloud_identity_v1_message_proto_goTypes = nil - file_temporal_api_cloud_identity_v1_message_proto_depIdxs = nil -} diff --git a/cloud/namespace/v1/message.go-helpers.pb.go b/cloud/namespace/v1/message.go-helpers.pb.go deleted file mode 100644 index 7ebac2f3..00000000 --- a/cloud/namespace/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,509 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package namespace - -import ( - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type CertificateFilterSpec to the protobuf v3 wire format -func (val *CertificateFilterSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CertificateFilterSpec from the protobuf v3 wire format -func (val *CertificateFilterSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CertificateFilterSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CertificateFilterSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CertificateFilterSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CertificateFilterSpec - switch t := that.(type) { - case *CertificateFilterSpec: - that1 = t - case CertificateFilterSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type MtlsAuthSpec to the protobuf v3 wire format -func (val *MtlsAuthSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type MtlsAuthSpec from the protobuf v3 wire format -func (val *MtlsAuthSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *MtlsAuthSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two MtlsAuthSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *MtlsAuthSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *MtlsAuthSpec - switch t := that.(type) { - case *MtlsAuthSpec: - that1 = t - case MtlsAuthSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ApiKeyAuthSpec to the protobuf v3 wire format -func (val *ApiKeyAuthSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ApiKeyAuthSpec from the protobuf v3 wire format -func (val *ApiKeyAuthSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ApiKeyAuthSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ApiKeyAuthSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ApiKeyAuthSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ApiKeyAuthSpec - switch t := that.(type) { - case *ApiKeyAuthSpec: - that1 = t - case ApiKeyAuthSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type CodecServerSpec to the protobuf v3 wire format -func (val *CodecServerSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type CodecServerSpec from the protobuf v3 wire format -func (val *CodecServerSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *CodecServerSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two CodecServerSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *CodecServerSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *CodecServerSpec - switch t := that.(type) { - case *CodecServerSpec: - that1 = t - case CodecServerSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type NamespaceSpec to the protobuf v3 wire format -func (val *NamespaceSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type NamespaceSpec from the protobuf v3 wire format -func (val *NamespaceSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *NamespaceSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two NamespaceSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *NamespaceSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *NamespaceSpec - switch t := that.(type) { - case *NamespaceSpec: - that1 = t - case NamespaceSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Endpoints to the protobuf v3 wire format -func (val *Endpoints) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Endpoints from the protobuf v3 wire format -func (val *Endpoints) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Endpoints) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Endpoints values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Endpoints) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Endpoints - switch t := that.(type) { - case *Endpoints: - that1 = t - case Endpoints: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Limits to the protobuf v3 wire format -func (val *Limits) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Limits from the protobuf v3 wire format -func (val *Limits) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Limits) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Limits values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Limits) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Limits - switch t := that.(type) { - case *Limits: - that1 = t - case Limits: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type AWSPrivateLinkInfo to the protobuf v3 wire format -func (val *AWSPrivateLinkInfo) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type AWSPrivateLinkInfo from the protobuf v3 wire format -func (val *AWSPrivateLinkInfo) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *AWSPrivateLinkInfo) Size() int { - return proto.Size(val) -} - -// Equal returns whether two AWSPrivateLinkInfo values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *AWSPrivateLinkInfo) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *AWSPrivateLinkInfo - switch t := that.(type) { - case *AWSPrivateLinkInfo: - that1 = t - case AWSPrivateLinkInfo: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type PrivateConnectivity to the protobuf v3 wire format -func (val *PrivateConnectivity) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type PrivateConnectivity from the protobuf v3 wire format -func (val *PrivateConnectivity) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *PrivateConnectivity) Size() int { - return proto.Size(val) -} - -// Equal returns whether two PrivateConnectivity values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *PrivateConnectivity) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *PrivateConnectivity - switch t := that.(type) { - case *PrivateConnectivity: - that1 = t - case PrivateConnectivity: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Namespace to the protobuf v3 wire format -func (val *Namespace) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Namespace from the protobuf v3 wire format -func (val *Namespace) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Namespace) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Namespace values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Namespace) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Namespace - switch t := that.(type) { - case *Namespace: - that1 = t - case Namespace: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type NamespaceRegionStatus to the protobuf v3 wire format -func (val *NamespaceRegionStatus) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type NamespaceRegionStatus from the protobuf v3 wire format -func (val *NamespaceRegionStatus) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *NamespaceRegionStatus) Size() int { - return proto.Size(val) -} - -// Equal returns whether two NamespaceRegionStatus values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *NamespaceRegionStatus) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *NamespaceRegionStatus - switch t := that.(type) { - case *NamespaceRegionStatus: - that1 = t - case NamespaceRegionStatus: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ExportSinkSpec to the protobuf v3 wire format -func (val *ExportSinkSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ExportSinkSpec from the protobuf v3 wire format -func (val *ExportSinkSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ExportSinkSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ExportSinkSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ExportSinkSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ExportSinkSpec - switch t := that.(type) { - case *ExportSinkSpec: - that1 = t - case ExportSinkSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type ExportSink to the protobuf v3 wire format -func (val *ExportSink) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type ExportSink from the protobuf v3 wire format -func (val *ExportSink) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *ExportSink) Size() int { - return proto.Size(val) -} - -// Equal returns whether two ExportSink values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *ExportSink) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *ExportSink - switch t := that.(type) { - case *ExportSink: - that1 = t - case ExportSink: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} diff --git a/cloud/namespace/v1/message.pb.go b/cloud/namespace/v1/message.pb.go deleted file mode 100644 index 38a44075..00000000 --- a/cloud/namespace/v1/message.pb.go +++ /dev/null @@ -1,1526 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/namespace/v1/message.proto - -package namespace - -import ( - reflect "reflect" - "strconv" - sync "sync" - unsafe "unsafe" - - v1 "go.temporal.io/api/cloud/resource/v1" - v11 "go.temporal.io/api/cloud/sink/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -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) -) - -type NamespaceSpec_SearchAttributeType int32 - -const ( - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED NamespaceSpec_SearchAttributeType = 0 - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_TEXT NamespaceSpec_SearchAttributeType = 1 - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_KEYWORD NamespaceSpec_SearchAttributeType = 2 - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_INT NamespaceSpec_SearchAttributeType = 3 - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_DOUBLE NamespaceSpec_SearchAttributeType = 4 - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_BOOL NamespaceSpec_SearchAttributeType = 5 - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_DATETIME NamespaceSpec_SearchAttributeType = 6 - NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST NamespaceSpec_SearchAttributeType = 7 -) - -// Enum value maps for NamespaceSpec_SearchAttributeType. -var ( - NamespaceSpec_SearchAttributeType_name = map[int32]string{ - 0: "SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED", - 1: "SEARCH_ATTRIBUTE_TYPE_TEXT", - 2: "SEARCH_ATTRIBUTE_TYPE_KEYWORD", - 3: "SEARCH_ATTRIBUTE_TYPE_INT", - 4: "SEARCH_ATTRIBUTE_TYPE_DOUBLE", - 5: "SEARCH_ATTRIBUTE_TYPE_BOOL", - 6: "SEARCH_ATTRIBUTE_TYPE_DATETIME", - 7: "SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST", - } - NamespaceSpec_SearchAttributeType_value = map[string]int32{ - "SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED": 0, - "SEARCH_ATTRIBUTE_TYPE_TEXT": 1, - "SEARCH_ATTRIBUTE_TYPE_KEYWORD": 2, - "SEARCH_ATTRIBUTE_TYPE_INT": 3, - "SEARCH_ATTRIBUTE_TYPE_DOUBLE": 4, - "SEARCH_ATTRIBUTE_TYPE_BOOL": 5, - "SEARCH_ATTRIBUTE_TYPE_DATETIME": 6, - "SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST": 7, - } -) - -func (x NamespaceSpec_SearchAttributeType) Enum() *NamespaceSpec_SearchAttributeType { - p := new(NamespaceSpec_SearchAttributeType) - *p = x - return p -} - -func (x NamespaceSpec_SearchAttributeType) String() string { - switch x { - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED: - return "NamespaceSpecSearchAttributeTypeUnspecified" - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_TEXT: - return "NamespaceSpecSearchAttributeTypeText" - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_KEYWORD: - return "NamespaceSpecSearchAttributeTypeKeyword" - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_INT: - return "NamespaceSpecSearchAttributeTypeInt" - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_DOUBLE: - return "NamespaceSpecSearchAttributeTypeDouble" - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_BOOL: - - // Deprecated: Use NamespaceSpec_SearchAttributeType.Descriptor instead. - return "NamespaceSpecSearchAttributeTypeBool" - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_DATETIME: - return "NamespaceSpecSearchAttributeTypeDatetime" - case NamespaceSpec_SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST: - return "NamespaceSpecSearchAttributeTypeKeywordList" - default: - return strconv.Itoa(int(x)) - } - -} - -func (NamespaceSpec_SearchAttributeType) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_namespace_v1_message_proto_enumTypes[0].Descriptor() -} - -func (NamespaceSpec_SearchAttributeType) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_namespace_v1_message_proto_enumTypes[0] -} - -func (x NamespaceSpec_SearchAttributeType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -func (NamespaceSpec_SearchAttributeType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{4, 0} -} - -type NamespaceRegionStatus_State int32 - -const ( - NamespaceRegionStatus_STATE_UNSPECIFIED NamespaceRegionStatus_State = 0 - NamespaceRegionStatus_STATE_ADDING NamespaceRegionStatus_State = 1 - NamespaceRegionStatus_STATE_ACTIVE NamespaceRegionStatus_State = // The region is being added to the namespace. - 2 - NamespaceRegionStatus_STATE_PASSIVE NamespaceRegionStatus_State = // The namespace is active in this region. - 3 - NamespaceRegionStatus_STATE_REMOVING NamespaceRegionStatus_State = // The namespace is passive in this region. - 4 - NamespaceRegionStatus_STATE_FAILED NamespaceRegionStatus_State = // The region is being removed from the namespace. - 5 // The region failed to be added/removed, check failure_reason in the last async_operation status for more details. -) - -// Enum value maps for NamespaceRegionStatus_State. -var ( - NamespaceRegionStatus_State_name = map[int32]string{ - 0: "STATE_UNSPECIFIED", - 1: "STATE_ADDING", - 2: "STATE_ACTIVE", - 3: "STATE_PASSIVE", - 4: "STATE_REMOVING", - 5: "STATE_FAILED", - } - NamespaceRegionStatus_State_value = map[string]int32{ - "STATE_UNSPECIFIED": 0, - "STATE_ADDING": 1, - "STATE_ACTIVE": 2, - "STATE_PASSIVE": 3, - "STATE_REMOVING": 4, - "STATE_FAILED": 5, - } -) - -func (x NamespaceRegionStatus_State) Enum() *NamespaceRegionStatus_State { - p := new(NamespaceRegionStatus_State) - *p = x - return p -} - -func (x NamespaceRegionStatus_State) String() string { - switch x { - case NamespaceRegionStatus_STATE_UNSPECIFIED: - return "NamespaceRegionStatusStateUnspecified" - case NamespaceRegionStatus_STATE_ADDING: - return "NamespaceRegionStatusStateAdding" - case NamespaceRegionStatus_STATE_ACTIVE: - return "NamespaceRegionStatusStateActive" - case NamespaceRegionStatus_STATE_PASSIVE: - return "NamespaceRegionStatusStatePassive" - case NamespaceRegionStatus_STATE_REMOVING: - return "NamespaceRegionStatusStateRemoving" - case NamespaceRegionStatus_STATE_FAILED: - return "NamespaceRegionStatusStateFailed" - default - - // Deprecated: Use NamespaceRegionStatus_State.Descriptor instead. - : - return strconv.Itoa(int(x)) - } - -} - -func (NamespaceRegionStatus_State) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_namespace_v1_message_proto_enumTypes[1].Descriptor() -} - -func (NamespaceRegionStatus_State) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_namespace_v1_message_proto_enumTypes[1] -} - -func (x NamespaceRegionStatus_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -func (NamespaceRegionStatus_State) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{10, 0} -} - -type ExportSink_Health int32 - -const ( - ExportSink_HEALTH_UNSPECIFIED ExportSink_Health = 0 - ExportSink_HEALTH_OK ExportSink_Health = 1 - ExportSink_HEALTH_ERROR_INTERNAL ExportSink_Health = 2 - ExportSink_HEALTH_ERROR_USER_CONFIGURATION ExportSink_Health = 3 -) - -// Enum value maps for ExportSink_Health. -var ( - ExportSink_Health_name = map[int32]string{ - 0: "HEALTH_UNSPECIFIED", - 1: "HEALTH_OK", - 2: "HEALTH_ERROR_INTERNAL", - 3: "HEALTH_ERROR_USER_CONFIGURATION", - } - ExportSink_Health_value = map[string]int32{ - "HEALTH_UNSPECIFIED": 0, - "HEALTH_OK": 1, - "HEALTH_ERROR_INTERNAL": 2, - "HEALTH_ERROR_USER_CONFIGURATION": 3, - } -) - -func (x ExportSink_Health) Enum() *ExportSink_Health { - p := new(ExportSink_Health) - *p = x - return p -} - -func (x ExportSink_Health) String() string { - switch x { - case ExportSink_HEALTH_UNSPECIFIED: - return "ExportSinkHealthUnspecified" - case ExportSink_HEALTH_OK: - return "ExportSinkHealthOk" - case ExportSink_HEALTH_ERROR_INTERNAL: - return "ExportSinkHealthErrorInternal" - case ExportSink_HEALTH_ERROR_USER_CONFIGURATION: - return "ExportSinkHealthErrorUserConfiguration" - default: - return strconv.Itoa(int(x)) - } - -} - -func (ExportSink_Health) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_namespace_v1_message_proto_enumTypes[2].Descriptor() -} - -func (ExportSink_Health) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_namespace_v1_message_proto_enumTypes[2] -} - -func (x ExportSink_Health) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ExportSink_Health.Descriptor instead. -func (ExportSink_Health) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{12, 0} -} - -type CertificateFilterSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The common_name in the certificate. - // Optional, default is empty. - CommonName string `protobuf:"bytes,1,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` - // The organization in the certificate. - // Optional, default is empty. - Organization string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"` - // The organizational_unit in the certificate. - // Optional, default is empty. - OrganizationalUnit string `protobuf:"bytes,3,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` - // The subject_alternative_name in the certificate. - // Optional, default is empty. - SubjectAlternativeName string `protobuf:"bytes,4,opt,name=subject_alternative_name,json=subjectAlternativeName,proto3" json:"subject_alternative_name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CertificateFilterSpec) Reset() { - *x = CertificateFilterSpec{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CertificateFilterSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CertificateFilterSpec) ProtoMessage() {} - -func (x *CertificateFilterSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CertificateFilterSpec.ProtoReflect.Descriptor instead. -func (*CertificateFilterSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{0} -} - -func (x *CertificateFilterSpec) GetCommonName() string { - if x != nil { - return x.CommonName - } - return "" -} - -func (x *CertificateFilterSpec) GetOrganization() string { - if x != nil { - return x.Organization - } - return "" -} - -func (x *CertificateFilterSpec) GetOrganizationalUnit() string { - if x != nil { - return x.OrganizationalUnit - } - return "" -} - -func (x *CertificateFilterSpec) GetSubjectAlternativeName() string { - if x != nil { - return x.SubjectAlternativeName - } - return "" -} - -type MtlsAuthSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization. - // This must only be one value, but the CA can have a chain. - // - // (-- api-linter: core::0140::base64=disabled --) - // Deprecated: Not supported after 2024-05-13-00 api version. Use accepted_client_ca instead. - // temporal:versioning:max_version=2024-05-13-00 - AcceptedClientCaDeprecated string `protobuf:"bytes,1,opt,name=accepted_client_ca_deprecated,json=acceptedClientCaDeprecated,proto3" json:"accepted_client_ca_deprecated,omitempty"` - // The ca cert(s) in PEM format that the clients can use for authentication and authorization. - // This must only be one value, but the CA can have a chain. - // temporal:versioning:min_version=2024-05-13-00 - AcceptedClientCa []byte `protobuf:"bytes,4,opt,name=accepted_client_ca,json=acceptedClientCa,proto3" json:"accepted_client_ca,omitempty"` - // Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters. - // This allows limiting access to specific end-entity certificates. - // Optional, default is empty. - CertificateFilters []*CertificateFilterSpec `protobuf:"bytes,2,rep,name=certificate_filters,json=certificateFilters,proto3" json:"certificate_filters,omitempty"` - // Flag to enable mTLS auth (default: disabled). - // Note: disabling mTLS auth will cause existing mTLS connections to fail. - // temporal:versioning:min_version=2024-05-13-00 - Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MtlsAuthSpec) Reset() { - *x = MtlsAuthSpec{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MtlsAuthSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MtlsAuthSpec) ProtoMessage() {} - -func (x *MtlsAuthSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MtlsAuthSpec.ProtoReflect.Descriptor instead. -func (*MtlsAuthSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{1} -} - -func (x *MtlsAuthSpec) GetAcceptedClientCaDeprecated() string { - if x != nil { - return x.AcceptedClientCaDeprecated - } - return "" -} - -func (x *MtlsAuthSpec) GetAcceptedClientCa() []byte { - if x != nil { - return x.AcceptedClientCa - } - return nil -} - -func (x *MtlsAuthSpec) GetCertificateFilters() []*CertificateFilterSpec { - if x != nil { - return x.CertificateFilters - } - return nil -} - -func (x *MtlsAuthSpec) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -type ApiKeyAuthSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Flag to enable API key auth (default: disabled). - // Note: disabling API key auth will cause existing API key connections to fail. - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ApiKeyAuthSpec) Reset() { - *x = ApiKeyAuthSpec{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ApiKeyAuthSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApiKeyAuthSpec) ProtoMessage() {} - -func (x *ApiKeyAuthSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApiKeyAuthSpec.ProtoReflect.Descriptor instead. -func (*ApiKeyAuthSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{2} -} - -func (x *ApiKeyAuthSpec) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -type CodecServerSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The codec server endpoint. - Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - // Whether to pass the user access token with your endpoint. - PassAccessToken bool `protobuf:"varint,2,opt,name=pass_access_token,json=passAccessToken,proto3" json:"pass_access_token,omitempty"` - // Whether to include cross-origin credentials. - IncludeCrossOriginCredentials bool `protobuf:"varint,3,opt,name=include_cross_origin_credentials,json=includeCrossOriginCredentials,proto3" json:"include_cross_origin_credentials,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CodecServerSpec) Reset() { - *x = CodecServerSpec{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CodecServerSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CodecServerSpec) ProtoMessage() {} - -func (x *CodecServerSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CodecServerSpec.ProtoReflect.Descriptor instead. -func (*CodecServerSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{3} -} - -func (x *CodecServerSpec) GetEndpoint() string { - if x != nil { - return x.Endpoint - } - return "" -} - -func (x *CodecServerSpec) GetPassAccessToken() bool { - if x != nil { - return x.PassAccessToken - } - return false -} - -func (x *CodecServerSpec) GetIncludeCrossOriginCredentials() bool { - if x != nil { - return x.IncludeCrossOriginCredentials - } - return false -} - -type NamespaceSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The name to use for the namespace. - // This will create a namespace that's available at '..tmprl.cloud:7233'. - // The name is immutable. Once set, it cannot be changed. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The ids of the regions where the namespace should be available. - // The GetRegions API can be used to get the list of valid region ids. - // Specifying more than one region makes the namespace "global", which is currently a preview only feature with restricted access. - // Please reach out to Temporal support for more information on global namespaces. - // When provisioned the global namespace will be active on the first region in the list and passive on the rest. - // Number of supported regions is 2. - // The regions is immutable. Once set, it cannot be changed. - // Example: ["aws-us-west-2"]. - Regions []string `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` - // The number of days the workflows data will be retained for. - // Changes to the retention period may impact your storage costs. - // Any changes to the retention period will be applied to all new running workflows. - RetentionDays int32 `protobuf:"varint,3,opt,name=retention_days,json=retentionDays,proto3" json:"retention_days,omitempty"` - // The mTLS auth configuration for the namespace. - // If unspecified, mTLS will be disabled. - MtlsAuth *MtlsAuthSpec `protobuf:"bytes,4,opt,name=mtls_auth,json=mtlsAuth,proto3" json:"mtls_auth,omitempty"` - // The API key auth configuration for the namespace. - // If unspecified, API keys will be disabled. - // temporal:versioning:min_version=2024-05-13-00 - ApiKeyAuth *ApiKeyAuthSpec `protobuf:"bytes,7,opt,name=api_key_auth,json=apiKeyAuth,proto3" json:"api_key_auth,omitempty"` - // The custom search attributes to use for the namespace. - // The name of the attribute is the key and the type is the value. - // Supported attribute types: text, keyword, int, double, bool, datetime, keyword_list. - // NOTE: currently deleting a search attribute is not supported. - // Optional, default is empty. - // Deprecated: Not supported after 2024-10-01-00 api version. Use search_attributes instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/namespace/v1/message.proto. - CustomSearchAttributes map[string]string `protobuf:"bytes,5,rep,name=custom_search_attributes,json=customSearchAttributes,proto3" json:"custom_search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - // The custom search attributes to use for the namespace. - // The name of the attribute is the key and the type is the value. - // Note: currently deleting a search attribute is not supported. - // Optional, default is empty. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=custom_search_attributes - SearchAttributes map[string]NamespaceSpec_SearchAttributeType `protobuf:"bytes,8,rep,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=temporal.api.cloud.namespace.v1.NamespaceSpec_SearchAttributeType"` - // Codec server spec used by UI to decode payloads for all users interacting with this namespace. - // Optional, default is unset. - CodecServer *CodecServerSpec `protobuf:"bytes,6,opt,name=codec_server,json=codecServer,proto3" json:"codec_server,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *NamespaceSpec) Reset() { - *x = NamespaceSpec{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NamespaceSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamespaceSpec) ProtoMessage() {} - -func (x *NamespaceSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamespaceSpec.ProtoReflect.Descriptor instead. -func (*NamespaceSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{4} -} - -func (x *NamespaceSpec) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *NamespaceSpec) GetRegions() []string { - if x != nil { - return x.Regions - } - return nil -} - -func (x *NamespaceSpec) GetRetentionDays() int32 { - if x != nil { - return x.RetentionDays - } - return 0 -} - -func (x *NamespaceSpec) GetMtlsAuth() *MtlsAuthSpec { - if x != nil { - return x.MtlsAuth - } - return nil -} - -func (x *NamespaceSpec) GetApiKeyAuth() *ApiKeyAuthSpec { - if x != nil { - return x.ApiKeyAuth - } - return nil -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/namespace/v1/message.proto. -func (x *NamespaceSpec) GetCustomSearchAttributes() map[string]string { - if x != nil { - return x.CustomSearchAttributes - } - return nil -} - -func (x *NamespaceSpec) GetSearchAttributes() map[string]NamespaceSpec_SearchAttributeType { - if x != nil { - return x.SearchAttributes - } - return nil -} - -func (x *NamespaceSpec) GetCodecServer() *CodecServerSpec { - if x != nil { - return x.CodecServer - } - return nil -} - -type Endpoints struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The web UI address. - WebAddress string `protobuf:"bytes,1,opt,name=web_address,json=webAddress,proto3" json:"web_address,omitempty"` - // The gRPC address for mTLS client connections (may be empty if mTLS is disabled). - MtlsGrpcAddress string `protobuf:"bytes,2,opt,name=mtls_grpc_address,json=mtlsGrpcAddress,proto3" json:"mtls_grpc_address,omitempty"` - // The gRPC address for API key client connections (may be empty if API keys are disabled). - GrpcAddress string `protobuf:"bytes,3,opt,name=grpc_address,json=grpcAddress,proto3" json:"grpc_address,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Endpoints) Reset() { - *x = Endpoints{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Endpoints) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Endpoints) ProtoMessage() {} - -func (x *Endpoints) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Endpoints.ProtoReflect.Descriptor instead. -func (*Endpoints) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{5} -} - -func (x *Endpoints) GetWebAddress() string { - if x != nil { - return x.WebAddress - } - return "" -} - -func (x *Endpoints) GetMtlsGrpcAddress() string { - if x != nil { - return x.MtlsGrpcAddress - } - return "" -} - -func (x *Endpoints) GetGrpcAddress() string { - if x != nil { - return x.GrpcAddress - } - return "" -} - -type Limits struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The number of actions per second (APS) that is currently allowed for the namespace. - // The namespace may be throttled if its APS exceeds the limit. - ActionsPerSecondLimit int32 `protobuf:"varint,1,opt,name=actions_per_second_limit,json=actionsPerSecondLimit,proto3" json:"actions_per_second_limit,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Limits) Reset() { - *x = Limits{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Limits) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Limits) ProtoMessage() {} - -func (x *Limits) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Limits.ProtoReflect.Descriptor instead. -func (*Limits) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{6} -} - -func (x *Limits) GetActionsPerSecondLimit() int32 { - if x != nil { - return x.ActionsPerSecondLimit - } - return 0 -} - -type AWSPrivateLinkInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The list of principal arns that are allowed to access the namespace on the private link. - AllowedPrincipalArns []string `protobuf:"bytes,1,rep,name=allowed_principal_arns,json=allowedPrincipalArns,proto3" json:"allowed_principal_arns,omitempty"` - // The list of vpc endpoint service names that are associated with the namespace. - VpcEndpointServiceNames []string `protobuf:"bytes,2,rep,name=vpc_endpoint_service_names,json=vpcEndpointServiceNames,proto3" json:"vpc_endpoint_service_names,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AWSPrivateLinkInfo) Reset() { - *x = AWSPrivateLinkInfo{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AWSPrivateLinkInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AWSPrivateLinkInfo) ProtoMessage() {} - -func (x *AWSPrivateLinkInfo) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AWSPrivateLinkInfo.ProtoReflect.Descriptor instead. -func (*AWSPrivateLinkInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{7} -} - -func (x *AWSPrivateLinkInfo) GetAllowedPrincipalArns() []string { - if x != nil { - return x.AllowedPrincipalArns - } - return nil -} - -func (x *AWSPrivateLinkInfo) GetVpcEndpointServiceNames() []string { - if x != nil { - return x.VpcEndpointServiceNames - } - return nil -} - -type PrivateConnectivity struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the region where the private connectivity applies. - Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - // The AWS PrivateLink info. - // This will only be set for an aws region. - AwsPrivateLink *AWSPrivateLinkInfo `protobuf:"bytes,2,opt,name=aws_private_link,json=awsPrivateLink,proto3" json:"aws_private_link,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PrivateConnectivity) Reset() { - *x = PrivateConnectivity{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PrivateConnectivity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrivateConnectivity) ProtoMessage() {} - -func (x *PrivateConnectivity) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrivateConnectivity.ProtoReflect.Descriptor instead. -func (*PrivateConnectivity) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{8} -} - -func (x *PrivateConnectivity) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *PrivateConnectivity) GetAwsPrivateLink() *AWSPrivateLinkInfo { - if x != nil { - return x.AwsPrivateLink - } - return nil -} - -type Namespace struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace identifier. - Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` - // The current version of the namespace specification. - // The next update operation will have to include this version. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The namespace specification. - Spec *NamespaceSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the namespace. - // Deprecated: Not supported after 2024-10-01-00 api version. Use state instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/namespace/v1/message.proto. - StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` - // The current state of the namespace. - // For any failed state, reach out to Temporal Cloud support for remediation. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=state_deprecated - State v1.ResourceState `protobuf:"varint,13,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The id of the async operation that is creating/updating/deleting the namespace, if any. - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // The endpoints for the namespace. - Endpoints *Endpoints `protobuf:"bytes,6,opt,name=endpoints,proto3" json:"endpoints,omitempty"` - // The currently active region for the namespace. - ActiveRegion string `protobuf:"bytes,7,opt,name=active_region,json=activeRegion,proto3" json:"active_region,omitempty"` - // The limits set on the namespace currently. - Limits *Limits `protobuf:"bytes,8,opt,name=limits,proto3" json:"limits,omitempty"` - // The private connectivities for the namespace, if any. - PrivateConnectivities []*PrivateConnectivity `protobuf:"bytes,9,rep,name=private_connectivities,json=privateConnectivities,proto3" json:"private_connectivities,omitempty"` - // The date and time when the namespace was created. - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the namespace was last modified. - // Will not be set if the namespace has never been modified. - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` - // The status of each region where the namespace is available. - // The id of the region is the key and the status is the value of the map. - RegionStatus map[string]*NamespaceRegionStatus `protobuf:"bytes,12,rep,name=region_status,json=regionStatus,proto3" json:"region_status,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Namespace) Reset() { - *x = Namespace{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Namespace) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Namespace) ProtoMessage() {} - -func (x *Namespace) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Namespace.ProtoReflect.Descriptor instead. -func (*Namespace) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{9} -} - -func (x *Namespace) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *Namespace) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *Namespace) GetSpec() *NamespaceSpec { - if x != nil { - return x.Spec - } - return nil -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/namespace/v1/message.proto. -func (x *Namespace) GetStateDeprecated() string { - if x != nil { - return x.StateDeprecated - } - return "" -} - -func (x *Namespace) GetState() v1.ResourceState { - if x != nil { - return x.State - } - return v1.ResourceState(0) -} - -func (x *Namespace) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -func (x *Namespace) GetEndpoints() *Endpoints { - if x != nil { - return x.Endpoints - } - return nil -} - -func (x *Namespace) GetActiveRegion() string { - if x != nil { - return x.ActiveRegion - } - return "" -} - -func (x *Namespace) GetLimits() *Limits { - if x != nil { - return x.Limits - } - return nil -} - -func (x *Namespace) GetPrivateConnectivities() []*PrivateConnectivity { - if x != nil { - return x.PrivateConnectivities - } - return nil -} - -func (x *Namespace) GetCreatedTime() *timestamppb.Timestamp { - if x != nil { - return x.CreatedTime - } - return nil -} - -func (x *Namespace) GetLastModifiedTime() *timestamppb.Timestamp { - if x != nil { - return x.LastModifiedTime - } - return nil -} - -func (x *Namespace) GetRegionStatus() map[string]*NamespaceRegionStatus { - if x != nil { - return x.RegionStatus - } - return nil -} - -type NamespaceRegionStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The current state of the namespace region. - // Possible values: adding, active, passive, removing, failed. - // For any failed state, reach out to Temporal Cloud support for remediation. - // Deprecated: Not supported after 2024-10-01-00 api version. Use state instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/namespace/v1/message.proto. - StateDeprecated string `protobuf:"bytes,1,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` - // The current state of the namespace region. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=state_deprecated - State NamespaceRegionStatus_State `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.cloud.namespace.v1.NamespaceRegionStatus_State" json:"state,omitempty"` - // The id of the async operation that is making changes to where the namespace is available, if any. - AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *NamespaceRegionStatus) Reset() { - *x = NamespaceRegionStatus{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NamespaceRegionStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamespaceRegionStatus) ProtoMessage() {} - -func (x *NamespaceRegionStatus) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamespaceRegionStatus.ProtoReflect.Descriptor instead. -func (*NamespaceRegionStatus) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{10} -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/namespace/v1/message.proto. -func (x *NamespaceRegionStatus) GetStateDeprecated() string { - if x != nil { - return x.StateDeprecated - } - return "" -} - -func (x *NamespaceRegionStatus) GetState() NamespaceRegionStatus_State { - if x != nil { - return x.State - } - return NamespaceRegionStatus_STATE_UNSPECIFIED -} - -func (x *NamespaceRegionStatus) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -type ExportSinkSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The unique name of the export sink, it can't be changed once set. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // A flag indicating whether the export sink is enabled or not. - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - // The S3 configuration details when destination_type is S3. - S3 *v11.S3Spec `protobuf:"bytes,3,opt,name=s3,proto3" json:"s3,omitempty"` - // This is a feature under development. We will allow GCS sink support for GCP Namespaces. - // The GCS configuration details when destination_type is GCS. - Gcs *v11.GCSSpec `protobuf:"bytes,4,opt,name=gcs,proto3" json:"gcs,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExportSinkSpec) Reset() { - *x = ExportSinkSpec{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExportSinkSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExportSinkSpec) ProtoMessage() {} - -func (x *ExportSinkSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExportSinkSpec.ProtoReflect.Descriptor instead. -func (*ExportSinkSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{11} -} - -func (x *ExportSinkSpec) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExportSinkSpec) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *ExportSinkSpec) GetS3() *v11.S3Spec { - if x != nil { - return x.S3 - } - return nil -} - -func (x *ExportSinkSpec) GetGcs() *v11.GCSSpec { - if x != nil { - return x.Gcs - } - return nil -} - -type ExportSink struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The unique name of the export sink. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The version of the export sink resource. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The current state of the export sink. - State v1.ResourceState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The specification details of the export sink. - Spec *ExportSinkSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` - // The health status of the export sink. - Health ExportSink_Health `protobuf:"varint,5,opt,name=health,proto3,enum=temporal.api.cloud.namespace.v1.ExportSink_Health" json:"health,omitempty"` - // An error message describing any issues with the export sink, if applicable. - ErrorMessage string `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - // The timestamp of the latest successful data export. - LatestDataExportTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=latest_data_export_time,json=latestDataExportTime,proto3" json:"latest_data_export_time,omitempty"` - // The timestamp of the last health check performed on the export sink. - LastHealthCheckTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_health_check_time,json=lastHealthCheckTime,proto3" json:"last_health_check_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExportSink) Reset() { - *x = ExportSink{} - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExportSink) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExportSink) ProtoMessage() {} - -func (x *ExportSink) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_namespace_v1_message_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExportSink.ProtoReflect.Descriptor instead. -func (*ExportSink) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP(), []int{12} -} - -func (x *ExportSink) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExportSink) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *ExportSink) GetState() v1.ResourceState { - if x != nil { - return x.State - } - return v1.ResourceState(0) -} - -func (x *ExportSink) GetSpec() *ExportSinkSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *ExportSink) GetHealth() ExportSink_Health { - if x != nil { - return x.Health - } - return ExportSink_HEALTH_UNSPECIFIED -} - -func (x *ExportSink) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -func (x *ExportSink) GetLatestDataExportTime() *timestamppb.Timestamp { - if x != nil { - return x.LatestDataExportTime - } - return nil -} - -func (x *ExportSink) GetLastHealthCheckTime() *timestamppb.Timestamp { - if x != nil { - return x.LastHealthCheckTime - } - return nil -} - -var File_temporal_api_cloud_namespace_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_namespace_v1_message_proto_rawDesc = "" + - "\n" + - "-temporal/api/cloud/namespace/v1/message.proto\x12\x1ftemporal.api.cloud.namespace.v1\x1a,temporal/api/cloud/resource/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/cloud/sink/v1/message.proto\"\xc7\x01\n" + - "\x15CertificateFilterSpec\x12\x1f\n" + - "\vcommon_name\x18\x01 \x01(\tR\n" + - "commonName\x12\"\n" + - "\forganization\x18\x02 \x01(\tR\forganization\x12/\n" + - "\x13organizational_unit\x18\x03 \x01(\tR\x12organizationalUnit\x128\n" + - "\x18subject_alternative_name\x18\x04 \x01(\tR\x16subjectAlternativeName\"\x82\x02\n" + - "\fMtlsAuthSpec\x12A\n" + - "\x1daccepted_client_ca_deprecated\x18\x01 \x01(\tR\x1aacceptedClientCaDeprecated\x12,\n" + - "\x12accepted_client_ca\x18\x04 \x01(\fR\x10acceptedClientCa\x12g\n" + - "\x13certificate_filters\x18\x02 \x03(\v26.temporal.api.cloud.namespace.v1.CertificateFilterSpecR\x12certificateFilters\x12\x18\n" + - "\aenabled\x18\x03 \x01(\bR\aenabled\"*\n" + - "\x0eApiKeyAuthSpec\x12\x18\n" + - "\aenabled\x18\x01 \x01(\bR\aenabled\"\xa2\x01\n" + - "\x0fCodecServerSpec\x12\x1a\n" + - "\bendpoint\x18\x01 \x01(\tR\bendpoint\x12*\n" + - "\x11pass_access_token\x18\x02 \x01(\bR\x0fpassAccessToken\x12G\n" + - " include_cross_origin_credentials\x18\x03 \x01(\bR\x1dincludeCrossOriginCredentials\"\xda\b\n" + - "\rNamespaceSpec\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + - "\aregions\x18\x02 \x03(\tR\aregions\x12%\n" + - "\x0eretention_days\x18\x03 \x01(\x05R\rretentionDays\x12J\n" + - "\tmtls_auth\x18\x04 \x01(\v2-.temporal.api.cloud.namespace.v1.MtlsAuthSpecR\bmtlsAuth\x12Q\n" + - "\fapi_key_auth\x18\a \x01(\v2/.temporal.api.cloud.namespace.v1.ApiKeyAuthSpecR\n" + - "apiKeyAuth\x12\x88\x01\n" + - "\x18custom_search_attributes\x18\x05 \x03(\v2J.temporal.api.cloud.namespace.v1.NamespaceSpec.CustomSearchAttributesEntryB\x02\x18\x01R\x16customSearchAttributes\x12q\n" + - "\x11search_attributes\x18\b \x03(\v2D.temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributesEntryR\x10searchAttributes\x12S\n" + - "\fcodec_server\x18\x06 \x01(\v20.temporal.api.cloud.namespace.v1.CodecServerSpecR\vcodecServer\x1aI\n" + - "\x1bCustomSearchAttributesEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x87\x01\n" + - "\x15SearchAttributesEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12X\n" + - "\x05value\x18\x02 \x01(\x0e2B.temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributeTypeR\x05value:\x028\x01\"\xac\x02\n" + - "\x13SearchAttributeType\x12%\n" + - "!SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n" + - "\x1aSEARCH_ATTRIBUTE_TYPE_TEXT\x10\x01\x12!\n" + - "\x1dSEARCH_ATTRIBUTE_TYPE_KEYWORD\x10\x02\x12\x1d\n" + - "\x19SEARCH_ATTRIBUTE_TYPE_INT\x10\x03\x12 \n" + - "\x1cSEARCH_ATTRIBUTE_TYPE_DOUBLE\x10\x04\x12\x1e\n" + - "\x1aSEARCH_ATTRIBUTE_TYPE_BOOL\x10\x05\x12\"\n" + - "\x1eSEARCH_ATTRIBUTE_TYPE_DATETIME\x10\x06\x12&\n" + - "\"SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST\x10\a\"{\n" + - "\tEndpoints\x12\x1f\n" + - "\vweb_address\x18\x01 \x01(\tR\n" + - "webAddress\x12*\n" + - "\x11mtls_grpc_address\x18\x02 \x01(\tR\x0fmtlsGrpcAddress\x12!\n" + - "\fgrpc_address\x18\x03 \x01(\tR\vgrpcAddress\"A\n" + - "\x06Limits\x127\n" + - "\x18actions_per_second_limit\x18\x01 \x01(\x05R\x15actionsPerSecondLimit\"\x87\x01\n" + - "\x12AWSPrivateLinkInfo\x124\n" + - "\x16allowed_principal_arns\x18\x01 \x03(\tR\x14allowedPrincipalArns\x12;\n" + - "\x1avpc_endpoint_service_names\x18\x02 \x03(\tR\x17vpcEndpointServiceNames\"\x8c\x01\n" + - "\x13PrivateConnectivity\x12\x16\n" + - "\x06region\x18\x01 \x01(\tR\x06region\x12]\n" + - "\x10aws_private_link\x18\x02 \x01(\v23.temporal.api.cloud.namespace.v1.AWSPrivateLinkInfoR\x0eawsPrivateLink\"\xbc\a\n" + - "\tNamespace\x12\x1c\n" + - "\tnamespace\x18\x01 \x01(\tR\tnamespace\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12B\n" + - "\x04spec\x18\x03 \x01(\v2..temporal.api.cloud.namespace.v1.NamespaceSpecR\x04spec\x12-\n" + - "\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01R\x0fstateDeprecated\x12C\n" + - "\x05state\x18\r \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\x12H\n" + - "\tendpoints\x18\x06 \x01(\v2*.temporal.api.cloud.namespace.v1.EndpointsR\tendpoints\x12#\n" + - "\ractive_region\x18\a \x01(\tR\factiveRegion\x12?\n" + - "\x06limits\x18\b \x01(\v2'.temporal.api.cloud.namespace.v1.LimitsR\x06limits\x12k\n" + - "\x16private_connectivities\x18\t \x03(\v24.temporal.api.cloud.namespace.v1.PrivateConnectivityR\x15privateConnectivities\x12=\n" + - "\fcreated_time\x18\n" + - " \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12H\n" + - "\x12last_modified_time\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTime\x12a\n" + - "\rregion_status\x18\f \x03(\v2<.temporal.api.cloud.namespace.v1.Namespace.RegionStatusEntryR\fregionStatus\x1aw\n" + - "\x11RegionStatusEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12L\n" + - "\x05value\x18\x02 \x01(\v26.temporal.api.cloud.namespace.v1.NamespaceRegionStatusR\x05value:\x028\x01\"\xc5\x02\n" + - "\x15NamespaceRegionStatus\x12-\n" + - "\x10state_deprecated\x18\x01 \x01(\tB\x02\x18\x01R\x0fstateDeprecated\x12R\n" + - "\x05state\x18\x03 \x01(\x0e2<.temporal.api.cloud.namespace.v1.NamespaceRegionStatus.StateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x02 \x01(\tR\x10asyncOperationId\"{\n" + - "\x05State\x12\x15\n" + - "\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n" + - "\fSTATE_ADDING\x10\x01\x12\x10\n" + - "\fSTATE_ACTIVE\x10\x02\x12\x11\n" + - "\rSTATE_PASSIVE\x10\x03\x12\x12\n" + - "\x0eSTATE_REMOVING\x10\x04\x12\x10\n" + - "\fSTATE_FAILED\x10\x05\"\xa9\x01\n" + - "\x0eExportSinkSpec\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + - "\aenabled\x18\x02 \x01(\bR\aenabled\x122\n" + - "\x02s3\x18\x03 \x01(\v2\".temporal.api.cloud.sink.v1.S3SpecR\x02s3\x125\n" + - "\x03gcs\x18\x04 \x01(\v2#.temporal.api.cloud.sink.v1.GCSSpecR\x03gcs\"\xdb\x04\n" + - "\n" + - "ExportSink\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12C\n" + - "\x05state\x18\x03 \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12C\n" + - "\x04spec\x18\x04 \x01(\v2/.temporal.api.cloud.namespace.v1.ExportSinkSpecR\x04spec\x12J\n" + - "\x06health\x18\x05 \x01(\x0e22.temporal.api.cloud.namespace.v1.ExportSink.HealthR\x06health\x12#\n" + - "\rerror_message\x18\x06 \x01(\tR\ferrorMessage\x12Q\n" + - "\x17latest_data_export_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x14latestDataExportTime\x12O\n" + - "\x16last_health_check_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\x13lastHealthCheckTime\"o\n" + - "\x06Health\x12\x16\n" + - "\x12HEALTH_UNSPECIFIED\x10\x00\x12\r\n" + - "\tHEALTH_OK\x10\x01\x12\x19\n" + - "\x15HEALTH_ERROR_INTERNAL\x10\x02\x12#\n" + - "\x1fHEALTH_ERROR_USER_CONFIGURATION\x10\x03B\xb1\x01\n" + - "\"io.temporal.api.cloud.namespace.v1B\fMessageProtoP\x01Z/go.temporal.io/api/cloud/namespace/v1;namespace\xaa\x02!Temporalio.Api.Cloud.Namespace.V1\xea\x02%Temporalio::Api::Cloud::Namespace::V1b\x06proto3" - -var ( - file_temporal_api_cloud_namespace_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_namespace_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_namespace_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_namespace_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_namespace_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_namespace_v1_message_proto_rawDesc), len(file_temporal_api_cloud_namespace_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_namespace_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_namespace_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_temporal_api_cloud_namespace_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_temporal_api_cloud_namespace_v1_message_proto_goTypes = []any{ - (NamespaceSpec_SearchAttributeType)(0), // 0: temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributeType - (NamespaceRegionStatus_State)(0), // 1: temporal.api.cloud.namespace.v1.NamespaceRegionStatus.State - (ExportSink_Health)(0), // 2: temporal.api.cloud.namespace.v1.ExportSink.Health - (*CertificateFilterSpec)(nil), // 3: temporal.api.cloud.namespace.v1.CertificateFilterSpec - (*MtlsAuthSpec)(nil), // 4: temporal.api.cloud.namespace.v1.MtlsAuthSpec - (*ApiKeyAuthSpec)(nil), // 5: temporal.api.cloud.namespace.v1.ApiKeyAuthSpec - (*CodecServerSpec)(nil), // 6: temporal.api.cloud.namespace.v1.CodecServerSpec - (*NamespaceSpec)(nil), // 7: temporal.api.cloud.namespace.v1.NamespaceSpec - (*Endpoints)(nil), // 8: temporal.api.cloud.namespace.v1.Endpoints - (*Limits)(nil), // 9: temporal.api.cloud.namespace.v1.Limits - (*AWSPrivateLinkInfo)(nil), // 10: temporal.api.cloud.namespace.v1.AWSPrivateLinkInfo - (*PrivateConnectivity)(nil), // 11: temporal.api.cloud.namespace.v1.PrivateConnectivity - (*Namespace)(nil), // 12: temporal.api.cloud.namespace.v1.Namespace - (*NamespaceRegionStatus)(nil), // 13: temporal.api.cloud.namespace.v1.NamespaceRegionStatus - (*ExportSinkSpec)(nil), // 14: temporal.api.cloud.namespace.v1.ExportSinkSpec - (*ExportSink)(nil), // 15: temporal.api.cloud.namespace.v1.ExportSink - nil, // 16: temporal.api.cloud.namespace.v1.NamespaceSpec.CustomSearchAttributesEntry - nil, // 17: temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributesEntry - nil, // 18: temporal.api.cloud.namespace.v1.Namespace.RegionStatusEntry - (v1.ResourceState)(0), // 19: temporal.api.cloud.resource.v1.ResourceState - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp - (*v11.S3Spec)(nil), // 21: temporal.api.cloud.sink.v1.S3Spec - (*v11.GCSSpec)(nil), // 22: temporal.api.cloud.sink.v1.GCSSpec -} -var file_temporal_api_cloud_namespace_v1_message_proto_depIdxs = []int32{ - 3, // 0: temporal.api.cloud.namespace.v1.MtlsAuthSpec.certificate_filters:type_name -> temporal.api.cloud.namespace.v1.CertificateFilterSpec - 4, // 1: temporal.api.cloud.namespace.v1.NamespaceSpec.mtls_auth:type_name -> temporal.api.cloud.namespace.v1.MtlsAuthSpec - 5, // 2: temporal.api.cloud.namespace.v1.NamespaceSpec.api_key_auth:type_name -> temporal.api.cloud.namespace.v1.ApiKeyAuthSpec - 16, // 3: temporal.api.cloud.namespace.v1.NamespaceSpec.custom_search_attributes:type_name -> temporal.api.cloud.namespace.v1.NamespaceSpec.CustomSearchAttributesEntry - 17, // 4: temporal.api.cloud.namespace.v1.NamespaceSpec.search_attributes:type_name -> temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributesEntry - 6, // 5: temporal.api.cloud.namespace.v1.NamespaceSpec.codec_server:type_name -> temporal.api.cloud.namespace.v1.CodecServerSpec - 10, // 6: temporal.api.cloud.namespace.v1.PrivateConnectivity.aws_private_link:type_name -> temporal.api.cloud.namespace.v1.AWSPrivateLinkInfo - 7, // 7: temporal.api.cloud.namespace.v1.Namespace.spec:type_name -> temporal.api.cloud.namespace.v1.NamespaceSpec - 19, // 8: temporal.api.cloud.namespace.v1.Namespace.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 8, // 9: temporal.api.cloud.namespace.v1.Namespace.endpoints:type_name -> temporal.api.cloud.namespace.v1.Endpoints - 9, // 10: temporal.api.cloud.namespace.v1.Namespace.limits:type_name -> temporal.api.cloud.namespace.v1.Limits - 11, // 11: temporal.api.cloud.namespace.v1.Namespace.private_connectivities:type_name -> temporal.api.cloud.namespace.v1.PrivateConnectivity - 20, // 12: temporal.api.cloud.namespace.v1.Namespace.created_time:type_name -> google.protobuf.Timestamp - 20, // 13: temporal.api.cloud.namespace.v1.Namespace.last_modified_time:type_name -> google.protobuf.Timestamp - 18, // 14: temporal.api.cloud.namespace.v1.Namespace.region_status:type_name -> temporal.api.cloud.namespace.v1.Namespace.RegionStatusEntry - 1, // 15: temporal.api.cloud.namespace.v1.NamespaceRegionStatus.state:type_name -> temporal.api.cloud.namespace.v1.NamespaceRegionStatus.State - 21, // 16: temporal.api.cloud.namespace.v1.ExportSinkSpec.s3:type_name -> temporal.api.cloud.sink.v1.S3Spec - 22, // 17: temporal.api.cloud.namespace.v1.ExportSinkSpec.gcs:type_name -> temporal.api.cloud.sink.v1.GCSSpec - 19, // 18: temporal.api.cloud.namespace.v1.ExportSink.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 14, // 19: temporal.api.cloud.namespace.v1.ExportSink.spec:type_name -> temporal.api.cloud.namespace.v1.ExportSinkSpec - 2, // 20: temporal.api.cloud.namespace.v1.ExportSink.health:type_name -> temporal.api.cloud.namespace.v1.ExportSink.Health - 20, // 21: temporal.api.cloud.namespace.v1.ExportSink.latest_data_export_time:type_name -> google.protobuf.Timestamp - 20, // 22: temporal.api.cloud.namespace.v1.ExportSink.last_health_check_time:type_name -> google.protobuf.Timestamp - 0, // 23: temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributesEntry.value:type_name -> temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributeType - 13, // 24: temporal.api.cloud.namespace.v1.Namespace.RegionStatusEntry.value:type_name -> temporal.api.cloud.namespace.v1.NamespaceRegionStatus - 25, // [25:25] is the sub-list for method output_type - 25, // [25:25] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name -} - -func init() { file_temporal_api_cloud_namespace_v1_message_proto_init() } -func file_temporal_api_cloud_namespace_v1_message_proto_init() { - if File_temporal_api_cloud_namespace_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_namespace_v1_message_proto_rawDesc), len(file_temporal_api_cloud_namespace_v1_message_proto_rawDesc)), - NumEnums: 3, - NumMessages: 16, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_namespace_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_namespace_v1_message_proto_depIdxs, - EnumInfos: file_temporal_api_cloud_namespace_v1_message_proto_enumTypes, - MessageInfos: file_temporal_api_cloud_namespace_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_namespace_v1_message_proto = out.File - file_temporal_api_cloud_namespace_v1_message_proto_goTypes = nil - file_temporal_api_cloud_namespace_v1_message_proto_depIdxs = nil -} diff --git a/cloud/nexus/v1/message.go-helpers.pb.go b/cloud/nexus/v1/message.go-helpers.pb.go deleted file mode 100644 index 06fbf2dd..00000000 --- a/cloud/nexus/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,250 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package nexus - -import ( - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type EndpointSpec to the protobuf v3 wire format -func (val *EndpointSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type EndpointSpec from the protobuf v3 wire format -func (val *EndpointSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *EndpointSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two EndpointSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *EndpointSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *EndpointSpec - switch t := that.(type) { - case *EndpointSpec: - that1 = t - case EndpointSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type EndpointTargetSpec to the protobuf v3 wire format -func (val *EndpointTargetSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type EndpointTargetSpec from the protobuf v3 wire format -func (val *EndpointTargetSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *EndpointTargetSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two EndpointTargetSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *EndpointTargetSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *EndpointTargetSpec - switch t := that.(type) { - case *EndpointTargetSpec: - that1 = t - case EndpointTargetSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type WorkerTargetSpec to the protobuf v3 wire format -func (val *WorkerTargetSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type WorkerTargetSpec from the protobuf v3 wire format -func (val *WorkerTargetSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *WorkerTargetSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two WorkerTargetSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *WorkerTargetSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *WorkerTargetSpec - switch t := that.(type) { - case *WorkerTargetSpec: - that1 = t - case WorkerTargetSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type EndpointPolicySpec to the protobuf v3 wire format -func (val *EndpointPolicySpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type EndpointPolicySpec from the protobuf v3 wire format -func (val *EndpointPolicySpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *EndpointPolicySpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two EndpointPolicySpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *EndpointPolicySpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *EndpointPolicySpec - switch t := that.(type) { - case *EndpointPolicySpec: - that1 = t - case EndpointPolicySpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type AllowedCloudNamespacePolicySpec to the protobuf v3 wire format -func (val *AllowedCloudNamespacePolicySpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type AllowedCloudNamespacePolicySpec from the protobuf v3 wire format -func (val *AllowedCloudNamespacePolicySpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *AllowedCloudNamespacePolicySpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two AllowedCloudNamespacePolicySpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *AllowedCloudNamespacePolicySpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *AllowedCloudNamespacePolicySpec - switch t := that.(type) { - case *AllowedCloudNamespacePolicySpec: - that1 = t - case AllowedCloudNamespacePolicySpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Endpoint to the protobuf v3 wire format -func (val *Endpoint) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Endpoint from the protobuf v3 wire format -func (val *Endpoint) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Endpoint) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Endpoint values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Endpoint) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Endpoint - switch t := that.(type) { - case *Endpoint: - that1 = t - case Endpoint: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} diff --git a/cloud/nexus/v1/message.pb.go b/cloud/nexus/v1/message.pb.go deleted file mode 100644 index a61afffd..00000000 --- a/cloud/nexus/v1/message.pb.go +++ /dev/null @@ -1,578 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/nexus/v1/message.proto - -package nexus - -import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - - v11 "go.temporal.io/api/cloud/resource/v1" - v1 "go.temporal.io/api/common/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -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) -) - -type EndpointSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The name of the endpoint. Must be unique within an account. - // The name must match `^[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]$`. - // This field is mutable. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Indicates where the endpoint should forward received nexus requests to. - TargetSpec *EndpointTargetSpec `protobuf:"bytes,2,opt,name=target_spec,json=targetSpec,proto3" json:"target_spec,omitempty"` - // The set of policies (e.g. authorization) for the endpoint. Each request's caller - // must match with at least one of the specs to be accepted by the endpoint. - // This field is mutable. - PolicySpecs []*EndpointPolicySpec `protobuf:"bytes,3,rep,name=policy_specs,json=policySpecs,proto3" json:"policy_specs,omitempty"` - // Deprecated: Not supported after 2025-01-01-00 api version. Use description instead. - // temporal:versioning:max_version=2025-01-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/nexus/v1/message.proto. - DescriptionDeprecated string `protobuf:"bytes,4,opt,name=description_deprecated,json=descriptionDeprecated,proto3" json:"description_deprecated,omitempty"` - // The markdown description of the endpoint - optional. - // temporal:versioning:min_version=2025-01-01-00 - Description *v1.Payload `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EndpointSpec) Reset() { - *x = EndpointSpec{} - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EndpointSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EndpointSpec) ProtoMessage() {} - -func (x *EndpointSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EndpointSpec.ProtoReflect.Descriptor instead. -func (*EndpointSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_nexus_v1_message_proto_rawDescGZIP(), []int{0} -} - -func (x *EndpointSpec) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *EndpointSpec) GetTargetSpec() *EndpointTargetSpec { - if x != nil { - return x.TargetSpec - } - return nil -} - -func (x *EndpointSpec) GetPolicySpecs() []*EndpointPolicySpec { - if x != nil { - return x.PolicySpecs - } - return nil -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/nexus/v1/message.proto. -func (x *EndpointSpec) GetDescriptionDeprecated() string { - if x != nil { - return x.DescriptionDeprecated - } - return "" -} - -func (x *EndpointSpec) GetDescription() *v1.Payload { - if x != nil { - return x.Description - } - return nil -} - -type EndpointTargetSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Variant: - // - // *EndpointTargetSpec_WorkerTargetSpec - Variant isEndpointTargetSpec_Variant `protobuf_oneof:"variant"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EndpointTargetSpec) Reset() { - *x = EndpointTargetSpec{} - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EndpointTargetSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EndpointTargetSpec) ProtoMessage() {} - -func (x *EndpointTargetSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EndpointTargetSpec.ProtoReflect.Descriptor instead. -func (*EndpointTargetSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_nexus_v1_message_proto_rawDescGZIP(), []int{1} -} - -func (x *EndpointTargetSpec) GetVariant() isEndpointTargetSpec_Variant { - if x != nil { - return x.Variant - } - return nil -} - -func (x *EndpointTargetSpec) GetWorkerTargetSpec() *WorkerTargetSpec { - if x != nil { - if x, ok := x.Variant.(*EndpointTargetSpec_WorkerTargetSpec); ok { - return x.WorkerTargetSpec - } - } - return nil -} - -type isEndpointTargetSpec_Variant interface { - isEndpointTargetSpec_Variant() -} - -type EndpointTargetSpec_WorkerTargetSpec struct { - // A target spec for routing nexus requests to a specific cloud namespace worker. - WorkerTargetSpec *WorkerTargetSpec `protobuf:"bytes,1,opt,name=worker_target_spec,json=workerTargetSpec,proto3,oneof"` -} - -func (*EndpointTargetSpec_WorkerTargetSpec) isEndpointTargetSpec_Variant() {} - -type WorkerTargetSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The target cloud namespace to route requests to. Namespace must be in same account as the endpoint. This field is mutable. - NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - // The task queue on the cloud namespace to route requests to. This field is mutable. - TaskQueue string `protobuf:"bytes,2,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WorkerTargetSpec) Reset() { - *x = WorkerTargetSpec{} - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WorkerTargetSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkerTargetSpec) ProtoMessage() {} - -func (x *WorkerTargetSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkerTargetSpec.ProtoReflect.Descriptor instead. -func (*WorkerTargetSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_nexus_v1_message_proto_rawDescGZIP(), []int{2} -} - -func (x *WorkerTargetSpec) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" -} - -func (x *WorkerTargetSpec) GetTaskQueue() string { - if x != nil { - return x.TaskQueue - } - return "" -} - -type EndpointPolicySpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Variant: - // - // *EndpointPolicySpec_AllowedCloudNamespacePolicySpec - Variant isEndpointPolicySpec_Variant `protobuf_oneof:"variant"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EndpointPolicySpec) Reset() { - *x = EndpointPolicySpec{} - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EndpointPolicySpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EndpointPolicySpec) ProtoMessage() {} - -func (x *EndpointPolicySpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EndpointPolicySpec.ProtoReflect.Descriptor instead. -func (*EndpointPolicySpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_nexus_v1_message_proto_rawDescGZIP(), []int{3} -} - -func (x *EndpointPolicySpec) GetVariant() isEndpointPolicySpec_Variant { - if x != nil { - return x.Variant - } - return nil -} - -func (x *EndpointPolicySpec) GetAllowedCloudNamespacePolicySpec() *AllowedCloudNamespacePolicySpec { - if x != nil { - if x, ok := x.Variant.(*EndpointPolicySpec_AllowedCloudNamespacePolicySpec); ok { - return x.AllowedCloudNamespacePolicySpec - } - } - return nil -} - -type isEndpointPolicySpec_Variant interface { - isEndpointPolicySpec_Variant() -} - -type EndpointPolicySpec_AllowedCloudNamespacePolicySpec struct { - // A policy spec that allows one caller namespace to access the endpoint. - AllowedCloudNamespacePolicySpec *AllowedCloudNamespacePolicySpec `protobuf:"bytes,1,opt,name=allowed_cloud_namespace_policy_spec,json=allowedCloudNamespacePolicySpec,proto3,oneof"` -} - -func (*EndpointPolicySpec_AllowedCloudNamespacePolicySpec) isEndpointPolicySpec_Variant() {} - -type AllowedCloudNamespacePolicySpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The namespace that is allowed to call into this endpoint. Calling namespace must be in same account as the endpoint. - NamespaceId string `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AllowedCloudNamespacePolicySpec) Reset() { - *x = AllowedCloudNamespacePolicySpec{} - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AllowedCloudNamespacePolicySpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AllowedCloudNamespacePolicySpec) ProtoMessage() {} - -func (x *AllowedCloudNamespacePolicySpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AllowedCloudNamespacePolicySpec.ProtoReflect.Descriptor instead. -func (*AllowedCloudNamespacePolicySpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_nexus_v1_message_proto_rawDescGZIP(), []int{4} -} - -func (x *AllowedCloudNamespacePolicySpec) GetNamespaceId() string { - if x != nil { - return x.NamespaceId - } - return "" -} - -// An endpoint that receives and then routes Nexus requests -type Endpoint struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the endpoint. This is generated by the server and is immutable. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The current version of the endpoint specification. - // The next update operation must include this version. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The endpoint specification. - Spec *EndpointSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the endpoint. - // For any failed state, reach out to Temporal Cloud support for remediation. - State v11.ResourceState `protobuf:"varint,4,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` - // The id of any ongoing async operation that is creating, updating, or deleting the endpoint, if any. - AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // The date and time when the endpoint was created. - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the endpoint was last modified. - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Endpoint) Reset() { - *x = Endpoint{} - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Endpoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Endpoint) ProtoMessage() {} - -func (x *Endpoint) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. -func (*Endpoint) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_nexus_v1_message_proto_rawDescGZIP(), []int{5} -} - -func (x *Endpoint) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Endpoint) GetResourceVersion() string { - if x != nil { - return x.ResourceVersion - } - return "" -} - -func (x *Endpoint) GetSpec() *EndpointSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *Endpoint) GetState() v11.ResourceState { - if x != nil { - return x.State - } - return v11.ResourceState(0) -} - -func (x *Endpoint) GetAsyncOperationId() string { - if x != nil { - return x.AsyncOperationId - } - return "" -} - -func (x *Endpoint) GetCreatedTime() *timestamppb.Timestamp { - if x != nil { - return x.CreatedTime - } - return nil -} - -func (x *Endpoint) GetLastModifiedTime() *timestamppb.Timestamp { - if x != nil { - return x.LastModifiedTime - } - return nil -} - -var File_temporal_api_cloud_nexus_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_nexus_v1_message_proto_rawDesc = "" + - "\n" + - ")temporal/api/cloud/nexus/v1/message.proto\x12\x1btemporal.api.cloud.nexus.v1\x1a$temporal/api/common/v1/message.proto\x1a,temporal/api/cloud/resource/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x02\n" + - "\fEndpointSpec\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12P\n" + - "\vtarget_spec\x18\x02 \x01(\v2/.temporal.api.cloud.nexus.v1.EndpointTargetSpecR\n" + - "targetSpec\x12R\n" + - "\fpolicy_specs\x18\x03 \x03(\v2/.temporal.api.cloud.nexus.v1.EndpointPolicySpecR\vpolicySpecs\x129\n" + - "\x16description_deprecated\x18\x04 \x01(\tB\x02\x18\x01R\x15descriptionDeprecated\x12A\n" + - "\vdescription\x18\x05 \x01(\v2\x1f.temporal.api.common.v1.PayloadR\vdescription\"~\n" + - "\x12EndpointTargetSpec\x12]\n" + - "\x12worker_target_spec\x18\x01 \x01(\v2-.temporal.api.cloud.nexus.v1.WorkerTargetSpecH\x00R\x10workerTargetSpecB\t\n" + - "\avariant\"T\n" + - "\x10WorkerTargetSpec\x12!\n" + - "\fnamespace_id\x18\x01 \x01(\tR\vnamespaceId\x12\x1d\n" + - "\n" + - "task_queue\x18\x02 \x01(\tR\ttaskQueue\"\xae\x01\n" + - "\x12EndpointPolicySpec\x12\x8c\x01\n" + - "#allowed_cloud_namespace_policy_spec\x18\x01 \x01(\v2<.temporal.api.cloud.nexus.v1.AllowedCloudNamespacePolicySpecH\x00R\x1fallowedCloudNamespacePolicySpecB\t\n" + - "\avariant\"D\n" + - "\x1fAllowedCloudNamespacePolicySpec\x12!\n" + - "\fnamespace_id\x18\x01 \x01(\tR\vnamespaceId\"\x80\x03\n" + - "\bEndpoint\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12)\n" + - "\x10resource_version\x18\x02 \x01(\tR\x0fresourceVersion\x12=\n" + - "\x04spec\x18\x03 \x01(\v2).temporal.api.cloud.nexus.v1.EndpointSpecR\x04spec\x12C\n" + - "\x05state\x18\x04 \x01(\x0e2-.temporal.api.cloud.resource.v1.ResourceStateR\x05state\x12,\n" + - "\x12async_operation_id\x18\x05 \x01(\tR\x10asyncOperationId\x12=\n" + - "\fcreated_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vcreatedTime\x12H\n" + - "\x12last_modified_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTimeB\x9d\x01\n" + - "\x1eio.temporal.api.cloud.nexus.v1B\fMessageProtoP\x01Z'go.temporal.io/api/cloud/nexus/v1;nexus\xaa\x02\x1dTemporalio.Api.Cloud.Nexus.V1\xea\x02!Temporalio::Api::Cloud::Nexus::V1b\x06proto3" - -var ( - file_temporal_api_cloud_nexus_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_nexus_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_nexus_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_nexus_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_nexus_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_nexus_v1_message_proto_rawDesc), len(file_temporal_api_cloud_nexus_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_nexus_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_nexus_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_temporal_api_cloud_nexus_v1_message_proto_goTypes = []any{ - (*EndpointSpec)(nil), // 0: temporal.api.cloud.nexus.v1.EndpointSpec - (*EndpointTargetSpec)(nil), // 1: temporal.api.cloud.nexus.v1.EndpointTargetSpec - (*WorkerTargetSpec)(nil), // 2: temporal.api.cloud.nexus.v1.WorkerTargetSpec - (*EndpointPolicySpec)(nil), // 3: temporal.api.cloud.nexus.v1.EndpointPolicySpec - (*AllowedCloudNamespacePolicySpec)(nil), // 4: temporal.api.cloud.nexus.v1.AllowedCloudNamespacePolicySpec - (*Endpoint)(nil), // 5: temporal.api.cloud.nexus.v1.Endpoint - (*v1.Payload)(nil), // 6: temporal.api.common.v1.Payload - (v11.ResourceState)(0), // 7: temporal.api.cloud.resource.v1.ResourceState - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp -} -var file_temporal_api_cloud_nexus_v1_message_proto_depIdxs = []int32{ - 1, // 0: temporal.api.cloud.nexus.v1.EndpointSpec.target_spec:type_name -> temporal.api.cloud.nexus.v1.EndpointTargetSpec - 3, // 1: temporal.api.cloud.nexus.v1.EndpointSpec.policy_specs:type_name -> temporal.api.cloud.nexus.v1.EndpointPolicySpec - 6, // 2: temporal.api.cloud.nexus.v1.EndpointSpec.description:type_name -> temporal.api.common.v1.Payload - 2, // 3: temporal.api.cloud.nexus.v1.EndpointTargetSpec.worker_target_spec:type_name -> temporal.api.cloud.nexus.v1.WorkerTargetSpec - 4, // 4: temporal.api.cloud.nexus.v1.EndpointPolicySpec.allowed_cloud_namespace_policy_spec:type_name -> temporal.api.cloud.nexus.v1.AllowedCloudNamespacePolicySpec - 0, // 5: temporal.api.cloud.nexus.v1.Endpoint.spec:type_name -> temporal.api.cloud.nexus.v1.EndpointSpec - 7, // 6: temporal.api.cloud.nexus.v1.Endpoint.state:type_name -> temporal.api.cloud.resource.v1.ResourceState - 8, // 7: temporal.api.cloud.nexus.v1.Endpoint.created_time:type_name -> google.protobuf.Timestamp - 8, // 8: temporal.api.cloud.nexus.v1.Endpoint.last_modified_time:type_name -> google.protobuf.Timestamp - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] 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_temporal_api_cloud_nexus_v1_message_proto_init() } -func file_temporal_api_cloud_nexus_v1_message_proto_init() { - if File_temporal_api_cloud_nexus_v1_message_proto != nil { - return - } - file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[1].OneofWrappers = []any{ - (*EndpointTargetSpec_WorkerTargetSpec)(nil), - } - file_temporal_api_cloud_nexus_v1_message_proto_msgTypes[3].OneofWrappers = []any{ - (*EndpointPolicySpec_AllowedCloudNamespacePolicySpec)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_nexus_v1_message_proto_rawDesc), len(file_temporal_api_cloud_nexus_v1_message_proto_rawDesc)), - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_nexus_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_nexus_v1_message_proto_depIdxs, - MessageInfos: file_temporal_api_cloud_nexus_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_nexus_v1_message_proto = out.File - file_temporal_api_cloud_nexus_v1_message_proto_goTypes = nil - file_temporal_api_cloud_nexus_v1_message_proto_depIdxs = nil -} diff --git a/cloud/operation/v1/message.go-helpers.pb.go b/cloud/operation/v1/message.go-helpers.pb.go deleted file mode 100644 index 0a6faa9e..00000000 --- a/cloud/operation/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,65 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package operation - -import ( - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type AsyncOperation to the protobuf v3 wire format -func (val *AsyncOperation) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type AsyncOperation from the protobuf v3 wire format -func (val *AsyncOperation) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *AsyncOperation) Size() int { - return proto.Size(val) -} - -// Equal returns whether two AsyncOperation values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *AsyncOperation) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *AsyncOperation - switch t := that.(type) { - case *AsyncOperation: - that1 = t - case AsyncOperation: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} diff --git a/cloud/operation/v1/message.pb.go b/cloud/operation/v1/message.pb.go deleted file mode 100644 index d1431f1b..00000000 --- a/cloud/operation/v1/message.pb.go +++ /dev/null @@ -1,337 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/operation/v1/message.proto - -package operation - -import ( - reflect "reflect" - "strconv" - sync "sync" - unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -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) -) - -type AsyncOperation_State int32 - -const ( - AsyncOperation_STATE_UNSPECIFIED AsyncOperation_State = 0 - AsyncOperation_STATE_PENDING AsyncOperation_State = 1 - AsyncOperation_STATE_IN_PROGRESS AsyncOperation_State = // The operation is pending. - 2 - AsyncOperation_STATE_FAILED AsyncOperation_State = // The operation is in progress. - 3 - AsyncOperation_STATE_CANCELLED AsyncOperation_State = // The operation failed, check failure_reason for more details. - 4 - AsyncOperation_STATE_FULFILLED AsyncOperation_State = // The operation was cancelled. - 5 // The operation was fulfilled. -) - -// Enum value maps for AsyncOperation_State. -var ( - AsyncOperation_State_name = map[int32]string{ - 0: "STATE_UNSPECIFIED", - 1: "STATE_PENDING", - 2: "STATE_IN_PROGRESS", - 3: "STATE_FAILED", - 4: "STATE_CANCELLED", - 5: "STATE_FULFILLED", - } - AsyncOperation_State_value = map[string]int32{ - "STATE_UNSPECIFIED": 0, - "STATE_PENDING": 1, - "STATE_IN_PROGRESS": 2, - "STATE_FAILED": 3, - "STATE_CANCELLED": 4, - "STATE_FULFILLED": 5, - } -) - -func (x AsyncOperation_State) Enum() *AsyncOperation_State { - p := new(AsyncOperation_State) - *p = x - return p -} - -func (x AsyncOperation_State) String() string { - switch x { - case AsyncOperation_STATE_UNSPECIFIED: - return "AsyncOperationStateUnspecified" - case AsyncOperation_STATE_PENDING: - return "AsyncOperationStatePending" - case AsyncOperation_STATE_IN_PROGRESS: - return "AsyncOperationStateInProgress" - case AsyncOperation_STATE_FAILED: - return "AsyncOperationStateFailed" - case AsyncOperation_STATE_CANCELLED: - return "AsyncOperationStateCancelled" - case AsyncOperation_STATE_FULFILLED: - return "AsyncOperationStateFulfilled" - default: - return strconv.Itoa(int(x)) - } - -} - -func (AsyncOperation_State) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_operation_v1_message_proto_enumTypes[0].Descriptor() -} - -func (AsyncOperation_State) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_operation_v1_message_proto_enumTypes[0] -} - -func (x AsyncOperation_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AsyncOperation_State.Descriptor instead. -func (AsyncOperation_State) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_operation_v1_message_proto_rawDescGZIP(), []int{0, 0} -} - -type AsyncOperation struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The operation id. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The current state of this operation. - // Possible values are: pending, in_progress, failed, cancelled, fulfilled. - // Deprecated: Not supported after 2024-10-01-00 api version. Use state instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/operation/v1/message.proto. - StateDeprecated string `protobuf:"bytes,2,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` - // The current state of this operation. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=state_deprecated - State AsyncOperation_State `protobuf:"varint,9,opt,name=state,proto3,enum=temporal.api.cloud.operation.v1.AsyncOperation_State" json:"state,omitempty"` - // The recommended duration to check back for an update in the operation's state. - CheckDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=check_duration,json=checkDuration,proto3" json:"check_duration,omitempty"` - // The type of operation being performed. - OperationType string `protobuf:"bytes,4,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` - // The input to the operation being performed. - // - // (-- api-linter: core::0146::any=disabled --) - OperationInput *anypb.Any `protobuf:"bytes,5,opt,name=operation_input,json=operationInput,proto3" json:"operation_input,omitempty"` - // If the operation failed, the reason for the failure. - FailureReason string `protobuf:"bytes,6,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"` - // The date and time when the operation initiated. - StartedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"` - // The date and time when the operation completed. - FinishedTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finished_time,json=finishedTime,proto3" json:"finished_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AsyncOperation) Reset() { - *x = AsyncOperation{} - mi := &file_temporal_api_cloud_operation_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AsyncOperation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AsyncOperation) ProtoMessage() {} - -func (x *AsyncOperation) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_operation_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AsyncOperation.ProtoReflect.Descriptor instead. -func (*AsyncOperation) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_operation_v1_message_proto_rawDescGZIP(), []int{0} -} - -func (x *AsyncOperation) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/operation/v1/message.proto. -func (x *AsyncOperation) GetStateDeprecated() string { - if x != nil { - return x.StateDeprecated - } - return "" -} - -func (x *AsyncOperation) GetState() AsyncOperation_State { - if x != nil { - return x.State - } - return AsyncOperation_STATE_UNSPECIFIED -} - -func (x *AsyncOperation) GetCheckDuration() *durationpb.Duration { - if x != nil { - return x.CheckDuration - } - return nil -} - -func (x *AsyncOperation) GetOperationType() string { - if x != nil { - return x.OperationType - } - return "" -} - -func (x *AsyncOperation) GetOperationInput() *anypb.Any { - if x != nil { - return x.OperationInput - } - return nil -} - -func (x *AsyncOperation) GetFailureReason() string { - if x != nil { - return x.FailureReason - } - return "" -} - -func (x *AsyncOperation) GetStartedTime() *timestamppb.Timestamp { - if x != nil { - return x.StartedTime - } - return nil -} - -func (x *AsyncOperation) GetFinishedTime() *timestamppb.Timestamp { - if x != nil { - return x.FinishedTime - } - return nil -} - -var File_temporal_api_cloud_operation_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_operation_v1_message_proto_rawDesc = "" + - "\n" + - "-temporal/api/cloud/operation/v1/message.proto\x12\x1ftemporal.api.cloud.operation.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\"\xf2\x04\n" + - "\x0eAsyncOperation\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12-\n" + - "\x10state_deprecated\x18\x02 \x01(\tB\x02\x18\x01R\x0fstateDeprecated\x12K\n" + - "\x05state\x18\t \x01(\x0e25.temporal.api.cloud.operation.v1.AsyncOperation.StateR\x05state\x12@\n" + - "\x0echeck_duration\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\rcheckDuration\x12%\n" + - "\x0eoperation_type\x18\x04 \x01(\tR\roperationType\x12=\n" + - "\x0foperation_input\x18\x05 \x01(\v2\x14.google.protobuf.AnyR\x0eoperationInput\x12%\n" + - "\x0efailure_reason\x18\x06 \x01(\tR\rfailureReason\x12=\n" + - "\fstarted_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\vstartedTime\x12?\n" + - "\rfinished_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\ffinishedTime\"\x84\x01\n" + - "\x05State\x12\x15\n" + - "\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n" + - "\rSTATE_PENDING\x10\x01\x12\x15\n" + - "\x11STATE_IN_PROGRESS\x10\x02\x12\x10\n" + - "\fSTATE_FAILED\x10\x03\x12\x13\n" + - "\x0fSTATE_CANCELLED\x10\x04\x12\x13\n" + - "\x0fSTATE_FULFILLED\x10\x05B\xb1\x01\n" + - "\"io.temporal.api.cloud.operation.v1B\fMessageProtoP\x01Z/go.temporal.io/api/cloud/operation/v1;operation\xaa\x02!Temporalio.Api.Cloud.Operation.V1\xea\x02%Temporalio::Api::Cloud::Operation::V1b\x06proto3" - -var ( - file_temporal_api_cloud_operation_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_operation_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_operation_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_operation_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_operation_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_operation_v1_message_proto_rawDesc), len(file_temporal_api_cloud_operation_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_operation_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_operation_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_temporal_api_cloud_operation_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_temporal_api_cloud_operation_v1_message_proto_goTypes = []any{ - (AsyncOperation_State)(0), // 0: temporal.api.cloud.operation.v1.AsyncOperation.State - (*AsyncOperation)(nil), // 1: temporal.api.cloud.operation.v1.AsyncOperation - (*durationpb.Duration)(nil), // 2: google.protobuf.Duration - (*anypb.Any)(nil), // 3: google.protobuf.Any - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp -} -var file_temporal_api_cloud_operation_v1_message_proto_depIdxs = []int32{ - 0, // 0: temporal.api.cloud.operation.v1.AsyncOperation.state:type_name -> temporal.api.cloud.operation.v1.AsyncOperation.State - 2, // 1: temporal.api.cloud.operation.v1.AsyncOperation.check_duration:type_name -> google.protobuf.Duration - 3, // 2: temporal.api.cloud.operation.v1.AsyncOperation.operation_input:type_name -> google.protobuf.Any - 4, // 3: temporal.api.cloud.operation.v1.AsyncOperation.started_time:type_name -> google.protobuf.Timestamp - 4, // 4: temporal.api.cloud.operation.v1.AsyncOperation.finished_time:type_name -> google.protobuf.Timestamp - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] 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_temporal_api_cloud_operation_v1_message_proto_init() } -func file_temporal_api_cloud_operation_v1_message_proto_init() { - if File_temporal_api_cloud_operation_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_operation_v1_message_proto_rawDesc), len(file_temporal_api_cloud_operation_v1_message_proto_rawDesc)), - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_operation_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_operation_v1_message_proto_depIdxs, - EnumInfos: file_temporal_api_cloud_operation_v1_message_proto_enumTypes, - MessageInfos: file_temporal_api_cloud_operation_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_operation_v1_message_proto = out.File - file_temporal_api_cloud_operation_v1_message_proto_goTypes = nil - file_temporal_api_cloud_operation_v1_message_proto_depIdxs = nil -} diff --git a/cloud/region/v1/message.go-helpers.pb.go b/cloud/region/v1/message.go-helpers.pb.go deleted file mode 100644 index 20924bca..00000000 --- a/cloud/region/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,65 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package region - -import ( - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type Region to the protobuf v3 wire format -func (val *Region) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Region from the protobuf v3 wire format -func (val *Region) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Region) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Region values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Region) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Region - switch t := that.(type) { - case *Region: - that1 = t - case Region: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} diff --git a/cloud/region/v1/message.pb.go b/cloud/region/v1/message.pb.go deleted file mode 100644 index 7e610f2c..00000000 --- a/cloud/region/v1/message.pb.go +++ /dev/null @@ -1,264 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/region/v1/message.proto - -package region - -import ( - reflect "reflect" - "strconv" - sync "sync" - unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -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) -) - -// The cloud provider that's hosting the region. -type Region_CloudProvider int32 - -const ( - Region_CLOUD_PROVIDER_UNSPECIFIED Region_CloudProvider = 0 - Region_CLOUD_PROVIDER_AWS Region_CloudProvider = 1 - Region_CLOUD_PROVIDER_GCP Region_CloudProvider = 2 -) - -// Enum value maps for Region_CloudProvider. -var ( - Region_CloudProvider_name = map[int32]string{ - 0: "CLOUD_PROVIDER_UNSPECIFIED", - 1: "CLOUD_PROVIDER_AWS", - 2: "CLOUD_PROVIDER_GCP", - } - Region_CloudProvider_value = map[string]int32{ - "CLOUD_PROVIDER_UNSPECIFIED": 0, - "CLOUD_PROVIDER_AWS": 1, - "CLOUD_PROVIDER_GCP": 2, - } -) - -func (x Region_CloudProvider) Enum() *Region_CloudProvider { - p := new(Region_CloudProvider) - *p = x - return p -} - -func (x Region_CloudProvider) String() string { - switch x { - case Region_CLOUD_PROVIDER_UNSPECIFIED: - return "RegionCloudProviderUnspecified" - case Region_CLOUD_PROVIDER_AWS: - return "RegionCloudProviderAws" - case Region_CLOUD_PROVIDER_GCP: - return "RegionCloudProviderGcp" - default: - return strconv.Itoa(int(x)) - } - -} - -func (Region_CloudProvider) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_region_v1_message_proto_enumTypes[0].Descriptor() -} - -func (Region_CloudProvider) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_region_v1_message_proto_enumTypes[0] -} - -func (x Region_CloudProvider) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Region_CloudProvider.Descriptor instead. -func (Region_CloudProvider) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_region_v1_message_proto_rawDescGZIP(), []int{0, 0} -} - -type Region struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The id of the temporal cloud region. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The name of the cloud provider that's hosting the region. - // Currently only "aws" is supported. - // Deprecated: Not supported after 2024-10-01-00 api version. Use cloud_provider instead. - // temporal:versioning:max_version=2024-10-01-00 - // - // Deprecated: Marked as deprecated in temporal/api/cloud/region/v1/message.proto. - CloudProviderDeprecated string `protobuf:"bytes,2,opt,name=cloud_provider_deprecated,json=cloudProviderDeprecated,proto3" json:"cloud_provider_deprecated,omitempty"` - // The cloud provider that's hosting the region. - // temporal:versioning:min_version=2024-10-01-00 - // temporal:enums:replaces=cloud_provider_deprecated - CloudProvider Region_CloudProvider `protobuf:"varint,5,opt,name=cloud_provider,json=cloudProvider,proto3,enum=temporal.api.cloud.region.v1.Region_CloudProvider" json:"cloud_provider,omitempty"` - // The region identifier as defined by the cloud provider. - CloudProviderRegion string `protobuf:"bytes,3,opt,name=cloud_provider_region,json=cloudProviderRegion,proto3" json:"cloud_provider_region,omitempty"` - // The human readable location of the region. - Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Region) Reset() { - *x = Region{} - mi := &file_temporal_api_cloud_region_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Region) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Region) ProtoMessage() {} - -func (x *Region) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_region_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Region.ProtoReflect.Descriptor instead. -func (*Region) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_region_v1_message_proto_rawDescGZIP(), []int{0} -} - -func (x *Region) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -// Deprecated: Marked as deprecated in temporal/api/cloud/region/v1/message.proto. -func (x *Region) GetCloudProviderDeprecated() string { - if x != nil { - return x.CloudProviderDeprecated - } - return "" -} - -func (x *Region) GetCloudProvider() Region_CloudProvider { - if x != nil { - return x.CloudProvider - } - return Region_CLOUD_PROVIDER_UNSPECIFIED -} - -func (x *Region) GetCloudProviderRegion() string { - if x != nil { - return x.CloudProviderRegion - } - return "" -} - -func (x *Region) GetLocation() string { - if x != nil { - return x.Location - } - return "" -} - -var File_temporal_api_cloud_region_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_region_v1_message_proto_rawDesc = "" + - "\n" + - "*temporal/api/cloud/region/v1/message.proto\x12\x1ctemporal.api.cloud.region.v1\"\xe4\x02\n" + - "\x06Region\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12>\n" + - "\x19cloud_provider_deprecated\x18\x02 \x01(\tB\x02\x18\x01R\x17cloudProviderDeprecated\x12Y\n" + - "\x0ecloud_provider\x18\x05 \x01(\x0e22.temporal.api.cloud.region.v1.Region.CloudProviderR\rcloudProvider\x122\n" + - "\x15cloud_provider_region\x18\x03 \x01(\tR\x13cloudProviderRegion\x12\x1a\n" + - "\blocation\x18\x04 \x01(\tR\blocation\"_\n" + - "\rCloudProvider\x12\x1e\n" + - "\x1aCLOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x16\n" + - "\x12CLOUD_PROVIDER_AWS\x10\x01\x12\x16\n" + - "\x12CLOUD_PROVIDER_GCP\x10\x02B\xa2\x01\n" + - "\x1fio.temporal.api.cloud.region.v1B\fMessageProtoP\x01Z)go.temporal.io/api/cloud/region/v1;region\xaa\x02\x1eTemporalio.Api.Cloud.Region.V1\xea\x02\"Temporalio::Api::Cloud::Region::V1b\x06proto3" - -var ( - file_temporal_api_cloud_region_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_region_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_region_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_region_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_region_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_region_v1_message_proto_rawDesc), len(file_temporal_api_cloud_region_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_region_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_region_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_temporal_api_cloud_region_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_temporal_api_cloud_region_v1_message_proto_goTypes = []any{ - (Region_CloudProvider)(0), // 0: temporal.api.cloud.region.v1.Region.CloudProvider - (*Region)(nil), // 1: temporal.api.cloud.region.v1.Region -} -var file_temporal_api_cloud_region_v1_message_proto_depIdxs = []int32{ - 0, // 0: temporal.api.cloud.region.v1.Region.cloud_provider:type_name -> temporal.api.cloud.region.v1.Region.CloudProvider - 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_temporal_api_cloud_region_v1_message_proto_init() } -func file_temporal_api_cloud_region_v1_message_proto_init() { - if File_temporal_api_cloud_region_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_region_v1_message_proto_rawDesc), len(file_temporal_api_cloud_region_v1_message_proto_rawDesc)), - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_region_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_region_v1_message_proto_depIdxs, - EnumInfos: file_temporal_api_cloud_region_v1_message_proto_enumTypes, - MessageInfos: file_temporal_api_cloud_region_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_region_v1_message_proto = out.File - file_temporal_api_cloud_region_v1_message_proto_goTypes = nil - file_temporal_api_cloud_region_v1_message_proto_depIdxs = nil -} diff --git a/cloud/resource/v1/message.go-helpers.pb.go b/cloud/resource/v1/message.go-helpers.pb.go deleted file mode 100644 index b5e56349..00000000 --- a/cloud/resource/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,55 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package resource - -import ( - "fmt" -) - -var ( - ResourceState_shorthandValue = map[string]int32{ - "Unspecified": 0, - "Activating": 1, - "ActivationFailed": 2, - "Active": 3, - "Updating": 4, - "UpdateFailed": 5, - "Deleting": 6, - "DeleteFailed": 7, - "Deleted": 8, - "Suspended": 9, - "Expired": 10, - } -) - -// ResourceStateFromString parses a ResourceState value from either the protojson -// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to ResourceState -func ResourceStateFromString(s string) (ResourceState, error) { - if v, ok := ResourceState_value[s]; ok { - return ResourceState(v), nil - } else if v, ok := ResourceState_shorthandValue[s]; ok { - return ResourceState(v), nil - } - return ResourceState(0), fmt.Errorf("%s is not a valid ResourceState", s) -} diff --git a/cloud/resource/v1/message.pb.go b/cloud/resource/v1/message.pb.go deleted file mode 100644 index 57e0659f..00000000 --- a/cloud/resource/v1/message.pb.go +++ /dev/null @@ -1,214 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/resource/v1/message.proto - -package resource - -import ( - reflect "reflect" - "strconv" - sync "sync" - unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -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) -) - -type ResourceState int32 - -const ( - RESOURCE_STATE_UNSPECIFIED ResourceState = 0 - RESOURCE_STATE_ACTIVATING ResourceState = 1 // The resource is being activated. - RESOURCE_STATE_ACTIVATION_FAILED ResourceState = 2 // The resource failed to activate. This is an error state. Reach out to support for remediation. - RESOURCE_STATE_ACTIVE ResourceState = 3 // The resource is active and ready to use. - RESOURCE_STATE_UPDATING ResourceState = 4 // The resource is being updated. - RESOURCE_STATE_UPDATE_FAILED ResourceState = 5 // The resource failed to update. This is an error state. Reach out to support for remediation. - RESOURCE_STATE_DELETING ResourceState = 6 // The resource is being deleted. - RESOURCE_STATE_DELETE_FAILED ResourceState = 7 // The resource failed to delete. This is an error state. Reach out to support for remediation. - RESOURCE_STATE_DELETED ResourceState = 8 // The resource has been deleted. - RESOURCE_STATE_SUSPENDED ResourceState = 9 // The resource is suspended and not available for use. Reach out to support for remediation. - RESOURCE_STATE_EXPIRED ResourceState = 10 // The resource has expired and is no longer available for use. -) - -// Enum value maps for ResourceState. -var ( - ResourceState_name = map[int32]string{ - 0: "RESOURCE_STATE_UNSPECIFIED", - 1: "RESOURCE_STATE_ACTIVATING", - 2: "RESOURCE_STATE_ACTIVATION_FAILED", - 3: "RESOURCE_STATE_ACTIVE", - 4: "RESOURCE_STATE_UPDATING", - 5: "RESOURCE_STATE_UPDATE_FAILED", - 6: "RESOURCE_STATE_DELETING", - 7: "RESOURCE_STATE_DELETE_FAILED", - 8: "RESOURCE_STATE_DELETED", - 9: "RESOURCE_STATE_SUSPENDED", - 10: "RESOURCE_STATE_EXPIRED", - } - ResourceState_value = map[string]int32{ - "RESOURCE_STATE_UNSPECIFIED": 0, - "RESOURCE_STATE_ACTIVATING": 1, - "RESOURCE_STATE_ACTIVATION_FAILED": 2, - "RESOURCE_STATE_ACTIVE": 3, - "RESOURCE_STATE_UPDATING": 4, - "RESOURCE_STATE_UPDATE_FAILED": 5, - "RESOURCE_STATE_DELETING": 6, - "RESOURCE_STATE_DELETE_FAILED": 7, - "RESOURCE_STATE_DELETED": 8, - "RESOURCE_STATE_SUSPENDED": 9, - "RESOURCE_STATE_EXPIRED": 10, - } -) - -func (x ResourceState) Enum() *ResourceState { - p := new(ResourceState) - *p = x - return p -} - -func (x ResourceState) String() string { - switch x { - case RESOURCE_STATE_UNSPECIFIED: - return "Unspecified" - case RESOURCE_STATE_ACTIVATING: - return "Activating" - case RESOURCE_STATE_ACTIVATION_FAILED: - return "ActivationFailed" - case RESOURCE_STATE_ACTIVE: - return "Active" - case RESOURCE_STATE_UPDATING: - return "Updating" - case RESOURCE_STATE_UPDATE_FAILED: - return "UpdateFailed" - case RESOURCE_STATE_DELETING: - return "Deleting" - case RESOURCE_STATE_DELETE_FAILED: - return "DeleteFailed" - case RESOURCE_STATE_DELETED: - return "Deleted" - case RESOURCE_STATE_SUSPENDED: - - // Deprecated: Use ResourceState.Descriptor instead. - return "Suspended" - case RESOURCE_STATE_EXPIRED: - return "Expired" - default: - return strconv.Itoa(int(x)) - } - -} - -func (ResourceState) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_resource_v1_message_proto_enumTypes[0].Descriptor() -} - -func (ResourceState) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_resource_v1_message_proto_enumTypes[0] -} - -func (x ResourceState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -func (ResourceState) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_resource_v1_message_proto_rawDescGZIP(), []int{0} -} - -var File_temporal_api_cloud_resource_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_resource_v1_message_proto_rawDesc = "" + - "\n" + - ",temporal/api/cloud/resource/v1/message.proto\x12\x1etemporal.api.cloud.resource.v1*\xe3\x02\n" + - "\rResourceState\x12\x1e\n" + - "\x1aRESOURCE_STATE_UNSPECIFIED\x10\x00\x12\x1d\n" + - "\x19RESOURCE_STATE_ACTIVATING\x10\x01\x12$\n" + - " RESOURCE_STATE_ACTIVATION_FAILED\x10\x02\x12\x19\n" + - "\x15RESOURCE_STATE_ACTIVE\x10\x03\x12\x1b\n" + - "\x17RESOURCE_STATE_UPDATING\x10\x04\x12 \n" + - "\x1cRESOURCE_STATE_UPDATE_FAILED\x10\x05\x12\x1b\n" + - "\x17RESOURCE_STATE_DELETING\x10\x06\x12 \n" + - "\x1cRESOURCE_STATE_DELETE_FAILED\x10\a\x12\x1a\n" + - "\x16RESOURCE_STATE_DELETED\x10\b\x12\x1c\n" + - "\x18RESOURCE_STATE_SUSPENDED\x10\t\x12\x1a\n" + - "\x16RESOURCE_STATE_EXPIRED\x10\n" + - "B\xac\x01\n" + - "!io.temporal.api.cloud.resource.v1B\fMessageProtoP\x01Z-go.temporal.io/api/cloud/resource/v1;resource\xaa\x02 Temporalio.Api.Cloud.Resource.V1\xea\x02$Temporalio::Api::Cloud::Resource::V1b\x06proto3" - -var ( - file_temporal_api_cloud_resource_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_resource_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_resource_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_resource_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_resource_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_resource_v1_message_proto_rawDesc), len(file_temporal_api_cloud_resource_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_resource_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_resource_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_temporal_api_cloud_resource_v1_message_proto_goTypes = []any{ - (ResourceState)(0), // 0: temporal.api.cloud.resource.v1.ResourceState -} -var file_temporal_api_cloud_resource_v1_message_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_temporal_api_cloud_resource_v1_message_proto_init() } -func file_temporal_api_cloud_resource_v1_message_proto_init() { - if File_temporal_api_cloud_resource_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_resource_v1_message_proto_rawDesc), len(file_temporal_api_cloud_resource_v1_message_proto_rawDesc)), - NumEnums: 1, - NumMessages: 0, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_resource_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_resource_v1_message_proto_depIdxs, - EnumInfos: file_temporal_api_cloud_resource_v1_message_proto_enumTypes, - }.Build() - File_temporal_api_cloud_resource_v1_message_proto = out.File - file_temporal_api_cloud_resource_v1_message_proto_goTypes = nil - file_temporal_api_cloud_resource_v1_message_proto_depIdxs = nil -} diff --git a/cloud/sink/v1/message.go-helpers.pb.go b/cloud/sink/v1/message.go-helpers.pb.go deleted file mode 100644 index 645eba6b..00000000 --- a/cloud/sink/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,102 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package sink - -import ( - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type S3Spec to the protobuf v3 wire format -func (val *S3Spec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type S3Spec from the protobuf v3 wire format -func (val *S3Spec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *S3Spec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two S3Spec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *S3Spec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *S3Spec - switch t := that.(type) { - case *S3Spec: - that1 = t - case S3Spec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GCSSpec to the protobuf v3 wire format -func (val *GCSSpec) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GCSSpec from the protobuf v3 wire format -func (val *GCSSpec) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GCSSpec) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GCSSpec values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GCSSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GCSSpec - switch t := that.(type) { - case *GCSSpec: - that1 = t - case GCSSpec: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} diff --git a/cloud/sink/v1/message.pb.go b/cloud/sink/v1/message.pb.go deleted file mode 100644 index 8ba920c5..00000000 --- a/cloud/sink/v1/message.pb.go +++ /dev/null @@ -1,267 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/sink/v1/message.proto - -package sink - -import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -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) -) - -type S3Spec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The IAM role that Temporal Cloud assumes for writing records to the customer's S3 bucket. - RoleName string `protobuf:"bytes,1,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` - // The name of the destination S3 bucket where Temporal will send data. - BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` - // The region where the S3 bucket is located. - Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - // The AWS Key Management Service (KMS) ARN used for encryption. - KmsArn string `protobuf:"bytes,4,opt,name=kms_arn,json=kmsArn,proto3" json:"kms_arn,omitempty"` - // The AWS account ID associated with the S3 bucket and the assumed role. - AwsAccountId string `protobuf:"bytes,5,opt,name=aws_account_id,json=awsAccountId,proto3" json:"aws_account_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *S3Spec) Reset() { - *x = S3Spec{} - mi := &file_temporal_api_cloud_sink_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *S3Spec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*S3Spec) ProtoMessage() {} - -func (x *S3Spec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_sink_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use S3Spec.ProtoReflect.Descriptor instead. -func (*S3Spec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_sink_v1_message_proto_rawDescGZIP(), []int{0} -} - -func (x *S3Spec) GetRoleName() string { - if x != nil { - return x.RoleName - } - return "" -} - -func (x *S3Spec) GetBucketName() string { - if x != nil { - return x.BucketName - } - return "" -} - -func (x *S3Spec) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *S3Spec) GetKmsArn() string { - if x != nil { - return x.KmsArn - } - return "" -} - -func (x *S3Spec) GetAwsAccountId() string { - if x != nil { - return x.AwsAccountId - } - return "" -} - -type GCSSpec struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The customer service account ID that Temporal Cloud impersonates for writing records to the customer's GCS bucket. - SaId string `protobuf:"bytes,1,opt,name=sa_id,json=saId,proto3" json:"sa_id,omitempty"` - // The name of the destination GCS bucket where Temporal will send data. - BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` - // The GCP project ID associated with the GCS bucket and service account. - GcpProjectId string `protobuf:"bytes,3,opt,name=gcp_project_id,json=gcpProjectId,proto3" json:"gcp_project_id,omitempty"` - // The region of the gcs bucket - Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GCSSpec) Reset() { - *x = GCSSpec{} - mi := &file_temporal_api_cloud_sink_v1_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GCSSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GCSSpec) ProtoMessage() {} - -func (x *GCSSpec) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_sink_v1_message_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GCSSpec.ProtoReflect.Descriptor instead. -func (*GCSSpec) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_sink_v1_message_proto_rawDescGZIP(), []int{1} -} - -func (x *GCSSpec) GetSaId() string { - if x != nil { - return x.SaId - } - return "" -} - -func (x *GCSSpec) GetBucketName() string { - if x != nil { - return x.BucketName - } - return "" -} - -func (x *GCSSpec) GetGcpProjectId() string { - if x != nil { - return x.GcpProjectId - } - return "" -} - -func (x *GCSSpec) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -var File_temporal_api_cloud_sink_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_sink_v1_message_proto_rawDesc = "" + - "\n" + - "(temporal/api/cloud/sink/v1/message.proto\x12\x1atemporal.api.cloud.sink.v1\"\x9d\x01\n" + - "\x06S3Spec\x12\x1b\n" + - "\trole_name\x18\x01 \x01(\tR\broleName\x12\x1f\n" + - "\vbucket_name\x18\x02 \x01(\tR\n" + - "bucketName\x12\x16\n" + - "\x06region\x18\x03 \x01(\tR\x06region\x12\x17\n" + - "\akms_arn\x18\x04 \x01(\tR\x06kmsArn\x12$\n" + - "\x0eaws_account_id\x18\x05 \x01(\tR\fawsAccountId\"}\n" + - "\aGCSSpec\x12\x13\n" + - "\x05sa_id\x18\x01 \x01(\tR\x04saId\x12\x1f\n" + - "\vbucket_name\x18\x02 \x01(\tR\n" + - "bucketName\x12$\n" + - "\x0egcp_project_id\x18\x03 \x01(\tR\fgcpProjectId\x12\x16\n" + - "\x06region\x18\x04 \x01(\tR\x06regionB\x98\x01\n" + - "\x1dio.temporal.api.cloud.sink.v1B\fMessageProtoP\x01Z%go.temporal.io/api/cloud/sink/v1;sink\xaa\x02\x1cTemporalio.Api.Cloud.Sink.V1\xea\x02 Temporalio::Api::Cloud::Sink::V1b\x06proto3" - -var ( - file_temporal_api_cloud_sink_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_sink_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_sink_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_sink_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_sink_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_sink_v1_message_proto_rawDesc), len(file_temporal_api_cloud_sink_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_sink_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_sink_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_temporal_api_cloud_sink_v1_message_proto_goTypes = []any{ - (*S3Spec)(nil), // 0: temporal.api.cloud.sink.v1.S3Spec - (*GCSSpec)(nil), // 1: temporal.api.cloud.sink.v1.GCSSpec -} -var file_temporal_api_cloud_sink_v1_message_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_temporal_api_cloud_sink_v1_message_proto_init() } -func file_temporal_api_cloud_sink_v1_message_proto_init() { - if File_temporal_api_cloud_sink_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_sink_v1_message_proto_rawDesc), len(file_temporal_api_cloud_sink_v1_message_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_sink_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_sink_v1_message_proto_depIdxs, - MessageInfos: file_temporal_api_cloud_sink_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_sink_v1_message_proto = out.File - file_temporal_api_cloud_sink_v1_message_proto_goTypes = nil - file_temporal_api_cloud_sink_v1_message_proto_depIdxs = nil -} diff --git a/cloud/usage/v1/message.go-helpers.pb.go b/cloud/usage/v1/message.go-helpers.pb.go deleted file mode 100644 index 1087b798..00000000 --- a/cloud/usage/v1/message.go-helpers.pb.go +++ /dev/null @@ -1,235 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go-helpers. DO NOT EDIT. -package usage - -import ( - "fmt" - - "google.golang.org/protobuf/proto" -) - -// Marshal an object of type Summary to the protobuf v3 wire format -func (val *Summary) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Summary from the protobuf v3 wire format -func (val *Summary) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Summary) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Summary values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Summary) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Summary - switch t := that.(type) { - case *Summary: - that1 = t - case Summary: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type RecordGroup to the protobuf v3 wire format -func (val *RecordGroup) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type RecordGroup from the protobuf v3 wire format -func (val *RecordGroup) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *RecordGroup) Size() int { - return proto.Size(val) -} - -// Equal returns whether two RecordGroup values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *RecordGroup) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *RecordGroup - switch t := that.(type) { - case *RecordGroup: - that1 = t - case RecordGroup: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type GroupBy to the protobuf v3 wire format -func (val *GroupBy) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type GroupBy from the protobuf v3 wire format -func (val *GroupBy) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *GroupBy) Size() int { - return proto.Size(val) -} - -// Equal returns whether two GroupBy values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *GroupBy) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *GroupBy - switch t := that.(type) { - case *GroupBy: - that1 = t - case GroupBy: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -// Marshal an object of type Record to the protobuf v3 wire format -func (val *Record) Marshal() ([]byte, error) { - return proto.Marshal(val) -} - -// Unmarshal an object of type Record from the protobuf v3 wire format -func (val *Record) Unmarshal(buf []byte) error { - return proto.Unmarshal(buf, val) -} - -// Size returns the size of the object, in bytes, once serialized -func (val *Record) Size() int { - return proto.Size(val) -} - -// Equal returns whether two Record values are equivalent by recursively -// comparing the message's fields. -// For more information see the documentation for -// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal -func (this *Record) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - var that1 *Record - switch t := that.(type) { - case *Record: - that1 = t - case Record: - that1 = &t - default: - return false - } - - return proto.Equal(this, that1) -} - -var ( - RecordType_shorthandValue = map[string]int32{ - "Unspecified": 0, - "Actions": 1, - "ActiveStorage": 2, - "RetainedStorage": 3, - } -) - -// RecordTypeFromString parses a RecordType value from either the protojson -// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to RecordType -func RecordTypeFromString(s string) (RecordType, error) { - if v, ok := RecordType_value[s]; ok { - return RecordType(v), nil - } else if v, ok := RecordType_shorthandValue[s]; ok { - return RecordType(v), nil - } - return RecordType(0), fmt.Errorf("%s is not a valid RecordType", s) -} - -var ( - RecordUnit_shorthandValue = map[string]int32{ - "Unspecified": 0, - "Number": 1, - "ByteSeconds": 2, - } -) - -// RecordUnitFromString parses a RecordUnit value from either the protojson -// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to RecordUnit -func RecordUnitFromString(s string) (RecordUnit, error) { - if v, ok := RecordUnit_value[s]; ok { - return RecordUnit(v), nil - } else if v, ok := RecordUnit_shorthandValue[s]; ok { - return RecordUnit(v), nil - } - return RecordUnit(0), fmt.Errorf("%s is not a valid RecordUnit", s) -} - -var ( - GroupByKey_shorthandValue = map[string]int32{ - "Unspecified": 0, - "Namespace": 1, - } -) - -// GroupByKeyFromString parses a GroupByKey value from either the protojson -// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to GroupByKey -func GroupByKeyFromString(s string) (GroupByKey, error) { - if v, ok := GroupByKey_value[s]; ok { - return GroupByKey(v), nil - } else if v, ok := GroupByKey_shorthandValue[s]; ok { - return GroupByKey(v), nil - } - return GroupByKey(0), fmt.Errorf("%s is not a valid GroupByKey", s) -} diff --git a/cloud/usage/v1/message.pb.go b/cloud/usage/v1/message.pb.go deleted file mode 100644 index 692a9703..00000000 --- a/cloud/usage/v1/message.pb.go +++ /dev/null @@ -1,567 +0,0 @@ -// The MIT License -// -// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// plugins: -// protoc-gen-go -// protoc -// source: temporal/api/cloud/usage/v1/message.proto - -package usage - -import ( - reflect "reflect" - "strconv" - sync "sync" - unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -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) -) - -type RecordType int32 - -const ( - RECORD_TYPE_UNSPECIFIED RecordType = 0 - RECORD_TYPE_ACTIONS RecordType = 1 - RECORD_TYPE_ACTIVE_STORAGE RecordType = 2 - RECORD_TYPE_RETAINED_STORAGE RecordType = 3 -) - -// Enum value maps for RecordType. -var ( - RecordType_name = map[int32]string{ - 0: "RECORD_TYPE_UNSPECIFIED", - 1: "RECORD_TYPE_ACTIONS", - 2: "RECORD_TYPE_ACTIVE_STORAGE", - 3: "RECORD_TYPE_RETAINED_STORAGE", - } - RecordType_value = map[string]int32{ - "RECORD_TYPE_UNSPECIFIED": 0, - "RECORD_TYPE_ACTIONS": 1, - "RECORD_TYPE_ACTIVE_STORAGE": 2, - "RECORD_TYPE_RETAINED_STORAGE": 3, - } -) - -func (x RecordType) Enum() *RecordType { - p := new(RecordType) - *p = x - return p -} - -func (x RecordType) String() string { - switch x { - case RECORD_TYPE_UNSPECIFIED: - return "Unspecified" - case RECORD_TYPE_ACTIONS: - return "Actions" - case RECORD_TYPE_ACTIVE_STORAGE: - return "ActiveStorage" - case RECORD_TYPE_RETAINED_STORAGE: - return "RetainedStorage" - default: - return strconv.Itoa(int(x)) - } - -} - -func (RecordType) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_usage_v1_message_proto_enumTypes[0].Descriptor() -} - -func (RecordType) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_usage_v1_message_proto_enumTypes[0] -} - -func (x RecordType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RecordType.Descriptor instead. -func (RecordType) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP(), []int{0} -} - -type RecordUnit int32 - -const ( - RECORD_UNIT_UNSPECIFIED RecordUnit = 0 - RECORD_UNIT_NUMBER RecordUnit = 1 - RECORD_UNIT_BYTE_SECONDS RecordUnit = 2 -) - -// Enum value maps for RecordUnit. -var ( - RecordUnit_name = map[int32]string{ - 0: "RECORD_UNIT_UNSPECIFIED", - 1: "RECORD_UNIT_NUMBER", - 2: "RECORD_UNIT_BYTE_SECONDS", - } - RecordUnit_value = map[string]int32{ - "RECORD_UNIT_UNSPECIFIED": 0, - "RECORD_UNIT_NUMBER": 1, - "RECORD_UNIT_BYTE_SECONDS": 2, - } -) - -func (x RecordUnit) Enum() *RecordUnit { - p := new(RecordUnit) - *p = x - return p -} - -func (x RecordUnit) String() string { - switch x { - case RECORD_UNIT_UNSPECIFIED: - return "Unspecified" - case RECORD_UNIT_NUMBER: - return "Number" - case RECORD_UNIT_BYTE_SECONDS: - return "ByteSeconds" - default: - return strconv.Itoa(int(x)) - } - -} - -func (RecordUnit) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_usage_v1_message_proto_enumTypes[1].Descriptor() -} - -func (RecordUnit) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_usage_v1_message_proto_enumTypes[1] -} - -func (x RecordUnit) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RecordUnit.Descriptor instead. -func (RecordUnit) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP(), []int{1} -} - -type GroupByKey int32 - -const ( - GROUP_BY_KEY_UNSPECIFIED GroupByKey = 0 - GROUP_BY_KEY_NAMESPACE GroupByKey = 1 -) - -// Enum value maps for GroupByKey. -var ( - GroupByKey_name = map[int32]string{ - 0: "GROUP_BY_KEY_UNSPECIFIED", - 1: "GROUP_BY_KEY_NAMESPACE", - } - GroupByKey_value = map[string]int32{ - "GROUP_BY_KEY_UNSPECIFIED": 0, - "GROUP_BY_KEY_NAMESPACE": 1, - } -) - -func (x GroupByKey) Enum() *GroupByKey { - p := new(GroupByKey) - *p = x - return p -} - -func (x GroupByKey) String() string { - switch x { - case GROUP_BY_KEY_UNSPECIFIED: - return "Unspecified" - case GROUP_BY_KEY_NAMESPACE: - return "Namespace" - default: - return strconv.Itoa(int(x)) - } - -} - -func (GroupByKey) Descriptor() protoreflect.EnumDescriptor { - return file_temporal_api_cloud_usage_v1_message_proto_enumTypes[2].Descriptor() -} - -func (GroupByKey) Type() protoreflect.EnumType { - return &file_temporal_api_cloud_usage_v1_message_proto_enumTypes[2] -} - -func (x GroupByKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use GroupByKey.Descriptor instead. -func (GroupByKey) EnumDescriptor() ([]byte, []int) { - return file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP(), []int{2} -} - -type Summary struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Start of UTC day for now (inclusive) - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // End of UTC day for now (exclusive) - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Records grouped by namespace - RecordGroups []*RecordGroup `protobuf:"bytes,3,rep,name=record_groups,json=recordGroups,proto3" json:"record_groups,omitempty"` - // True if data for given time window is not fully available yet (e.g. delays) - // When true, records for the given time range could still be added/updated in the future (until false) - Incomplete bool `protobuf:"varint,4,opt,name=incomplete,proto3" json:"incomplete,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Summary) Reset() { - *x = Summary{} - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Summary) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Summary) ProtoMessage() {} - -func (x *Summary) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Summary.ProtoReflect.Descriptor instead. -func (*Summary) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP(), []int{0} -} - -func (x *Summary) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *Summary) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *Summary) GetRecordGroups() []*RecordGroup { - if x != nil { - return x.RecordGroups - } - return nil -} - -func (x *Summary) GetIncomplete() bool { - if x != nil { - return x.Incomplete - } - return false -} - -type RecordGroup struct { - state protoimpl.MessageState `protogen:"open.v1"` - // GroupBy keys and their values for this record group. Multiple fields are combined with logical AND. - GroupBys []*GroupBy `protobuf:"bytes,1,rep,name=group_bys,json=groupBys,proto3" json:"group_bys,omitempty"` - Records []*Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RecordGroup) Reset() { - *x = RecordGroup{} - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RecordGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RecordGroup) ProtoMessage() {} - -func (x *RecordGroup) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RecordGroup.ProtoReflect.Descriptor instead. -func (*RecordGroup) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP(), []int{1} -} - -func (x *RecordGroup) GetGroupBys() []*GroupBy { - if x != nil { - return x.GroupBys - } - return nil -} - -func (x *RecordGroup) GetRecords() []*Record { - if x != nil { - return x.Records - } - return nil -} - -type GroupBy struct { - state protoimpl.MessageState `protogen:"open.v1"` - Key GroupByKey `protobuf:"varint,1,opt,name=key,proto3,enum=temporal.api.cloud.usage.v1.GroupByKey" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GroupBy) Reset() { - *x = GroupBy{} - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GroupBy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupBy) ProtoMessage() {} - -func (x *GroupBy) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupBy.ProtoReflect.Descriptor instead. -func (*GroupBy) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP(), []int{2} -} - -func (x *GroupBy) GetKey() GroupByKey { - if x != nil { - return x.Key - } - return GROUP_BY_KEY_UNSPECIFIED -} - -func (x *GroupBy) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type Record struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type RecordType `protobuf:"varint,1,opt,name=type,proto3,enum=temporal.api.cloud.usage.v1.RecordType" json:"type,omitempty"` - Unit RecordUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=temporal.api.cloud.usage.v1.RecordUnit" json:"unit,omitempty"` - Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *Record) Reset() { - *x = Record{} - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Record) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Record) ProtoMessage() {} - -func (x *Record) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_cloud_usage_v1_message_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Record.ProtoReflect.Descriptor instead. -func (*Record) Descriptor() ([]byte, []int) { - return file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP(), []int{3} -} - -func (x *Record) GetType() RecordType { - if x != nil { - return x.Type - } - return RECORD_TYPE_UNSPECIFIED -} - -func (x *Record) GetUnit() RecordUnit { - if x != nil { - return x.Unit - } - return RECORD_UNIT_UNSPECIFIED -} - -func (x *Record) GetValue() float64 { - if x != nil { - return x.Value - } - return 0 -} - -var File_temporal_api_cloud_usage_v1_message_proto protoreflect.FileDescriptor - -const file_temporal_api_cloud_usage_v1_message_proto_rawDesc = "" + - "\n" + - ")temporal/api/cloud/usage/v1/message.proto\x12\x1btemporal.api.cloud.usage.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xea\x01\n" + - "\aSummary\x129\n" + - "\n" + - "start_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" + - "\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x12M\n" + - "\rrecord_groups\x18\x03 \x03(\v2(.temporal.api.cloud.usage.v1.RecordGroupR\frecordGroups\x12\x1e\n" + - "\n" + - "incomplete\x18\x04 \x01(\bR\n" + - "incomplete\"\x8f\x01\n" + - "\vRecordGroup\x12A\n" + - "\tgroup_bys\x18\x01 \x03(\v2$.temporal.api.cloud.usage.v1.GroupByR\bgroupBys\x12=\n" + - "\arecords\x18\x02 \x03(\v2#.temporal.api.cloud.usage.v1.RecordR\arecords\"Z\n" + - "\aGroupBy\x129\n" + - "\x03key\x18\x01 \x01(\x0e2'.temporal.api.cloud.usage.v1.GroupByKeyR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value\"\x98\x01\n" + - "\x06Record\x12;\n" + - "\x04type\x18\x01 \x01(\x0e2'.temporal.api.cloud.usage.v1.RecordTypeR\x04type\x12;\n" + - "\x04unit\x18\x02 \x01(\x0e2'.temporal.api.cloud.usage.v1.RecordUnitR\x04unit\x12\x14\n" + - "\x05value\x18\x03 \x01(\x01R\x05value*\x84\x01\n" + - "\n" + - "RecordType\x12\x1b\n" + - "\x17RECORD_TYPE_UNSPECIFIED\x10\x00\x12\x17\n" + - "\x13RECORD_TYPE_ACTIONS\x10\x01\x12\x1e\n" + - "\x1aRECORD_TYPE_ACTIVE_STORAGE\x10\x02\x12 \n" + - "\x1cRECORD_TYPE_RETAINED_STORAGE\x10\x03*_\n" + - "\n" + - "RecordUnit\x12\x1b\n" + - "\x17RECORD_UNIT_UNSPECIFIED\x10\x00\x12\x16\n" + - "\x12RECORD_UNIT_NUMBER\x10\x01\x12\x1c\n" + - "\x18RECORD_UNIT_BYTE_SECONDS\x10\x02*F\n" + - "\n" + - "GroupByKey\x12\x1c\n" + - "\x18GROUP_BY_KEY_UNSPECIFIED\x10\x00\x12\x1a\n" + - "\x16GROUP_BY_KEY_NAMESPACE\x10\x01B\x9d\x01\n" + - "\x1eio.temporal.api.cloud.usage.v1B\fMessageProtoP\x01Z'go.temporal.io/api/cloud/usage/v1;usage\xaa\x02\x1dTemporalio.Api.Cloud.Usage.V1\xea\x02!Temporalio::Api::Cloud::Usage::V1b\x06proto3" - -var ( - file_temporal_api_cloud_usage_v1_message_proto_rawDescOnce sync.Once - file_temporal_api_cloud_usage_v1_message_proto_rawDescData []byte -) - -func file_temporal_api_cloud_usage_v1_message_proto_rawDescGZIP() []byte { - file_temporal_api_cloud_usage_v1_message_proto_rawDescOnce.Do(func() { - file_temporal_api_cloud_usage_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_usage_v1_message_proto_rawDesc), len(file_temporal_api_cloud_usage_v1_message_proto_rawDesc))) - }) - return file_temporal_api_cloud_usage_v1_message_proto_rawDescData -} - -var file_temporal_api_cloud_usage_v1_message_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_temporal_api_cloud_usage_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_temporal_api_cloud_usage_v1_message_proto_goTypes = []any{ - (RecordType)(0), // 0: temporal.api.cloud.usage.v1.RecordType - (RecordUnit)(0), // 1: temporal.api.cloud.usage.v1.RecordUnit - (GroupByKey)(0), // 2: temporal.api.cloud.usage.v1.GroupByKey - (*Summary)(nil), // 3: temporal.api.cloud.usage.v1.Summary - (*RecordGroup)(nil), // 4: temporal.api.cloud.usage.v1.RecordGroup - (*GroupBy)(nil), // 5: temporal.api.cloud.usage.v1.GroupBy - (*Record)(nil), // 6: temporal.api.cloud.usage.v1.Record - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp -} -var file_temporal_api_cloud_usage_v1_message_proto_depIdxs = []int32{ - 7, // 0: temporal.api.cloud.usage.v1.Summary.start_time:type_name -> google.protobuf.Timestamp - 7, // 1: temporal.api.cloud.usage.v1.Summary.end_time:type_name -> google.protobuf.Timestamp - 4, // 2: temporal.api.cloud.usage.v1.Summary.record_groups:type_name -> temporal.api.cloud.usage.v1.RecordGroup - 5, // 3: temporal.api.cloud.usage.v1.RecordGroup.group_bys:type_name -> temporal.api.cloud.usage.v1.GroupBy - 6, // 4: temporal.api.cloud.usage.v1.RecordGroup.records:type_name -> temporal.api.cloud.usage.v1.Record - 2, // 5: temporal.api.cloud.usage.v1.GroupBy.key:type_name -> temporal.api.cloud.usage.v1.GroupByKey - 0, // 6: temporal.api.cloud.usage.v1.Record.type:type_name -> temporal.api.cloud.usage.v1.RecordType - 1, // 7: temporal.api.cloud.usage.v1.Record.unit:type_name -> temporal.api.cloud.usage.v1.RecordUnit - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] 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_temporal_api_cloud_usage_v1_message_proto_init() } -func file_temporal_api_cloud_usage_v1_message_proto_init() { - if File_temporal_api_cloud_usage_v1_message_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_cloud_usage_v1_message_proto_rawDesc), len(file_temporal_api_cloud_usage_v1_message_proto_rawDesc)), - NumEnums: 3, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_temporal_api_cloud_usage_v1_message_proto_goTypes, - DependencyIndexes: file_temporal_api_cloud_usage_v1_message_proto_depIdxs, - EnumInfos: file_temporal_api_cloud_usage_v1_message_proto_enumTypes, - MessageInfos: file_temporal_api_cloud_usage_v1_message_proto_msgTypes, - }.Build() - File_temporal_api_cloud_usage_v1_message_proto = out.File - file_temporal_api_cloud_usage_v1_message_proto_goTypes = nil - file_temporal_api_cloud_usage_v1_message_proto_depIdxs = nil -} diff --git a/cmd/proxygenerator/interceptor.go b/cmd/proxygenerator/interceptor.go index a3ce603d..891e5d6d 100644 --- a/cmd/proxygenerator/interceptor.go +++ b/cmd/proxygenerator/interceptor.go @@ -611,16 +611,10 @@ func checkMessage(md protoreflect.MessageDescriptor, func gatherMessagesContainingTargets( protoFiles *protoregistry.Files, targetMessages []string, - excludedPathPrefixes []string, ) ([]protoreflect.MessageDescriptor, error) { messagesWithPayload := make([]protoreflect.MessageDescriptor, 0) memo := make(map[protoreflect.FullName]bool) protoFiles.RangeFiles(func(fd protoreflect.FileDescriptor) bool { - for _, prefix := range excludedPathPrefixes { - if strings.HasPrefix(fd.Path(), prefix) { - return true - } - } msgs := fd.Messages() for i := 0; i < msgs.Len(); i++ { checkMessage(msgs.Get(i), targetMessages, memo, &messagesWithPayload) @@ -837,21 +831,17 @@ func generateInterceptor(cfg config) error { return fmt.Errorf("loading descriptor set: %w", err) } - // Cloud protos currently not included in interceptor - excludedEntryPoints := []string{ - "temporal/api/cloud", - } payloadMessageNames := []string{ "temporal.api.common.v1.Payload", "temporal.api.common.v1.Payloads", "google.protobuf.Any", } - allPayloadContainingMessages, err := gatherMessagesContainingTargets(protoFiles, payloadMessageNames, excludedEntryPoints) + allPayloadContainingMessages, err := gatherMessagesContainingTargets(protoFiles, payloadMessageNames) failureMessageNames := []string{ "temporal.api.failure.v1.Failure", "google.protobuf.Any", } - allFailureContainingMessages, err := gatherMessagesContainingTargets(protoFiles, failureMessageNames, excludedEntryPoints) + allFailureContainingMessages, err := gatherMessagesContainingTargets(protoFiles, failureMessageNames) payloadRecords, err := gatherMatchesToTypeRecords(allPayloadContainingMessages, payloadTypes, payloadDirectMatchType) if err != nil { diff --git a/proto/api-cloud b/proto/api-cloud deleted file mode 160000 index 343ca7fb..00000000 --- a/proto/api-cloud +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 343ca7fbeaa3173ea389662e880626528264e97e