From 08fe5f76045f0a237bc23f1f0d54639e7fd150c3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 24 Nov 2022 06:20:41 +0000 Subject: [PATCH] feat: added federation API feat: added EncryptionConfig field feat: added NetworkConfig field feat: added DatabaseType field feat: added TelemetryConfiguration field PiperOrigin-RevId: 490636886 Source-Link: https://github.com/googleapis/googleapis/commit/791374cc57cabe9c78c7c87d29f85ac6a2b5a370 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7a72bd9cca07fbe042ac023ffb5fd594142d795d Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuTWV0YXN0b3JlLlYxQWxwaGEvLk93bEJvdC55YW1sIiwiaCI6IjdhNzJiZDljY2EwN2ZiZTA0MmFjMDIzZmZiNWZkNTk0MTQyZDc5NWQifQ== --- ...onClient.CreateFederationAsyncSnippet.g.cs | 63 + ...teFederationRequestObjectAsyncSnippet.g.cs | 68 + ....CreateFederationRequestObjectSnippet.g.cs | 67 + ...teFederationResourceNamesAsyncSnippet.g.cs | 64 + ....CreateFederationResourceNamesSnippet.g.cs | 63 + ...erationClient.CreateFederationSnippet.g.cs | 62 + ...onClient.DeleteFederationAsyncSnippet.g.cs | 62 + ...teFederationRequestObjectAsyncSnippet.g.cs | 66 + ....DeleteFederationRequestObjectSnippet.g.cs | 65 + ...teFederationResourceNamesAsyncSnippet.g.cs | 62 + ....DeleteFederationResourceNamesSnippet.g.cs | 61 + ...erationClient.DeleteFederationSnippet.g.cs | 61 + ...ationClient.GetFederationAsyncSnippet.g.cs | 44 + ...etFederationRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetFederationRequestObjectSnippet.g.cs | 46 + ...etFederationResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetFederationResourceNamesSnippet.g.cs | 43 + ...FederationClient.GetFederationSnippet.g.cs | 43 + ...ionClient.ListFederationsAsyncSnippet.g.cs | 79 + ...tFederationsRequestObjectAsyncSnippet.g.cs | 85 + ...t.ListFederationsRequestObjectSnippet.g.cs | 83 + ...tFederationsResourceNamesAsyncSnippet.g.cs | 80 + ...t.ListFederationsResourceNamesSnippet.g.cs | 78 + ...derationClient.ListFederationsSnippet.g.cs | 77 + ...onClient.UpdateFederationAsyncSnippet.g.cs | 63 + ...teFederationRequestObjectAsyncSnippet.g.cs | 67 + ....UpdateFederationRequestObjectSnippet.g.cs | 66 + ...erationClient.UpdateFederationSnippet.g.cs | 62 + ...tadata_google.cloud.metastore.v1alpha.json | 1060 +++++++ ...procMetastoreFederationClientSnippets.g.cs | 909 ++++++ .../DataprocMetastoreClient.g.cs | 350 ++- .../DataprocMetastoreFederationClient.g.cs | 1394 +++++++++ .../Google.Cloud.Metastore.V1Alpha.csproj | 2 + .../Metastore.g.cs | 1167 ++++--- .../MetastoreFederation.g.cs | 2726 +++++++++++++++++ .../MetastoreFederationGrpc.g.cs | 511 +++ .../MetastoreFederationResourceNames.g.cs | 323 ++ .../PackageApiMetadata.g.cs | 32 + .../ServiceCollectionExtensions.g.cs | 20 + .../gapic_metadata.json | 39 + apis/apis.json | 2 + 41 files changed, 9729 insertions(+), 577 deletions(-) create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationSnippet.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.Snippets/DataprocMetastoreFederationClientSnippets.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreFederationClient.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederation.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationGrpc.g.cs create mode 100644 apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationResourceNames.g.cs diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..9832a5e32cbc --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async_flattened] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for CreateFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateFederationAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..758f57d55e83 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for CreateFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateFederationRequestObjectAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + CreateFederationRequest request = new CreateFederationRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + FederationId = "", + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = await dataprocMetastoreFederationClient.CreateFederationAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..156c323ffddf --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for CreateFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateFederationRequestObject() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + CreateFederationRequest request = new CreateFederationRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + FederationId = "", + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = dataprocMetastoreFederationClient.CreateFederation(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..a7f12716f2ba --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for CreateFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateFederationResourceNamesAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..0e12af4856de --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for CreateFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateFederationResourceNames() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = dataprocMetastoreFederationClient.CreateFederation(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationSnippet.g.cs new file mode 100644 index 000000000000..ab6b824bd778 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for CreateFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateFederation() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = dataprocMetastoreFederationClient.CreateFederation(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..46a5ee1ab8b9 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for DeleteFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteFederationAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Operation response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..ea9272f45eec --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for DeleteFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteFederationRequestObjectAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + DeleteFederationRequest request = new DeleteFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + RequestId = "", + }; + // Make the request + Operation response = await dataprocMetastoreFederationClient.DeleteFederationAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..faf9aab43e66 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for DeleteFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteFederationRequestObject() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + DeleteFederationRequest request = new DeleteFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + RequestId = "", + }; + // Make the request + Operation response = dataprocMetastoreFederationClient.DeleteFederation(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..401967c8b327 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened_resourceNames] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for DeleteFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteFederationResourceNamesAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Operation response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..aa89a1382d08 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened_resourceNames] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for DeleteFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteFederationResourceNames() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Operation response = dataprocMetastoreFederationClient.DeleteFederation(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationSnippet.g.cs new file mode 100644 index 000000000000..6624f2347331 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for DeleteFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteFederation() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Operation response = dataprocMetastoreFederationClient.DeleteFederation(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..dee0e55fed5a --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async_flattened] + using Google.Cloud.Metastore.V1Alpha; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for GetFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetFederationAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name); + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..e54d3558c8e5 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async] + using Google.Cloud.Metastore.V1Alpha; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for GetFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetFederationRequestObjectAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + GetFederationRequest request = new GetFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + }; + // Make the request + Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(request); + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..aed4fff8b6b7 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync] + using Google.Cloud.Metastore.V1Alpha; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for GetFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetFederationRequestObject() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + GetFederationRequest request = new GetFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + }; + // Make the request + Federation response = dataprocMetastoreFederationClient.GetFederation(request); + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..946ab28ad134 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async_flattened_resourceNames] + using Google.Cloud.Metastore.V1Alpha; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for GetFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetFederationResourceNamesAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name); + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..25fa2d1a249b --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync_flattened_resourceNames] + using Google.Cloud.Metastore.V1Alpha; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for GetFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetFederationResourceNames() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Federation response = dataprocMetastoreFederationClient.GetFederation(name); + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationSnippet.g.cs new file mode 100644 index 000000000000..a145e1b85aac --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync_flattened] + using Google.Cloud.Metastore.V1Alpha; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for GetFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetFederation() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Federation response = dataprocMetastoreFederationClient.GetFederation(name); + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsAsyncSnippet.g.cs new file mode 100644 index 000000000000..7b9df3cba54a --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Metastore.V1Alpha; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for ListFederationsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListFederationsAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = dataprocMetastoreFederationClient.ListFederationsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Federation item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..0d63bb3332a8 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,85 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for ListFederationsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListFederationsRequestObjectAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + ListFederationsRequest request = new ListFederationsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = dataprocMetastoreFederationClient.ListFederationsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Federation item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..8ad137f092a3 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using System; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for ListFederations + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListFederationsRequestObject() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + ListFederationsRequest request = new ListFederationsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = dataprocMetastoreFederationClient.ListFederations(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Federation item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListFederationsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..3e7734e722f4 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for ListFederationsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListFederationsResourceNamesAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = dataprocMetastoreFederationClient.ListFederationsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Federation item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..088aa8c3c0ce --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Alpha; + using System; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for ListFederations + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListFederationsResourceNames() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = dataprocMetastoreFederationClient.ListFederations(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Federation item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListFederationsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsSnippet.g.cs new file mode 100644 index 000000000000..370c06290e90 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Metastore.V1Alpha; + using System; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for ListFederations + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListFederations() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = dataprocMetastoreFederationClient.ListFederations(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Federation item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListFederationsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..fe88fc8a02be --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_async_flattened] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for UpdateFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateFederationAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + Federation federation = new Federation(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await dataprocMetastoreFederationClient.UpdateFederationAsync(federation, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..2c9932021be8 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_async] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for UpdateFederationAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateFederationRequestObjectAsync() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + UpdateFederationRequest request = new UpdateFederationRequest + { + UpdateMask = new FieldMask(), + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = await dataprocMetastoreFederationClient.UpdateFederationAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..d58e27f529bc --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for UpdateFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateFederationRequestObject() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + UpdateFederationRequest request = new UpdateFederationRequest + { + UpdateMask = new FieldMask(), + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = dataprocMetastoreFederationClient.UpdateFederation(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceUpdateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationSnippet.g.cs new file mode 100644 index 000000000000..a1c81cd5719f --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + // [START metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync_flattened] + using Google.Cloud.Metastore.V1Alpha; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for UpdateFederation + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateFederation() + { + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + Federation federation = new Federation(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = dataprocMetastoreFederationClient.UpdateFederation(federation, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceUpdateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + } + } + // [END metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1alpha.json b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1alpha.json index fb7747797a40..eafc56f9c44e 100644 --- a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1alpha.json +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1alpha.json @@ -3114,6 +3114,1066 @@ "type": "SHORT" } ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync", + "title": "ListFederationsRequestObject", + "description": "Snippet for ListFederations", + "file": "DataprocMetastoreFederationClient.ListFederationsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFederations", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.ListFederations", + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async", + "title": "ListFederationsRequestObjectAsync", + "description": "Snippet for ListFederationsAsync", + "file": "DataprocMetastoreFederationClient.ListFederationsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFederationsAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.ListFederationsAsync", + "async": true, + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 39, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync_flattened", + "title": "ListFederations", + "description": "Snippet for ListFederations", + "file": "DataprocMetastoreFederationClient.ListFederationsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFederations", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.ListFederations", + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async_flattened", + "title": "ListFederationsAsync", + "description": "Snippet for ListFederationsAsync", + "file": "DataprocMetastoreFederationClient.ListFederationsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFederationsAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.ListFederationsAsync", + "async": true, + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync_flattened_resourceNames", + "title": "ListFederationsResourceNames", + "description": "Snippet for ListFederations", + "file": "DataprocMetastoreFederationClient.ListFederationsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFederations", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.ListFederations", + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async_flattened_resourceNames", + "title": "ListFederationsResourceNamesAsync", + "description": "Snippet for ListFederationsAsync", + "file": "DataprocMetastoreFederationClient.ListFederationsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFederationsAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.ListFederationsAsync", + "async": true, + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync", + "title": "GetFederationRequestObject", + "description": "Snippet for GetFederation", + "file": "DataprocMetastoreFederationClient.GetFederationRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.GetFederation", + "resultType": "Google.Cloud.Metastore.V1Alpha.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async", + "title": "GetFederationRequestObjectAsync", + "description": "Snippet for GetFederationAsync", + "file": "DataprocMetastoreFederationClient.GetFederationRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.GetFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync_flattened", + "title": "GetFederation", + "description": "Snippet for GetFederation", + "file": "DataprocMetastoreFederationClient.GetFederationSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.GetFederation", + "resultType": "Google.Cloud.Metastore.V1Alpha.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async_flattened", + "title": "GetFederationAsync", + "description": "Snippet for GetFederationAsync", + "file": "DataprocMetastoreFederationClient.GetFederationAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.GetFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync_flattened_resourceNames", + "title": "GetFederationResourceNames", + "description": "Snippet for GetFederation", + "file": "DataprocMetastoreFederationClient.GetFederationResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.GetFederation", + "resultType": "Google.Cloud.Metastore.V1Alpha.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async_flattened_resourceNames", + "title": "GetFederationResourceNamesAsync", + "description": "Snippet for GetFederationAsync", + "file": "DataprocMetastoreFederationClient.GetFederationResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.GetFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync", + "title": "CreateFederationRequestObject", + "description": "Snippet for CreateFederation", + "file": "DataprocMetastoreFederationClient.CreateFederationRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.CreateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async", + "title": "CreateFederationRequestObjectAsync", + "description": "Snippet for CreateFederationAsync", + "file": "DataprocMetastoreFederationClient.CreateFederationRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.CreateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened", + "title": "CreateFederation", + "description": "Snippet for CreateFederation", + "file": "DataprocMetastoreFederationClient.CreateFederationSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.CreateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async_flattened", + "title": "CreateFederationAsync", + "description": "Snippet for CreateFederationAsync", + "file": "DataprocMetastoreFederationClient.CreateFederationAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.CreateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened_resourceNames", + "title": "CreateFederationResourceNames", + "description": "Snippet for CreateFederation", + "file": "DataprocMetastoreFederationClient.CreateFederationResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.CreateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async_flattened_resourceNames", + "title": "CreateFederationResourceNamesAsync", + "description": "Snippet for CreateFederationAsync", + "file": "DataprocMetastoreFederationClient.CreateFederationResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.CreateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 37, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync", + "title": "UpdateFederationRequestObject", + "description": "Snippet for UpdateFederation", + "file": "DataprocMetastoreFederationClient.UpdateFederationRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.UpdateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_async", + "title": "UpdateFederationRequestObjectAsync", + "description": "Snippet for UpdateFederationAsync", + "file": "DataprocMetastoreFederationClient.UpdateFederationRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.UpdateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync_flattened", + "title": "UpdateFederation", + "description": "Snippet for UpdateFederation", + "file": "DataprocMetastoreFederationClient.UpdateFederationSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.UpdateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_async_flattened", + "title": "UpdateFederationAsync", + "description": "Snippet for UpdateFederationAsync", + "file": "DataprocMetastoreFederationClient.UpdateFederationAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.UpdateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync", + "title": "DeleteFederationRequestObject", + "description": "Snippet for DeleteFederation", + "file": "DataprocMetastoreFederationClient.DeleteFederationRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.DeleteFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async", + "title": "DeleteFederationRequestObjectAsync", + "description": "Snippet for DeleteFederationAsync", + "file": "DataprocMetastoreFederationClient.DeleteFederationRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.DeleteFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened", + "title": "DeleteFederation", + "description": "Snippet for DeleteFederation", + "file": "DataprocMetastoreFederationClient.DeleteFederationSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.DeleteFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened", + "title": "DeleteFederationAsync", + "description": "Snippet for DeleteFederationAsync", + "file": "DataprocMetastoreFederationClient.DeleteFederationAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.DeleteFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened_resourceNames", + "title": "DeleteFederationResourceNames", + "description": "Snippet for DeleteFederation", + "file": "DataprocMetastoreFederationClient.DeleteFederationResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFederation", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.DeleteFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened_resourceNames", + "title": "DeleteFederationResourceNamesAsync", + "description": "Snippet for DeleteFederationAsync", + "file": "DataprocMetastoreFederationClient.DeleteFederationResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFederationAsync", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient.DeleteFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] } ] } diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.Snippets/DataprocMetastoreFederationClientSnippets.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.Snippets/DataprocMetastoreFederationClientSnippets.g.cs new file mode 100644 index 000000000000..e56ae632c9b6 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.Snippets/DataprocMetastoreFederationClientSnippets.g.cs @@ -0,0 +1,909 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Cloud.Metastore.V1Alpha.Snippets +{ + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedDataprocMetastoreFederationClientSnippets + { + /// Snippet for ListFederations + public void ListFederationsRequestObject() + { + // Snippet: ListFederations(ListFederationsRequest, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + ListFederationsRequest request = new ListFederationsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = dataprocMetastoreFederationClient.ListFederations(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Federation item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListFederationsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListFederationsAsync + public async Task ListFederationsRequestObjectAsync() + { + // Snippet: ListFederationsAsync(ListFederationsRequest, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + ListFederationsRequest request = new ListFederationsRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = dataprocMetastoreFederationClient.ListFederationsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Federation item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListFederations + public void ListFederations() + { + // Snippet: ListFederations(string, string, int?, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = dataprocMetastoreFederationClient.ListFederations(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Federation item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListFederationsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListFederationsAsync + public async Task ListFederationsAsync() + { + // Snippet: ListFederationsAsync(string, string, int?, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = dataprocMetastoreFederationClient.ListFederationsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Federation item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListFederations + public void ListFederationsResourceNames() + { + // Snippet: ListFederations(LocationName, string, int?, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = dataprocMetastoreFederationClient.ListFederations(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Federation item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListFederationsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListFederationsAsync + public async Task ListFederationsResourceNamesAsync() + { + // Snippet: ListFederationsAsync(LocationName, string, int?, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = dataprocMetastoreFederationClient.ListFederationsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Federation item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Federation item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Federation item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for GetFederation + public void GetFederationRequestObject() + { + // Snippet: GetFederation(GetFederationRequest, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + GetFederationRequest request = new GetFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + }; + // Make the request + Federation response = dataprocMetastoreFederationClient.GetFederation(request); + // End snippet + } + + /// Snippet for GetFederationAsync + public async Task GetFederationRequestObjectAsync() + { + // Snippet: GetFederationAsync(GetFederationRequest, CallSettings) + // Additional: GetFederationAsync(GetFederationRequest, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + GetFederationRequest request = new GetFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + }; + // Make the request + Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(request); + // End snippet + } + + /// Snippet for GetFederation + public void GetFederation() + { + // Snippet: GetFederation(string, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Federation response = dataprocMetastoreFederationClient.GetFederation(name); + // End snippet + } + + /// Snippet for GetFederationAsync + public async Task GetFederationAsync() + { + // Snippet: GetFederationAsync(string, CallSettings) + // Additional: GetFederationAsync(string, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name); + // End snippet + } + + /// Snippet for GetFederation + public void GetFederationResourceNames() + { + // Snippet: GetFederation(FederationName, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Federation response = dataprocMetastoreFederationClient.GetFederation(name); + // End snippet + } + + /// Snippet for GetFederationAsync + public async Task GetFederationResourceNamesAsync() + { + // Snippet: GetFederationAsync(FederationName, CallSettings) + // Additional: GetFederationAsync(FederationName, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name); + // End snippet + } + + /// Snippet for CreateFederation + public void CreateFederationRequestObject() + { + // Snippet: CreateFederation(CreateFederationRequest, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + CreateFederationRequest request = new CreateFederationRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + FederationId = "", + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = dataprocMetastoreFederationClient.CreateFederation(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateFederationAsync + public async Task CreateFederationRequestObjectAsync() + { + // Snippet: CreateFederationAsync(CreateFederationRequest, CallSettings) + // Additional: CreateFederationAsync(CreateFederationRequest, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + CreateFederationRequest request = new CreateFederationRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + FederationId = "", + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = await dataprocMetastoreFederationClient.CreateFederationAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateFederation + public void CreateFederation() + { + // Snippet: CreateFederation(string, Federation, string, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = dataprocMetastoreFederationClient.CreateFederation(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateFederationAsync + public async Task CreateFederationAsync() + { + // Snippet: CreateFederationAsync(string, Federation, string, CallSettings) + // Additional: CreateFederationAsync(string, Federation, string, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateFederation + public void CreateFederationResourceNames() + { + // Snippet: CreateFederation(LocationName, Federation, string, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = dataprocMetastoreFederationClient.CreateFederation(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateFederationAsync + public async Task CreateFederationResourceNamesAsync() + { + // Snippet: CreateFederationAsync(LocationName, Federation, string, CallSettings) + // Additional: CreateFederationAsync(LocationName, Federation, string, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + Federation federation = new Federation(); + string federationId = ""; + // Make the request + Operation response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateFederation + public void UpdateFederationRequestObject() + { + // Snippet: UpdateFederation(UpdateFederationRequest, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + UpdateFederationRequest request = new UpdateFederationRequest + { + UpdateMask = new FieldMask(), + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = dataprocMetastoreFederationClient.UpdateFederation(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceUpdateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateFederationAsync + public async Task UpdateFederationRequestObjectAsync() + { + // Snippet: UpdateFederationAsync(UpdateFederationRequest, CallSettings) + // Additional: UpdateFederationAsync(UpdateFederationRequest, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + UpdateFederationRequest request = new UpdateFederationRequest + { + UpdateMask = new FieldMask(), + Federation = new Federation(), + RequestId = "", + }; + // Make the request + Operation response = await dataprocMetastoreFederationClient.UpdateFederationAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateFederation + public void UpdateFederation() + { + // Snippet: UpdateFederation(Federation, FieldMask, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + Federation federation = new Federation(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = dataprocMetastoreFederationClient.UpdateFederation(federation, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceUpdateFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateFederationAsync + public async Task UpdateFederationAsync() + { + // Snippet: UpdateFederationAsync(Federation, FieldMask, CallSettings) + // Additional: UpdateFederationAsync(Federation, FieldMask, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + Federation federation = new Federation(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await dataprocMetastoreFederationClient.UpdateFederationAsync(federation, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Federation result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Federation retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteFederation + public void DeleteFederationRequestObject() + { + // Snippet: DeleteFederation(DeleteFederationRequest, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + DeleteFederationRequest request = new DeleteFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + RequestId = "", + }; + // Make the request + Operation response = dataprocMetastoreFederationClient.DeleteFederation(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteFederationAsync + public async Task DeleteFederationRequestObjectAsync() + { + // Snippet: DeleteFederationAsync(DeleteFederationRequest, CallSettings) + // Additional: DeleteFederationAsync(DeleteFederationRequest, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + DeleteFederationRequest request = new DeleteFederationRequest + { + FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"), + RequestId = "", + }; + // Make the request + Operation response = await dataprocMetastoreFederationClient.DeleteFederationAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteFederation + public void DeleteFederation() + { + // Snippet: DeleteFederation(string, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Operation response = dataprocMetastoreFederationClient.DeleteFederation(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteFederationAsync + public async Task DeleteFederationAsync() + { + // Snippet: DeleteFederationAsync(string, CallSettings) + // Additional: DeleteFederationAsync(string, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]"; + // Make the request + Operation response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteFederation + public void DeleteFederationResourceNames() + { + // Snippet: DeleteFederation(FederationName, CallSettings) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Operation response = dataprocMetastoreFederationClient.DeleteFederation(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteFederationAsync + public async Task DeleteFederationResourceNamesAsync() + { + // Snippet: DeleteFederationAsync(FederationName, CallSettings) + // Additional: DeleteFederationAsync(FederationName, CancellationToken) + // Create client + DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync(); + // Initialize request argument(s) + FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"); + // Make the request + Operation response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Empty result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Empty retrievedResult = retrievedResponse.Result; + } + // End snippet + } + } +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreClient.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreClient.g.cs index 97f470bf7971..3e9aeccad752 100644 --- a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreClient.g.cs +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreClient.g.cs @@ -18,6 +18,8 @@ using gax = Google.Api.Gax; using gaxgrpc = Google.Api.Gax.Grpc; using gagr = Google.Api.Gax.ResourceNames; +using gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; using lro = Google.LongRunning; using proto = Google.Protobuf; using wkt = Google.Protobuf.WellKnownTypes; @@ -72,6 +74,8 @@ private DataprocMetastoreSettings(DataprocMetastoreSettings existing) : base(exi CreateBackupOperationsSettings = existing.CreateBackupOperationsSettings.Clone(); DeleteBackupSettings = existing.DeleteBackupSettings; DeleteBackupOperationsSettings = existing.DeleteBackupOperationsSettings.Clone(); + LocationsSettings = existing.LocationsSettings; + IAMPolicySettings = existing.IAMPolicySettings; OnCopy(existing); } @@ -458,6 +462,16 @@ private DataprocMetastoreSettings(DataprocMetastoreSettings existing) : base(exi DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), }; + /// + /// The settings to use for the associated with the client. + /// + public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault(); + + /// + /// The settings to use for the associated with the client. + /// + public gciv::IAMPolicySettings IAMPolicySettings { get; set; } = gciv::IAMPolicySettings.GetDefault(); + /// Creates a deep clone of this object, with all the same property values. /// A deep clone of this object. public DataprocMetastoreSettings Clone() => new DataprocMetastoreSettings(this); @@ -615,6 +629,12 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// The underlying gRPC DataprocMetastore client public virtual DataprocMetastore.DataprocMetastoreClient GrpcClient => throw new sys::NotImplementedException(); + /// The associated with this client. + public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gciv::IAMPolicyClient IAMPolicyClient => throw new sys::NotImplementedException(); + /// /// Lists services in a project and location. /// @@ -637,8 +657,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists services in a project and location. /// /// - /// Required. The relative resource name of the location of metastore services to - /// list, in the following form: + /// Required. The relative resource name of the location of metastore services + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -664,8 +684,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists services in a project and location. /// /// - /// Required. The relative resource name of the location of metastore services to - /// list, in the following form: + /// Required. The relative resource name of the location of metastore services + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -691,8 +711,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists services in a project and location. /// /// - /// Required. The relative resource name of the location of metastore services to - /// list, in the following form: + /// Required. The relative resource name of the location of metastore services + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -718,8 +738,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists services in a project and location. /// /// - /// Required. The relative resource name of the location of metastore services to - /// list, in the following form: + /// Required. The relative resource name of the location of metastore services + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -772,8 +792,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets the details of a single service. /// /// - /// Required. The relative resource name of the metastore service to retrieve, in the - /// following form: + /// Required. The relative resource name of the metastore service to retrieve, + /// in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -789,8 +809,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets the details of a single service. /// /// - /// Required. The relative resource name of the metastore service to retrieve, in the - /// following form: + /// Required. The relative resource name of the metastore service to retrieve, + /// in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -806,8 +826,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets the details of a single service. /// /// - /// Required. The relative resource name of the metastore service to retrieve, in the - /// following form: + /// Required. The relative resource name of the metastore service to retrieve, + /// in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -820,8 +840,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets the details of a single service. /// /// - /// Required. The relative resource name of the metastore service to retrieve, in the - /// following form: + /// Required. The relative resource name of the metastore service to retrieve, + /// in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -837,8 +857,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets the details of a single service. /// /// - /// Required. The relative resource name of the metastore service to retrieve, in the - /// following form: + /// Required. The relative resource name of the metastore service to retrieve, + /// in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -854,8 +874,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets the details of a single service. /// /// - /// Required. The relative resource name of the metastore service to retrieve, in the - /// following form: + /// Required. The relative resource name of the metastore service to retrieve, + /// in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -921,8 +941,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a metastore service in a project and location. /// /// - /// Required. The relative resource name of the location in which to create a metastore - /// service, in the following form: + /// Required. The relative resource name of the location in which to create a + /// metastore service, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -953,8 +973,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a metastore service in a project and location. /// /// - /// Required. The relative resource name of the location in which to create a metastore - /// service, in the following form: + /// Required. The relative resource name of the location in which to create a + /// metastore service, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -985,8 +1005,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a metastore service in a project and location. /// /// - /// Required. The relative resource name of the location in which to create a metastore - /// service, in the following form: + /// Required. The relative resource name of the location in which to create a + /// metastore service, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -1012,8 +1032,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a metastore service in a project and location. /// /// - /// Required. The relative resource name of the location in which to create a metastore - /// service, in the following form: + /// Required. The relative resource name of the location in which to create a + /// metastore service, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -1044,8 +1064,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a metastore service in a project and location. /// /// - /// Required. The relative resource name of the location in which to create a metastore - /// service, in the following form: + /// Required. The relative resource name of the location in which to create a + /// metastore service, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -1076,8 +1096,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a metastore service in a project and location. /// /// - /// Required. The relative resource name of the location in which to create a metastore - /// service, in the following form: + /// Required. The relative resource name of the location in which to create a + /// metastore service, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -1280,8 +1300,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Deletes a single service. /// /// - /// Required. The relative resource name of the metastore service to delete, in the - /// following form: + /// Required. The relative resource name of the metastore service to delete, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -1297,8 +1317,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Deletes a single service. /// /// - /// Required. The relative resource name of the metastore service to delete, in the - /// following form: + /// Required. The relative resource name of the metastore service to delete, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -1314,8 +1334,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Deletes a single service. /// /// - /// Required. The relative resource name of the metastore service to delete, in the - /// following form: + /// Required. The relative resource name of the metastore service to delete, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -1328,8 +1348,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Deletes a single service. /// /// - /// Required. The relative resource name of the metastore service to delete, in the - /// following form: + /// Required. The relative resource name of the metastore service to delete, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -1345,8 +1365,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Deletes a single service. /// /// - /// Required. The relative resource name of the metastore service to delete, in the - /// following form: + /// Required. The relative resource name of the metastore service to delete, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -1362,8 +1382,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Deletes a single service. /// /// - /// Required. The relative resource name of the metastore service to delete, in the - /// following form: + /// Required. The relative resource name of the metastore service to delete, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -1394,8 +1414,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists imports in a service. /// /// - /// Required. The relative resource name of the service whose metadata imports to - /// list, in the following form: + /// Required. The relative resource name of the service whose metadata imports + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. /// @@ -1421,8 +1441,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists imports in a service. /// /// - /// Required. The relative resource name of the service whose metadata imports to - /// list, in the following form: + /// Required. The relative resource name of the service whose metadata imports + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. /// @@ -1448,8 +1468,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists imports in a service. /// /// - /// Required. The relative resource name of the service whose metadata imports to - /// list, in the following form: + /// Required. The relative resource name of the service whose metadata imports + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. /// @@ -1475,8 +1495,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Lists imports in a service. /// /// - /// Required. The relative resource name of the service whose metadata imports to - /// list, in the following form: + /// Required. The relative resource name of the service whose metadata imports + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. /// @@ -1529,8 +1549,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets details of a single import. /// /// - /// Required. The relative resource name of the metadata import to retrieve, in the - /// following form: + /// Required. The relative resource name of the metadata import to retrieve, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. /// @@ -1546,8 +1566,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets details of a single import. /// /// - /// Required. The relative resource name of the metadata import to retrieve, in the - /// following form: + /// Required. The relative resource name of the metadata import to retrieve, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. /// @@ -1563,8 +1583,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets details of a single import. /// /// - /// Required. The relative resource name of the metadata import to retrieve, in the - /// following form: + /// Required. The relative resource name of the metadata import to retrieve, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. /// @@ -1577,8 +1597,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets details of a single import. /// /// - /// Required. The relative resource name of the metadata import to retrieve, in the - /// following form: + /// Required. The relative resource name of the metadata import to retrieve, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. /// @@ -1594,8 +1614,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets details of a single import. /// /// - /// Required. The relative resource name of the metadata import to retrieve, in the - /// following form: + /// Required. The relative resource name of the metadata import to retrieve, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. /// @@ -1611,8 +1631,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Gets details of a single import. /// /// - /// Required. The relative resource name of the metadata import to retrieve, in the - /// following form: + /// Required. The relative resource name of the metadata import to retrieve, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. /// @@ -1679,19 +1699,19 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new MetadataImport in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a metastore - /// import, in the following form: + /// Required. The relative resource name of the service in which to create a + /// metastore import, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The metadata import to create. The `name` field is ignored. The ID of the - /// created metadata import must be provided in the request's + /// Required. The metadata import to create. The `name` field is ignored. The + /// ID of the created metadata import must be provided in the request's /// `metadata_import_id` field. /// /// - /// Required. The ID of the metadata import, which is used as the final component of the - /// metadata import's name. + /// Required. The ID of the metadata import, which is used as the final + /// component of the metadata import's name. /// /// This value must be between 1 and 64 characters long, begin with a letter, /// end with a letter or number, and consist of alpha-numeric ASCII characters @@ -1711,19 +1731,19 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new MetadataImport in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a metastore - /// import, in the following form: + /// Required. The relative resource name of the service in which to create a + /// metastore import, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The metadata import to create. The `name` field is ignored. The ID of the - /// created metadata import must be provided in the request's + /// Required. The metadata import to create. The `name` field is ignored. The + /// ID of the created metadata import must be provided in the request's /// `metadata_import_id` field. /// /// - /// Required. The ID of the metadata import, which is used as the final component of the - /// metadata import's name. + /// Required. The ID of the metadata import, which is used as the final + /// component of the metadata import's name. /// /// This value must be between 1 and 64 characters long, begin with a letter, /// end with a letter or number, and consist of alpha-numeric ASCII characters @@ -1743,19 +1763,19 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new MetadataImport in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a metastore - /// import, in the following form: + /// Required. The relative resource name of the service in which to create a + /// metastore import, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The metadata import to create. The `name` field is ignored. The ID of the - /// created metadata import must be provided in the request's + /// Required. The metadata import to create. The `name` field is ignored. The + /// ID of the created metadata import must be provided in the request's /// `metadata_import_id` field. /// /// - /// Required. The ID of the metadata import, which is used as the final component of the - /// metadata import's name. + /// Required. The ID of the metadata import, which is used as the final + /// component of the metadata import's name. /// /// This value must be between 1 and 64 characters long, begin with a letter, /// end with a letter or number, and consist of alpha-numeric ASCII characters @@ -1770,19 +1790,19 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new MetadataImport in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a metastore - /// import, in the following form: + /// Required. The relative resource name of the service in which to create a + /// metastore import, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The metadata import to create. The `name` field is ignored. The ID of the - /// created metadata import must be provided in the request's + /// Required. The metadata import to create. The `name` field is ignored. The + /// ID of the created metadata import must be provided in the request's /// `metadata_import_id` field. /// /// - /// Required. The ID of the metadata import, which is used as the final component of the - /// metadata import's name. + /// Required. The ID of the metadata import, which is used as the final + /// component of the metadata import's name. /// /// This value must be between 1 and 64 characters long, begin with a letter, /// end with a letter or number, and consist of alpha-numeric ASCII characters @@ -1802,19 +1822,19 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new MetadataImport in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a metastore - /// import, in the following form: + /// Required. The relative resource name of the service in which to create a + /// metastore import, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The metadata import to create. The `name` field is ignored. The ID of the - /// created metadata import must be provided in the request's + /// Required. The metadata import to create. The `name` field is ignored. The + /// ID of the created metadata import must be provided in the request's /// `metadata_import_id` field. /// /// - /// Required. The ID of the metadata import, which is used as the final component of the - /// metadata import's name. + /// Required. The ID of the metadata import, which is used as the final + /// component of the metadata import's name. /// /// This value must be between 1 and 64 characters long, begin with a letter, /// end with a letter or number, and consist of alpha-numeric ASCII characters @@ -1834,19 +1854,19 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new MetadataImport in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a metastore - /// import, in the following form: + /// Required. The relative resource name of the service in which to create a + /// metastore import, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The metadata import to create. The `name` field is ignored. The ID of the - /// created metadata import must be provided in the request's + /// Required. The metadata import to create. The `name` field is ignored. The + /// ID of the created metadata import must be provided in the request's /// `metadata_import_id` field. /// /// - /// Required. The ID of the metadata import, which is used as the final component of the - /// metadata import's name. + /// Required. The ID of the metadata import, which is used as the final + /// component of the metadata import's name. /// /// This value must be between 1 and 64 characters long, begin with a letter, /// end with a letter or number, and consist of alpha-numeric ASCII characters @@ -2098,14 +2118,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Restores a service from a backup. /// /// - /// Required. The relative resource name of the metastore service to run restore, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// restore, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Required. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -2122,14 +2142,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Restores a service from a backup. /// /// - /// Required. The relative resource name of the metastore service to run restore, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// restore, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Required. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -2146,14 +2166,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Restores a service from a backup. /// /// - /// Required. The relative resource name of the metastore service to run restore, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// restore, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Required. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -2166,14 +2186,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Restores a service from a backup. /// /// - /// Required. The relative resource name of the metastore service to run restore, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// restore, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Required. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -2190,14 +2210,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Restores a service from a backup. /// /// - /// Required. The relative resource name of the metastore service to run restore, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// restore, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Required. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -2214,14 +2234,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Restores a service from a backup. /// /// - /// Required. The relative resource name of the metastore service to run restore, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// restore, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Required. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -2536,14 +2556,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new backup in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a backup - /// of the following form: + /// Required. The relative resource name of the service in which to create a + /// backup of the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The backup to create. The `name` field is ignored. The ID of the created - /// backup must be provided in the request's `backup_id` field. + /// Required. The backup to create. The `name` field is ignored. The ID of the + /// created backup must be provided in the request's `backup_id` field. /// /// /// Required. The ID of the backup, which is used as the final component of the @@ -2567,14 +2587,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new backup in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a backup - /// of the following form: + /// Required. The relative resource name of the service in which to create a + /// backup of the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The backup to create. The `name` field is ignored. The ID of the created - /// backup must be provided in the request's `backup_id` field. + /// Required. The backup to create. The `name` field is ignored. The ID of the + /// created backup must be provided in the request's `backup_id` field. /// /// /// Required. The ID of the backup, which is used as the final component of the @@ -2598,14 +2618,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new backup in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a backup - /// of the following form: + /// Required. The relative resource name of the service in which to create a + /// backup of the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The backup to create. The `name` field is ignored. The ID of the created - /// backup must be provided in the request's `backup_id` field. + /// Required. The backup to create. The `name` field is ignored. The ID of the + /// created backup must be provided in the request's `backup_id` field. /// /// /// Required. The ID of the backup, which is used as the final component of the @@ -2624,14 +2644,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new backup in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a backup - /// of the following form: + /// Required. The relative resource name of the service in which to create a + /// backup of the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The backup to create. The `name` field is ignored. The ID of the created - /// backup must be provided in the request's `backup_id` field. + /// Required. The backup to create. The `name` field is ignored. The ID of the + /// created backup must be provided in the request's `backup_id` field. /// /// /// Required. The ID of the backup, which is used as the final component of the @@ -2655,14 +2675,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new backup in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a backup - /// of the following form: + /// Required. The relative resource name of the service in which to create a + /// backup of the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The backup to create. The `name` field is ignored. The ID of the created - /// backup must be provided in the request's `backup_id` field. + /// Required. The backup to create. The `name` field is ignored. The ID of the + /// created backup must be provided in the request's `backup_id` field. /// /// /// Required. The ID of the backup, which is used as the final component of the @@ -2686,14 +2706,14 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// Creates a new backup in a given project and location. /// /// - /// Required. The relative resource name of the service in which to create a backup - /// of the following form: + /// Required. The relative resource name of the service in which to create a + /// backup of the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// - /// Required. The backup to create. The `name` field is ignored. The ID of the created - /// backup must be provided in the request's `backup_id` field. + /// Required. The backup to create. The `name` field is ignored. The ID of the + /// created backup must be provided in the request's `backup_id` field. /// /// /// Required. The ID of the backup, which is used as the final component of the @@ -2930,6 +2950,8 @@ public DataprocMetastoreClientImpl(DataprocMetastore.DataprocMetastoreClient grp RestoreServiceOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.RestoreServiceOperationsSettings, logger); CreateBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateBackupOperationsSettings, logger); DeleteBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteBackupOperationsSettings, logger); + LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger); + IAMPolicyClient = new gciv::IAMPolicyClientImpl(grpcClient.CreateIAMPolicyClient(), effectiveSettings.IAMPolicySettings, logger); _callListServices = clientHelper.BuildApiCall("ListServices", grpcClient.ListServicesAsync, grpcClient.ListServices, effectiveSettings.ListServicesSettings).WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListServices); Modify_ListServicesApiCall(ref _callListServices); @@ -3015,6 +3037,12 @@ public DataprocMetastoreClientImpl(DataprocMetastore.DataprocMetastoreClient grp /// The underlying gRPC DataprocMetastore client public override DataprocMetastore.DataprocMetastoreClient GrpcClient { get; } + /// The associated with this client. + public override gcl::LocationsClient LocationsClient { get; } + + /// The associated with this client. + public override gciv::IAMPolicyClient IAMPolicyClient { get; } + partial void Modify_ListServicesRequest(ref ListServicesRequest request, ref gaxgrpc::CallSettings settings); partial void Modify_GetServiceRequest(ref GetServiceRequest request, ref gaxgrpc::CallSettings settings); @@ -3484,4 +3512,30 @@ public partial class DataprocMetastoreClient new lro::Operations.OperationsClient(CallInvoker); } } + + public static partial class DataprocMetastore + { + public partial class DataprocMetastoreClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gcl::Locations.LocationsClient CreateLocationsClient() => + new gcl::Locations.LocationsClient(CallInvoker); + + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gciv::IAMPolicy.IAMPolicyClient CreateIAMPolicyClient() => + new gciv::IAMPolicy.IAMPolicyClient(CallInvoker); + } + } } diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreFederationClient.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreFederationClient.g.cs new file mode 100644 index 000000000000..1385aca5fc10 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/DataprocMetastoreFederationClient.g.cs @@ -0,0 +1,1394 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using gagr = Google.Api.Gax.ResourceNames; +using gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; +using lro = Google.LongRunning; +using proto = Google.Protobuf; +using wkt = Google.Protobuf.WellKnownTypes; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using mel = Microsoft.Extensions.Logging; +using sys = System; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; + +namespace Google.Cloud.Metastore.V1Alpha +{ + /// Settings for instances. + public sealed partial class DataprocMetastoreFederationSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static DataprocMetastoreFederationSettings GetDefault() => new DataprocMetastoreFederationSettings(); + + /// + /// Constructs a new object with default settings. + /// + public DataprocMetastoreFederationSettings() + { + } + + private DataprocMetastoreFederationSettings(DataprocMetastoreFederationSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + ListFederationsSettings = existing.ListFederationsSettings; + GetFederationSettings = existing.GetFederationSettings; + CreateFederationSettings = existing.CreateFederationSettings; + CreateFederationOperationsSettings = existing.CreateFederationOperationsSettings.Clone(); + UpdateFederationSettings = existing.UpdateFederationSettings; + UpdateFederationOperationsSettings = existing.UpdateFederationOperationsSettings.Clone(); + DeleteFederationSettings = existing.DeleteFederationSettings; + DeleteFederationOperationsSettings = existing.DeleteFederationOperationsSettings.Clone(); + LocationsSettings = existing.LocationsSettings; + IAMPolicySettings = existing.IAMPolicySettings; + OnCopy(existing); + } + + partial void OnCopy(DataprocMetastoreFederationSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// DataprocMetastoreFederationClient.ListFederations and + /// DataprocMetastoreFederationClient.ListFederationsAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings ListFederationsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// DataprocMetastoreFederationClient.GetFederation and + /// DataprocMetastoreFederationClient.GetFederationAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetFederationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// DataprocMetastoreFederationClient.CreateFederation and + /// DataprocMetastoreFederationClient.CreateFederationAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateFederationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to DataprocMetastoreFederationClient.CreateFederation and + /// DataprocMetastoreFederationClient.CreateFederationAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateFederationOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// DataprocMetastoreFederationClient.UpdateFederation and + /// DataprocMetastoreFederationClient.UpdateFederationAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateFederationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to DataprocMetastoreFederationClient.UpdateFederation and + /// DataprocMetastoreFederationClient.UpdateFederationAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateFederationOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// DataprocMetastoreFederationClient.DeleteFederation and + /// DataprocMetastoreFederationClient.DeleteFederationAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteFederationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to DataprocMetastoreFederationClient.DeleteFederation and + /// DataprocMetastoreFederationClient.DeleteFederationAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteFederationOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// The settings to use for the associated with the client. + /// + public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault(); + + /// + /// The settings to use for the associated with the client. + /// + public gciv::IAMPolicySettings IAMPolicySettings { get; set; } = gciv::IAMPolicySettings.GetDefault(); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public DataprocMetastoreFederationSettings Clone() => new DataprocMetastoreFederationSettings(this); + } + + /// + /// Builder class for to provide simple configuration of + /// credentials, endpoint etc. + /// + public sealed partial class DataprocMetastoreFederationClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public DataprocMetastoreFederationSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public DataprocMetastoreFederationClientBuilder() : base(DataprocMetastoreFederationClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref DataprocMetastoreFederationClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override DataprocMetastoreFederationClient Build() + { + DataprocMetastoreFederationClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private DataprocMetastoreFederationClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return DataprocMetastoreFederationClient.Create(callInvoker, Settings, Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return DataprocMetastoreFederationClient.Create(callInvoker, Settings, Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => DataprocMetastoreFederationClient.ChannelPool; + } + + /// DataprocMetastoreFederation client wrapper, for convenient use. + /// + /// Configures and manages metastore federation services. + /// Dataproc Metastore Federation Service allows federating a collection of + /// backend metastores like BigQuery, Dataplex Lakes, and other Dataproc + /// Metastores. The Federation Service exposes a gRPC URL through which metadata + /// from the backend metastores are served at query time. + /// + /// The Dataproc Metastore Federation API defines the following resource model: + /// * The service works with a collection of Google Cloud projects. + /// * Each project has a collection of available locations. + /// * Each location has a collection of federations. + /// * Dataproc Metastore Federations are resources with names of the + /// form: + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + public abstract partial class DataprocMetastoreFederationClient + { + /// + /// The default endpoint for the DataprocMetastoreFederation service, which is a host of + /// "metastore.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "metastore.googleapis.com:443"; + + /// The default DataprocMetastoreFederation scopes. + /// + /// The default DataprocMetastoreFederation scopes are: + /// + /// https://www.googleapis.com/auth/cloud-platform + /// + /// + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] + { + "https://www.googleapis.com/auth/cloud-platform", + }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(DataprocMetastoreFederation.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, + /// endpoint and settings. To specify custom credentials or other settings, use + /// . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new DataprocMetastoreFederationClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, + /// endpoint and settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static DataprocMetastoreFederationClient Create() => new DataprocMetastoreFederationClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote + /// operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static DataprocMetastoreFederationClient Create(grpccore::CallInvoker callInvoker, DataprocMetastoreFederationSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + DataprocMetastoreFederation.DataprocMetastoreFederationClient grpcClient = new DataprocMetastoreFederation.DataprocMetastoreFederationClient(callInvoker); + return new DataprocMetastoreFederationClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC DataprocMetastoreFederation client + public virtual DataprocMetastoreFederation.DataprocMetastoreFederationClient GrpcClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gciv::IAMPolicyClient IAMPolicyClient => throw new sys::NotImplementedException(); + + /// + /// Lists federations in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListFederations(ListFederationsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists federations in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListFederationsAsync(ListFederationsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists federations in a project and location. + /// + /// + /// Required. The relative resource name of the location of metastore federations + /// to list, in the following form: + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListFederations(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFederations(new ListFederationsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Lists federations in a project and location. + /// + /// + /// Required. The relative resource name of the location of metastore federations + /// to list, in the following form: + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListFederationsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFederationsAsync(new ListFederationsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Lists federations in a project and location. + /// + /// + /// Required. The relative resource name of the location of metastore federations + /// to list, in the following form: + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListFederations(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFederations(new ListFederationsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Lists federations in a project and location. + /// + /// + /// Required. The relative resource name of the location of metastore federations + /// to list, in the following form: + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListFederationsAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFederationsAsync(new ListFederationsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Gets the details of a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Federation GetFederation(GetFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the details of a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetFederationAsync(GetFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the details of a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetFederationAsync(GetFederationRequest request, st::CancellationToken cancellationToken) => + GetFederationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the details of a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to retrieve, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Federation GetFederation(string name, gaxgrpc::CallSettings callSettings = null) => + GetFederation(new GetFederationRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the details of a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to retrieve, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetFederationAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetFederationAsync(new GetFederationRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets the details of a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to retrieve, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetFederationAsync(string name, st::CancellationToken cancellationToken) => + GetFederationAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the details of a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to retrieve, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Federation GetFederation(FederationName name, gaxgrpc::CallSettings callSettings = null) => + GetFederation(new GetFederationRequest + { + FederationName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the details of a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to retrieve, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetFederationAsync(FederationName name, gaxgrpc::CallSettings callSettings = null) => + GetFederationAsync(new GetFederationRequest + { + FederationName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets the details of a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to retrieve, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetFederationAsync(FederationName name, st::CancellationToken cancellationToken) => + GetFederationAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a metastore federation in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateFederation(CreateFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a metastore federation in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateFederationAsync(CreateFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a metastore federation in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateFederationAsync(CreateFederationRequest request, st::CancellationToken cancellationToken) => + CreateFederationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateFederation. + public virtual lro::OperationsClient CreateFederationOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateFederation. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateFederation(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateFederationOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateFederation. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateFederationAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateFederationOperationsClient, callSettings); + + /// + /// Creates a metastore federation in a project and location. + /// + /// + /// Required. The relative resource name of the location in which to create a federation + /// service, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// Required. The Metastore Federation to create. The `name` field is + /// ignored. The ID of the created metastore federation must be + /// provided in the request's `federation_id` field. + /// + /// + /// Required. The ID of the metastore federation, which is used as the final + /// component of the metastore federation's name. + /// + /// This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric + /// ASCII characters or hyphens. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateFederation(string parent, Federation federation, string federationId, gaxgrpc::CallSettings callSettings = null) => + CreateFederation(new CreateFederationRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + FederationId = gax::GaxPreconditions.CheckNotNullOrEmpty(federationId, nameof(federationId)), + Federation = gax::GaxPreconditions.CheckNotNull(federation, nameof(federation)), + }, callSettings); + + /// + /// Creates a metastore federation in a project and location. + /// + /// + /// Required. The relative resource name of the location in which to create a federation + /// service, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// Required. The Metastore Federation to create. The `name` field is + /// ignored. The ID of the created metastore federation must be + /// provided in the request's `federation_id` field. + /// + /// + /// Required. The ID of the metastore federation, which is used as the final + /// component of the metastore federation's name. + /// + /// This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric + /// ASCII characters or hyphens. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateFederationAsync(string parent, Federation federation, string federationId, gaxgrpc::CallSettings callSettings = null) => + CreateFederationAsync(new CreateFederationRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + FederationId = gax::GaxPreconditions.CheckNotNullOrEmpty(federationId, nameof(federationId)), + Federation = gax::GaxPreconditions.CheckNotNull(federation, nameof(federation)), + }, callSettings); + + /// + /// Creates a metastore federation in a project and location. + /// + /// + /// Required. The relative resource name of the location in which to create a federation + /// service, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// Required. The Metastore Federation to create. The `name` field is + /// ignored. The ID of the created metastore federation must be + /// provided in the request's `federation_id` field. + /// + /// + /// Required. The ID of the metastore federation, which is used as the final + /// component of the metastore federation's name. + /// + /// This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric + /// ASCII characters or hyphens. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateFederationAsync(string parent, Federation federation, string federationId, st::CancellationToken cancellationToken) => + CreateFederationAsync(parent, federation, federationId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a metastore federation in a project and location. + /// + /// + /// Required. The relative resource name of the location in which to create a federation + /// service, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// Required. The Metastore Federation to create. The `name` field is + /// ignored. The ID of the created metastore federation must be + /// provided in the request's `federation_id` field. + /// + /// + /// Required. The ID of the metastore federation, which is used as the final + /// component of the metastore federation's name. + /// + /// This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric + /// ASCII characters or hyphens. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateFederation(gagr::LocationName parent, Federation federation, string federationId, gaxgrpc::CallSettings callSettings = null) => + CreateFederation(new CreateFederationRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + FederationId = gax::GaxPreconditions.CheckNotNullOrEmpty(federationId, nameof(federationId)), + Federation = gax::GaxPreconditions.CheckNotNull(federation, nameof(federation)), + }, callSettings); + + /// + /// Creates a metastore federation in a project and location. + /// + /// + /// Required. The relative resource name of the location in which to create a federation + /// service, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// Required. The Metastore Federation to create. The `name` field is + /// ignored. The ID of the created metastore federation must be + /// provided in the request's `federation_id` field. + /// + /// + /// Required. The ID of the metastore federation, which is used as the final + /// component of the metastore federation's name. + /// + /// This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric + /// ASCII characters or hyphens. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateFederationAsync(gagr::LocationName parent, Federation federation, string federationId, gaxgrpc::CallSettings callSettings = null) => + CreateFederationAsync(new CreateFederationRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + FederationId = gax::GaxPreconditions.CheckNotNullOrEmpty(federationId, nameof(federationId)), + Federation = gax::GaxPreconditions.CheckNotNull(federation, nameof(federation)), + }, callSettings); + + /// + /// Creates a metastore federation in a project and location. + /// + /// + /// Required. The relative resource name of the location in which to create a federation + /// service, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}`. + /// + /// + /// Required. The Metastore Federation to create. The `name` field is + /// ignored. The ID of the created metastore federation must be + /// provided in the request's `federation_id` field. + /// + /// + /// Required. The ID of the metastore federation, which is used as the final + /// component of the metastore federation's name. + /// + /// This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric + /// ASCII characters or hyphens. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateFederationAsync(gagr::LocationName parent, Federation federation, string federationId, st::CancellationToken cancellationToken) => + CreateFederationAsync(parent, federation, federationId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the fields of a federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateFederation(UpdateFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the fields of a federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateFederationAsync(UpdateFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the fields of a federation. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateFederationAsync(UpdateFederationRequest request, st::CancellationToken cancellationToken) => + UpdateFederationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateFederation. + public virtual lro::OperationsClient UpdateFederationOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateFederation. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateFederation(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateFederationOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateFederation. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateFederationAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateFederationOperationsClient, callSettings); + + /// + /// Updates the fields of a federation. + /// + /// + /// Required. The metastore federation to update. The server only merges fields + /// in the service if they are specified in `update_mask`. + /// + /// The metastore federation's `name` field is used to identify the + /// metastore service to be updated. + /// + /// + /// Required. A field mask used to specify the fields to be overwritten in the + /// metastore federation resource by the update. + /// Fields specified in the `update_mask` are relative to the resource (not + /// to the full request). A field is overwritten if it is in the mask. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateFederation(Federation federation, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateFederation(new UpdateFederationRequest + { + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + Federation = gax::GaxPreconditions.CheckNotNull(federation, nameof(federation)), + }, callSettings); + + /// + /// Updates the fields of a federation. + /// + /// + /// Required. The metastore federation to update. The server only merges fields + /// in the service if they are specified in `update_mask`. + /// + /// The metastore federation's `name` field is used to identify the + /// metastore service to be updated. + /// + /// + /// Required. A field mask used to specify the fields to be overwritten in the + /// metastore federation resource by the update. + /// Fields specified in the `update_mask` are relative to the resource (not + /// to the full request). A field is overwritten if it is in the mask. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateFederationAsync(Federation federation, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateFederationAsync(new UpdateFederationRequest + { + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + Federation = gax::GaxPreconditions.CheckNotNull(federation, nameof(federation)), + }, callSettings); + + /// + /// Updates the fields of a federation. + /// + /// + /// Required. The metastore federation to update. The server only merges fields + /// in the service if they are specified in `update_mask`. + /// + /// The metastore federation's `name` field is used to identify the + /// metastore service to be updated. + /// + /// + /// Required. A field mask used to specify the fields to be overwritten in the + /// metastore federation resource by the update. + /// Fields specified in the `update_mask` are relative to the resource (not + /// to the full request). A field is overwritten if it is in the mask. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateFederationAsync(Federation federation, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateFederationAsync(federation, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteFederation(DeleteFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteFederationAsync(DeleteFederationRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteFederationAsync(DeleteFederationRequest request, st::CancellationToken cancellationToken) => + DeleteFederationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteFederation. + public virtual lro::OperationsClient DeleteFederationOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of DeleteFederation. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteFederation(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteFederationOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteFederation. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteFederationAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteFederationOperationsClient, callSettings); + + /// + /// Deletes a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to delete, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteFederation(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteFederation(new DeleteFederationRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to delete, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteFederationAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteFederationAsync(new DeleteFederationRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to delete, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteFederationAsync(string name, st::CancellationToken cancellationToken) => + DeleteFederationAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to delete, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteFederation(FederationName name, gaxgrpc::CallSettings callSettings = null) => + DeleteFederation(new DeleteFederationRequest + { + FederationName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to delete, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteFederationAsync(FederationName name, gaxgrpc::CallSettings callSettings = null) => + DeleteFederationAsync(new DeleteFederationRequest + { + FederationName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a single federation. + /// + /// + /// Required. The relative resource name of the metastore federation to delete, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteFederationAsync(FederationName name, st::CancellationToken cancellationToken) => + DeleteFederationAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// DataprocMetastoreFederation client wrapper implementation, for convenient use. + /// + /// Configures and manages metastore federation services. + /// Dataproc Metastore Federation Service allows federating a collection of + /// backend metastores like BigQuery, Dataplex Lakes, and other Dataproc + /// Metastores. The Federation Service exposes a gRPC URL through which metadata + /// from the backend metastores are served at query time. + /// + /// The Dataproc Metastore Federation API defines the following resource model: + /// * The service works with a collection of Google Cloud projects. + /// * Each project has a collection of available locations. + /// * Each location has a collection of federations. + /// * Dataproc Metastore Federations are resources with names of the + /// form: + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + public sealed partial class DataprocMetastoreFederationClientImpl : DataprocMetastoreFederationClient + { + private readonly gaxgrpc::ApiCall _callListFederations; + + private readonly gaxgrpc::ApiCall _callGetFederation; + + private readonly gaxgrpc::ApiCall _callCreateFederation; + + private readonly gaxgrpc::ApiCall _callUpdateFederation; + + private readonly gaxgrpc::ApiCall _callDeleteFederation; + + /// + /// Constructs a client wrapper for the DataprocMetastoreFederation service, with the specified gRPC client and + /// settings. + /// + /// The underlying gRPC client. + /// + /// The base used within this client. + /// + /// Optional to use within this client. + public DataprocMetastoreFederationClientImpl(DataprocMetastoreFederation.DataprocMetastoreFederationClient grpcClient, DataprocMetastoreFederationSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + DataprocMetastoreFederationSettings effectiveSettings = settings ?? DataprocMetastoreFederationSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); + CreateFederationOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateFederationOperationsSettings, logger); + UpdateFederationOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateFederationOperationsSettings, logger); + DeleteFederationOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteFederationOperationsSettings, logger); + LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger); + IAMPolicyClient = new gciv::IAMPolicyClientImpl(grpcClient.CreateIAMPolicyClient(), effectiveSettings.IAMPolicySettings, logger); + _callListFederations = clientHelper.BuildApiCall("ListFederations", grpcClient.ListFederationsAsync, grpcClient.ListFederations, effectiveSettings.ListFederationsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListFederations); + Modify_ListFederationsApiCall(ref _callListFederations); + _callGetFederation = clientHelper.BuildApiCall("GetFederation", grpcClient.GetFederationAsync, grpcClient.GetFederation, effectiveSettings.GetFederationSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetFederation); + Modify_GetFederationApiCall(ref _callGetFederation); + _callCreateFederation = clientHelper.BuildApiCall("CreateFederation", grpcClient.CreateFederationAsync, grpcClient.CreateFederation, effectiveSettings.CreateFederationSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateFederation); + Modify_CreateFederationApiCall(ref _callCreateFederation); + _callUpdateFederation = clientHelper.BuildApiCall("UpdateFederation", grpcClient.UpdateFederationAsync, grpcClient.UpdateFederation, effectiveSettings.UpdateFederationSettings).WithGoogleRequestParam("federation.name", request => request.Federation?.Name); + Modify_ApiCall(ref _callUpdateFederation); + Modify_UpdateFederationApiCall(ref _callUpdateFederation); + _callDeleteFederation = clientHelper.BuildApiCall("DeleteFederation", grpcClient.DeleteFederationAsync, grpcClient.DeleteFederation, effectiveSettings.DeleteFederationSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteFederation); + Modify_DeleteFederationApiCall(ref _callDeleteFederation); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_ListFederationsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetFederationApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateFederationApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateFederationApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteFederationApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(DataprocMetastoreFederation.DataprocMetastoreFederationClient grpcClient, DataprocMetastoreFederationSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC DataprocMetastoreFederation client + public override DataprocMetastoreFederation.DataprocMetastoreFederationClient GrpcClient { get; } + + /// The associated with this client. + public override gcl::LocationsClient LocationsClient { get; } + + /// The associated with this client. + public override gciv::IAMPolicyClient IAMPolicyClient { get; } + + partial void Modify_ListFederationsRequest(ref ListFederationsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetFederationRequest(ref GetFederationRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateFederationRequest(ref CreateFederationRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateFederationRequest(ref UpdateFederationRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteFederationRequest(ref DeleteFederationRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Lists federations in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListFederations(ListFederationsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListFederationsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListFederations, request, callSettings); + } + + /// + /// Lists federations in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListFederationsAsync(ListFederationsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListFederationsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListFederations, request, callSettings); + } + + /// + /// Gets the details of a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Federation GetFederation(GetFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetFederationRequest(ref request, ref callSettings); + return _callGetFederation.Sync(request, callSettings); + } + + /// + /// Gets the details of a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetFederationAsync(GetFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetFederationRequest(ref request, ref callSettings); + return _callGetFederation.Async(request, callSettings); + } + + /// The long-running operations client for CreateFederation. + public override lro::OperationsClient CreateFederationOperationsClient { get; } + + /// + /// Creates a metastore federation in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateFederation(CreateFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateFederationRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateFederation.Sync(request, callSettings), CreateFederationOperationsClient); + } + + /// + /// Creates a metastore federation in a project and location. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateFederationAsync(CreateFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateFederationRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateFederation.Async(request, callSettings).ConfigureAwait(false), CreateFederationOperationsClient); + } + + /// The long-running operations client for UpdateFederation. + public override lro::OperationsClient UpdateFederationOperationsClient { get; } + + /// + /// Updates the fields of a federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateFederation(UpdateFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateFederationRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateFederation.Sync(request, callSettings), UpdateFederationOperationsClient); + } + + /// + /// Updates the fields of a federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateFederationAsync(UpdateFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateFederationRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateFederation.Async(request, callSettings).ConfigureAwait(false), UpdateFederationOperationsClient); + } + + /// The long-running operations client for DeleteFederation. + public override lro::OperationsClient DeleteFederationOperationsClient { get; } + + /// + /// Deletes a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteFederation(DeleteFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteFederationRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteFederation.Sync(request, callSettings), DeleteFederationOperationsClient); + } + + /// + /// Deletes a single federation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteFederationAsync(DeleteFederationRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteFederationRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteFederation.Async(request, callSettings).ConfigureAwait(false), DeleteFederationOperationsClient); + } + } + + public partial class ListFederationsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListFederationsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Federations.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public static partial class DataprocMetastoreFederation + { + public partial class DataprocMetastoreFederationClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } + + public static partial class DataprocMetastoreFederation + { + public partial class DataprocMetastoreFederationClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gcl::Locations.LocationsClient CreateLocationsClient() => + new gcl::Locations.LocationsClient(CallInvoker); + + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gciv::IAMPolicy.IAMPolicyClient CreateIAMPolicyClient() => + new gciv::IAMPolicy.IAMPolicyClient(CallInvoker); + } + } +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.csproj b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.csproj index eef6f967a90b..75310cda674d 100644 --- a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.csproj +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha.csproj @@ -10,6 +10,8 @@ + + diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Metastore.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Metastore.g.cs index 9c9f49306f39..1a84a1bbc1b8 100644 --- a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Metastore.g.cs +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/Metastore.g.cs @@ -32,7 +32,7 @@ public static partial class MetastoreReflection { "cy5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aH2dv", "b2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90b2J1", "Zi93cmFwcGVycy5wcm90bxobZ29vZ2xlL3R5cGUvZGF5b2Z3ZWVrLnByb3Rv", - "IpUNCgdTZXJ2aWNlElQKFWhpdmVfbWV0YXN0b3JlX2NvbmZpZxgFIAEoCzIz", + "ItsNCgdTZXJ2aWNlElQKFWhpdmVfbWV0YXN0b3JlX2NvbmZpZxgFIAEoCzIz", "Lmdvb2dsZS5jbG91ZC5tZXRhc3RvcmUudjFhbHBoYS5IaXZlTWV0YXN0b3Jl", "Q29uZmlnSAASEQoEbmFtZRgBIAEoCUID4EEFEjQKC2NyZWF0ZV90aW1lGAIg", "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjQKC3VwZGF0", @@ -54,288 +54,300 @@ public static partial class MetastoreReflection { "eUID4EEDElQKD3JlbGVhc2VfY2hhbm5lbBgTIAEoDjI2Lmdvb2dsZS5jbG91", "ZC5tZXRhc3RvcmUudjFhbHBoYS5TZXJ2aWNlLlJlbGVhc2VDaGFubmVsQgPg", "QQUSUAoRZW5jcnlwdGlvbl9jb25maWcYFCABKAsyMC5nb29nbGUuY2xvdWQu", - "bWV0YXN0b3JlLnYxYWxwaGEuRW5jcnlwdGlvbkNvbmZpZ0ID4EEFEkoKDm5l", + "bWV0YXN0b3JlLnYxYWxwaGEuRW5jcnlwdGlvbkNvbmZpZ0ID4EEFEkUKDm5l", "dHdvcmtfY29uZmlnGBUgASgLMi0uZ29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52", - "MWFscGhhLk5ldHdvcmtDb25maWdCA+BBBRJQCg1kYXRhYmFzZV90eXBlGBYg", - "ASgOMjQuZ29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52MWFscGhhLlNlcnZpY2Uu", - "RGF0YWJhc2VUeXBlQgPgQQUaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJ", - "Eg0KBXZhbHVlGAIgASgJOgI4ASJ+CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJ", - "RklFRBAAEgwKCENSRUFUSU5HEAESCgoGQUNUSVZFEAISDgoKU1VTUEVORElO", - "RxADEg0KCVNVU1BFT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U5HEAYSCQoFRVJST1IQByI7CgRUaWVy", + "EhQKEFRJRVJfVU5TUEVDSUZJRUQQABINCglERVZFTE9QRVIQARIOCgpFTlRF", + "UlBSSVNFEAMiSQoOUmVsZWFzZUNoYW5uZWwSHwobUkVMRUFTRV9DSEFOTkVM", + "X1VOU1BFQ0lGSUVEEAASCgoGQ0FOQVJZEAESCgoGU1RBQkxFEAIiRQoMRGF0", + "YWJhc2VUeXBlEh0KGURBVEFCQVNFX1RZUEVfVU5TUEVDSUZJRUQQABIJCgVN", + "WVNRTBABEgsKB1NQQU5ORVIQAjph6kFeCiBtZXRhc3RvcmUuZ29vZ2xlYXBp", + "cy5jb20vU2VydmljZRI6cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97", + "bG9jYXRpb259L3NlcnZpY2VzL3tzZXJ2aWNlfUISChBtZXRhc3RvcmVfY29u", + "ZmlnIq4BChNNZXRhZGF0YUludGVncmF0aW9uEk4KE2RhdGFfY2F0YWxvZ19j", + "b25maWcYASABKAsyMS5nb29nbGUuY2xvdWQubWV0YXN0b3JlLnYxYWxwaGEu", + "RGF0YUNhdGFsb2dDb25maWcSRwoPZGF0YXBsZXhfY29uZmlnGAIgASgLMi4u", + "Z29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52MWFscGhhLkRhdGFwbGV4Q29uZmln", + "IiQKEURhdGFDYXRhbG9nQ29uZmlnEg8KB2VuYWJsZWQYAiABKAgixwEKDkRh", + "dGFwbGV4Q29uZmlnElkKDmxha2VfcmVzb3VyY2VzGAEgAygLMkEuZ29vZ2xl", + "LmNsb3VkLm1ldGFzdG9yZS52MWFscGhhLkRhdGFwbGV4Q29uZmlnLkxha2VS", + "ZXNvdXJjZXNFbnRyeRpaChJMYWtlUmVzb3VyY2VzRW50cnkSCwoDa2V5GAEg", + "ASgJEjMKBXZhbHVlGAIgASgLMiQuZ29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52", + "MWFscGhhLkxha2U6AjgBIjcKBExha2USLw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3VibmV0d29y", + "a33qQVQKHGRhdGFwbGV4Lmdvb2dsZWFwaXMuY29tL0xha2USNHByb2plY3Rz", + "L3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9sYWtlcy97bGFrZX1i", + "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Type.DayofweekReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.Service), global::Google.Cloud.Metastore.V1Alpha.Service.Parser, new[]{ "HiveMetastoreConfig", "Name", "CreateTime", "UpdateTime", "Labels", "Network", "EndpointUri", "Port", "State", "StateMessage", "ArtifactGcsUri", "Tier", "MetadataIntegration", "MaintenanceWindow", "Uid", "MetadataManagementActivity", "ReleaseChannel", "EncryptionConfig", "NetworkConfig", "DatabaseType" }, new[]{ "MetastoreConfig" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.State), typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.Tier), typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.ReleaseChannel), typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.DatabaseType) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.Service), global::Google.Cloud.Metastore.V1Alpha.Service.Parser, new[]{ "HiveMetastoreConfig", "Name", "CreateTime", "UpdateTime", "Labels", "Network", "EndpointUri", "Port", "State", "StateMessage", "ArtifactGcsUri", "Tier", "MetadataIntegration", "MaintenanceWindow", "Uid", "MetadataManagementActivity", "ReleaseChannel", "EncryptionConfig", "NetworkConfig", "DatabaseType", "TelemetryConfig" }, new[]{ "MetastoreConfig" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.State), typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.Tier), typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.ReleaseChannel), typeof(global::Google.Cloud.Metastore.V1Alpha.Service.Types.DatabaseType) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataIntegration), global::Google.Cloud.Metastore.V1Alpha.MetadataIntegration.Parser, new[]{ "DataCatalogConfig", "DataplexConfig" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.DataCatalogConfig), global::Google.Cloud.Metastore.V1Alpha.DataCatalogConfig.Parser, new[]{ "Enabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.DataplexConfig), global::Google.Cloud.Metastore.V1Alpha.DataplexConfig.Parser, new[]{ "LakeResources" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), @@ -347,6 +359,7 @@ public static partial class MetastoreReflection { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.EncryptionConfig), global::Google.Cloud.Metastore.V1Alpha.EncryptionConfig.Parser, new[]{ "KmsKey" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.AuxiliaryVersionConfig), global::Google.Cloud.Metastore.V1Alpha.AuxiliaryVersionConfig.Parser, new[]{ "Version", "ConfigOverrides", "NetworkConfig" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.NetworkConfig), global::Google.Cloud.Metastore.V1Alpha.NetworkConfig.Parser, new[]{ "Consumers" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.NetworkConfig.Types.Consumer), global::Google.Cloud.Metastore.V1Alpha.NetworkConfig.Types.Consumer.Parser, new[]{ "Subnetwork", "EndpointUri" }, new[]{ "VpcResource" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig), global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Parser, new[]{ "LogFormat" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataManagementActivity), global::Google.Cloud.Metastore.V1Alpha.MetadataManagementActivity.Parser, new[]{ "MetadataExports", "Restores" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataImport), global::Google.Cloud.Metastore.V1Alpha.MetadataImport.Parser, new[]{ "DatabaseDump", "Name", "Description", "CreateTime", "UpdateTime", "EndTime", "State" }, new[]{ "Metadata" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataImport.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataImport.Types.DatabaseDump), global::Google.Cloud.Metastore.V1Alpha.MetadataImport.Types.DatabaseDump.Parser, new[]{ "DatabaseType", "GcsUri", "SourceDatabase", "Type" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataImport.Types.DatabaseDump.Types.DatabaseType) }, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataExport), global::Google.Cloud.Metastore.V1Alpha.MetadataExport.Parser, new[]{ "DestinationGcsUri", "StartTime", "EndTime", "State", "DatabaseDumpType" }, new[]{ "Destination" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.MetadataExport.Types.State) }, null, null), @@ -435,6 +448,7 @@ public sealed partial class Service : pb::IMessage encryptionConfig_ = other.encryptionConfig_ != null ? other.encryptionConfig_.Clone() : null; networkConfig_ = other.networkConfig_ != null ? other.networkConfig_.Clone() : null; databaseType_ = other.databaseType_; + telemetryConfig_ = other.telemetryConfig_ != null ? other.telemetryConfig_.Clone() : null; switch (other.MetastoreConfigCase) { case MetastoreConfigOneofCase.HiveMetastoreConfig: HiveMetastoreConfig = other.HiveMetastoreConfig.Clone(); @@ -470,7 +484,8 @@ public sealed partial class Service : pb::IMessage public const int NameFieldNumber = 1; private string name_ = ""; /// - /// Immutable. The relative resource name of the metastore service, of the form: + /// Immutable. The relative resource name of the metastore service, in the + /// following format: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -531,8 +546,8 @@ public sealed partial class Service : pb::IMessage public const int NetworkFieldNumber = 7; private string network_ = ""; /// - /// Immutable. The relative resource name of the VPC network on which the instance can be - /// accessed. It is specified in the following form: + /// Immutable. The relative resource name of the VPC network on which the + /// instance can be accessed. It is specified in the following form: /// /// `projects/{project_number}/global/networks/{network_id}`. /// @@ -594,8 +609,8 @@ public sealed partial class Service : pb::IMessage public const int StateMessageFieldNumber = 11; private string stateMessage_ = ""; /// - /// Output only. Additional information about the current state of the metastore service, if - /// available. + /// Output only. Additional information about the current state of the + /// metastore service, if available. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -610,8 +625,8 @@ public sealed partial class Service : pb::IMessage public const int ArtifactGcsUriFieldNumber = 12; private string artifactGcsUri_ = ""; /// - /// Output only. A Cloud Storage URI (starting with `gs://`) that specifies where artifacts - /// related to the metastore service are stored. + /// Output only. A Cloud Storage URI (starting with `gs://`) that specifies + /// where artifacts related to the metastore service are stored. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -675,7 +690,8 @@ public sealed partial class Service : pb::IMessage public const int UidFieldNumber = 16; private string uid_ = ""; /// - /// Output only. The globally unique resource identifier of the metastore service. + /// Output only. The globally unique resource identifier of the metastore + /// service. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -721,8 +737,8 @@ public sealed partial class Service : pb::IMessage public const int EncryptionConfigFieldNumber = 20; private global::Google.Cloud.Metastore.V1Alpha.EncryptionConfig encryptionConfig_; /// - /// Immutable. Information used to configure the Dataproc Metastore service to encrypt - /// customer data at rest. Cannot be updated. + /// Immutable. Information used to configure the Dataproc Metastore service to + /// encrypt customer data at rest. Cannot be updated. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -737,7 +753,7 @@ public sealed partial class Service : pb::IMessage public const int NetworkConfigFieldNumber = 21; private global::Google.Cloud.Metastore.V1Alpha.NetworkConfig networkConfig_; /// - /// Immutable. The configuration specifying the network settings for the + /// The configuration specifying the network settings for the /// Dataproc Metastore service. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -764,6 +780,22 @@ public sealed partial class Service : pb::IMessage } } + /// Field number for the "telemetry_config" field. + public const int TelemetryConfigFieldNumber = 23; + private global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig telemetryConfig_; + /// + /// The configuration specifying telemetry settings for the Dataproc Metastore + /// service. If unspecified defaults to `JSON`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig TelemetryConfig { + get { return telemetryConfig_; } + set { + telemetryConfig_ = value; + } + } + private object metastoreConfig_; /// Enum of possible cases for the "metastore_config" oneof. public enum MetastoreConfigOneofCase { @@ -819,6 +851,7 @@ public enum MetastoreConfigOneofCase { if (!object.Equals(EncryptionConfig, other.EncryptionConfig)) return false; if (!object.Equals(NetworkConfig, other.NetworkConfig)) return false; if (DatabaseType != other.DatabaseType) return false; + if (!object.Equals(TelemetryConfig, other.TelemetryConfig)) return false; if (MetastoreConfigCase != other.MetastoreConfigCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -847,6 +880,7 @@ public enum MetastoreConfigOneofCase { if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); if (networkConfig_ != null) hash ^= NetworkConfig.GetHashCode(); if (DatabaseType != global::Google.Cloud.Metastore.V1Alpha.Service.Types.DatabaseType.Unspecified) hash ^= DatabaseType.GetHashCode(); + if (telemetryConfig_ != null) hash ^= TelemetryConfig.GetHashCode(); hash ^= (int) metastoreConfigCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -943,6 +977,10 @@ public enum MetastoreConfigOneofCase { output.WriteRawTag(176, 1); output.WriteEnum((int) DatabaseType); } + if (telemetryConfig_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(TelemetryConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1030,6 +1068,10 @@ public enum MetastoreConfigOneofCase { output.WriteRawTag(176, 1); output.WriteEnum((int) DatabaseType); } + if (telemetryConfig_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(TelemetryConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1098,6 +1140,9 @@ public enum MetastoreConfigOneofCase { if (DatabaseType != global::Google.Cloud.Metastore.V1Alpha.Service.Types.DatabaseType.Unspecified) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DatabaseType); } + if (telemetryConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TelemetryConfig); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1186,6 +1231,12 @@ public enum MetastoreConfigOneofCase { if (other.DatabaseType != global::Google.Cloud.Metastore.V1Alpha.Service.Types.DatabaseType.Unspecified) { DatabaseType = other.DatabaseType; } + if (other.telemetryConfig_ != null) { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig(); + } + TelemetryConfig.MergeFrom(other.TelemetryConfig); + } switch (other.MetastoreConfigCase) { case MetastoreConfigOneofCase.HiveMetastoreConfig: if (HiveMetastoreConfig == null) { @@ -1316,6 +1367,13 @@ public enum MetastoreConfigOneofCase { DatabaseType = (global::Google.Cloud.Metastore.V1Alpha.Service.Types.DatabaseType) input.ReadEnum(); break; } + case 186: { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig(); + } + input.ReadMessage(TelemetryConfig); + break; + } } } #endif @@ -1437,6 +1495,13 @@ public enum MetastoreConfigOneofCase { DatabaseType = (global::Google.Cloud.Metastore.V1Alpha.Service.Types.DatabaseType) input.ReadEnum(); break; } + case 186: { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig(); + } + input.ReadMessage(TelemetryConfig); + break; + } } } } @@ -3819,8 +3884,8 @@ public sealed partial class AuxiliaryVersionConfig : pb::IMessage - /// Output only. The network configuration contains the endpoint URI(s) of the auxiliary - /// Hive metastore service. + /// Output only. The network configuration contains the endpoint URI(s) of the + /// auxiliary Hive metastore service. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4064,8 +4129,8 @@ public sealed partial class NetworkConfig : pb::IMessage = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Metastore.V1Alpha.NetworkConfig.Types.Consumer.Parser); private readonly pbc::RepeatedField consumers_ = new pbc::RepeatedField(); /// - /// Immutable. The consumer-side network configuration for the Dataproc Metastore - /// instance. + /// Immutable. The consumer-side network configuration for the Dataproc + /// Metastore instance. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4255,8 +4320,8 @@ public sealed partial class Consumer : pb::IMessage /// Field number for the "subnetwork" field. public const int SubnetworkFieldNumber = 1; /// - /// The subnetwork of the customer project from which an IP address is - /// reserved and used as the Dataproc Metastore service's + /// Immutable. The subnetwork of the customer project from which an IP + /// address is reserved and used as the Dataproc Metastore service's /// endpoint. It is accessible to hosts in the subnet and to all /// hosts in a subnet in the same region and same network. There must /// be at least one IP address available in the subnet's primary range. The @@ -4278,7 +4343,8 @@ public sealed partial class Consumer : pb::IMessage public const int EndpointUriFieldNumber = 3; private string endpointUri_ = ""; /// - /// Output only. The URI of the endpoint used to access the metastore service. + /// Output only. The URI of the endpoint used to access the metastore + /// service. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4476,6 +4542,224 @@ public enum VpcResourceOneofCase { } + /// + /// Telemetry Configuration for the Dataproc Metastore service. + /// + public sealed partial class TelemetryConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TelemetryConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TelemetryConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TelemetryConfig(TelemetryConfig other) : this() { + logFormat_ = other.logFormat_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TelemetryConfig Clone() { + return new TelemetryConfig(this); + } + + /// Field number for the "log_format" field. + public const int LogFormatFieldNumber = 1; + private global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat logFormat_ = global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat.Unspecified; + /// + /// The output format of the Dataproc Metastore service's logs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat LogFormat { + get { return logFormat_; } + set { + logFormat_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TelemetryConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TelemetryConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LogFormat != other.LogFormat) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (LogFormat != global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat.Unspecified) hash ^= LogFormat.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (LogFormat != global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LogFormat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (LogFormat != global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LogFormat); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (LogFormat != global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LogFormat); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TelemetryConfig other) { + if (other == null) { + return; + } + if (other.LogFormat != global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat.Unspecified) { + LogFormat = other.LogFormat; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LogFormat = (global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LogFormat = (global::Google.Cloud.Metastore.V1Alpha.TelemetryConfig.Types.LogFormat) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the TelemetryConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum LogFormat { + /// + /// The LOG_FORMAT is not set. + /// + [pbr::OriginalName("LOG_FORMAT_UNSPECIFIED")] Unspecified = 0, + /// + /// Logging output uses the legacy `textPayload` format. + /// + [pbr::OriginalName("LEGACY")] Legacy = 1, + /// + /// Logging output uses the `jsonPayload` format. + /// + [pbr::OriginalName("JSON")] Json = 2, + } + + } + #endregion + + } + /// /// The metadata management activities of the metastore service. /// @@ -4493,7 +4777,7 @@ public sealed partial class MetadataManagementActivity : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[13]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5329,7 +5613,8 @@ public sealed partial class DatabaseDump : pb::IMessage public const int TypeFieldNumber = 4; private global::Google.Cloud.Metastore.V1Alpha.DatabaseDumpSpec.Types.Type type_ = global::Google.Cloud.Metastore.V1Alpha.DatabaseDumpSpec.Types.Type.Unspecified; /// - /// Optional. The type of the database dump. If unspecified, defaults to `MYSQL`. + /// Optional. The type of the database dump. If unspecified, defaults to + /// `MYSQL`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5589,7 +5874,7 @@ public sealed partial class MetadataExport : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[14]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5631,8 +5916,9 @@ public sealed partial class MetadataExport : pb::IMessage /// Field number for the "destination_gcs_uri" field. public const int DestinationGcsUriFieldNumber = 4; /// - /// Output only. A Cloud Storage URI of a folder that metadata are exported to, in the - /// form of `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where + /// Output only. A Cloud Storage URI of a folder that metadata are exported + /// to, in the form of + /// `gs://<bucket_name>/<path_inside_bucket>/<export_folder>`, where /// `<export_folder>` is automatically generated. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6028,7 +6314,7 @@ public sealed partial class Backup : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[15]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6519,7 +6805,7 @@ public sealed partial class Restore : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[16]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6603,8 +6889,8 @@ public sealed partial class Restore : pb::IMessage public const int BackupFieldNumber = 4; private string backup_ = ""; /// - /// Output only. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Output only. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -6636,8 +6922,8 @@ public sealed partial class Restore : pb::IMessage public const int DetailsFieldNumber = 6; private string details_ = ""; /// - /// Output only. The restore details containing the revision of the service to be restored - /// to, in format of JSON. + /// Output only. The restore details containing the revision of the service to + /// be restored to, in format of JSON. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6972,7 +7258,8 @@ public enum RestoreType { } /// - /// Request message for [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices]. + /// Request message for + /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices]. /// public sealed partial class ListServicesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -6988,7 +7275,7 @@ public sealed partial class ListServicesRequest : pb::IMessage - /// Required. The relative resource name of the location of metastore services to - /// list, in the following form: + /// Required. The relative resource name of the location of metastore services + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -7044,9 +7331,10 @@ public sealed partial class ListServicesRequest : pb::IMessage - /// Optional. The maximum number of services to return. The response may contain less - /// than the maximum number. If unspecified, no more than 500 services are - /// returned. The maximum value is 1000; values above 1000 are changed to 1000. + /// Optional. The maximum number of services to return. The response may + /// contain less than the maximum number. If unspecified, no more than 500 + /// services are returned. The maximum value is 1000; values above 1000 are + /// changed to 1000. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7061,14 +7349,15 @@ public sealed partial class ListServicesRequest : pb::IMessage - /// Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] + /// Optional. A page token, received from a previous + /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] /// call. Provide this token to retrieve the subsequent page. /// /// To retrieve the first page, supply an empty page token. /// /// When paginating, other parameters provided to - /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] must match the call that provided the - /// page token. + /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] + /// must match the call that provided the page token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7341,7 +7630,8 @@ public sealed partial class ListServicesRequest : pb::IMessage - /// Response message for [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices]. + /// Response message for + /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices]. /// public sealed partial class ListServicesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -7357,7 +7647,7 @@ public sealed partial class ListServicesResponse : pb::IMessage - /// Request message for [DataprocMetastore.GetService][google.cloud.metastore.v1alpha.DataprocMetastore.GetService]. + /// Request message for + /// [DataprocMetastore.GetService][google.cloud.metastore.v1alpha.DataprocMetastore.GetService]. /// public sealed partial class GetServiceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -7611,7 +7902,7 @@ public sealed partial class GetServiceRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[19]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7645,8 +7936,8 @@ public sealed partial class GetServiceRequest : pb::IMessage public const int NameFieldNumber = 1; private string name_ = ""; /// - /// Required. The relative resource name of the metastore service to retrieve, in the - /// following form: + /// Required. The relative resource name of the metastore service to retrieve, + /// in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -7793,7 +8084,8 @@ public sealed partial class GetServiceRequest : pb::IMessage } /// - /// Request message for [DataprocMetastore.CreateService][google.cloud.metastore.v1alpha.DataprocMetastore.CreateService]. + /// Request message for + /// [DataprocMetastore.CreateService][google.cloud.metastore.v1alpha.DataprocMetastore.CreateService]. /// public sealed partial class CreateServiceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -7809,7 +8101,7 @@ public sealed partial class CreateServiceRequest : pb::IMessage - /// Required. The relative resource name of the location in which to create a metastore - /// service, in the following form: + /// Required. The relative resource name of the location in which to create a + /// metastore service, in the following form: /// /// `projects/{project_number}/locations/{location_id}`. /// @@ -7901,10 +8193,10 @@ public sealed partial class CreateServiceRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -8138,7 +8430,8 @@ public sealed partial class CreateServiceRequest : pb::IMessage - /// Request message for [DataprocMetastore.UpdateService][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateService]. + /// Request message for + /// [DataprocMetastore.UpdateService][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateService]. /// public sealed partial class UpdateServiceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -8154,7 +8447,7 @@ public sealed partial class UpdateServiceRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -8449,7 +8742,8 @@ public sealed partial class UpdateServiceRequest : pb::IMessage - /// Request message for [DataprocMetastore.DeleteService][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteService]. + /// Request message for + /// [DataprocMetastore.DeleteService][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteService]. /// public sealed partial class DeleteServiceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -8465,7 +8759,7 @@ public sealed partial class DeleteServiceRequest : pb::IMessage - /// Required. The relative resource name of the metastore service to delete, in the - /// following form: + /// Required. The relative resource name of the metastore service to delete, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -8518,10 +8812,10 @@ public sealed partial class DeleteServiceRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -8698,7 +8992,8 @@ public sealed partial class DeleteServiceRequest : pb::IMessage - /// Request message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports]. + /// Request message for + /// [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports]. /// public sealed partial class ListMetadataImportsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -8714,7 +9009,7 @@ public sealed partial class ListMetadataImportsRequest : pb::IMessage - /// Required. The relative resource name of the service whose metadata imports to - /// list, in the following form: + /// Required. The relative resource name of the service whose metadata imports + /// to list, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. /// @@ -8770,8 +9065,8 @@ public sealed partial class ListMetadataImportsRequest : pb::IMessage - /// Optional. The maximum number of imports to return. The response may contain less - /// than the maximum number. If unspecified, no more than 500 imports are + /// Optional. The maximum number of imports to return. The response may contain + /// less than the maximum number. If unspecified, no more than 500 imports are /// returned. The maximum value is 1000; values above 1000 are changed to 1000. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8787,14 +9082,15 @@ public sealed partial class ListMetadataImportsRequest : pb::IMessage - /// Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] + /// Optional. A page token, received from a previous + /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] /// call. Provide this token to retrieve the subsequent page. /// /// To retrieve the first page, supply an empty page token. /// /// When paginating, other parameters provided to - /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] must match the call that provided the - /// page token. + /// [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] + /// must match the call that provided the page token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9067,7 +9363,8 @@ public sealed partial class ListMetadataImportsRequest : pb::IMessage - /// Response message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports]. + /// Response message for + /// [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports]. /// public sealed partial class ListMetadataImportsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -9083,7 +9380,7 @@ public sealed partial class ListMetadataImportsResponse : pb::IMessage - /// Request message for [DataprocMetastore.GetMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImport]. + /// Request message for + /// [DataprocMetastore.GetMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImport]. /// public sealed partial class GetMetadataImportRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -9337,7 +9635,7 @@ public sealed partial class GetMetadataImportRequest : pb::IMessage - /// Required. The relative resource name of the metadata import to retrieve, in the - /// following form: + /// Required. The relative resource name of the metadata import to retrieve, in + /// the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. /// @@ -9519,7 +9817,8 @@ public sealed partial class GetMetadataImportRequest : pb::IMessage - /// Request message for [DataprocMetastore.CreateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImport]. + /// Request message for + /// [DataprocMetastore.CreateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImport]. /// public sealed partial class CreateMetadataImportRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -9535,7 +9834,7 @@ public sealed partial class CreateMetadataImportRequest : pb::IMessage - /// Required. The relative resource name of the service in which to create a metastore - /// import, in the following form: + /// Required. The relative resource name of the service in which to create a + /// metastore import, in the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -9590,8 +9889,8 @@ public sealed partial class CreateMetadataImportRequest : pb::IMessage - /// Required. The ID of the metadata import, which is used as the final component of the - /// metadata import's name. + /// Required. The ID of the metadata import, which is used as the final + /// component of the metadata import's name. /// /// This value must be between 1 and 64 characters long, begin with a letter, /// end with a letter or number, and consist of alpha-numeric ASCII characters @@ -9610,8 +9909,8 @@ public sealed partial class CreateMetadataImportRequest : pb::IMessage - /// Required. The metadata import to create. The `name` field is ignored. The ID of the - /// created metadata import must be provided in the request's + /// Required. The metadata import to create. The `name` field is ignored. The + /// ID of the created metadata import must be provided in the request's /// `metadata_import_id` field. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9627,10 +9926,10 @@ public sealed partial class CreateMetadataImportRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -9864,7 +10163,8 @@ public sealed partial class CreateMetadataImportRequest : pb::IMessage - /// Request message for [DataprocMetastore.UpdateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImport]. + /// Request message for + /// [DataprocMetastore.UpdateMetadataImport][google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImport]. /// public sealed partial class UpdateMetadataImportRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -9880,7 +10180,7 @@ public sealed partial class UpdateMetadataImportRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -10175,7 +10475,8 @@ public sealed partial class UpdateMetadataImportRequest : pb::IMessage - /// Request message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups]. + /// Request message for + /// [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups]. /// public sealed partial class ListBackupsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -10191,7 +10492,7 @@ public sealed partial class ListBackupsRequest : pb::IMessage - /// Optional. The maximum number of backups to return. The response may contain less - /// than the maximum number. If unspecified, no more than 500 backups are + /// Optional. The maximum number of backups to return. The response may contain + /// less than the maximum number. If unspecified, no more than 500 backups are /// returned. The maximum value is 1000; values above 1000 are changed to 1000. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10264,14 +10565,15 @@ public sealed partial class ListBackupsRequest : pb::IMessage - /// Optional. A page token, received from a previous [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] + /// Optional. A page token, received from a previous + /// [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] /// call. Provide this token to retrieve the subsequent page. /// /// To retrieve the first page, supply an empty page token. /// /// When paginating, other parameters provided to - /// [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] must match the call that provided the - /// page token. + /// [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] + /// must match the call that provided the page token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10544,7 +10846,8 @@ public sealed partial class ListBackupsRequest : pb::IMessage - /// Response message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups]. + /// Response message for + /// [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups]. /// public sealed partial class ListBackupsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -10560,7 +10863,7 @@ public sealed partial class ListBackupsResponse : pb::IMessage - /// Request message for [DataprocMetastore.GetBackup][google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup]. + /// Request message for + /// [DataprocMetastore.GetBackup][google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup]. /// public sealed partial class GetBackupRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -10814,7 +11118,7 @@ public sealed partial class GetBackupRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[30]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[31]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10996,7 +11300,8 @@ public sealed partial class GetBackupRequest : pb::IMessage } /// - /// Request message for [DataprocMetastore.CreateBackup][google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup]. + /// Request message for + /// [DataprocMetastore.CreateBackup][google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup]. /// public sealed partial class CreateBackupRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -11012,7 +11317,7 @@ public sealed partial class CreateBackupRequest : pb::IMessage - /// Required. The relative resource name of the service in which to create a backup - /// of the following form: + /// Required. The relative resource name of the service in which to create a + /// backup of the following form: /// /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// @@ -11087,8 +11392,8 @@ public sealed partial class CreateBackupRequest : pb::IMessage - /// Required. The backup to create. The `name` field is ignored. The ID of the created - /// backup must be provided in the request's `backup_id` field. + /// Required. The backup to create. The `name` field is ignored. The ID of the + /// created backup must be provided in the request's `backup_id` field. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -11103,10 +11408,10 @@ public sealed partial class CreateBackupRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -11340,7 +11645,8 @@ public sealed partial class CreateBackupRequest : pb::IMessage - /// Request message for [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup]. + /// Request message for + /// [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup]. /// public sealed partial class DeleteBackupRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -11356,7 +11662,7 @@ public sealed partial class DeleteBackupRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -11589,7 +11895,8 @@ public sealed partial class DeleteBackupRequest : pb::IMessage - /// Request message for [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata]. + /// Request message for + /// [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata]. /// public sealed partial class ExportMetadataRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -11605,7 +11912,7 @@ public sealed partial class ExportMetadataRequest : pb::IMessage - /// Required. The relative resource name of the metastore service to run export, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// export, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// @@ -11682,10 +11989,10 @@ public sealed partial class ExportMetadataRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -11708,7 +12015,8 @@ public sealed partial class ExportMetadataRequest : pb::IMessage - /// Optional. The type of the database dump. If unspecified, defaults to `MYSQL`. + /// Optional. The type of the database dump. If unspecified, defaults to + /// `MYSQL`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -11966,7 +12274,7 @@ public sealed partial class RestoreServiceRequest : pb::IMessage - /// Required. The relative resource name of the metastore service to run restore, in the - /// following form: + /// Required. The relative resource name of the metastore service to run + /// restore, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}`. /// @@ -12021,8 +12329,8 @@ public sealed partial class RestoreServiceRequest : pb::IMessage - /// Required. The relative resource name of the metastore service backup to restore - /// from, in the following form: + /// Required. The relative resource name of the metastore service backup to + /// restore from, in the following form: /// /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// @@ -12054,10 +12362,10 @@ public sealed partial class RestoreServiceRequest : pb::IMessage - /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the - /// request if it has completed. The server will ignore subsequent requests - /// that provide a duplicate request ID for at least 60 minutes after the first - /// request. + /// Optional. A request ID. Specify a unique request ID to allow the server to + /// ignore the request if it has completed. The server will ignore subsequent + /// requests that provide a duplicate request ID for at least 60 minutes after + /// the first request. /// /// For example, if an initial request times out, followed by another request /// with the same request ID, the server ignores the second request to prevent @@ -12298,7 +12606,7 @@ public sealed partial class OperationMetadata : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[35]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12415,8 +12723,9 @@ public sealed partial class OperationMetadata : pb::IMessage /// /// Output only. Identifies whether the caller has requested cancellation /// of the operation. Operations that have successfully been cancelled - /// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - /// corresponding to `Code.CANCELLED`. + /// have [Operation.error][] value with a + /// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + /// `Code.CANCELLED`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12754,7 +13063,7 @@ public sealed partial class LocationMetadata : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[36]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13184,7 +13493,7 @@ public sealed partial class DatabaseDumpSpec : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[37]; } + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederation.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederation.g.cs new file mode 100644 index 000000000000..a7faee40f312 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederation.g.cs @@ -0,0 +1,2726 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/metastore/v1alpha/metastore_federation.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.Metastore.V1Alpha { + + /// Holder for reflection information generated from google/cloud/metastore/v1alpha/metastore_federation.proto + public static partial class MetastoreFederationReflection { + + #region Descriptor + /// File descriptor for google/cloud/metastore/v1alpha/metastore_federation.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MetastoreFederationReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjlnb29nbGUvY2xvdWQvbWV0YXN0b3JlL3YxYWxwaGEvbWV0YXN0b3JlX2Zl", + "ZGVyYXRpb24ucHJvdG8SHmdvb2dsZS5jbG91ZC5tZXRhc3RvcmUudjFhbHBo", + "YRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9j", + "bGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", + "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aI2dvb2dsZS9sb25ncnVubmlu", + "Zy9vcGVyYXRpb25zLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFz", + "ay5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90byK/BgoK", + "RmVkZXJhdGlvbhIRCgRuYW1lGAEgASgJQgPgQQUSNAoLY3JlYXRlX3RpbWUY", + "AiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSNAoLdXBk", + "YXRlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPg", + "QQMSRgoGbGFiZWxzGAQgAygLMjYuZ29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52", + "MWFscGhhLkZlZGVyYXRpb24uTGFiZWxzRW50cnkSFAoHdmVyc2lvbhgFIAEo", + "CUID4EEFEl0KEmJhY2tlbmRfbWV0YXN0b3JlcxgGIAMoCzJBLmdvb2dsZS5j", + "bG91ZC5tZXRhc3RvcmUudjFhbHBoYS5GZWRlcmF0aW9uLkJhY2tlbmRNZXRh", + "c3RvcmVzRW50cnkSGQoMZW5kcG9pbnRfdXJpGAcgASgJQgPgQQMSRAoFc3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xvdWQv", + "bWV0YXN0b3JlL3YxYWxwaGE7bWV0YXN0b3JlYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.Federation), global::Google.Cloud.Metastore.V1Alpha.Federation.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Version", "BackendMetastores", "EndpointUri", "State", "StateMessage", "Uid" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.BackendMetastore), global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Parser, new[]{ "Name", "MetastoreType" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest), global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.ListFederationsResponse), global::Google.Cloud.Metastore.V1Alpha.ListFederationsResponse.Parser, new[]{ "Federations", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest), global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest), global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest.Parser, new[]{ "Parent", "FederationId", "Federation", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest), global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest.Parser, new[]{ "UpdateMask", "Federation", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest), global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest.Parser, new[]{ "Name", "RequestId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Represents a federation of multiple backend metastores. + /// + public sealed partial class Federation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Federation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Federation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Federation(Federation other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + labels_ = other.labels_.Clone(); + version_ = other.version_; + backendMetastores_ = other.backendMetastores_.Clone(); + endpointUri_ = other.endpointUri_; + state_ = other.state_; + stateMessage_ = other.stateMessage_; + uid_ = other.uid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Federation Clone() { + return new Federation(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Immutable. The relative resource name of the federation, of the + /// form: + /// projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the metastore federation was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time when the metastore federation was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// User-defined labels for the metastore federation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 5; + private string version_ = ""; + /// + /// Immutable. The Apache Hive metastore version of the federation. All backend metastore + /// versions must be compatible with the federation version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backend_metastores" field. + public const int BackendMetastoresFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_backendMetastores_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Parser), 50); + private readonly pbc::MapField backendMetastores_ = new pbc::MapField(); + /// + /// A map from `BackendMetastore` rank to `BackendMetastore`s from which the + /// federation service serves metadata at query time. The map key represents + /// the order in which `BackendMetastore`s should be evaluated to resolve + /// database names at query time and should be greater than or equal to zero. A + /// `BackendMetastore` with a lower number will be evaluated before a + /// `BackendMetastore` with a higher number. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField BackendMetastores { + get { return backendMetastores_; } + } + + /// Field number for the "endpoint_uri" field. + public const int EndpointUriFieldNumber = 7; + private string endpointUri_ = ""; + /// + /// Output only. The federation endpoint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndpointUri { + get { return endpointUri_; } + set { + endpointUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 8; + private global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State state_ = global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State.Unspecified; + /// + /// Output only. The current state of the federation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "state_message" field. + public const int StateMessageFieldNumber = 9; + private string stateMessage_ = ""; + /// + /// Output only. Additional information about the current state of the metastore federation, + /// if available. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StateMessage { + get { return stateMessage_; } + set { + stateMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "uid" field. + public const int UidFieldNumber = 10; + private string uid_ = ""; + /// + /// Output only. The globally unique resource identifier of the metastore federation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uid { + get { return uid_; } + set { + uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Federation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Federation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (Version != other.Version) return false; + if (!BackendMetastores.Equals(other.BackendMetastores)) return false; + if (EndpointUri != other.EndpointUri) return false; + if (State != other.State) return false; + if (StateMessage != other.StateMessage) return false; + if (Uid != other.Uid) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= BackendMetastores.GetHashCode(); + if (EndpointUri.Length != 0) hash ^= EndpointUri.GetHashCode(); + if (State != global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (StateMessage.Length != 0) hash ^= StateMessage.GetHashCode(); + if (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(output, _map_labels_codec); + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + backendMetastores_.WriteTo(output, _map_backendMetastores_codec); + if (EndpointUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EndpointUri); + } + if (State != global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(74); + output.WriteString(StateMessage); + } + if (Uid.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(UpdateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + backendMetastores_.WriteTo(ref output, _map_backendMetastores_codec); + if (EndpointUri.Length != 0) { + output.WriteRawTag(58); + output.WriteString(EndpointUri); + } + if (State != global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) State); + } + if (StateMessage.Length != 0) { + output.WriteRawTag(74); + output.WriteString(StateMessage); + } + if (Uid.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Uid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += backendMetastores_.CalculateSize(_map_backendMetastores_codec); + if (EndpointUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndpointUri); + } + if (State != global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (StateMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StateMessage); + } + if (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Federation other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + labels_.Add(other.labels_); + if (other.Version.Length != 0) { + Version = other.Version; + } + backendMetastores_.Add(other.backendMetastores_); + if (other.EndpointUri.Length != 0) { + EndpointUri = other.EndpointUri; + } + if (other.State != global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State.Unspecified) { + State = other.State; + } + if (other.StateMessage.Length != 0) { + StateMessage = other.StateMessage; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 50: { + backendMetastores_.AddEntriesFrom(input, _map_backendMetastores_codec); + break; + } + case 58: { + EndpointUri = input.ReadString(); + break; + } + case 64: { + State = (global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State) input.ReadEnum(); + break; + } + case 74: { + StateMessage = input.ReadString(); + break; + } + case 82: { + Uid = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 50: { + backendMetastores_.AddEntriesFrom(ref input, _map_backendMetastores_codec); + break; + } + case 58: { + EndpointUri = input.ReadString(); + break; + } + case 64: { + State = (global::Google.Cloud.Metastore.V1Alpha.Federation.Types.State) input.ReadEnum(); + break; + } + case 74: { + StateMessage = input.ReadString(); + break; + } + case 82: { + Uid = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Federation message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The current state of the federation. + /// + public enum State { + /// + /// The state of the metastore federation is unknown. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The metastore federation is in the process of being created. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The metastore federation is running and ready to serve queries. + /// + [pbr::OriginalName("ACTIVE")] Active = 2, + /// + /// The metastore federation is being updated. It remains usable but cannot + /// accept additional update requests or be deleted at this time. + /// + [pbr::OriginalName("UPDATING")] Updating = 3, + /// + /// The metastore federation is undergoing deletion. It cannot be used. + /// + [pbr::OriginalName("DELETING")] Deleting = 4, + /// + /// The metastore federation has encountered an error and cannot be used. The + /// metastore federation should be deleted. + /// + [pbr::OriginalName("ERROR")] Error = 5, + } + + } + #endregion + + } + + /// + /// Represents a backend metastore for the federation. + /// + public sealed partial class BackendMetastore : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackendMetastore()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackendMetastore() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackendMetastore(BackendMetastore other) : this() { + name_ = other.name_; + metastoreType_ = other.metastoreType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackendMetastore Clone() { + return new BackendMetastore(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The relative resource name of the metastore that is being federated. + /// The formats of the relative resource names for the currently supported + /// metastores are listed below: + /// + /// * Dataplex + /// * `projects/{project_id}/locations/{location}/lakes/{lake_id}` + /// * BigQuery + /// * `projects/{project_id}` + /// * Dataproc Metastore + /// * `projects/{project_id}/locations/{location}/services/{service_id}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metastore_type" field. + public const int MetastoreTypeFieldNumber = 2; + private global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType metastoreType_ = global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType.Unspecified; + /// + /// The type of the backend metastore. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType MetastoreType { + get { return metastoreType_; } + set { + metastoreType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BackendMetastore); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackendMetastore other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (MetastoreType != other.MetastoreType) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (MetastoreType != global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType.Unspecified) hash ^= MetastoreType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (MetastoreType != global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) MetastoreType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (MetastoreType != global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) MetastoreType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (MetastoreType != global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MetastoreType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackendMetastore other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.MetastoreType != global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType.Unspecified) { + MetastoreType = other.MetastoreType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + MetastoreType = (global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + MetastoreType = (global::Google.Cloud.Metastore.V1Alpha.BackendMetastore.Types.MetastoreType) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the BackendMetastore message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The type of the backend metastore. + /// + public enum MetastoreType { + /// + /// The metastore type is not set. + /// + [pbr::OriginalName("METASTORE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// The backend metastore is BigQuery. + /// + [pbr::OriginalName("BIGQUERY")] Bigquery = 2, + /// + /// The backend metastore is Dataproc Metastore. + /// + [pbr::OriginalName("DATAPROC_METASTORE")] DataprocMetastore = 3, + } + + } + #endregion + + } + + /// + /// Request message for ListFederations. + /// + public sealed partial class ListFederationsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListFederationsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListFederationsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListFederationsRequest(ListFederationsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListFederationsRequest Clone() { + return new ListFederationsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The relative resource name of the location of metastore federations + /// to list, in the following form: + /// `projects/{project_number}/locations/{location_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of federations to return. The response may contain less + /// than the maximum number. If unspecified, no more than 500 services are + /// returned. The maximum value is 1000; values above 1000 are changed to 1000. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// Optional. A page token, received from a previous ListFederationServices + /// call. Provide this token to retrieve the subsequent page. + /// + /// To retrieve the first page, supply an empty page token. + /// + /// When paginating, other parameters provided to + /// ListFederationServices must match the call that provided the + /// page token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 4; + private string filter_ = ""; + /// + /// Optional. The filter to apply to list results. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 5; + private string orderBy_ = ""; + /// + /// Optional. Specify the ordering of results as described in [Sorting + /// Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). + /// If not specified, the results will be sorted in the default order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListFederationsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListFederationsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Filter != other.Filter) return false; + if (OrderBy != other.OrderBy) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (OrderBy.Length != 0) hash ^= OrderBy.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (OrderBy.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrderBy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListFederationsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + case 42: { + OrderBy = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for ListFederations + /// + public sealed partial class ListFederationsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListFederationsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListFederationsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListFederationsResponse(ListFederationsResponse other) : this() { + federations_ = other.federations_.Clone(); + nextPageToken_ = other.nextPageToken_; + unreachable_ = other.unreachable_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListFederationsResponse Clone() { + return new ListFederationsResponse(this); + } + + /// Field number for the "federations" field. + public const int FederationsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_federations_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Metastore.V1Alpha.Federation.Parser); + private readonly pbc::RepeatedField federations_ = new pbc::RepeatedField(); + /// + /// The services in the specified location. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Federations { + get { return federations_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token that can be sent as `page_token` to retrieve the next page. If this + /// field is omitted, there are no subsequent pages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "unreachable" field. + public const int UnreachableFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_unreachable_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField(); + /// + /// Locations that could not be reached. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Unreachable { + get { return unreachable_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListFederationsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListFederationsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!federations_.Equals(other.federations_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!unreachable_.Equals(other.unreachable_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= federations_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= unreachable_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + federations_.WriteTo(output, _repeated_federations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(output, _repeated_unreachable_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + federations_.WriteTo(ref output, _repeated_federations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + unreachable_.WriteTo(ref output, _repeated_unreachable_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += federations_.CalculateSize(_repeated_federations_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += unreachable_.CalculateSize(_repeated_unreachable_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListFederationsResponse other) { + if (other == null) { + return; + } + federations_.Add(other.federations_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + unreachable_.Add(other.unreachable_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + federations_.AddEntriesFrom(input, _repeated_federations_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(input, _repeated_unreachable_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + federations_.AddEntriesFrom(ref input, _repeated_federations_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for GetFederation. + /// + public sealed partial class GetFederationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFederationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFederationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFederationRequest(GetFederationRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetFederationRequest Clone() { + return new GetFederationRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The relative resource name of the metastore federation to retrieve, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetFederationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetFederationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetFederationRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for CreateFederation. + /// + public sealed partial class CreateFederationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateFederationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateFederationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateFederationRequest(CreateFederationRequest other) : this() { + parent_ = other.parent_; + federationId_ = other.federationId_; + federation_ = other.federation_ != null ? other.federation_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateFederationRequest Clone() { + return new CreateFederationRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The relative resource name of the location in which to create a federation + /// service, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "federation_id" field. + public const int FederationIdFieldNumber = 2; + private string federationId_ = ""; + /// + /// Required. The ID of the metastore federation, which is used as the final + /// component of the metastore federation's name. + /// + /// This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric + /// ASCII characters or hyphens. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FederationId { + get { return federationId_; } + set { + federationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "federation" field. + public const int FederationFieldNumber = 3; + private global::Google.Cloud.Metastore.V1Alpha.Federation federation_; + /// + /// Required. The Metastore Federation to create. The `name` field is + /// ignored. The ID of the created metastore federation must be + /// provided in the request's `federation_id` field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Alpha.Federation Federation { + get { return federation_; } + set { + federation_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private string requestId_ = ""; + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the + /// request if it has completed. The server will ignore subsequent requests + /// that provide a duplicate request ID for at least 60 minutes after the first + /// request. + /// + /// For example, if an initial request times out, followed by another request + /// with the same request ID, the server ignores the second request to prevent + /// the creation of duplicate commitments. + /// + /// The request ID must be a valid + /// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + /// A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateFederationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateFederationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (FederationId != other.FederationId) return false; + if (!object.Equals(Federation, other.Federation)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (FederationId.Length != 0) hash ^= FederationId.GetHashCode(); + if (federation_ != null) hash ^= Federation.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (FederationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FederationId); + } + if (federation_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Federation); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (FederationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FederationId); + } + if (federation_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Federation); + } + if (RequestId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (FederationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FederationId); + } + if (federation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Federation); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateFederationRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.FederationId.Length != 0) { + FederationId = other.FederationId; + } + if (other.federation_ != null) { + if (federation_ == null) { + Federation = new global::Google.Cloud.Metastore.V1Alpha.Federation(); + } + Federation.MergeFrom(other.Federation); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + FederationId = input.ReadString(); + break; + } + case 26: { + if (federation_ == null) { + Federation = new global::Google.Cloud.Metastore.V1Alpha.Federation(); + } + input.ReadMessage(Federation); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + FederationId = input.ReadString(); + break; + } + case 26: { + if (federation_ == null) { + Federation = new global::Google.Cloud.Metastore.V1Alpha.Federation(); + } + input.ReadMessage(Federation); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for UpdateFederation. + /// + public sealed partial class UpdateFederationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateFederationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateFederationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateFederationRequest(UpdateFederationRequest other) : this() { + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + federation_ = other.federation_ != null ? other.federation_.Clone() : null; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateFederationRequest Clone() { + return new UpdateFederationRequest(this); + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. A field mask used to specify the fields to be overwritten in the + /// metastore federation resource by the update. + /// Fields specified in the `update_mask` are relative to the resource (not + /// to the full request). A field is overwritten if it is in the mask. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "federation" field. + public const int FederationFieldNumber = 2; + private global::Google.Cloud.Metastore.V1Alpha.Federation federation_; + /// + /// Required. The metastore federation to update. The server only merges fields + /// in the service if they are specified in `update_mask`. + /// + /// The metastore federation's `name` field is used to identify the + /// metastore service to be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Alpha.Federation Federation { + get { return federation_; } + set { + federation_ = value; + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 3; + private string requestId_ = ""; + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the + /// request if it has completed. The server will ignore subsequent requests + /// that provide a duplicate request ID for at least 60 minutes after the first + /// request. + /// + /// For example, if an initial request times out, followed by another request + /// with the same request ID, the server ignores the second request to prevent + /// the creation of duplicate commitments. + /// + /// The request ID must be a valid + /// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + /// A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateFederationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateFederationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (!object.Equals(Federation, other.Federation)) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (federation_ != null) hash ^= Federation.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (updateMask_ != null) { + output.WriteRawTag(10); + output.WriteMessage(UpdateMask); + } + if (federation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Federation); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (updateMask_ != null) { + output.WriteRawTag(10); + output.WriteMessage(UpdateMask); + } + if (federation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Federation); + } + if (RequestId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (federation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Federation); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateFederationRequest other) { + if (other == null) { + return; + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.federation_ != null) { + if (federation_ == null) { + Federation = new global::Google.Cloud.Metastore.V1Alpha.Federation(); + } + Federation.MergeFrom(other.Federation); + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 18: { + if (federation_ == null) { + Federation = new global::Google.Cloud.Metastore.V1Alpha.Federation(); + } + input.ReadMessage(Federation); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 18: { + if (federation_ == null) { + Federation = new global::Google.Cloud.Metastore.V1Alpha.Federation(); + } + input.ReadMessage(Federation); + break; + } + case 26: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for DeleteFederation. + /// + public sealed partial class DeleteFederationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteFederationRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteFederationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteFederationRequest(DeleteFederationRequest other) : this() { + name_ = other.name_; + requestId_ = other.requestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteFederationRequest Clone() { + return new DeleteFederationRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The relative resource name of the metastore federation to delete, + /// in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 2; + private string requestId_ = ""; + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the + /// request if it has completed. The server will ignore subsequent requests + /// that provide a duplicate request ID for at least 60 minutes after the first + /// request. + /// + /// For example, if an initial request times out, followed by another request + /// with the same request ID, the server ignores the second request to prevent + /// the creation of duplicate commitments. + /// + /// The request ID must be a valid + /// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + /// A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteFederationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteFederationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RequestId != other.RequestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (RequestId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(RequestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (RequestId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteFederationRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.RequestId.Length != 0) { + RequestId = other.RequestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RequestId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationGrpc.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationGrpc.g.cs new file mode 100644 index 000000000000..ee6ef6c37857 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationGrpc.g.cs @@ -0,0 +1,511 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/metastore/v1alpha/metastore_federation.proto +// +// Original file comments: +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#pragma warning disable 0414, 1591, 8981 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.Cloud.Metastore.V1Alpha { + /// + /// Configures and manages metastore federation services. + /// Dataproc Metastore Federation Service allows federating a collection of + /// backend metastores like BigQuery, Dataplex Lakes, and other Dataproc + /// Metastores. The Federation Service exposes a gRPC URL through which metadata + /// from the backend metastores are served at query time. + /// + /// The Dataproc Metastore Federation API defines the following resource model: + /// * The service works with a collection of Google Cloud projects. + /// * Each project has a collection of available locations. + /// * Each location has a collection of federations. + /// * Dataproc Metastore Federations are resources with names of the + /// form: + /// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. + /// + public static partial class DataprocMetastoreFederation + { + static readonly string __ServiceName = "google.cloud.metastore.v1alpha.DataprocMetastoreFederation"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1alpha_ListFederationsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1alpha_ListFederationsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Alpha.ListFederationsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1alpha_GetFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1alpha_Federation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Alpha.Federation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1alpha_CreateFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1alpha_UpdateFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1alpha_DeleteFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListFederations = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListFederations", + __Marshaller_google_cloud_metastore_v1alpha_ListFederationsRequest, + __Marshaller_google_cloud_metastore_v1alpha_ListFederationsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetFederation = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetFederation", + __Marshaller_google_cloud_metastore_v1alpha_GetFederationRequest, + __Marshaller_google_cloud_metastore_v1alpha_Federation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateFederation = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateFederation", + __Marshaller_google_cloud_metastore_v1alpha_CreateFederationRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateFederation = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateFederation", + __Marshaller_google_cloud_metastore_v1alpha_UpdateFederationRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteFederation = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteFederation", + __Marshaller_google_cloud_metastore_v1alpha_DeleteFederationRequest, + __Marshaller_google_longrunning_Operation); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Metastore.V1Alpha.MetastoreFederationReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DataprocMetastoreFederation + [grpc::BindServiceMethod(typeof(DataprocMetastoreFederation), "BindService")] + public abstract partial class DataprocMetastoreFederationBase + { + /// + /// Lists federations in a project and location. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListFederations(global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets the details of a single federation. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetFederation(global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a metastore federation in a project and location. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateFederation(global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates the fields of a federation. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateFederation(global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a single federation. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteFederation(global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for DataprocMetastoreFederation + public partial class DataprocMetastoreFederationClient : grpc::ClientBase + { + /// Creates a new client for DataprocMetastoreFederation + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DataprocMetastoreFederationClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for DataprocMetastoreFederation that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DataprocMetastoreFederationClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DataprocMetastoreFederationClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DataprocMetastoreFederationClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Lists federations in a project and location. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Metastore.V1Alpha.ListFederationsResponse ListFederations(global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListFederations(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists federations in a project and location. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Metastore.V1Alpha.ListFederationsResponse ListFederations(global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListFederations, null, options, request); + } + /// + /// Lists federations in a project and location. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListFederationsAsync(global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListFederationsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists federations in a project and location. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListFederationsAsync(global::Google.Cloud.Metastore.V1Alpha.ListFederationsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListFederations, null, options, request); + } + /// + /// Gets the details of a single federation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Metastore.V1Alpha.Federation GetFederation(global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetFederation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the details of a single federation. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Metastore.V1Alpha.Federation GetFederation(global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetFederation, null, options, request); + } + /// + /// Gets the details of a single federation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetFederationAsync(global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetFederationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the details of a single federation. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetFederationAsync(global::Google.Cloud.Metastore.V1Alpha.GetFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetFederation, null, options, request); + } + /// + /// Creates a metastore federation in a project and location. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateFederation(global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateFederation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a metastore federation in a project and location. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateFederation(global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateFederation, null, options, request); + } + /// + /// Creates a metastore federation in a project and location. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateFederationAsync(global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateFederationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a metastore federation in a project and location. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateFederationAsync(global::Google.Cloud.Metastore.V1Alpha.CreateFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateFederation, null, options, request); + } + /// + /// Updates the fields of a federation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateFederation(global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateFederation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the fields of a federation. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateFederation(global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateFederation, null, options, request); + } + /// + /// Updates the fields of a federation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateFederationAsync(global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateFederationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the fields of a federation. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateFederationAsync(global::Google.Cloud.Metastore.V1Alpha.UpdateFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateFederation, null, options, request); + } + /// + /// Deletes a single federation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteFederation(global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteFederation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a single federation. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteFederation(global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteFederation, null, options, request); + } + /// + /// Deletes a single federation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteFederationAsync(global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteFederationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a single federation. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteFederationAsync(global::Google.Cloud.Metastore.V1Alpha.DeleteFederationRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteFederation, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override DataprocMetastoreFederationClient NewInstance(ClientBaseConfiguration configuration) + { + return new DataprocMetastoreFederationClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(DataprocMetastoreFederationBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_ListFederations, serviceImpl.ListFederations) + .AddMethod(__Method_GetFederation, serviceImpl.GetFederation) + .AddMethod(__Method_CreateFederation, serviceImpl.CreateFederation) + .AddMethod(__Method_UpdateFederation, serviceImpl.UpdateFederation) + .AddMethod(__Method_DeleteFederation, serviceImpl.DeleteFederation).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, DataprocMetastoreFederationBase serviceImpl) + { + serviceBinder.AddMethod(__Method_ListFederations, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListFederations)); + serviceBinder.AddMethod(__Method_GetFederation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetFederation)); + serviceBinder.AddMethod(__Method_CreateFederation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateFederation)); + serviceBinder.AddMethod(__Method_UpdateFederation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateFederation)); + serviceBinder.AddMethod(__Method_DeleteFederation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteFederation)); + } + + } +} +#endregion diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationResourceNames.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationResourceNames.g.cs new file mode 100644 index 000000000000..2b10e7bbec0b --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/MetastoreFederationResourceNames.g.cs @@ -0,0 +1,323 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gagr = Google.Api.Gax.ResourceNames; +using gcmv = Google.Cloud.Metastore.V1Alpha; +using sys = System; + +namespace Google.Cloud.Metastore.V1Alpha +{ + /// Resource name for the Federation resource. + public sealed partial class FederationName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/federations/{federation}. + /// + ProjectLocationFederation = 1, + } + + private static gax::PathTemplate s_projectLocationFederation = new gax::PathTemplate("projects/{project}/locations/{location}/federations/{federation}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static FederationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new FederationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/federations/{federation}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Federation ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static FederationName FromProjectLocationFederation(string projectId, string locationId, string federationId) => + new FederationName(ResourceNameType.ProjectLocationFederation, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), federationId: gax::GaxPreconditions.CheckNotNullOrEmpty(federationId, nameof(federationId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/federations/{federation}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Federation ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/federations/{federation}. + /// + public static string Format(string projectId, string locationId, string federationId) => + FormatProjectLocationFederation(projectId, locationId, federationId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/federations/{federation}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Federation ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/federations/{federation}. + /// + public static string FormatProjectLocationFederation(string projectId, string locationId, string federationId) => + s_projectLocationFederation.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(federationId, nameof(federationId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/locations/{location}/federations/{federation} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static FederationName Parse(string federationName) => Parse(federationName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing + /// an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/locations/{location}/federations/{federation} + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static FederationName Parse(string federationName, bool allowUnparsed) => + TryParse(federationName, allowUnparsed, out FederationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/locations/{location}/federations/{federation} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string federationName, out FederationName result) => + TryParse(federationName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/locations/{location}/federations/{federation} + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string federationName, bool allowUnparsed, out FederationName result) + { + gax::GaxPreconditions.CheckNotNull(federationName, nameof(federationName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationFederation.TryParseName(federationName, out resourceName)) + { + result = FromProjectLocationFederation(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(federationName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private FederationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string federationId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + FederationId = federationId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/federations/{federation} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Federation ID. Must not be null or empty. + public FederationName(string projectId, string locationId, string federationId) : this(ResourceNameType.ProjectLocationFederation, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), federationId: gax::GaxPreconditions.CheckNotNullOrEmpty(federationId, nameof(federationId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Federation ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string FederationId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectLocationFederation: return s_projectLocationFederation.Expand(ProjectId, LocationId, FederationId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as FederationName); + + /// + public bool Equals(FederationName other) => ToString() == other?.ToString(); + + /// + public static bool operator ==(FederationName a, FederationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// + public static bool operator !=(FederationName a, FederationName b) => !(a == b); + } + + public partial class Federation + { + /// + /// -typed view over the resource name property. + /// + public gcmv::FederationName FederationName + { + get => string.IsNullOrEmpty(Name) ? null : gcmv::FederationName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListFederationsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName ParentAsLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::LocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetFederationRequest + { + /// + /// -typed view over the resource name property. + /// + public gcmv::FederationName FederationName + { + get => string.IsNullOrEmpty(Name) ? null : gcmv::FederationName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateFederationRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName ParentAsLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::LocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteFederationRequest + { + /// + /// -typed view over the resource name property. + /// + public gcmv::FederationName FederationName + { + get => string.IsNullOrEmpty(Name) ? null : gcmv::FederationName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/PackageApiMetadata.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/PackageApiMetadata.g.cs index 88a63ad26bfb..e0507aeb9ddc 100644 --- a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/PackageApiMetadata.g.cs +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/PackageApiMetadata.g.cs @@ -16,6 +16,8 @@ #pragma warning disable CS8981 using gaxgrpc = Google.Api.Gax.Grpc; +using gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; using lro = Google.LongRunning; using proto = Google.Protobuf; using gpr = Google.Protobuf.Reflection; @@ -30,6 +32,31 @@ internal static class PackageApiMetadata internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Cloud.Metastore.V1Alpha", GetFileDescriptors) .WithHttpRuleOverrides(new scg::Dictionary { + { + "google.cloud.location.Locations.GetLocation", + // { "get": "/v1alpha/{name=projects/*/locations/*}" } + proto::ByteString.FromBase64("EiYvdjFhbHBoYS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfQ==") + }, + { + "google.cloud.location.Locations.ListLocations", + // { "get": "/v1alpha/{name=projects/*}/locations" } + proto::ByteString.FromBase64("EiQvdjFhbHBoYS97bmFtZT1wcm9qZWN0cy8qfS9sb2NhdGlvbnM=") + }, + { + "google.iam.v1.IAMPolicy.GetIamPolicy", + // { "get": "/v1alpha/{resource=projects/*/locations/*/services/*}:getIamPolicy", "additionalBindings": [ { "get": "/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy" }, { "get": "/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:getIamPolicy" }, { "get": "/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:getIamPolicy" }, { "get": "/v1alpha/{resource=projects/*/locations/*/federations/*}:getIamPolicy" } ] } + proto::ByteString.FromBase64("EkIvdjFhbHBoYS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qfTpnZXRJYW1Qb2xpY3laThJML3YxYWxwaGEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKi9iYWNrdXBzLyp9OmdldElhbVBvbGljeVpQEk4vdjFhbHBoYS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qfTpnZXRJYW1Qb2xpY3laWRJXL3YxYWxwaGEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKi9kYXRhYmFzZXMvKi90YWJsZXMvKn06Z2V0SWFtUG9saWN5WkcSRS92MWFscGhhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2ZlZGVyYXRpb25zLyp9OmdldElhbVBvbGljeQ==") + }, + { + "google.iam.v1.IAMPolicy.SetIamPolicy", + // { "post": "/v1alpha/{resource=projects/*/locations/*/services/*}:setIamPolicy", "body": "*", "additionalBindings": [ { "post": "/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy", "body": "*" }, { "post": "/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:setIamPolicy", "body": "*" }, { "post": "/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:setIamPolicy", "body": "*" }, { "post": "/v1alpha/{resource=projects/*/locations/*/federations/*}:setIamPolicy", "body": "*" } ] } + proto::ByteString.FromBase64("IkIvdjFhbHBoYS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qfTpzZXRJYW1Qb2xpY3k6ASpaUSJML3YxYWxwaGEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKi9iYWNrdXBzLyp9OnNldElhbVBvbGljeToBKlpTIk4vdjFhbHBoYS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qfTpzZXRJYW1Qb2xpY3k6ASpaXCJXL3YxYWxwaGEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKi9kYXRhYmFzZXMvKi90YWJsZXMvKn06c2V0SWFtUG9saWN5OgEqWkoiRS92MWFscGhhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2ZlZGVyYXRpb25zLyp9OnNldElhbVBvbGljeToBKg==") + }, + { + "google.iam.v1.IAMPolicy.TestIamPermissions", + // { "post": "/v1alpha/{resource=projects/*/locations/*/services/*}:testIamPermissions", "body": "*", "additionalBindings": [ { "post": "/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:testIamPermissions", "body": "*" }, { "post": "/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:testIamPermissions", "body": "*" }, { "post": "/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:testIamPermissions", "body": "*" }, { "post": "/v1alpha/{resource=projects/*/locations/*/federations/*}:testIamPermissions", "body": "*" } ] } + proto::ByteString.FromBase64("IkgvdjFhbHBoYS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASpaVyJSL3YxYWxwaGEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKi9iYWNrdXBzLyp9OnRlc3RJYW1QZXJtaXNzaW9uczoBKlpZIlQvdjFhbHBoYS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASpaYiJdL3YxYWxwaGEve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VydmljZXMvKi9kYXRhYmFzZXMvKi90YWJsZXMvKn06dGVzdElhbVBlcm1pc3Npb25zOgEqWlAiSy92MWFscGhhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2ZlZGVyYXRpb25zLyp9OnRlc3RJYW1QZXJtaXNzaW9uczoBKg==") + }, { "google.longrunning.Operations.DeleteOperation", // { "delete": "/v1alpha/{name=projects/*/locations/*/operations/*}" } @@ -49,7 +76,12 @@ internal static class PackageApiMetadata private static scg::IEnumerable GetFileDescriptors() { + yield return gciv::IamPolicyReflection.Descriptor; + yield return gciv::OptionsReflection.Descriptor; + yield return gciv::PolicyReflection.Descriptor; + yield return gcl::LocationsReflection.Descriptor; yield return MetastoreReflection.Descriptor; + yield return MetastoreFederationReflection.Descriptor; yield return lro::OperationsReflection.Descriptor; } } diff --git a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/ServiceCollectionExtensions.g.cs b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/ServiceCollectionExtensions.g.cs index b33aedf641a4..695b2b9c29e0 100644 --- a/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/ServiceCollectionExtensions.g.cs +++ b/apis/Google.Cloud.Metastore.V1Alpha/Google.Cloud.Metastore.V1Alpha/ServiceCollectionExtensions.g.cs @@ -16,6 +16,8 @@ #pragma warning disable CS8981 using gaxgrpc = Google.Api.Gax.Grpc; +using gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; using gcmv = Google.Cloud.Metastore.V1Alpha; using lro = Google.LongRunning; using proto = Google.Protobuf; @@ -45,5 +47,23 @@ public static partial class ServiceCollectionExtensions action?.Invoke(builder); return builder.Build(provider); }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddDataprocMetastoreFederationClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcmv::DataprocMetastoreFederationClientBuilder builder = new gcmv::DataprocMetastoreFederationClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); } } diff --git a/apis/Google.Cloud.Metastore.V1Alpha/gapic_metadata.json b/apis/Google.Cloud.Metastore.V1Alpha/gapic_metadata.json index d1d0f3cef03d..9b41f5a808ad 100644 --- a/apis/Google.Cloud.Metastore.V1Alpha/gapic_metadata.json +++ b/apis/Google.Cloud.Metastore.V1Alpha/gapic_metadata.json @@ -103,6 +103,45 @@ } } } + }, + "DataprocMetastoreFederation": { + "clients": { + "grpc": { + "libraryClient": "DataprocMetastoreFederationClient", + "rpcs": { + "CreateFederation": { + "methods": [ + "CreateFederation", + "CreateFederationAsync" + ] + }, + "DeleteFederation": { + "methods": [ + "DeleteFederation", + "DeleteFederationAsync" + ] + }, + "GetFederation": { + "methods": [ + "GetFederation", + "GetFederationAsync" + ] + }, + "ListFederations": { + "methods": [ + "ListFederations", + "ListFederationsAsync" + ] + }, + "UpdateFederation": { + "methods": [ + "UpdateFederation", + "UpdateFederationAsync" + ] + } + } + } + } } } } diff --git a/apis/apis.json b/apis/apis.json index 072c5061579c..c46bc30c01a0 100644 --- a/apis/apis.json +++ b/apis/apis.json @@ -2568,6 +2568,8 @@ "metastore" ], "dependencies": { + "Google.Cloud.Iam.V1": "3.0.0", + "Google.Cloud.Location": "2.0.0", "Google.LongRunning": "3.0.0" }, "generator": "micro",