diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..4e1babcd1e20 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_async_flattened] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_CreateFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..1b431bbb6e1c --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_CreateFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..7c147fa04b8d --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..a70daa3bb01a --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_CreateFederation_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..6f16abce7d92 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.CreateFederationSnippet.g.cs new file mode 100644 index 000000000000..0673a739dff0 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..54df899d54df --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..a41fd0a4de62 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_async] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..9b99feb4b1f6 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..af94d72bc625 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened_resourceNames] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..0165b35c2910 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened_resourceNames] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.DeleteFederationSnippet.g.cs new file mode 100644 index 000000000000..a4127f73190d --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..9b914ab20346 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_async_flattened] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_GetFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..05cdbd610c33 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_async] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_GetFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..d01ae673d6ff --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync] + using Google.Cloud.Metastore.V1Beta; + + 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_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..951bcedca414 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_async_flattened_resourceNames] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_GetFederation_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..3c42646f10f5 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync_flattened_resourceNames] + using Google.Cloud.Metastore.V1Beta; + + 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_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.GetFederationSnippet.g.cs new file mode 100644 index 000000000000..e53618a9ae39 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync_flattened] + using Google.Cloud.Metastore.V1Beta; + + 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_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsAsyncSnippet.g.cs new file mode 100644 index 000000000000..a6698e6ab0c9 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_ListFederations_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..04aa157b9436 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_ListFederations_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..cbe828868593 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..c77d43288403 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_ListFederations_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..4d09e2449ea5 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.ListFederationsSnippet.g.cs new file mode 100644 index 000000000000..0719b38ad84c --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationAsyncSnippet.g.cs new file mode 100644 index 000000000000..8638218a7449 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_async_flattened] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_async_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..29362e7eb704 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_async] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_async] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..bdd96454ffb3 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationSnippet.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/DataprocMetastoreFederationClient.UpdateFederationSnippet.g.cs new file mode 100644 index 000000000000..e5ac4fcd009f --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.Snippets +{ + // [START metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync_flattened] + using Google.Cloud.Metastore.V1Beta; + 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_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync_flattened] +} diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1beta.json b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1beta.json index 6b0e4e54e66f..bc6d136b5857 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1beta.json +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.metastore.v1beta.json @@ -3114,6 +3114,1066 @@ "type": "SHORT" } ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.ListFederations", + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.ListFederationsAsync", + "async": true, + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 39, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.ListFederations", + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.ListFederationsAsync", + "async": true, + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.ListFederations", + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.ListFederationsAsync", + "async": true, + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.GetFederation", + "resultType": "Google.Cloud.Metastore.V1Beta.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.GetFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.GetFederation", + "resultType": "Google.Cloud.Metastore.V1Beta.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.GetFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.GetFederation", + "resultType": "Google.Cloud.Metastore.V1Beta.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.GetFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.CreateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.CreateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.CreateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.CreateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.CreateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.CreateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 37, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.UpdateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.UpdateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.UpdateFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.UpdateFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.DeleteFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.DeleteFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.DeleteFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.DeleteFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.DeleteFederation", + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "metastore_v1beta_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.V1Beta.DataprocMetastoreFederationClient.DeleteFederationAsync", + "async": true, + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "Google.Cloud.Metastore.V1Beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] } ] } diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.Snippets/DataprocMetastoreFederationClientSnippets.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.Snippets/DataprocMetastoreFederationClientSnippets.g.cs new file mode 100644 index 000000000000..c5f632b8a426 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.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.V1Beta.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.V1Beta/Google.Cloud.Metastore.V1Beta/DataprocMetastoreClient.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/DataprocMetastoreClient.g.cs index 9c20d341e9c1..c6b6a60351f1 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/DataprocMetastoreClient.g.cs +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/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); @@ -518,8 +532,8 @@ private DataprocMetastoreClient BuildImpl() /// DataprocMetastore client wrapper, for convenient use. /// /// Configures and manages metastore services. - /// Metastore services are fully managed, highly available, auto-scaled, - /// auto-healing, OSS-native deployments of technical metadata management + /// Metastore services are fully managed, highly available, autoscaled, + /// autohealing, OSS-native deployments of technical metadata management /// software. Each metastore service exposes a network endpoint through which /// metadata queries are served. Metadata queries can originate from a variety /// of sources, including Apache Hive, Apache Presto, and Apache Spark. @@ -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. /// @@ -1682,7 +1702,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The metadata import to create. The `name` field is ignored. The @@ -1714,7 +1734,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The metadata import to create. The `name` field is ignored. The @@ -1746,7 +1766,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The metadata import to create. The `name` field is ignored. The @@ -1773,7 +1793,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The metadata import to create. The `name` field is ignored. The @@ -1805,7 +1825,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The metadata import to create. The `name` field is ignored. The @@ -1837,7 +1857,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The metadata import to create. The `name` field is ignored. The @@ -2101,13 +2121,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `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: /// - /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -2125,13 +2145,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `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: /// - /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -2149,13 +2169,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `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: /// - /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -2169,13 +2189,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `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: /// - /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -2193,13 +2213,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `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: /// - /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -2217,13 +2237,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// 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}` + /// `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: /// - /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -2480,7 +2500,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker GetBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -2489,7 +2509,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker throw new sys::NotImplementedException(); /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -2498,7 +2518,7 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker throw new sys::NotImplementedException(); /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request object containing all of the parameters for the API call. /// A to use for this RPC. @@ -2533,13 +2553,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateBackupOperationsClient, callSettings); /// - /// Creates a new Backup in a given project and location. + /// 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: /// - /// `projects/{project_number}/locations/{location_id}/services/{service_id}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The backup to create. The `name` field is ignored. The ID of the @@ -2564,13 +2584,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker }, callSettings); /// - /// Creates a new Backup in a given project and location. + /// 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: /// - /// `projects/{project_number}/locations/{location_id}/services/{service_id}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The backup to create. The `name` field is ignored. The ID of the @@ -2595,13 +2615,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker }, callSettings); /// - /// Creates a new Backup in a given project and location. + /// 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: /// - /// `projects/{project_number}/locations/{location_id}/services/{service_id}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The backup to create. The `name` field is ignored. The ID of the @@ -2621,13 +2641,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker CreateBackupAsync(parent, backup, backupId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// - /// Creates a new Backup in a given project and location. + /// 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: /// - /// `projects/{project_number}/locations/{location_id}/services/{service_id}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The backup to create. The `name` field is ignored. The ID of the @@ -2652,13 +2672,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker }, callSettings); /// - /// Creates a new Backup in a given project and location. + /// 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: /// - /// `projects/{project_number}/locations/{location_id}/services/{service_id}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The backup to create. The `name` field is ignored. The ID of the @@ -2683,13 +2703,13 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker }, callSettings); /// - /// Creates a new Backup in a given project and location. + /// 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: /// - /// `projects/{project_number}/locations/{location_id}/services/{service_id}` + /// `projects/{project_number}/locations/{location_id}/services/{service_id}`. /// /// /// Required. The backup to create. The `name` field is ignored. The ID of the @@ -2861,8 +2881,8 @@ internal static DataprocMetastoreClient Create(grpccore::CallInvoker callInvoker /// DataprocMetastore client wrapper implementation, for convenient use. /// /// Configures and manages metastore services. - /// Metastore services are fully managed, highly available, auto-scaled, - /// auto-healing, OSS-native deployments of technical metadata management + /// Metastore services are fully managed, highly available, autoscaled, + /// autohealing, OSS-native deployments of technical metadata management /// software. Each metastore service exposes a network endpoint through which /// metadata queries are served. Metadata queries can originate from a variety /// of sources, including Apache Hive, Apache Presto, and Apache Spark. @@ -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); @@ -3384,7 +3412,7 @@ public override Backup GetBackup(GetBackupRequest request, gaxgrpc::CallSettings public override lro::OperationsClient CreateBackupOperationsClient { get; } /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -3396,7 +3424,7 @@ public override Backup GetBackup(GetBackupRequest request, gaxgrpc::CallSettings } /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -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.V1Beta/Google.Cloud.Metastore.V1Beta/DataprocMetastoreFederationClient.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/DataprocMetastoreFederationClient.g.cs new file mode 100644 index 000000000000..6b96fe268b27 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/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.V1Beta +{ + /// 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.V1Beta/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.csproj b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.csproj index e29f3422cee0..8b87d3a0157d 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.csproj +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta.csproj @@ -10,6 +10,8 @@ + + diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/Metastore.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/Metastore.g.cs index 003a67029853..eb37a797031f 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/Metastore.g.cs +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/Metastore.g.cs @@ -31,8 +31,8 @@ public static partial class MetastoreReflection { "ZXNvdXJjZS5wcm90bxojZ29vZ2xlL2xvbmdydW5uaW5nL29wZXJhdGlvbnMu", "cHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGh9nb29n", "bGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGh5nb29nbGUvcHJvdG9idWYv", - "d3JhcHBlcnMucHJvdG8aG2dvb2dsZS90eXBlL2RheW9md2Vlay5wcm90byLW", - "CgoHU2VydmljZRJTChVoaXZlX21ldGFzdG9yZV9jb25maWcYBSABKAsyMi5n", + "d3JhcHBlcnMucHJvdG8aG2dvb2dsZS90eXBlL2RheW9md2Vlay5wcm90byLP", + "DQoHU2VydmljZRJTChVoaXZlX21ldGFzdG9yZV9jb25maWcYBSABKAsyMi5n", "b29nbGUuY2xvdWQubWV0YXN0b3JlLnYxYmV0YS5IaXZlTWV0YXN0b3JlQ29u", "ZmlnSAASEQoEbmFtZRgBIAEoCUID4EEFEjQKC2NyZWF0ZV90aW1lGAIgASgL", "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjQKC3VwZGF0ZV90", @@ -52,257 +52,315 @@ public static partial class MetastoreReflection { "bmFnZW1lbnRfYWN0aXZpdHkYESABKAsyOS5nb29nbGUuY2xvdWQubWV0YXN0", "b3JlLnYxYmV0YS5NZXRhZGF0YU1hbmFnZW1lbnRBY3Rpdml0eUID4EEDElMK",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TkFSWRABEgoKBlNUQUJMRRACIkUKDERhdGFiYXNlVHlwZRIdChlE", + "QVRBQkFTRV9UWVBFX1VOU1BFQ0lGSUVEEAASCQoFTVlTUUwQARILCgdTUEFO", + "TkVSEAI6YepBXgogbWV0YXN0b3JlLmdvb2dsZWFwaXMuY29tL1NlcnZpY2US", + "OnByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9zZXJ2", + "aWNlcy97c2VydmljZX1CEgoQbWV0YXN0b3JlX2NvbmZpZyKsAQoTTWV0YWRh", + "dGFJbnRlZ3JhdGlvbhJNChNkYXRhX2NhdGFsb2dfY29uZmlnGAEgASgLMjAu", + "Z29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52MWJldGEuRGF0YUNhdGFsb2dDb25m", + "aWcSRgoPZGF0YXBsZXhfY29uZmlnGAIgASgLMi0uZ29vZ2xlLmNsb3VkLm1l", + "dGFzdG9yZS52MWJldGEuRGF0YXBsZXhDb25maWciJAoRRGF0YUNhdGFsb2dD", + "b25maWcSDwoHZW5hYmxlZBgCIAEoCCLFAQoORGF0YXBsZXhDb25maWcSWAoO", + "bGFrZV9yZXNvdXJjZXMYASADKAsyQC5nb29nbGUuY2xvdWQubWV0YXN0b3Jl", + "LnYxYmV0YS5EYXRhcGxleENvbmZpZy5MYWtlUmVzb3VyY2VzRW50cnkaWQoS", + "TGFrZVJlc291cmNlc0VudHJ5EgsKA2tleRgBIAEoCRIyCgV2YWx1ZRgCIAEo", + "CzIjLmdvb2dsZS5jbG91ZC5tZXRhc3RvcmUudjFiZXRhLkxha2U6AjgBIjcK", + "BExha2USLwoEbmFtZRgBIAEoCUIh+kEeChxkYXRhcGxleC5nb29nbGVhcGlz", + "LmNvbS9MYWtlInIKEU1haW50ZW5hbmNlV2luZG93EjAKC2hvdXJfb2ZfZGF5", + "GAEgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSKwoLZGF5X29m", + "X3dlZWsYAiABKA4y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5nb29nbGVhcGlzLmNvbS9OZXR3b3JrEixwcm9qZWN0cy97cHJvamVj", + "dH0vZ2xvYmFsL25ldHdvcmtzL3tuZXR3b3JrfepBYQohY29tcHV0ZS5nb29n", + "bGVhcGlzLmNvbS9TdWJuZXR3b3JrEjxwcm9qZWN0cy97cHJvamVjdH0vcmVn", + "aW9ucy97cmVnaW9ufS9zdWJuZXR3b3Jrcy97c3VibmV0d29ya33qQVQKHGRh", + "dGFwbGV4Lmdvb2dsZWFwaXMuY29tL0xha2USNHByb2plY3RzL3twcm9qZWN0", + "fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9sYWtlcy97bGFrZX1iBnByb3RvMw==")); 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.V1Beta.Service), global::Google.Cloud.Metastore.V1Beta.Service.Parser, new[]{ "HiveMetastoreConfig", "Name", "CreateTime", "UpdateTime", "Labels", "Network", "EndpointUri", "Port", "State", "StateMessage", "ArtifactGcsUri", "Tier", "MetadataIntegration", "MaintenanceWindow", "Uid", "MetadataManagementActivity", "ReleaseChannel" }, new[]{ "MetastoreConfig" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.Service.Types.State), typeof(global::Google.Cloud.Metastore.V1Beta.Service.Types.Tier), typeof(global::Google.Cloud.Metastore.V1Beta.Service.Types.ReleaseChannel) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataIntegration), global::Google.Cloud.Metastore.V1Beta.MetadataIntegration.Parser, new[]{ "DataCatalogConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.Service), global::Google.Cloud.Metastore.V1Beta.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.V1Beta.Service.Types.State), typeof(global::Google.Cloud.Metastore.V1Beta.Service.Types.Tier), typeof(global::Google.Cloud.Metastore.V1Beta.Service.Types.ReleaseChannel), typeof(global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataIntegration), global::Google.Cloud.Metastore.V1Beta.MetadataIntegration.Parser, new[]{ "DataCatalogConfig", "DataplexConfig" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.DataCatalogConfig), global::Google.Cloud.Metastore.V1Beta.DataCatalogConfig.Parser, new[]{ "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.DataplexConfig), global::Google.Cloud.Metastore.V1Beta.DataplexConfig.Parser, new[]{ "LakeResources" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.Lake), global::Google.Cloud.Metastore.V1Beta.Lake.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MaintenanceWindow), global::Google.Cloud.Metastore.V1Beta.MaintenanceWindow.Parser, new[]{ "HourOfDay", "DayOfWeek" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig), global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Parser, new[]{ "Version", "ConfigOverrides", "KerberosConfig" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig), global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Parser, new[]{ "Version", "ConfigOverrides", "KerberosConfig", "EndpointProtocol", "AuxiliaryVersions" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.KerberosConfig), global::Google.Cloud.Metastore.V1Beta.KerberosConfig.Parser, new[]{ "Keytab", "Principal", "Krb5ConfigGcsUri" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.Secret), global::Google.Cloud.Metastore.V1Beta.Secret.Parser, new[]{ "CloudSecret" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.EncryptionConfig), global::Google.Cloud.Metastore.V1Beta.EncryptionConfig.Parser, new[]{ "KmsKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.AuxiliaryVersionConfig), global::Google.Cloud.Metastore.V1Beta.AuxiliaryVersionConfig.Parser, new[]{ "Version", "ConfigOverrides", "NetworkConfig" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.NetworkConfig), global::Google.Cloud.Metastore.V1Beta.NetworkConfig.Parser, new[]{ "Consumers" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.NetworkConfig.Types.Consumer), global::Google.Cloud.Metastore.V1Beta.NetworkConfig.Types.Consumer.Parser, new[]{ "Subnetwork", "EndpointUri" }, new[]{ "VpcResource" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.TelemetryConfig), global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Parser, new[]{ "LogFormat" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataManagementActivity), global::Google.Cloud.Metastore.V1Beta.MetadataManagementActivity.Parser, new[]{ "MetadataExports", "Restores" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport), global::Google.Cloud.Metastore.V1Beta.MetadataImport.Parser, new[]{ "DatabaseDump", "Name", "Description", "CreateTime", "UpdateTime", "State" }, new[]{ "Metadata" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.DatabaseDump), global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.DatabaseDump.Parser, new[]{ "DatabaseType", "GcsUri", "SourceDatabase", "Type" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.DatabaseDump.Types.DatabaseType) }, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport), global::Google.Cloud.Metastore.V1Beta.MetadataImport.Parser, new[]{ "DatabaseDump", "Name", "Description", "CreateTime", "UpdateTime", "EndTime", "State" }, new[]{ "Metadata" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.DatabaseDump), global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.DatabaseDump.Parser, new[]{ "DatabaseType", "GcsUri", "SourceDatabase", "Type" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.DatabaseDump.Types.DatabaseType) }, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.MetadataExport), global::Google.Cloud.Metastore.V1Beta.MetadataExport.Parser, new[]{ "DestinationGcsUri", "StartTime", "EndTime", "State", "DatabaseDumpType" }, new[]{ "Destination" }, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.MetadataExport.Types.State) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.Backup), global::Google.Cloud.Metastore.V1Beta.Backup.Parser, new[]{ "Name", "CreateTime", "EndTime", "State", "ServiceRevision", "Description" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.Backup.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.Backup), global::Google.Cloud.Metastore.V1Beta.Backup.Parser, new[]{ "Name", "CreateTime", "EndTime", "State", "ServiceRevision", "Description", "RestoringServices" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.Backup.Types.State) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.Restore), global::Google.Cloud.Metastore.V1Beta.Restore.Parser, new[]{ "StartTime", "EndTime", "State", "Backup", "Type", "Details" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.Restore.Types.State), typeof(global::Google.Cloud.Metastore.V1Beta.Restore.Types.RestoreType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.ListServicesRequest), global::Google.Cloud.Metastore.V1Beta.ListServicesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.ListServicesResponse), global::Google.Cloud.Metastore.V1Beta.ListServicesResponse.Parser, new[]{ "Services", "NextPageToken", "Unreachable" }, null, null, null, null), @@ -384,6 +442,10 @@ public sealed partial class Service : pb::IMessage uid_ = other.uid_; metadataManagementActivity_ = other.metadataManagementActivity_ != null ? other.metadataManagementActivity_.Clone() : null; releaseChannel_ = other.releaseChannel_; + 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(); @@ -419,8 +481,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}`. /// @@ -609,6 +671,8 @@ public sealed partial class Service : pb::IMessage /// /// The one hour maintenance window of the metastore service. This specifies /// when the service can be restarted for maintenance purposes in UTC time. + /// Maintenance window is not needed for services with the SPANNER + /// database type. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -666,6 +730,69 @@ public sealed partial class Service : pb::IMessage } } + /// Field number for the "encryption_config" field. + public const int EncryptionConfigFieldNumber = 20; + private global::Google.Cloud.Metastore.V1Beta.EncryptionConfig encryptionConfig_; + /// + /// 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)] + public global::Google.Cloud.Metastore.V1Beta.EncryptionConfig EncryptionConfig { + get { return encryptionConfig_; } + set { + encryptionConfig_ = value; + } + } + + /// Field number for the "network_config" field. + public const int NetworkConfigFieldNumber = 21; + private global::Google.Cloud.Metastore.V1Beta.NetworkConfig networkConfig_; + /// + /// The configuration specifying the network settings for the + /// Dataproc Metastore service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Beta.NetworkConfig NetworkConfig { + get { return networkConfig_; } + set { + networkConfig_ = value; + } + } + + /// Field number for the "database_type" field. + public const int DatabaseTypeFieldNumber = 22; + private global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType databaseType_ = global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType.Unspecified; + /// + /// Immutable. The database type that the Metastore service stores its data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType DatabaseType { + get { return databaseType_; } + set { + databaseType_ = value; + } + } + + /// Field number for the "telemetry_config" field. + public const int TelemetryConfigFieldNumber = 23; + private global::Google.Cloud.Metastore.V1Beta.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.V1Beta.TelemetryConfig TelemetryConfig { + get { return telemetryConfig_; } + set { + telemetryConfig_ = value; + } + } + private object metastoreConfig_; /// Enum of possible cases for the "metastore_config" oneof. public enum MetastoreConfigOneofCase { @@ -718,6 +845,10 @@ public enum MetastoreConfigOneofCase { if (Uid != other.Uid) return false; if (!object.Equals(MetadataManagementActivity, other.MetadataManagementActivity)) return false; if (ReleaseChannel != other.ReleaseChannel) return false; + 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); } @@ -743,6 +874,10 @@ public enum MetastoreConfigOneofCase { if (Uid.Length != 0) hash ^= Uid.GetHashCode(); if (metadataManagementActivity_ != null) hash ^= MetadataManagementActivity.GetHashCode(); if (ReleaseChannel != global::Google.Cloud.Metastore.V1Beta.Service.Types.ReleaseChannel.Unspecified) hash ^= ReleaseChannel.GetHashCode(); + if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); + if (networkConfig_ != null) hash ^= NetworkConfig.GetHashCode(); + if (DatabaseType != global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType.Unspecified) hash ^= DatabaseType.GetHashCode(); + if (telemetryConfig_ != null) hash ^= TelemetryConfig.GetHashCode(); hash ^= (int) metastoreConfigCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -827,6 +962,22 @@ public enum MetastoreConfigOneofCase { output.WriteRawTag(152, 1); output.WriteEnum((int) ReleaseChannel); } + if (encryptionConfig_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(EncryptionConfig); + } + if (networkConfig_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(NetworkConfig); + } + if (DatabaseType != global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType.Unspecified) { + output.WriteRawTag(176, 1); + output.WriteEnum((int) DatabaseType); + } + if (telemetryConfig_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(TelemetryConfig); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -902,6 +1053,22 @@ public enum MetastoreConfigOneofCase { output.WriteRawTag(152, 1); output.WriteEnum((int) ReleaseChannel); } + if (encryptionConfig_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(EncryptionConfig); + } + if (networkConfig_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(NetworkConfig); + } + if (DatabaseType != global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType.Unspecified) { + 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); } @@ -961,6 +1128,18 @@ public enum MetastoreConfigOneofCase { if (ReleaseChannel != global::Google.Cloud.Metastore.V1Beta.Service.Types.ReleaseChannel.Unspecified) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ReleaseChannel); } + if (encryptionConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EncryptionConfig); + } + if (networkConfig_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NetworkConfig); + } + if (DatabaseType != global::Google.Cloud.Metastore.V1Beta.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(); } @@ -1034,6 +1213,27 @@ public enum MetastoreConfigOneofCase { if (other.ReleaseChannel != global::Google.Cloud.Metastore.V1Beta.Service.Types.ReleaseChannel.Unspecified) { ReleaseChannel = other.ReleaseChannel; } + if (other.encryptionConfig_ != null) { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Cloud.Metastore.V1Beta.EncryptionConfig(); + } + EncryptionConfig.MergeFrom(other.EncryptionConfig); + } + if (other.networkConfig_ != null) { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Cloud.Metastore.V1Beta.NetworkConfig(); + } + NetworkConfig.MergeFrom(other.NetworkConfig); + } + if (other.DatabaseType != global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType.Unspecified) { + DatabaseType = other.DatabaseType; + } + if (other.telemetryConfig_ != null) { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Cloud.Metastore.V1Beta.TelemetryConfig(); + } + TelemetryConfig.MergeFrom(other.TelemetryConfig); + } switch (other.MetastoreConfigCase) { case MetastoreConfigOneofCase.HiveMetastoreConfig: if (HiveMetastoreConfig == null) { @@ -1146,6 +1346,31 @@ public enum MetastoreConfigOneofCase { ReleaseChannel = (global::Google.Cloud.Metastore.V1Beta.Service.Types.ReleaseChannel) input.ReadEnum(); break; } + case 162: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Cloud.Metastore.V1Beta.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 170: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Cloud.Metastore.V1Beta.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + break; + } + case 176: { + DatabaseType = (global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType) input.ReadEnum(); + break; + } + case 186: { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Cloud.Metastore.V1Beta.TelemetryConfig(); + } + input.ReadMessage(TelemetryConfig); + break; + } } } #endif @@ -1249,6 +1474,31 @@ public enum MetastoreConfigOneofCase { ReleaseChannel = (global::Google.Cloud.Metastore.V1Beta.Service.Types.ReleaseChannel) input.ReadEnum(); break; } + case 162: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Cloud.Metastore.V1Beta.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 170: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Cloud.Metastore.V1Beta.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + break; + } + case 176: { + DatabaseType = (global::Google.Cloud.Metastore.V1Beta.Service.Types.DatabaseType) input.ReadEnum(); + break; + } + case 186: { + if (telemetryConfig_ == null) { + TelemetryConfig = new global::Google.Cloud.Metastore.V1Beta.TelemetryConfig(); + } + input.ReadMessage(TelemetryConfig); + break; + } } } } @@ -1343,6 +1593,24 @@ public enum ReleaseChannel { [pbr::OriginalName("STABLE")] Stable = 2, } + /// + /// The backend database type for the metastore service. + /// + public enum DatabaseType { + /// + /// The DATABASE_TYPE is not set. + /// + [pbr::OriginalName("DATABASE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// MySQL is used to persist the metastore data. + /// + [pbr::OriginalName("MYSQL")] Mysql = 1, + /// + /// Spanner is used to persist the metastore data. + /// + [pbr::OriginalName("SPANNER")] Spanner = 2, + } + } #endregion @@ -1386,6 +1654,7 @@ public sealed partial class MetadataIntegration : pb::IMessageField number for the "dataplex_config" field. + public const int DataplexConfigFieldNumber = 2; + private global::Google.Cloud.Metastore.V1Beta.DataplexConfig dataplexConfig_; + /// + /// The integration config for the Dataplex service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Beta.DataplexConfig DataplexConfig { + get { return dataplexConfig_; } + set { + dataplexConfig_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1426,6 +1710,7 @@ public sealed partial class MetadataIntegration : pb::IMessage } /// - /// Maintenance window. This specifies when Dataproc Metastore - /// may perform system maintenance operation to the service. + /// Specifies how metastore metadata should be integrated with the Dataplex + /// service. /// - public sealed partial class MaintenanceWindow : pb::IMessage + public sealed partial class DataplexConfig : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaintenanceWindow()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataplexConfig()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1778,7 +2095,7 @@ public sealed partial class MaintenanceWindow : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaintenanceWindow() { + public DataplexConfig() { OnConstruction(); } @@ -1786,67 +2103,49 @@ public sealed partial class MaintenanceWindow : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaintenanceWindow(MaintenanceWindow other) : this() { - HourOfDay = other.HourOfDay; - dayOfWeek_ = other.dayOfWeek_; + public DataplexConfig(DataplexConfig other) : this() { + lakeResources_ = other.lakeResources_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaintenanceWindow Clone() { - return new MaintenanceWindow(this); - } - - /// Field number for the "hour_of_day" field. - public const int HourOfDayFieldNumber = 1; - private static readonly pb::FieldCodec _single_hourOfDay_codec = pb::FieldCodec.ForStructWrapper(10); - private int? hourOfDay_; - /// - /// The hour of day (0-23) when the window starts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int? HourOfDay { - get { return hourOfDay_; } - set { - hourOfDay_ = value; - } + public DataplexConfig Clone() { + return new DataplexConfig(this); } - - /// Field number for the "day_of_week" field. - public const int DayOfWeekFieldNumber = 2; - private global::Google.Type.DayOfWeek dayOfWeek_ = global::Google.Type.DayOfWeek.Unspecified; + /// Field number for the "lake_resources" field. + public const int LakeResourcesFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_lakeResources_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Metastore.V1Beta.Lake.Parser), 10); + private readonly pbc::MapField lakeResources_ = new pbc::MapField(); /// - /// The day of week, when the window starts. + /// A reference to the Lake resources that this metastore service is attached + /// to. The key is the lake resource name. Example: + /// `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Type.DayOfWeek DayOfWeek { - get { return dayOfWeek_; } - set { - dayOfWeek_ = value; - } + public pbc::MapField LakeResources { + get { return lakeResources_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as MaintenanceWindow); + return Equals(other as DataplexConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MaintenanceWindow other) { + public bool Equals(DataplexConfig other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (HourOfDay != other.HourOfDay) return false; - if (DayOfWeek != other.DayOfWeek) return false; + if (!LakeResources.Equals(other.LakeResources)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1854,8 +2153,7 @@ public sealed partial class MaintenanceWindow : pb::IMessage [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (hourOfDay_ != null) hash ^= HourOfDay.GetHashCode(); - if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) hash ^= DayOfWeek.GetHashCode(); + hash ^= LakeResources.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1874,13 +2172,7 @@ public sealed partial class MaintenanceWindow : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (hourOfDay_ != null) { - _single_hourOfDay_codec.WriteTagAndValue(output, HourOfDay); - } - if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DayOfWeek); - } + lakeResources_.WriteTo(output, _map_lakeResources_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1891,13 +2183,7 @@ public sealed partial class MaintenanceWindow : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (hourOfDay_ != null) { - _single_hourOfDay_codec.WriteTagAndValue(ref output, HourOfDay); - } - if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DayOfWeek); - } + lakeResources_.WriteTo(ref output, _map_lakeResources_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1908,12 +2194,7 @@ public sealed partial class MaintenanceWindow : pb::IMessage [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (hourOfDay_ != null) { - size += _single_hourOfDay_codec.CalculateSizeWithTag(HourOfDay); - } - if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DayOfWeek); - } + size += lakeResources_.CalculateSize(_map_lakeResources_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1922,18 +2203,11 @@ public sealed partial class MaintenanceWindow : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MaintenanceWindow other) { + public void MergeFrom(DataplexConfig other) { if (other == null) { return; } - if (other.hourOfDay_ != null) { - if (hourOfDay_ == null || other.HourOfDay != 0) { - HourOfDay = other.HourOfDay; - } - } - if (other.DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { - DayOfWeek = other.DayOfWeek; - } + lakeResources_.Add(other.lakeResources_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1950,14 +2224,7 @@ public sealed partial class MaintenanceWindow : pb::IMessage _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - int? value = _single_hourOfDay_codec.Read(input); - if (hourOfDay_ == null || value != 0) { - HourOfDay = value; - } - break; - } - case 16: { - DayOfWeek = (global::Google.Type.DayOfWeek) input.ReadEnum(); + lakeResources_.AddEntriesFrom(input, _map_lakeResources_codec); break; } } @@ -1976,14 +2243,7 @@ public sealed partial class MaintenanceWindow : pb::IMessage _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - int? value = _single_hourOfDay_codec.Read(ref input); - if (hourOfDay_ == null || value != 0) { - HourOfDay = value; - } - break; - } - case 16: { - DayOfWeek = (global::Google.Type.DayOfWeek) input.ReadEnum(); + lakeResources_.AddEntriesFrom(ref input, _map_lakeResources_codec); break; } } @@ -1994,19 +2254,18 @@ public sealed partial class MaintenanceWindow : pb::IMessage } /// - /// Specifies configuration information specific to running Hive metastore - /// software as the metastore service. + /// Represents a Lake resource /// - public sealed partial class HiveMetastoreConfig : pb::IMessage + public sealed partial class Lake : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HiveMetastoreConfig()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Lake()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2022,7 +2281,7 @@ public sealed partial class HiveMetastoreConfig : pb::IMessageField number for the "version" field. - public const int VersionFieldNumber = 1; - private string version_ = ""; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// Immutable. The Hive metastore schema version. + /// The Lake resource name. + /// Example: + /// `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } + public string Name { + get { return name_; } set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "config_overrides" field. - public const int ConfigOverridesFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_configOverrides_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); - private readonly pbc::MapField configOverrides_ = new pbc::MapField(); - /// - /// A mapping of Hive metastore configuration key-value pairs to apply to the - /// Hive metastore (configured in `hive-site.xml`). The mappings - /// override system defaults (some keys cannot be overridden). - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField ConfigOverrides { - get { return configOverrides_; } + public override bool Equals(object other) { + return Equals(other as Lake); } - /// Field number for the "kerberos_config" field. - public const int KerberosConfigFieldNumber = 3; - private global::Google.Cloud.Metastore.V1Beta.KerberosConfig kerberosConfig_; - /// - /// Information used to configure the Hive metastore service as a service - /// principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - /// method and specify this field's path - /// (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - /// while omitting this field from the request's `service`. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.Metastore.V1Beta.KerberosConfig KerberosConfig { - get { return kerberosConfig_; } - set { - kerberosConfig_ = value; + public bool Equals(Lake other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HiveMetastoreConfig); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HiveMetastoreConfig other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Version != other.Version) return false; - if (!ConfigOverrides.Equals(other.ConfigOverrides)) return false; - if (!object.Equals(KerberosConfig, other.KerberosConfig)) return false; - return Equals(_unknownFields, other._unknownFields); + 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 (Version.Length != 0) hash ^= Version.GetHashCode(); - hash ^= ConfigOverrides.GetHashCode(); - if (kerberosConfig_ != null) hash ^= KerberosConfig.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2139,14 +2359,9 @@ public sealed partial class HiveMetastoreConfig : pb::IMessage - /// Configuration information for a Kerberos principal. + /// Maintenance window. This specifies when Dataproc Metastore + /// may perform system maintenance operation to the service. /// - public sealed partial class KerberosConfig : pb::IMessage + public sealed partial class MaintenanceWindow : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KerberosConfig()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaintenanceWindow()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2301,7 +2479,7 @@ public sealed partial class KerberosConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KerberosConfig() { + public MaintenanceWindow() { OnConstruction(); } @@ -2309,87 +2487,67 @@ public sealed partial class KerberosConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KerberosConfig(KerberosConfig other) : this() { - keytab_ = other.keytab_ != null ? other.keytab_.Clone() : null; - principal_ = other.principal_; - krb5ConfigGcsUri_ = other.krb5ConfigGcsUri_; + public MaintenanceWindow(MaintenanceWindow other) : this() { + HourOfDay = other.HourOfDay; + dayOfWeek_ = other.dayOfWeek_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KerberosConfig Clone() { - return new KerberosConfig(this); + public MaintenanceWindow Clone() { + return new MaintenanceWindow(this); } - /// Field number for the "keytab" field. - public const int KeytabFieldNumber = 1; - private global::Google.Cloud.Metastore.V1Beta.Secret keytab_; + /// Field number for the "hour_of_day" field. + public const int HourOfDayFieldNumber = 1; + private static readonly pb::FieldCodec _single_hourOfDay_codec = pb::FieldCodec.ForStructWrapper(10); + private int? hourOfDay_; /// - /// A Kerberos keytab file that can be used to authenticate a service principal - /// with a Kerberos Key Distribution Center (KDC). + /// The hour of day (0-23) when the window starts. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.Metastore.V1Beta.Secret Keytab { - get { return keytab_; } + public int? HourOfDay { + get { return hourOfDay_; } set { - keytab_ = value; + hourOfDay_ = value; } } - /// Field number for the "principal" field. - public const int PrincipalFieldNumber = 2; - private string principal_ = ""; - /// - /// A Kerberos principal that exists in the both the keytab the KDC - /// to authenticate as. A typical principal is of the form - /// `primary/instance@REALM`, but there is no exact format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Principal { - get { return principal_; } - set { - principal_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Field number for the "krb5_config_gcs_uri" field. - public const int Krb5ConfigGcsUriFieldNumber = 3; - private string krb5ConfigGcsUri_ = ""; + /// Field number for the "day_of_week" field. + public const int DayOfWeekFieldNumber = 2; + private global::Google.Type.DayOfWeek dayOfWeek_ = global::Google.Type.DayOfWeek.Unspecified; /// - /// A Cloud Storage URI that specifies the path to a - /// krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, - /// although the file does not need to be named krb5.conf explicitly. + /// The day of week, when the window starts. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Krb5ConfigGcsUri { - get { return krb5ConfigGcsUri_; } + public global::Google.Type.DayOfWeek DayOfWeek { + get { return dayOfWeek_; } set { - krb5ConfigGcsUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + dayOfWeek_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as KerberosConfig); + return Equals(other as MaintenanceWindow); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KerberosConfig other) { + public bool Equals(MaintenanceWindow other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Keytab, other.Keytab)) return false; - if (Principal != other.Principal) return false; - if (Krb5ConfigGcsUri != other.Krb5ConfigGcsUri) return false; + if (HourOfDay != other.HourOfDay) return false; + if (DayOfWeek != other.DayOfWeek) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2397,9 +2555,8 @@ public sealed partial class KerberosConfig : pb::IMessage [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (keytab_ != null) hash ^= Keytab.GetHashCode(); - if (Principal.Length != 0) hash ^= Principal.GetHashCode(); - if (Krb5ConfigGcsUri.Length != 0) hash ^= Krb5ConfigGcsUri.GetHashCode(); + if (hourOfDay_ != null) hash ^= HourOfDay.GetHashCode(); + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) hash ^= DayOfWeek.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2418,17 +2575,12 @@ public sealed partial class KerberosConfig : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (keytab_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Keytab); - } - if (Principal.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Principal); + if (hourOfDay_ != null) { + _single_hourOfDay_codec.WriteTagAndValue(output, HourOfDay); } - if (Krb5ConfigGcsUri.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Krb5ConfigGcsUri); + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) DayOfWeek); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -2440,17 +2592,12 @@ public sealed partial class KerberosConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (keytab_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Keytab); - } - if (Principal.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Principal); + if (hourOfDay_ != null) { + _single_hourOfDay_codec.WriteTagAndValue(ref output, HourOfDay); } - if (Krb5ConfigGcsUri.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Krb5ConfigGcsUri); + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) DayOfWeek); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -2462,14 +2609,11 @@ public sealed partial class KerberosConfig : pb::IMessage [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (keytab_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Keytab); - } - if (Principal.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Principal); + if (hourOfDay_ != null) { + size += _single_hourOfDay_codec.CalculateSizeWithTag(HourOfDay); } - if (Krb5ConfigGcsUri.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Krb5ConfigGcsUri); + if (DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DayOfWeek); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -2479,21 +2623,17 @@ public sealed partial class KerberosConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KerberosConfig other) { + public void MergeFrom(MaintenanceWindow other) { if (other == null) { return; } - if (other.keytab_ != null) { - if (keytab_ == null) { - Keytab = new global::Google.Cloud.Metastore.V1Beta.Secret(); + if (other.hourOfDay_ != null) { + if (hourOfDay_ == null || other.HourOfDay != 0) { + HourOfDay = other.HourOfDay; } - Keytab.MergeFrom(other.Keytab); - } - if (other.Principal.Length != 0) { - Principal = other.Principal; } - if (other.Krb5ConfigGcsUri.Length != 0) { - Krb5ConfigGcsUri = other.Krb5ConfigGcsUri; + if (other.DayOfWeek != global::Google.Type.DayOfWeek.Unspecified) { + DayOfWeek = other.DayOfWeek; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2511,75 +2651,1912 @@ public sealed partial class KerberosConfig : pb::IMessage _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (keytab_ == null) { - Keytab = new global::Google.Cloud.Metastore.V1Beta.Secret(); + int? value = _single_hourOfDay_codec.Read(input); + if (hourOfDay_ == null || value != 0) { + HourOfDay = value; + } + break; + } + case 16: { + DayOfWeek = (global::Google.Type.DayOfWeek) 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: { + int? value = _single_hourOfDay_codec.Read(ref input); + if (hourOfDay_ == null || value != 0) { + HourOfDay = value; + } + break; + } + case 16: { + DayOfWeek = (global::Google.Type.DayOfWeek) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Specifies configuration information specific to running Hive metastore + /// software as the metastore service. + /// + public sealed partial class HiveMetastoreConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HiveMetastoreConfig()); + 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.V1Beta.MetastoreReflection.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 HiveMetastoreConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HiveMetastoreConfig(HiveMetastoreConfig other) : this() { + version_ = other.version_; + configOverrides_ = other.configOverrides_.Clone(); + kerberosConfig_ = other.kerberosConfig_ != null ? other.kerberosConfig_.Clone() : null; + endpointProtocol_ = other.endpointProtocol_; + auxiliaryVersions_ = other.auxiliaryVersions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HiveMetastoreConfig Clone() { + return new HiveMetastoreConfig(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// Immutable. The Hive metastore schema 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 "config_overrides" field. + public const int ConfigOverridesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_configOverrides_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField configOverrides_ = new pbc::MapField(); + /// + /// A mapping of Hive metastore configuration key-value pairs to apply to the + /// Hive metastore (configured in `hive-site.xml`). The mappings + /// override system defaults (some keys cannot be overridden). These + /// overrides are also applied to auxiliary versions and can be further + /// customized in the auxiliary version's `AuxiliaryVersionConfig`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ConfigOverrides { + get { return configOverrides_; } + } + + /// Field number for the "kerberos_config" field. + public const int KerberosConfigFieldNumber = 3; + private global::Google.Cloud.Metastore.V1Beta.KerberosConfig kerberosConfig_; + /// + /// Information used to configure the Hive metastore service as a service + /// principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` + /// method and specify this field's path + /// (`hive_metastore_config.kerberos_config`) in the request's `update_mask` + /// while omitting this field from the request's `service`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Beta.KerberosConfig KerberosConfig { + get { return kerberosConfig_; } + set { + kerberosConfig_ = value; + } + } + + /// Field number for the "endpoint_protocol" field. + public const int EndpointProtocolFieldNumber = 4; + private global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol endpointProtocol_ = global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol.Unspecified; + /// + /// The protocol to use for the metastore service endpoint. If unspecified, + /// defaults to `THRIFT`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol EndpointProtocol { + get { return endpointProtocol_; } + set { + endpointProtocol_ = value; + } + } + + /// Field number for the "auxiliary_versions" field. + public const int AuxiliaryVersionsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_auxiliaryVersions_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Metastore.V1Beta.AuxiliaryVersionConfig.Parser), 42); + private readonly pbc::MapField auxiliaryVersions_ = new pbc::MapField(); + /// + /// A mapping of Hive metastore version to the auxiliary version + /// configuration. When specified, a secondary Hive metastore service is + /// created along with the primary service. All auxiliary versions must be less + /// than the service's primary version. The key is the auxiliary service name + /// and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This + /// means that the first character must be a lowercase letter, and all the + /// following characters must be hyphens, lowercase letters, or digits, except + /// the last character, which cannot be a hyphen. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField AuxiliaryVersions { + get { return auxiliaryVersions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HiveMetastoreConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HiveMetastoreConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (!ConfigOverrides.Equals(other.ConfigOverrides)) return false; + if (!object.Equals(KerberosConfig, other.KerberosConfig)) return false; + if (EndpointProtocol != other.EndpointProtocol) return false; + if (!AuxiliaryVersions.Equals(other.AuxiliaryVersions)) 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 (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= ConfigOverrides.GetHashCode(); + if (kerberosConfig_ != null) hash ^= KerberosConfig.GetHashCode(); + if (EndpointProtocol != global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol.Unspecified) hash ^= EndpointProtocol.GetHashCode(); + hash ^= AuxiliaryVersions.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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(output, _map_configOverrides_codec); + if (kerberosConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(KerberosConfig); + } + if (EndpointProtocol != global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) EndpointProtocol); + } + auxiliaryVersions_.WriteTo(output, _map_auxiliaryVersions_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) { + if (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(ref output, _map_configOverrides_codec); + if (kerberosConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(KerberosConfig); + } + if (EndpointProtocol != global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) EndpointProtocol); + } + auxiliaryVersions_.WriteTo(ref output, _map_auxiliaryVersions_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; + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += configOverrides_.CalculateSize(_map_configOverrides_codec); + if (kerberosConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KerberosConfig); + } + if (EndpointProtocol != global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndpointProtocol); + } + size += auxiliaryVersions_.CalculateSize(_map_auxiliaryVersions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HiveMetastoreConfig other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + configOverrides_.Add(other.configOverrides_); + if (other.kerberosConfig_ != null) { + if (kerberosConfig_ == null) { + KerberosConfig = new global::Google.Cloud.Metastore.V1Beta.KerberosConfig(); + } + KerberosConfig.MergeFrom(other.KerberosConfig); + } + if (other.EndpointProtocol != global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol.Unspecified) { + EndpointProtocol = other.EndpointProtocol; + } + auxiliaryVersions_.Add(other.auxiliaryVersions_); + _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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(input, _map_configOverrides_codec); + break; + } + case 26: { + if (kerberosConfig_ == null) { + KerberosConfig = new global::Google.Cloud.Metastore.V1Beta.KerberosConfig(); + } + input.ReadMessage(KerberosConfig); + break; + } + case 32: { + EndpointProtocol = (global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol) input.ReadEnum(); + break; + } + case 42: { + auxiliaryVersions_.AddEntriesFrom(input, _map_auxiliaryVersions_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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(ref input, _map_configOverrides_codec); + break; + } + case 26: { + if (kerberosConfig_ == null) { + KerberosConfig = new global::Google.Cloud.Metastore.V1Beta.KerberosConfig(); + } + input.ReadMessage(KerberosConfig); + break; + } + case 32: { + EndpointProtocol = (global::Google.Cloud.Metastore.V1Beta.HiveMetastoreConfig.Types.EndpointProtocol) input.ReadEnum(); + break; + } + case 42: { + auxiliaryVersions_.AddEntriesFrom(ref input, _map_auxiliaryVersions_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the HiveMetastoreConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Protocols available for serving the metastore service endpoint. + /// + public enum EndpointProtocol { + /// + /// The protocol is not set. + /// + [pbr::OriginalName("ENDPOINT_PROTOCOL_UNSPECIFIED")] Unspecified = 0, + /// + /// Use the legacy Apache Thrift protocol for the metastore service endpoint. + /// + [pbr::OriginalName("THRIFT")] Thrift = 1, + /// + /// Use the modernized gRPC protocol for the metastore service endpoint. + /// + [pbr::OriginalName("GRPC")] Grpc = 2, + } + + } + #endregion + + } + + /// + /// Configuration information for a Kerberos principal. + /// + public sealed partial class KerberosConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KerberosConfig()); + 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.V1Beta.MetastoreReflection.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 KerberosConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KerberosConfig(KerberosConfig other) : this() { + keytab_ = other.keytab_ != null ? other.keytab_.Clone() : null; + principal_ = other.principal_; + krb5ConfigGcsUri_ = other.krb5ConfigGcsUri_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KerberosConfig Clone() { + return new KerberosConfig(this); + } + + /// Field number for the "keytab" field. + public const int KeytabFieldNumber = 1; + private global::Google.Cloud.Metastore.V1Beta.Secret keytab_; + /// + /// A Kerberos keytab file that can be used to authenticate a service principal + /// with a Kerberos Key Distribution Center (KDC). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Metastore.V1Beta.Secret Keytab { + get { return keytab_; } + set { + keytab_ = value; + } + } + + /// Field number for the "principal" field. + public const int PrincipalFieldNumber = 2; + private string principal_ = ""; + /// + /// A Kerberos principal that exists in the both the keytab the KDC + /// to authenticate as. A typical principal is of the form + /// `primary/instance@REALM`, but there is no exact format. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Principal { + get { return principal_; } + set { + principal_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "krb5_config_gcs_uri" field. + public const int Krb5ConfigGcsUriFieldNumber = 3; + private string krb5ConfigGcsUri_ = ""; + /// + /// A Cloud Storage URI that specifies the path to a + /// krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, + /// although the file does not need to be named krb5.conf explicitly. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Krb5ConfigGcsUri { + get { return krb5ConfigGcsUri_; } + set { + krb5ConfigGcsUri_ = 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 KerberosConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KerberosConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Keytab, other.Keytab)) return false; + if (Principal != other.Principal) return false; + if (Krb5ConfigGcsUri != other.Krb5ConfigGcsUri) 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 (keytab_ != null) hash ^= Keytab.GetHashCode(); + if (Principal.Length != 0) hash ^= Principal.GetHashCode(); + if (Krb5ConfigGcsUri.Length != 0) hash ^= Krb5ConfigGcsUri.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 (keytab_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keytab); + } + if (Principal.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Principal); + } + if (Krb5ConfigGcsUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Krb5ConfigGcsUri); + } + 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 (keytab_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Keytab); + } + if (Principal.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Principal); + } + if (Krb5ConfigGcsUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Krb5ConfigGcsUri); + } + 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 (keytab_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Keytab); + } + if (Principal.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Principal); + } + if (Krb5ConfigGcsUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Krb5ConfigGcsUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KerberosConfig other) { + if (other == null) { + return; + } + if (other.keytab_ != null) { + if (keytab_ == null) { + Keytab = new global::Google.Cloud.Metastore.V1Beta.Secret(); + } + Keytab.MergeFrom(other.Keytab); + } + if (other.Principal.Length != 0) { + Principal = other.Principal; + } + if (other.Krb5ConfigGcsUri.Length != 0) { + Krb5ConfigGcsUri = other.Krb5ConfigGcsUri; + } + _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 (keytab_ == null) { + Keytab = new global::Google.Cloud.Metastore.V1Beta.Secret(); + } + input.ReadMessage(Keytab); + break; + } + case 18: { + Principal = input.ReadString(); + break; + } + case 26: { + Krb5ConfigGcsUri = 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 (keytab_ == null) { + Keytab = new global::Google.Cloud.Metastore.V1Beta.Secret(); + } + input.ReadMessage(Keytab); + break; + } + case 18: { + Principal = input.ReadString(); + break; + } + case 26: { + Krb5ConfigGcsUri = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A securely stored value. + /// + public sealed partial class Secret : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Secret()); + 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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[8]; } + } + + [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 Secret() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Secret(Secret other) : this() { + switch (other.ValueCase) { + case ValueOneofCase.CloudSecret: + CloudSecret = other.CloudSecret; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Secret Clone() { + return new Secret(this); + } + + /// Field number for the "cloud_secret" field. + public const int CloudSecretFieldNumber = 2; + /// + /// The relative resource name of a Secret Manager secret version, in the + /// following form: + /// + /// `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CloudSecret { + get { return valueCase_ == ValueOneofCase.CloudSecret ? (string) value_ : ""; } + set { + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + valueCase_ = ValueOneofCase.CloudSecret; + } + } + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + CloudSecret = 2, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Secret); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Secret other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CloudSecret != other.CloudSecret) return false; + if (ValueCase != other.ValueCase) 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 (valueCase_ == ValueOneofCase.CloudSecret) hash ^= CloudSecret.GetHashCode(); + hash ^= (int) valueCase_; + 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 (valueCase_ == ValueOneofCase.CloudSecret) { + output.WriteRawTag(18); + output.WriteString(CloudSecret); + } + 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 (valueCase_ == ValueOneofCase.CloudSecret) { + output.WriteRawTag(18); + output.WriteString(CloudSecret); + } + 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 (valueCase_ == ValueOneofCase.CloudSecret) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CloudSecret); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Secret other) { + if (other == null) { + return; + } + switch (other.ValueCase) { + case ValueOneofCase.CloudSecret: + CloudSecret = other.CloudSecret; + break; + } + + _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 18: { + CloudSecret = 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 18: { + CloudSecret = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Encryption settings for the service. + /// + public sealed partial class EncryptionConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionConfig()); + 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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[9]; } + } + + [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 EncryptionConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig(EncryptionConfig other) : this() { + kmsKey_ = other.kmsKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig Clone() { + return new EncryptionConfig(this); + } + + /// Field number for the "kms_key" field. + public const int KmsKeyFieldNumber = 1; + private string kmsKey_ = ""; + /// + /// The fully qualified customer provided Cloud KMS key name to use for + /// customer data encryption, in the following form: + /// + /// `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKey { + get { return kmsKey_; } + set { + kmsKey_ = 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 EncryptionConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptionConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KmsKey != other.KmsKey) 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 (KmsKey.Length != 0) hash ^= KmsKey.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 (KmsKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKey); + } + 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 (KmsKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKey); + } + 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 (KmsKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptionConfig other) { + if (other == null) { + return; + } + if (other.KmsKey.Length != 0) { + KmsKey = other.KmsKey; + } + _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: { + KmsKey = 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: { + KmsKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration information for the auxiliary service versions. + /// + public sealed partial class AuxiliaryVersionConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuxiliaryVersionConfig()); + 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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[10]; } + } + + [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 AuxiliaryVersionConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuxiliaryVersionConfig(AuxiliaryVersionConfig other) : this() { + version_ = other.version_; + configOverrides_ = other.configOverrides_.Clone(); + networkConfig_ = other.networkConfig_ != null ? other.networkConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuxiliaryVersionConfig Clone() { + return new AuxiliaryVersionConfig(this); + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 1; + private string version_ = ""; + /// + /// The Hive metastore version of the auxiliary service. It must be less + /// than the primary Hive metastore service's 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 "config_overrides" field. + public const int ConfigOverridesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_configOverrides_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField configOverrides_ = new pbc::MapField(); + /// + /// A mapping of Hive metastore configuration key-value pairs to apply to the + /// auxiliary Hive metastore (configured in `hive-site.xml`) in addition to + /// the primary version's overrides. If keys are present in both the auxiliary + /// version's overrides and the primary version's overrides, the value from + /// the auxiliary version's overrides takes precedence. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ConfigOverrides { + get { return configOverrides_; } + } + + /// Field number for the "network_config" field. + public const int NetworkConfigFieldNumber = 3; + private global::Google.Cloud.Metastore.V1Beta.NetworkConfig networkConfig_; + /// + /// 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)] + public global::Google.Cloud.Metastore.V1Beta.NetworkConfig NetworkConfig { + get { return networkConfig_; } + set { + networkConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AuxiliaryVersionConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuxiliaryVersionConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Version != other.Version) return false; + if (!ConfigOverrides.Equals(other.ConfigOverrides)) return false; + if (!object.Equals(NetworkConfig, other.NetworkConfig)) 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 (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= ConfigOverrides.GetHashCode(); + if (networkConfig_ != null) hash ^= NetworkConfig.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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(output, _map_configOverrides_codec); + if (networkConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NetworkConfig); + } + 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 (Version.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Version); + } + configOverrides_.WriteTo(ref output, _map_configOverrides_codec); + if (networkConfig_ != null) { + output.WriteRawTag(26); + output.WriteMessage(NetworkConfig); + } + 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 (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + size += configOverrides_.CalculateSize(_map_configOverrides_codec); + if (networkConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NetworkConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuxiliaryVersionConfig other) { + if (other == null) { + return; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + configOverrides_.Add(other.configOverrides_); + if (other.networkConfig_ != null) { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Cloud.Metastore.V1Beta.NetworkConfig(); + } + NetworkConfig.MergeFrom(other.NetworkConfig); + } + _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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(input, _map_configOverrides_codec); + break; + } + case 26: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Cloud.Metastore.V1Beta.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + 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: { + Version = input.ReadString(); + break; + } + case 18: { + configOverrides_.AddEntriesFrom(ref input, _map_configOverrides_codec); + break; + } + case 26: { + if (networkConfig_ == null) { + NetworkConfig = new global::Google.Cloud.Metastore.V1Beta.NetworkConfig(); + } + input.ReadMessage(NetworkConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Network configuration for the Dataproc Metastore service. + /// + public sealed partial class NetworkConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkConfig()); + 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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[11]; } + } + + [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 NetworkConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkConfig(NetworkConfig other) : this() { + consumers_ = other.consumers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NetworkConfig Clone() { + return new NetworkConfig(this); + } + + /// Field number for the "consumers" field. + public const int ConsumersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_consumers_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Metastore.V1Beta.NetworkConfig.Types.Consumer.Parser); + private readonly pbc::RepeatedField consumers_ = new pbc::RepeatedField(); + /// + /// Immutable. The consumer-side network configuration for the Dataproc + /// Metastore instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Consumers { + get { return consumers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NetworkConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NetworkConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!consumers_.Equals(other.consumers_)) 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 ^= consumers_.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 + consumers_.WriteTo(output, _repeated_consumers_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) { + consumers_.WriteTo(ref output, _repeated_consumers_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 += consumers_.CalculateSize(_repeated_consumers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NetworkConfig other) { + if (other == null) { + return; + } + consumers_.Add(other.consumers_); + _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: { + consumers_.AddEntriesFrom(input, _repeated_consumers_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: { + consumers_.AddEntriesFrom(ref input, _repeated_consumers_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the NetworkConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Contains information of the customer's network configurations. + /// + public sealed partial class Consumer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Consumer()); + 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.V1Beta.NetworkConfig.Descriptor.NestedTypes[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 Consumer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Consumer(Consumer other) : this() { + endpointUri_ = other.endpointUri_; + switch (other.VpcResourceCase) { + case VpcResourceOneofCase.Subnetwork: + Subnetwork = other.Subnetwork; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Consumer Clone() { + return new Consumer(this); + } + + /// Field number for the "subnetwork" field. + public const int SubnetworkFieldNumber = 1; + /// + /// 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 + /// subnet is specified in the following form: + /// + /// `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id} + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Subnetwork { + get { return vpcResourceCase_ == VpcResourceOneofCase.Subnetwork ? (string) vpcResource_ : ""; } + set { + vpcResource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + vpcResourceCase_ = VpcResourceOneofCase.Subnetwork; + } + } + + /// Field number for the "endpoint_uri" field. + public const int EndpointUriFieldNumber = 3; + private string endpointUri_ = ""; + /// + /// Output only. The URI of the endpoint used to access the metastore + /// service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndpointUri { + get { return endpointUri_; } + set { + endpointUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + private object vpcResource_; + /// Enum of possible cases for the "vpc_resource" oneof. + public enum VpcResourceOneofCase { + None = 0, + Subnetwork = 1, + } + private VpcResourceOneofCase vpcResourceCase_ = VpcResourceOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VpcResourceOneofCase VpcResourceCase { + get { return vpcResourceCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearVpcResource() { + vpcResourceCase_ = VpcResourceOneofCase.None; + vpcResource_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Consumer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Consumer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Subnetwork != other.Subnetwork) return false; + if (EndpointUri != other.EndpointUri) return false; + if (VpcResourceCase != other.VpcResourceCase) 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 (vpcResourceCase_ == VpcResourceOneofCase.Subnetwork) hash ^= Subnetwork.GetHashCode(); + if (EndpointUri.Length != 0) hash ^= EndpointUri.GetHashCode(); + hash ^= (int) vpcResourceCase_; + 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 (vpcResourceCase_ == VpcResourceOneofCase.Subnetwork) { + output.WriteRawTag(10); + output.WriteString(Subnetwork); + } + if (EndpointUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(EndpointUri); + } + 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 (vpcResourceCase_ == VpcResourceOneofCase.Subnetwork) { + output.WriteRawTag(10); + output.WriteString(Subnetwork); + } + if (EndpointUri.Length != 0) { + output.WriteRawTag(26); + output.WriteString(EndpointUri); + } + 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 (vpcResourceCase_ == VpcResourceOneofCase.Subnetwork) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Subnetwork); + } + if (EndpointUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndpointUri); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Consumer other) { + if (other == null) { + return; + } + if (other.EndpointUri.Length != 0) { + EndpointUri = other.EndpointUri; + } + switch (other.VpcResourceCase) { + case VpcResourceOneofCase.Subnetwork: + Subnetwork = other.Subnetwork; + break; + } + + _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: { + Subnetwork = input.ReadString(); + break; + } + case 26: { + EndpointUri = input.ReadString(); + break; + } } - input.ReadMessage(Keytab); - break; - } - case 18: { - Principal = input.ReadString(); - break; - } - case 26: { - Krb5ConfigGcsUri = input.ReadString(); - break; } + #endif } - } - #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 (keytab_ == null) { - Keytab = new global::Google.Cloud.Metastore.V1Beta.Secret(); + #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: { + Subnetwork = input.ReadString(); + break; + } + case 26: { + EndpointUri = input.ReadString(); + break; + } } - input.ReadMessage(Keytab); - break; - } - case 18: { - Principal = input.ReadString(); - break; - } - case 26: { - Krb5ConfigGcsUri = input.ReadString(); - break; } } + #endif + } + } - #endif + #endregion } /// - /// A securely stored value. + /// Telemetry Configuration for the Dataproc Metastore service. /// - public sealed partial class Secret : pb::IMessage + 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 Secret()); + 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; } } + 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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[6]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2590,7 +4567,7 @@ public sealed partial class Secret : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Secret() { + public TelemetryConfig() { OnConstruction(); } @@ -2598,77 +4575,48 @@ public sealed partial class Secret : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Secret(Secret other) : this() { - switch (other.ValueCase) { - case ValueOneofCase.CloudSecret: - CloudSecret = other.CloudSecret; - break; - } - + 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 Secret Clone() { - return new Secret(this); + public TelemetryConfig Clone() { + return new TelemetryConfig(this); } - /// Field number for the "cloud_secret" field. - public const int CloudSecretFieldNumber = 2; + /// Field number for the "log_format" field. + public const int LogFormatFieldNumber = 1; + private global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat logFormat_ = global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat.Unspecified; /// - /// The relative resource name of a Secret Manager secret version, in the - /// following form: - /// - /// `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. + /// The output format of the Dataproc Metastore service's logs. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CloudSecret { - get { return valueCase_ == ValueOneofCase.CloudSecret ? (string) value_ : ""; } + public global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat LogFormat { + get { return logFormat_; } set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - valueCase_ = ValueOneofCase.CloudSecret; + logFormat_ = value; } } - private object value_; - /// Enum of possible cases for the "value" oneof. - public enum ValueOneofCase { - None = 0, - CloudSecret = 2, - } - private ValueOneofCase valueCase_ = ValueOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueOneofCase ValueCase { - get { return valueCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - valueCase_ = ValueOneofCase.None; - value_ = null; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Secret); + return Equals(other as TelemetryConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Secret other) { + public bool Equals(TelemetryConfig other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (CloudSecret != other.CloudSecret) return false; - if (ValueCase != other.ValueCase) return false; + if (LogFormat != other.LogFormat) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2676,8 +4624,7 @@ public enum ValueOneofCase { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (valueCase_ == ValueOneofCase.CloudSecret) hash ^= CloudSecret.GetHashCode(); - hash ^= (int) valueCase_; + if (LogFormat != global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat.Unspecified) hash ^= LogFormat.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2696,9 +4643,9 @@ public enum ValueOneofCase { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (valueCase_ == ValueOneofCase.CloudSecret) { - output.WriteRawTag(18); - output.WriteString(CloudSecret); + if (LogFormat != global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LogFormat); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -2710,9 +4657,9 @@ public enum ValueOneofCase { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (valueCase_ == ValueOneofCase.CloudSecret) { - output.WriteRawTag(18); - output.WriteString(CloudSecret); + if (LogFormat != global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) LogFormat); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -2724,8 +4671,8 @@ public enum ValueOneofCase { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (valueCase_ == ValueOneofCase.CloudSecret) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CloudSecret); + if (LogFormat != global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LogFormat); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -2735,16 +4682,13 @@ public enum ValueOneofCase { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Secret other) { + public void MergeFrom(TelemetryConfig other) { if (other == null) { return; } - switch (other.ValueCase) { - case ValueOneofCase.CloudSecret: - CloudSecret = other.CloudSecret; - break; + if (other.LogFormat != global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat.Unspecified) { + LogFormat = other.LogFormat; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2760,8 +4704,8 @@ public enum ValueOneofCase { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 18: { - CloudSecret = input.ReadString(); + case 8: { + LogFormat = (global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat) input.ReadEnum(); break; } } @@ -2779,8 +4723,8 @@ public enum ValueOneofCase { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 18: { - CloudSecret = input.ReadString(); + case 8: { + LogFormat = (global::Google.Cloud.Metastore.V1Beta.TelemetryConfig.Types.LogFormat) input.ReadEnum(); break; } } @@ -2788,6 +4732,29 @@ public enum ValueOneofCase { } #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 + } /// @@ -2807,7 +4774,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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[8]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3044,6 +5011,7 @@ public sealed partial class MetadataImport : pb::IMessage description_ = other.description_; createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; state_ = other.state_; switch (other.MetadataCase) { case MetadataOneofCase.DatabaseDump: @@ -3111,7 +5079,7 @@ public sealed partial class MetadataImport : pb::IMessage public const int CreateTimeFieldNumber = 3; private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; /// - /// Output only. The time when the metadata import was created. + /// Output only. The time when the metadata import was started. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3137,6 +5105,21 @@ public sealed partial class MetadataImport : pb::IMessage } } + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The time when the metadata import finished. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + /// Field number for the "state" field. public const int StateFieldNumber = 5; private global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.State state_ = global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.State.Unspecified; @@ -3192,6 +5175,7 @@ public enum MetadataOneofCase { if (Description != other.Description) return false; if (!object.Equals(CreateTime, other.CreateTime)) return false; if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; if (State != other.State) return false; if (MetadataCase != other.MetadataCase) return false; return Equals(_unknownFields, other._unknownFields); @@ -3206,6 +5190,7 @@ public enum MetadataOneofCase { if (Description.Length != 0) hash ^= Description.GetHashCode(); if (createTime_ != null) hash ^= CreateTime.GetHashCode(); if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); if (State != global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.State.Unspecified) hash ^= State.GetHashCode(); hash ^= (int) metadataCase_; if (_unknownFields != null) { @@ -3250,6 +5235,10 @@ public enum MetadataOneofCase { output.WriteRawTag(50); output.WriteMessage(DatabaseDump); } + if (endTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(EndTime); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3284,6 +5273,10 @@ public enum MetadataOneofCase { output.WriteRawTag(50); output.WriteMessage(DatabaseDump); } + if (endTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(EndTime); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3309,6 +5302,9 @@ public enum MetadataOneofCase { if (updateTime_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } if (State != global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.State.Unspecified) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); } @@ -3342,6 +5338,12 @@ public enum MetadataOneofCase { } UpdateTime.MergeFrom(other.UpdateTime); } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } if (other.State != global::Google.Cloud.Metastore.V1Beta.MetadataImport.Types.State.Unspecified) { State = other.State; } @@ -3404,6 +5406,13 @@ public enum MetadataOneofCase { DatabaseDump = subBuilder; break; } + case 58: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } } } #endif @@ -3454,6 +5463,13 @@ public enum MetadataOneofCase { DatabaseDump = subBuilder; break; } + case 58: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } } } } @@ -3855,7 +5871,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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[9]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4295,7 +6311,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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[10]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4321,6 +6337,7 @@ public sealed partial class Backup : pb::IMessage state_ = other.state_; serviceRevision_ = other.serviceRevision_ != null ? other.serviceRevision_.Clone() : null; description_ = other.description_; + restoringServices_ = other.restoringServices_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -4422,6 +6439,20 @@ public sealed partial class Backup : pb::IMessage } } + /// Field number for the "restoring_services" field. + public const int RestoringServicesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_restoringServices_codec + = pb::FieldCodec.ForString(58); + private readonly pbc::RepeatedField restoringServices_ = new pbc::RepeatedField(); + /// + /// Output only. Services that are restoring from the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RestoringServices { + get { return restoringServices_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -4443,6 +6474,7 @@ public sealed partial class Backup : pb::IMessage if (State != other.State) return false; if (!object.Equals(ServiceRevision, other.ServiceRevision)) return false; if (Description != other.Description) return false; + if(!restoringServices_.Equals(other.restoringServices_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4456,6 +6488,7 @@ public sealed partial class Backup : pb::IMessage if (State != global::Google.Cloud.Metastore.V1Beta.Backup.Types.State.Unspecified) hash ^= State.GetHashCode(); if (serviceRevision_ != null) hash ^= ServiceRevision.GetHashCode(); if (Description.Length != 0) hash ^= Description.GetHashCode(); + hash ^= restoringServices_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4498,6 +6531,7 @@ public sealed partial class Backup : pb::IMessage output.WriteRawTag(50); output.WriteString(Description); } + restoringServices_.WriteTo(output, _repeated_restoringServices_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4532,6 +6566,7 @@ public sealed partial class Backup : pb::IMessage output.WriteRawTag(50); output.WriteString(Description); } + restoringServices_.WriteTo(ref output, _repeated_restoringServices_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4560,6 +6595,7 @@ public sealed partial class Backup : pb::IMessage if (Description.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); } + size += restoringServices_.CalculateSize(_repeated_restoringServices_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4599,6 +6635,7 @@ public sealed partial class Backup : pb::IMessage if (other.Description.Length != 0) { Description = other.Description; } + restoringServices_.Add(other.restoringServices_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4647,6 +6684,10 @@ public sealed partial class Backup : pb::IMessage Description = input.ReadString(); break; } + case 58: { + restoringServices_.AddEntriesFrom(input, _repeated_restoringServices_codec); + break; + } } } #endif @@ -4695,6 +6736,10 @@ public sealed partial class Backup : pb::IMessage Description = input.ReadString(); break; } + case 58: { + restoringServices_.AddEntriesFrom(ref input, _repeated_restoringServices_codec); + break; + } } } } @@ -4729,6 +6774,10 @@ public enum State { /// The backup failed. /// [pbr::OriginalName("FAILED")] Failed = 4, + /// + /// The backup is being restored. + /// + [pbr::OriginalName("RESTORING")] Restoring = 5, } } @@ -4753,7 +6802,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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[11]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4840,7 +6889,7 @@ public sealed partial class Restore : pb::IMessage /// 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}` + /// `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5183,7 +7232,7 @@ public enum State { } /// - /// The type of restore. + /// The type of restore. If unspecified, defaults to `METADATA_ONLY`. /// public enum RestoreType { /// @@ -5223,7 +7272,7 @@ public sealed partial class ListServicesRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[14]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6049,7 +8098,7 @@ public sealed partial class CreateServiceRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -8128,7 +10177,7 @@ public sealed partial class UpdateMetadataImportRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[25]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[31]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9265,7 +11314,7 @@ public sealed partial class CreateBackupRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9610,7 +11659,7 @@ public sealed partial class DeleteBackupRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10222,7 +12271,7 @@ public sealed partial class RestoreServiceRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10280,7 +12329,7 @@ public sealed partial class RestoreServiceRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10554,7 +12603,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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[30]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11011,7 +13060,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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[31]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11441,7 +13490,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.V1Beta.MetastoreReflection.Descriptor.MessageTypes[32]; } + get { return global::Google.Cloud.Metastore.V1Beta.MetastoreReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11594,6 +13643,10 @@ public enum Type { /// Database dump is a MySQL dump file. /// [pbr::OriginalName("MYSQL")] Mysql = 1, + /// + /// Database dump contains Avro files. + /// + [pbr::OriginalName("AVRO")] Avro = 2, } } diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederation.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederation.g.cs new file mode 100644 index 000000000000..855db0d6d504 --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederation.g.cs @@ -0,0 +1,2726 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/metastore/v1beta/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.V1Beta { + + /// Holder for reflection information generated from google/cloud/metastore/v1beta/metastore_federation.proto + public static partial class MetastoreFederationReflection { + + #region Descriptor + /// File descriptor for google/cloud/metastore/v1beta/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( + "Cjhnb29nbGUvY2xvdWQvbWV0YXN0b3JlL3YxYmV0YS9tZXRhc3RvcmVfZmVk", + "ZXJhdGlvbi5wcm90bxIdZ29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52MWJldGEa", + "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xp", + "ZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", + "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiNnb29nbGUvbG9uZ3J1bm5pbmcv", + "b3BlcmF0aW9ucy5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", + "cHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8iuwYKCkZl", + "ZGVyYXRpb24SEQoEbmFtZRgBIAEoCUID4EEFEjQKC2NyZWF0ZV90aW1lGAIg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjQKC3VwZGF0", + "ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVm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k1ldGFkYXRhGkzKQRhtZXRhc3RvcmUuZ29vZ2xlYXBpcy5jb23SQS5odHRw", + "czovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtQocB", + "CiFjb20uZ29vZ2xlLmNsb3VkLm1ldGFzdG9yZS52MWJldGFCGE1ldGFzdG9y", + "ZUZlZGVyYXRpb25Qcm90b1ABWkZnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", + "by9nb29nbGVhcGlzL2Nsb3VkL21ldGFzdG9yZS92MWJldGE7bWV0YXN0b3Jl", + "YgZwcm90bzM=")); + 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.V1Beta.Federation), global::Google.Cloud.Metastore.V1Beta.Federation.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "Version", "BackendMetastores", "EndpointUri", "State", "StateMessage", "Uid" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.Federation.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.BackendMetastore), global::Google.Cloud.Metastore.V1Beta.BackendMetastore.Parser, new[]{ "Name", "MetastoreType" }, null, new[]{ typeof(global::Google.Cloud.Metastore.V1Beta.BackendMetastore.Types.MetastoreType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.ListFederationsRequest), global::Google.Cloud.Metastore.V1Beta.ListFederationsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.ListFederationsResponse), global::Google.Cloud.Metastore.V1Beta.ListFederationsResponse.Parser, new[]{ "Federations", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.GetFederationRequest), global::Google.Cloud.Metastore.V1Beta.GetFederationRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.CreateFederationRequest), global::Google.Cloud.Metastore.V1Beta.CreateFederationRequest.Parser, new[]{ "Parent", "FederationId", "Federation", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.UpdateFederationRequest), global::Google.Cloud.Metastore.V1Beta.UpdateFederationRequest.Parser, new[]{ "UpdateMask", "Federation", "RequestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Metastore.V1Beta.DeleteFederationRequest), global::Google.Cloud.Metastore.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.Federation.Types.State state_ = global::Google.Cloud.Metastore.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.BackendMetastore.Types.MetastoreType metastoreType_ = global::Google.Cloud.Metastore.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederationGrpc.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederationGrpc.g.cs new file mode 100644 index 000000000000..c75ffe83643c --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederationGrpc.g.cs @@ -0,0 +1,511 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/metastore/v1beta/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.V1Beta { + /// + /// 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.v1beta.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_v1beta_ListFederationsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Beta.ListFederationsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1beta_ListFederationsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Beta.ListFederationsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1beta_GetFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Beta.GetFederationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1beta_Federation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Beta.Federation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1beta_CreateFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Beta.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_v1beta_UpdateFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Beta.UpdateFederationRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_metastore_v1beta_DeleteFederationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Metastore.V1Beta.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_v1beta_ListFederationsRequest, + __Marshaller_google_cloud_metastore_v1beta_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_v1beta_GetFederationRequest, + __Marshaller_google_cloud_metastore_v1beta_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_v1beta_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_v1beta_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_v1beta_DeleteFederationRequest, + __Marshaller_google_longrunning_Operation); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Metastore.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.ListFederationsResponse ListFederations(global::Google.Cloud.Metastore.V1Beta.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.V1Beta.ListFederationsResponse ListFederations(global::Google.Cloud.Metastore.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.Federation GetFederation(global::Google.Cloud.Metastore.V1Beta.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.V1Beta.Federation GetFederation(global::Google.Cloud.Metastore.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta.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.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederationResourceNames.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreFederationResourceNames.g.cs new file mode 100644 index 000000000000..72d1aa857d2e --- /dev/null +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/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.V1Beta; +using sys = System; + +namespace Google.Cloud.Metastore.V1Beta +{ + /// 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.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreGrpc.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreGrpc.g.cs index 1c80ab433a99..ad97bc0fac6a 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreGrpc.g.cs +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreGrpc.g.cs @@ -3,7 +3,7 @@ // source: google/cloud/metastore/v1beta/metastore.proto // // Original file comments: -// Copyright 2021 Google LLC +// 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. @@ -25,8 +25,8 @@ namespace Google.Cloud.Metastore.V1Beta { /// /// Configures and manages metastore services. - /// Metastore services are fully managed, highly available, auto-scaled, - /// auto-healing, OSS-native deployments of technical metadata management + /// Metastore services are fully managed, highly available, autoscaled, + /// autohealing, OSS-native deployments of technical metadata management /// software. Each metastore service exposes a network endpoint through which /// metadata queries are served. Metadata queries can originate from a variety /// of sources, including Apache Hive, Apache Presto, and Apache Spark. @@ -412,7 +412,7 @@ public abstract partial class DataprocMetastoreBase } /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -1093,7 +1093,7 @@ protected DataprocMetastoreClient(ClientBaseConfiguration configuration) : base( return CallInvoker.AsyncUnaryCall(__Method_GetBackup, null, options, request); } /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1106,7 +1106,7 @@ protected DataprocMetastoreClient(ClientBaseConfiguration configuration) : base( return CreateBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request to send to the server. /// The options for the call. @@ -1117,7 +1117,7 @@ protected DataprocMetastoreClient(ClientBaseConfiguration configuration) : base( return CallInvoker.BlockingUnaryCall(__Method_CreateBackup, null, options, request); } /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1130,7 +1130,7 @@ protected DataprocMetastoreClient(ClientBaseConfiguration configuration) : base( return CreateBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Creates a new Backup in a given project and location. + /// Creates a new backup in a given project and location. /// /// The request to send to the server. /// The options for the call. diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreResourceNames.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreResourceNames.g.cs index 9f79c5965e03..79b48062d436 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreResourceNames.g.cs +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/MetastoreResourceNames.g.cs @@ -983,6 +983,464 @@ public override string ToString() public static bool operator !=(NetworkName a, NetworkName b) => !(a == b); } + /// Resource name for the Subnetwork resource. + public sealed partial class SubnetworkName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/regions/{region}/subnetworks/{subnetwork}. + /// + ProjectRegionSubnetwork = 1, + } + + private static gax::PathTemplate s_projectRegionSubnetwork = new gax::PathTemplate("projects/{project}/regions/{region}/subnetworks/{subnetwork}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static SubnetworkName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new SubnetworkName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/regions/{region}/subnetworks/{subnetwork}. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Subnetwork ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SubnetworkName FromProjectRegionSubnetwork(string projectId, string regionId, string subnetworkId) => + new SubnetworkName(ResourceNameType.ProjectRegionSubnetwork, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), regionId: gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), subnetworkId: gax::GaxPreconditions.CheckNotNullOrEmpty(subnetworkId, nameof(subnetworkId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/regions/{region}/subnetworks/{subnetwork}. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Subnetwork ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/regions/{region}/subnetworks/{subnetwork}. + /// + public static string Format(string projectId, string regionId, string subnetworkId) => + FormatProjectRegionSubnetwork(projectId, regionId, subnetworkId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/regions/{region}/subnetworks/{subnetwork}. + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Subnetwork ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/regions/{region}/subnetworks/{subnetwork}. + /// + public static string FormatProjectRegionSubnetwork(string projectId, string regionId, string subnetworkId) => + s_projectRegionSubnetwork.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), gax::GaxPreconditions.CheckNotNullOrEmpty(subnetworkId, nameof(subnetworkId))); + + /// 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}/regions/{region}/subnetworks/{subnetwork} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static SubnetworkName Parse(string subnetworkName) => Parse(subnetworkName, 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}/regions/{region}/subnetworks/{subnetwork} + /// + /// 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 SubnetworkName Parse(string subnetworkName, bool allowUnparsed) => + TryParse(subnetworkName, allowUnparsed, out SubnetworkName 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}/regions/{region}/subnetworks/{subnetwork} + /// + /// + /// 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 subnetworkName, out SubnetworkName result) => + TryParse(subnetworkName, 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}/regions/{region}/subnetworks/{subnetwork} + /// + /// 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 subnetworkName, bool allowUnparsed, out SubnetworkName result) + { + gax::GaxPreconditions.CheckNotNull(subnetworkName, nameof(subnetworkName)); + gax::TemplatedResourceName resourceName; + if (s_projectRegionSubnetwork.TryParseName(subnetworkName, out resourceName)) + { + result = FromProjectRegionSubnetwork(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(subnetworkName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private SubnetworkName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string regionId = null, string subnetworkId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ProjectId = projectId; + RegionId = regionId; + SubnetworkId = subnetworkId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/regions/{region}/subnetworks/{subnetwork} + /// + /// The Project ID. Must not be null or empty. + /// The Region ID. Must not be null or empty. + /// The Subnetwork ID. Must not be null or empty. + public SubnetworkName(string projectId, string regionId, string subnetworkId) : this(ResourceNameType.ProjectRegionSubnetwork, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), regionId: gax::GaxPreconditions.CheckNotNullOrEmpty(regionId, nameof(regionId)), subnetworkId: gax::GaxPreconditions.CheckNotNullOrEmpty(subnetworkId, nameof(subnetworkId))) + { + } + + /// 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 Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Region ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string RegionId { get; } + + /// + /// The Subnetwork ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string SubnetworkId { 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.ProjectRegionSubnetwork: return s_projectRegionSubnetwork.Expand(ProjectId, RegionId, SubnetworkId); + 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 SubnetworkName); + + /// + public bool Equals(SubnetworkName other) => ToString() == other?.ToString(); + + /// + public static bool operator ==(SubnetworkName a, SubnetworkName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// + public static bool operator !=(SubnetworkName a, SubnetworkName b) => !(a == b); + } + + /// Resource name for the Lake resource. + public sealed partial class LakeName : 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}/lakes/{lake}. + /// + ProjectLocationLake = 1, + } + + private static gax::PathTemplate s_projectLocationLake = new gax::PathTemplate("projects/{project}/locations/{location}/lakes/{lake}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static LakeName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new LakeName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/locations/{location}/lakes/{lake} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Lake ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static LakeName FromProjectLocationLake(string projectId, string locationId, string lakeId) => + new LakeName(ResourceNameType.ProjectLocationLake, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), lakeId: gax::GaxPreconditions.CheckNotNullOrEmpty(lakeId, nameof(lakeId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/lakes/{lake}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Lake ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/lakes/{lake}. + /// + public static string Format(string projectId, string locationId, string lakeId) => + FormatProjectLocationLake(projectId, locationId, lakeId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/lakes/{lake}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Lake ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/lakes/{lake}. + /// + public static string FormatProjectLocationLake(string projectId, string locationId, string lakeId) => + s_projectLocationLake.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(lakeId, nameof(lakeId))); + + /// 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}/lakes/{lake} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static LakeName Parse(string lakeName) => Parse(lakeName, 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}/lakes/{lake} + /// + /// 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 LakeName Parse(string lakeName, bool allowUnparsed) => + TryParse(lakeName, allowUnparsed, out LakeName 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}/lakes/{lake} + /// + /// + /// 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 lakeName, out LakeName result) => TryParse(lakeName, 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}/lakes/{lake} + /// + /// 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 lakeName, bool allowUnparsed, out LakeName result) + { + gax::GaxPreconditions.CheckNotNull(lakeName, nameof(lakeName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationLake.TryParseName(lakeName, out resourceName)) + { + result = FromProjectLocationLake(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(lakeName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private LakeName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string lakeId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + LakeId = lakeId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/lakes/{lake} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Lake ID. Must not be null or empty. + public LakeName(string projectId, string locationId, string lakeId) : this(ResourceNameType.ProjectLocationLake, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), lakeId: gax::GaxPreconditions.CheckNotNullOrEmpty(lakeId, nameof(lakeId))) + { + } + + /// 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 Lake ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LakeId { 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.ProjectLocationLake: return s_projectLocationLake.Expand(ProjectId, LocationId, LakeId); + 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 LakeName); + + /// + public bool Equals(LakeName other) => ToString() == other?.ToString(); + + /// + public static bool operator ==(LakeName a, LakeName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// + public static bool operator !=(LakeName a, LakeName b) => !(a == b); + } + public partial class Service { /// @@ -1004,6 +1462,18 @@ public NetworkName NetworkAsNetworkName } } + public partial class Lake + { + /// + /// -typed view over the resource name property. + /// + public gcmv::LakeName LakeName + { + get => string.IsNullOrEmpty(Name) ? null : gcmv::LakeName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + public partial class MetadataImport { /// diff --git a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/PackageApiMetadata.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/PackageApiMetadata.g.cs index 655955203f43..0d8e3c72f239 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/PackageApiMetadata.g.cs +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/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.V1Beta", GetFileDescriptors) .WithHttpRuleOverrides(new scg::Dictionary { + { + "google.cloud.location.Locations.GetLocation", + // { "get": "/v1beta/{name=projects/*/locations/*}" } + proto::ByteString.FromBase64("EiUvdjFiZXRhL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyp9") + }, + { + "google.cloud.location.Locations.ListLocations", + // { "get": "/v1beta/{name=projects/*}/locations" } + proto::ByteString.FromBase64("EiMvdjFiZXRhL3tuYW1lPXByb2plY3RzLyp9L2xvY2F0aW9ucw==") + }, + { + "google.iam.v1.IAMPolicy.GetIamPolicy", + // { "get": "/v1beta/{resource=projects/*/locations/*/services/*}:getIamPolicy", "additionalBindings": [ { "get": "/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy" }, { "get": "/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:getIamPolicy" }, { "get": "/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:getIamPolicy" }, { "get": "/v1beta/{resource=projects/*/locations/*/federations/*}:getIamPolicy" } ] } + proto::ByteString.FromBase64("EkEvdjFiZXRhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlcnZpY2VzLyp9OmdldElhbVBvbGljeVpNEksvdjFiZXRhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlcnZpY2VzLyovYmFja3Vwcy8qfTpnZXRJYW1Qb2xpY3laTxJNL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qfTpnZXRJYW1Qb2xpY3laWBJWL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qL3RhYmxlcy8qfTpnZXRJYW1Qb2xpY3laRhJEL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9mZWRlcmF0aW9ucy8qfTpnZXRJYW1Qb2xpY3k=") + }, + { + "google.iam.v1.IAMPolicy.SetIamPolicy", + // { "post": "/v1beta/{resource=projects/*/locations/*/services/*}:setIamPolicy", "body": "*", "additionalBindings": [ { "post": "/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy", "body": "*" }, { "post": "/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:setIamPolicy", "body": "*" }, { "post": "/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:setIamPolicy", "body": "*" }, { "post": "/v1beta/{resource=projects/*/locations/*/federations/*}:setIamPolicy", "body": "*" } ] } + proto::ByteString.FromBase64("IkEvdjFiZXRhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlcnZpY2VzLyp9OnNldElhbVBvbGljeToBKlpQIksvdjFiZXRhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlcnZpY2VzLyovYmFja3Vwcy8qfTpzZXRJYW1Qb2xpY3k6ASpaUiJNL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qfTpzZXRJYW1Qb2xpY3k6ASpaWyJWL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qL3RhYmxlcy8qfTpzZXRJYW1Qb2xpY3k6ASpaSSJEL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9mZWRlcmF0aW9ucy8qfTpzZXRJYW1Qb2xpY3k6ASo=") + }, + { + "google.iam.v1.IAMPolicy.TestIamPermissions", + // { "post": "/v1beta/{resource=projects/*/locations/*/services/*}:testIamPermissions", "body": "*", "additionalBindings": [ { "post": "/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:testIamPermissions", "body": "*" }, { "post": "/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:testIamPermissions", "body": "*" }, { "post": "/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:testIamPermissions", "body": "*" }, { "post": "/v1beta/{resource=projects/*/locations/*/federations/*}:testIamPermissions", "body": "*" } ] } + proto::ByteString.FromBase64("IkcvdjFiZXRhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlcnZpY2VzLyp9OnRlc3RJYW1QZXJtaXNzaW9uczoBKlpWIlEvdjFiZXRhL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlcnZpY2VzLyovYmFja3Vwcy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASpaWCJTL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASpaYSJcL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZXJ2aWNlcy8qL2RhdGFiYXNlcy8qL3RhYmxlcy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASpaTyJKL3YxYmV0YS97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9mZWRlcmF0aW9ucy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASo=") + }, { "google.longrunning.Operations.DeleteOperation", // { "delete": "/v1beta/{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.V1Beta/Google.Cloud.Metastore.V1Beta/ServiceCollectionExtensions.g.cs b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/ServiceCollectionExtensions.g.cs index 4d83331a3d81..7d1be0712d2d 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/ServiceCollectionExtensions.g.cs +++ b/apis/Google.Cloud.Metastore.V1Beta/Google.Cloud.Metastore.V1Beta/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.V1Beta; 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.V1Beta/gapic_metadata.json b/apis/Google.Cloud.Metastore.V1Beta/gapic_metadata.json index ffcfe58b18ff..c37178a59af5 100644 --- a/apis/Google.Cloud.Metastore.V1Beta/gapic_metadata.json +++ b/apis/Google.Cloud.Metastore.V1Beta/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 d32d9b36c026..072c5061579c 100644 --- a/apis/apis.json +++ b/apis/apis.json @@ -2587,6 +2587,8 @@ "metastore" ], "dependencies": { + "Google.Cloud.Iam.V1": "3.0.0", + "Google.Cloud.Location": "2.0.0", "Google.LongRunning": "3.0.0" }, "generator": "micro",