diff --git a/.github/renovate.json b/.github/renovate.json index ffd696083131..9d1e7b811391 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -75,7 +75,6 @@ "apis/Google.Cloud.DataCatalog.V1/Google.Cloud.DataCatalog.V1/**", "apis/Google.Cloud.DataFusion.V1/Google.Cloud.DataFusion.V1/**", "apis/Google.Cloud.DataLabeling.V1Beta1/Google.Cloud.DataLabeling.V1Beta1/**", - "apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/**", "apis/Google.Cloud.Dataflow.V1Beta3/Google.Cloud.Dataflow.V1Beta3/**", "apis/Google.Cloud.Dataform.V1Beta1/Google.Cloud.Dataform.V1Beta1/**", "apis/Google.Cloud.Dataplex.V1/Google.Cloud.Dataplex.V1/**", diff --git a/README.md b/README.md index cf7a7b079442..e285cde53745 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,6 @@ Each package name links to the documentation for that package. | [Google.Cloud.DataCatalog.V1](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest) | [![NuGet](https://img.shields.io/nuget/v/Google.Cloud.DataCatalog.V1)](https://nuget.org/packages/Google.Cloud.DataCatalog.V1) | [Data Catalog](https://cloud.google.com/data-catalog/docs) | | [Google.Cloud.DataFusion.V1](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.DataFusion.V1/latest) | [![NuGet](https://img.shields.io/nuget/v/Google.Cloud.DataFusion.V1)](https://nuget.org/packages/Google.Cloud.DataFusion.V1) | [Cloud Data Fusion](https://cloud.google.com/data-fusion/docs/) | | [Google.Cloud.DataLabeling.V1Beta1](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.DataLabeling.V1Beta1/latest) | [![NuGet](https://img.shields.io/nuget/v/Google.Cloud.DataLabeling.V1Beta1)](https://nuget.org/packages/Google.Cloud.DataLabeling.V1Beta1) | [Data Labeling](https://cloud.google.com/ai-platform/data-labeling/docs) | -| [Google.Cloud.DataQnA.V1Alpha](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest) | [![NuGet](https://img.shields.io/nuget/v/Google.Cloud.DataQnA.V1Alpha)](https://nuget.org/packages/Google.Cloud.DataQnA.V1Alpha) | [Data QnA](https://cloud.google.com/bigquery/docs/dataqna) | | [Google.Cloud.Dataflow.V1Beta3](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest) | [![NuGet](https://img.shields.io/nuget/v/Google.Cloud.Dataflow.V1Beta3)](https://nuget.org/packages/Google.Cloud.Dataflow.V1Beta3) | [Dataflow](https://cloud.google.com/dataflow/docs/) | | [Google.Cloud.Dataform.V1Beta1](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataform.V1Beta1/latest) | [![NuGet](https://img.shields.io/nuget/v/Google.Cloud.Dataform.V1Beta1)](https://nuget.org/packages/Google.Cloud.Dataform.V1Beta1) | [Dataform](https://cloud.google.com/dataform) | | [Google.Cloud.Dataplex.V1](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest) | [![NuGet](https://img.shields.io/nuget/v/Google.Cloud.Dataplex.V1)](https://nuget.org/packages/Google.Cloud.Dataplex.V1) | [Cloud Dataplex](https://cloud.google.com/dataplex/docs) | diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/.OwlBot.yaml b/apis/Google.Cloud.DataQnA.V1Alpha/.OwlBot.yaml deleted file mode 100644 index 5bd72263911b..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/.OwlBot.yaml +++ /dev/null @@ -1,31 +0,0 @@ - -# Copyright 2024 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. - -squash: true - -deep-remove-regex: - - /owl-bot-staging - -deep-copy-regex: - - source: /google/cloud/dataqna/v1alpha/.*-csharp/Google.Cloud.DataQnA.V1Alpha - dest: /owl-bot-staging/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha - - source: /google/cloud/dataqna/v1alpha/.*-csharp/Google.Cloud.DataQnA.V1Alpha.Snippets - dest: /owl-bot-staging/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets - - source: /google/cloud/dataqna/v1alpha/.*-csharp/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets - dest: /owl-bot-staging/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets - - source: /google/cloud/dataqna/v1alpha/.*-csharp/gapic_metadata.json - dest: /owl-bot-staging/Google.Cloud.DataQnA.V1Alpha/gapic_metadata.json - -api-name: Google.Cloud.DataQnA.V1Alpha diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/.repo-metadata.json b/apis/Google.Cloud.DataQnA.V1Alpha/.repo-metadata.json deleted file mode 100644 index d2bc841e482c..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/.repo-metadata.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "distribution_name": "Google.Cloud.DataQnA.V1Alpha", - "release_level": "stable", - "client_documentation": "https://cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest", - "library_type": "GAPIC_AUTO", - "language": "dotnet", - "api_shortname": "dataqna" -} \ No newline at end of file diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/AutoSuggestionServiceClient.SuggestQueriesRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/AutoSuggestionServiceClient.SuggestQueriesRequestObjectAsyncSnippet.g.cs deleted file mode 100644 index 08e501cd01ce..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/AutoSuggestionServiceClient.SuggestQueriesRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_async] - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedAutoSuggestionServiceClientSnippets - { - /// Snippet for SuggestQueriesAsync - /// - /// 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 SuggestQueriesRequestObjectAsync() - { - // Create client - AutoSuggestionServiceClient autoSuggestionServiceClient = await AutoSuggestionServiceClient.CreateAsync(); - // Initialize request argument(s) - SuggestQueriesRequest request = new SuggestQueriesRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Scopes = { "", }, - Query = "", - SuggestionTypes = - { - SuggestionType.Unspecified, - }, - }; - // Make the request - SuggestQueriesResponse response = await autoSuggestionServiceClient.SuggestQueriesAsync(request); - } - } - // [END dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_async] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/AutoSuggestionServiceClient.SuggestQueriesRequestObjectSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/AutoSuggestionServiceClient.SuggestQueriesRequestObjectSnippet.g.cs deleted file mode 100644 index 9f2d980492e3..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/AutoSuggestionServiceClient.SuggestQueriesRequestObjectSnippet.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_sync] - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedAutoSuggestionServiceClientSnippets - { - /// Snippet for SuggestQueries - /// - /// 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 SuggestQueriesRequestObject() - { - // Create client - AutoSuggestionServiceClient autoSuggestionServiceClient = AutoSuggestionServiceClient.Create(); - // Initialize request argument(s) - SuggestQueriesRequest request = new SuggestQueriesRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Scopes = { "", }, - Query = "", - SuggestionTypes = - { - SuggestionType.Unspecified, - }, - }; - // Make the request - SuggestQueriesResponse response = autoSuggestionServiceClient.SuggestQueries(request); - } - } - // [END dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_sync] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets.csproj b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets.csproj deleted file mode 100644 index d4743bd7e0d7..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets.csproj +++ /dev/null @@ -1,20 +0,0 @@ - - - - net6.0;net462 - net6.0 - false - 1701;1702;1705;xUnit2004;xUnit2013 - - - - - - - - - - - - - \ No newline at end of file diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionAsyncSnippet.g.cs deleted file mode 100644 index af37f41d60cc..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionAsyncSnippet.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_CreateQuestion_async_flattened] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for CreateQuestionAsync - /// - /// 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 CreateQuestionAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string parent = "projects/[PROJECT]/locations/[LOCATION]"; - Question question = new Question(); - // Make the request - Question response = await questionServiceClient.CreateQuestionAsync(parent, question); - } - } - // [END dataqna_v1alpha_generated_QuestionService_CreateQuestion_async_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionRequestObjectAsyncSnippet.g.cs deleted file mode 100644 index ba22f54d7a9e..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_CreateQuestion_async] - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for CreateQuestionAsync - /// - /// 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 CreateQuestionRequestObjectAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - CreateQuestionRequest request = new CreateQuestionRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Question = new Question(), - }; - // Make the request - Question response = await questionServiceClient.CreateQuestionAsync(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_CreateQuestion_async] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionRequestObjectSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionRequestObjectSnippet.g.cs deleted file mode 100644 index 9464859d363f..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionRequestObjectSnippet.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync] - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for CreateQuestion - /// - /// 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 CreateQuestionRequestObject() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - CreateQuestionRequest request = new CreateQuestionRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Question = new Question(), - }; - // Make the request - Question response = questionServiceClient.CreateQuestion(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionResourceNamesAsyncSnippet.g.cs deleted file mode 100644 index df23fa5a5235..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionResourceNamesAsyncSnippet.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_CreateQuestion_async_flattened_resourceNames] - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for CreateQuestionAsync - /// - /// 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 CreateQuestionResourceNamesAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); - Question question = new Question(); - // Make the request - Question response = await questionServiceClient.CreateQuestionAsync(parent, question); - } - } - // [END dataqna_v1alpha_generated_QuestionService_CreateQuestion_async_flattened_resourceNames] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionResourceNamesSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionResourceNamesSnippet.g.cs deleted file mode 100644 index f10b9bc7d3fa..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionResourceNamesSnippet.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync_flattened_resourceNames] - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for CreateQuestion - /// - /// 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 CreateQuestionResourceNames() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); - Question question = new Question(); - // Make the request - Question response = questionServiceClient.CreateQuestion(parent, question); - } - } - // [END dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync_flattened_resourceNames] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionSnippet.g.cs deleted file mode 100644 index f4c602fdca0c..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.CreateQuestionSnippet.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync_flattened] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for CreateQuestion - /// - /// 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 CreateQuestion() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string parent = "projects/[PROJECT]/locations/[LOCATION]"; - Question question = new Question(); - // Make the request - Question response = questionServiceClient.CreateQuestion(parent, question); - } - } - // [END dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionAsyncSnippet.g.cs deleted file mode 100644 index a9c0a9d2f633..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionAsyncSnippet.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_async_flattened] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for ExecuteQuestionAsync - /// - /// 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 ExecuteQuestionAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string name = ""; - int interpretationIndex = 0; - // Make the request - Question response = await questionServiceClient.ExecuteQuestionAsync(name, interpretationIndex); - } - } - // [END dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_async_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionRequestObjectAsyncSnippet.g.cs deleted file mode 100644 index 585743eb6479..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_async] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for ExecuteQuestionAsync - /// - /// 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 ExecuteQuestionRequestObjectAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - ExecuteQuestionRequest request = new ExecuteQuestionRequest - { - Name = "", - InterpretationIndex = 0, - }; - // Make the request - Question response = await questionServiceClient.ExecuteQuestionAsync(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_async] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionRequestObjectSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionRequestObjectSnippet.g.cs deleted file mode 100644 index 3592bf54d4b5..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionRequestObjectSnippet.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for ExecuteQuestion - /// - /// 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 ExecuteQuestionRequestObject() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - ExecuteQuestionRequest request = new ExecuteQuestionRequest - { - Name = "", - InterpretationIndex = 0, - }; - // Make the request - Question response = questionServiceClient.ExecuteQuestion(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionSnippet.g.cs deleted file mode 100644 index 19652ffa8a1d..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.ExecuteQuestionSnippet.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync_flattened] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for ExecuteQuestion - /// - /// 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 ExecuteQuestion() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string name = ""; - int interpretationIndex = 0; - // Make the request - Question response = questionServiceClient.ExecuteQuestion(name, interpretationIndex); - } - } - // [END dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionAsyncSnippet.g.cs deleted file mode 100644 index 064671b3d4a1..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionAsyncSnippet.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetQuestion_async_flattened] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetQuestionAsync - /// - /// 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 GetQuestionAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]"; - // Make the request - Question response = await questionServiceClient.GetQuestionAsync(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetQuestion_async_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionRequestObjectAsyncSnippet.g.cs deleted file mode 100644 index f793fa7ac2a9..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetQuestion_async] - using Google.Cloud.DataQnA.V1Alpha; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetQuestionAsync - /// - /// 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 GetQuestionRequestObjectAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - GetQuestionRequest request = new GetQuestionRequest - { - QuestionName = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - ReadMask = new FieldMask(), - }; - // Make the request - Question response = await questionServiceClient.GetQuestionAsync(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetQuestion_async] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionRequestObjectSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionRequestObjectSnippet.g.cs deleted file mode 100644 index 132f127ec78f..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionRequestObjectSnippet.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetQuestion_sync] - using Google.Cloud.DataQnA.V1Alpha; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetQuestion - /// - /// 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 GetQuestionRequestObject() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - GetQuestionRequest request = new GetQuestionRequest - { - QuestionName = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - ReadMask = new FieldMask(), - }; - // Make the request - Question response = questionServiceClient.GetQuestion(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetQuestion_sync] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionResourceNamesAsyncSnippet.g.cs deleted file mode 100644 index bd2925e25aab..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionResourceNamesAsyncSnippet.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetQuestion_async_flattened_resourceNames] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetQuestionAsync - /// - /// 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 GetQuestionResourceNamesAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - QuestionName name = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - Question response = await questionServiceClient.GetQuestionAsync(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetQuestion_async_flattened_resourceNames] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionResourceNamesSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionResourceNamesSnippet.g.cs deleted file mode 100644 index dabe6b2cf98d..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionResourceNamesSnippet.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetQuestion_sync_flattened_resourceNames] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetQuestion - /// - /// 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 GetQuestionResourceNames() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - QuestionName name = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - Question response = questionServiceClient.GetQuestion(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetQuestion_sync_flattened_resourceNames] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionSnippet.g.cs deleted file mode 100644 index ddf3b85abc34..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetQuestionSnippet.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetQuestion_sync_flattened] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetQuestion - /// - /// 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 GetQuestion() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]"; - // Make the request - Question response = questionServiceClient.GetQuestion(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetQuestion_sync_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackAsyncSnippet.g.cs deleted file mode 100644 index 9af50575abed..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackAsyncSnippet.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async_flattened] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetUserFeedbackAsync - /// - /// 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 GetUserFeedbackAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]/userFeedback"; - // Make the request - UserFeedback response = await questionServiceClient.GetUserFeedbackAsync(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackRequestObjectAsyncSnippet.g.cs deleted file mode 100644 index fe44aedf1bbd..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetUserFeedbackAsync - /// - /// 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 GetUserFeedbackRequestObjectAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - GetUserFeedbackRequest request = new GetUserFeedbackRequest - { - UserFeedbackName = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - }; - // Make the request - UserFeedback response = await questionServiceClient.GetUserFeedbackAsync(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackRequestObjectSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackRequestObjectSnippet.g.cs deleted file mode 100644 index 0327ab95a1dd..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackRequestObjectSnippet.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetUserFeedback - /// - /// 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 GetUserFeedbackRequestObject() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - GetUserFeedbackRequest request = new GetUserFeedbackRequest - { - UserFeedbackName = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - }; - // Make the request - UserFeedback response = questionServiceClient.GetUserFeedback(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackResourceNamesAsyncSnippet.g.cs deleted file mode 100644 index 0f1aeb50bd51..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackResourceNamesAsyncSnippet.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async_flattened_resourceNames] - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetUserFeedbackAsync - /// - /// 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 GetUserFeedbackResourceNamesAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - UserFeedbackName name = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - UserFeedback response = await questionServiceClient.GetUserFeedbackAsync(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async_flattened_resourceNames] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackResourceNamesSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackResourceNamesSnippet.g.cs deleted file mode 100644 index de3c10de9238..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackResourceNamesSnippet.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync_flattened_resourceNames] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetUserFeedback - /// - /// 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 GetUserFeedbackResourceNames() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - UserFeedbackName name = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - UserFeedback response = questionServiceClient.GetUserFeedback(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync_flattened_resourceNames] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackSnippet.g.cs deleted file mode 100644 index 624fa3425ab5..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.GetUserFeedbackSnippet.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync_flattened] - using Google.Cloud.DataQnA.V1Alpha; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for GetUserFeedback - /// - /// 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 GetUserFeedback() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]/userFeedback"; - // Make the request - UserFeedback response = questionServiceClient.GetUserFeedback(name); - } - } - // [END dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackAsyncSnippet.g.cs deleted file mode 100644 index 11bc08c58279..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackAsyncSnippet.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_async_flattened] - using Google.Cloud.DataQnA.V1Alpha; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for UpdateUserFeedbackAsync - /// - /// 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 UpdateUserFeedbackAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - UserFeedback userFeedback = new UserFeedback(); - FieldMask updateMask = new FieldMask(); - // Make the request - UserFeedback response = await questionServiceClient.UpdateUserFeedbackAsync(userFeedback, updateMask); - } - } - // [END dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_async_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackRequestObjectAsyncSnippet.g.cs deleted file mode 100644 index 2c04038bfde1..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackRequestObjectAsyncSnippet.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_async] - using Google.Cloud.DataQnA.V1Alpha; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for UpdateUserFeedbackAsync - /// - /// 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 UpdateUserFeedbackRequestObjectAsync() - { - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateUserFeedbackRequest request = new UpdateUserFeedbackRequest - { - UserFeedback = new UserFeedback(), - UpdateMask = new FieldMask(), - }; - // Make the request - UserFeedback response = await questionServiceClient.UpdateUserFeedbackAsync(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_async] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackRequestObjectSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackRequestObjectSnippet.g.cs deleted file mode 100644 index 1fc6c2fc49b5..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackRequestObjectSnippet.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync] - using Google.Cloud.DataQnA.V1Alpha; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for UpdateUserFeedback - /// - /// 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 UpdateUserFeedbackRequestObject() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - UpdateUserFeedbackRequest request = new UpdateUserFeedbackRequest - { - UserFeedback = new UserFeedback(), - UpdateMask = new FieldMask(), - }; - // Make the request - UserFeedback response = questionServiceClient.UpdateUserFeedback(request); - } - } - // [END dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackSnippet.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackSnippet.g.cs deleted file mode 100644 index 2be93f8232b8..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/QuestionServiceClient.UpdateUserFeedbackSnippet.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - // [START dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync_flattened] - using Google.Cloud.DataQnA.V1Alpha; - using Google.Protobuf.WellKnownTypes; - - public sealed partial class GeneratedQuestionServiceClientSnippets - { - /// Snippet for UpdateUserFeedback - /// - /// 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 UpdateUserFeedback() - { - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - UserFeedback userFeedback = new UserFeedback(); - FieldMask updateMask = new FieldMask(); - // Make the request - UserFeedback response = questionServiceClient.UpdateUserFeedback(userFeedback, updateMask); - } - } - // [END dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync_flattened] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.dataqna.v1alpha.json b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.dataqna.v1alpha.json deleted file mode 100644 index 36ed8560b726..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.dataqna.v1alpha.json +++ /dev/null @@ -1,1388 +0,0 @@ -{ - "clientLibrary": { - "name": "Google.Cloud.DataQnA.V1Alpha", - "language": "C_SHARP", - "apis": [ - { - "id": "google.cloud.dataqna.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_sync", - "title": "SuggestQueriesRequestObject", - "description": "Snippet for SuggestQueries", - "file": "AutoSuggestionServiceClient.SuggestQueriesRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "SuggestQueries", - "fullName": "Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient.SuggestQueries", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.SuggestQueriesResponse", - "client": { - "shortName": "AutoSuggestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient" - }, - "method": { - "shortName": "SuggestQueries", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueries", - "service": { - "shortName": "AutoSuggestionService", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 51, - "type": "FULL" - }, - { - "start": 35, - "end": 49, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_async", - "title": "SuggestQueriesRequestObjectAsync", - "description": "Snippet for SuggestQueriesAsync", - "file": "AutoSuggestionServiceClient.SuggestQueriesRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "SuggestQueriesAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient.SuggestQueriesAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "AutoSuggestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceClient" - }, - "method": { - "shortName": "SuggestQueries", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueries", - "service": { - "shortName": "AutoSuggestionService", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 52, - "type": "FULL" - }, - { - "start": 36, - "end": 50, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetQuestion_sync", - "title": "GetQuestionRequestObject", - "description": "Snippet for GetQuestion", - "file": "QuestionServiceClient.GetQuestionRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetQuestion", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - }, - { - "start": 35, - "end": 44, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetQuestion_async", - "title": "GetQuestionRequestObjectAsync", - "description": "Snippet for GetQuestionAsync", - "file": "QuestionServiceClient.GetQuestionRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetQuestionAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 47, - "type": "FULL" - }, - { - "start": 36, - "end": 45, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetQuestion_sync_flattened", - "title": "GetQuestion", - "description": "Snippet for GetQuestion", - "file": "QuestionServiceClient.GetQuestionSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetQuestion", - "parameters": [ - { - "type": "System.String", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 41, - "type": "FULL" - }, - { - "start": 34, - "end": 39, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetQuestion_async_flattened", - "title": "GetQuestionAsync", - "description": "Snippet for GetQuestionAsync", - "file": "QuestionServiceClient.GetQuestionAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetQuestionAsync", - "async": true, - "parameters": [ - { - "type": "System.String", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 42, - "type": "FULL" - }, - { - "start": 35, - "end": 40, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetQuestion_sync_flattened_resourceNames", - "title": "GetQuestionResourceNames", - "description": "Snippet for GetQuestion", - "file": "QuestionServiceClient.GetQuestionResourceNamesSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetQuestion", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.QuestionName", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 41, - "type": "FULL" - }, - { - "start": 34, - "end": 39, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetQuestion_async_flattened_resourceNames", - "title": "GetQuestionResourceNamesAsync", - "description": "Snippet for GetQuestionAsync", - "file": "QuestionServiceClient.GetQuestionResourceNamesAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetQuestionAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.QuestionName", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 42, - "type": "FULL" - }, - { - "start": 35, - "end": 40, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync", - "title": "CreateQuestionRequestObject", - "description": "Snippet for CreateQuestion", - "file": "QuestionServiceClient.CreateQuestionRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.CreateQuestion", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - }, - { - "start": 35, - "end": 44, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_CreateQuestion_async", - "title": "CreateQuestionRequestObjectAsync", - "description": "Snippet for CreateQuestionAsync", - "file": "QuestionServiceClient.CreateQuestionRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.CreateQuestionAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 47, - "type": "FULL" - }, - { - "start": 36, - "end": 45, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync_flattened", - "title": "CreateQuestion", - "description": "Snippet for CreateQuestion", - "file": "QuestionServiceClient.CreateQuestionSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.CreateQuestion", - "parameters": [ - { - "type": "System.String", - "name": "parent" - }, - { - "type": "Google.Cloud.DataQnA.V1Alpha.Question", - "name": "question" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 42, - "type": "FULL" - }, - { - "start": 34, - "end": 40, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_CreateQuestion_async_flattened", - "title": "CreateQuestionAsync", - "description": "Snippet for CreateQuestionAsync", - "file": "QuestionServiceClient.CreateQuestionAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.CreateQuestionAsync", - "async": true, - "parameters": [ - { - "type": "System.String", - "name": "parent" - }, - { - "type": "Google.Cloud.DataQnA.V1Alpha.Question", - "name": "question" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 43, - "type": "FULL" - }, - { - "start": 35, - "end": 41, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_CreateQuestion_sync_flattened_resourceNames", - "title": "CreateQuestionResourceNames", - "description": "Snippet for CreateQuestion", - "file": "QuestionServiceClient.CreateQuestionResourceNamesSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.CreateQuestion", - "parameters": [ - { - "type": "Google.Api.Gax.ResourceNames.LocationName", - "name": "parent" - }, - { - "type": "Google.Cloud.DataQnA.V1Alpha.Question", - "name": "question" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 43, - "type": "FULL" - }, - { - "start": 35, - "end": 41, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_CreateQuestion_async_flattened_resourceNames", - "title": "CreateQuestionResourceNamesAsync", - "description": "Snippet for CreateQuestionAsync", - "file": "QuestionServiceClient.CreateQuestionResourceNamesAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "CreateQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.CreateQuestionAsync", - "async": true, - "parameters": [ - { - "type": "Google.Api.Gax.ResourceNames.LocationName", - "name": "parent" - }, - { - "type": "Google.Cloud.DataQnA.V1Alpha.Question", - "name": "question" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 44, - "type": "FULL" - }, - { - "start": 36, - "end": 42, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync", - "title": "ExecuteQuestionRequestObject", - "description": "Snippet for ExecuteQuestion", - "file": "QuestionServiceClient.ExecuteQuestionRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ExecuteQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.ExecuteQuestion", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "ExecuteQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 45, - "type": "FULL" - }, - { - "start": 34, - "end": 43, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_async", - "title": "ExecuteQuestionRequestObjectAsync", - "description": "Snippet for ExecuteQuestionAsync", - "file": "QuestionServiceClient.ExecuteQuestionRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ExecuteQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.ExecuteQuestionAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "ExecuteQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - }, - { - "start": 35, - "end": 44, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_sync_flattened", - "title": "ExecuteQuestion", - "description": "Snippet for ExecuteQuestion", - "file": "QuestionServiceClient.ExecuteQuestionSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ExecuteQuestion", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.ExecuteQuestion", - "parameters": [ - { - "type": "System.String", - "name": "name" - }, - { - "type": "System.Int32", - "name": "interpretationIndex" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "ExecuteQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 42, - "type": "FULL" - }, - { - "start": 34, - "end": 40, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_async_flattened", - "title": "ExecuteQuestionAsync", - "description": "Snippet for ExecuteQuestionAsync", - "file": "QuestionServiceClient.ExecuteQuestionAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "ExecuteQuestionAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.ExecuteQuestionAsync", - "async": true, - "parameters": [ - { - "type": "System.String", - "name": "name" - }, - { - "type": "System.Int32", - "name": "interpretationIndex" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "ExecuteQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 43, - "type": "FULL" - }, - { - "start": 35, - "end": 41, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync", - "title": "GetUserFeedbackRequestObject", - "description": "Snippet for GetUserFeedback", - "file": "QuestionServiceClient.GetUserFeedbackRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetUserFeedback", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetUserFeedback", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.UserFeedback", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 44, - "type": "FULL" - }, - { - "start": 34, - "end": 42, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async", - "title": "GetUserFeedbackRequestObjectAsync", - "description": "Snippet for GetUserFeedbackAsync", - "file": "QuestionServiceClient.GetUserFeedbackRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetUserFeedbackAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetUserFeedbackAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 45, - "type": "FULL" - }, - { - "start": 35, - "end": 43, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync_flattened", - "title": "GetUserFeedback", - "description": "Snippet for GetUserFeedback", - "file": "QuestionServiceClient.GetUserFeedbackSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetUserFeedback", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetUserFeedback", - "parameters": [ - { - "type": "System.String", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.UserFeedback", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 41, - "type": "FULL" - }, - { - "start": 34, - "end": 39, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async_flattened", - "title": "GetUserFeedbackAsync", - "description": "Snippet for GetUserFeedbackAsync", - "file": "QuestionServiceClient.GetUserFeedbackAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetUserFeedbackAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetUserFeedbackAsync", - "async": true, - "parameters": [ - { - "type": "System.String", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 42, - "type": "FULL" - }, - { - "start": 35, - "end": 40, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetUserFeedback_sync_flattened_resourceNames", - "title": "GetUserFeedbackResourceNames", - "description": "Snippet for GetUserFeedback", - "file": "QuestionServiceClient.GetUserFeedbackResourceNamesSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetUserFeedback", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetUserFeedback", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.UserFeedbackName", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.UserFeedback", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 41, - "type": "FULL" - }, - { - "start": 34, - "end": 39, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async_flattened_resourceNames", - "title": "GetUserFeedbackResourceNamesAsync", - "description": "Snippet for GetUserFeedbackAsync", - "file": "QuestionServiceClient.GetUserFeedbackResourceNamesAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "GetUserFeedbackAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.GetUserFeedbackAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.UserFeedbackName", - "name": "name" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 42, - "type": "FULL" - }, - { - "start": 35, - "end": 40, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync", - "title": "UpdateUserFeedbackRequestObject", - "description": "Snippet for UpdateUserFeedback", - "file": "QuestionServiceClient.UpdateUserFeedbackRequestObjectSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateUserFeedback", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.UpdateUserFeedback", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.UserFeedback", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "UpdateUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - }, - { - "start": 35, - "end": 44, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_async", - "title": "UpdateUserFeedbackRequestObjectAsync", - "description": "Snippet for UpdateUserFeedbackAsync", - "file": "QuestionServiceClient.UpdateUserFeedbackRequestObjectAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateUserFeedbackAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.UpdateUserFeedbackAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest", - "name": "request" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "UpdateUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 47, - "type": "FULL" - }, - { - "start": 36, - "end": 45, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_sync_flattened", - "title": "UpdateUserFeedback", - "description": "Snippet for UpdateUserFeedback", - "file": "QuestionServiceClient.UpdateUserFeedbackSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateUserFeedback", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.UpdateUserFeedback", - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.UserFeedback", - "name": "userFeedback" - }, - { - "type": "Google.Protobuf.WellKnownTypes.FieldMask", - "name": "updateMask" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "Google.Cloud.DataQnA.V1Alpha.UserFeedback", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "UpdateUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 43, - "type": "FULL" - }, - { - "start": 35, - "end": 41, - "type": "SHORT" - } - ] - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_async_flattened", - "title": "UpdateUserFeedbackAsync", - "description": "Snippet for UpdateUserFeedbackAsync", - "file": "QuestionServiceClient.UpdateUserFeedbackAsyncSnippet.g.cs", - "language": "C_SHARP", - "clientMethod": { - "shortName": "UpdateUserFeedbackAsync", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient.UpdateUserFeedbackAsync", - "async": true, - "parameters": [ - { - "type": "Google.Cloud.DataQnA.V1Alpha.UserFeedback", - "name": "userFeedback" - }, - { - "type": "Google.Protobuf.WellKnownTypes.FieldMask", - "name": "updateMask" - }, - { - "type": "Google.Api.Gax.Grpc.CallSettings", - "name": "callSettings" - } - ], - "resultType": "System.Threading.Tasks.Task", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "Google.Cloud.DataQnA.V1Alpha.QuestionServiceClient" - }, - "method": { - "shortName": "UpdateUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 44, - "type": "FULL" - }, - { - "start": 36, - "end": 42, - "type": "SHORT" - } - ] - } - ] -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/AutoSuggestionServiceClientSnippets.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/AutoSuggestionServiceClientSnippets.g.cs deleted file mode 100644 index 90222c9c64dd..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/AutoSuggestionServiceClientSnippets.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - using System.Threading.Tasks; - - /// Generated snippets. - public sealed class AllGeneratedAutoSuggestionServiceClientSnippets - { - /// Snippet for SuggestQueries - public void SuggestQueriesRequestObject() - { - // Snippet: SuggestQueries(SuggestQueriesRequest, CallSettings) - // Create client - AutoSuggestionServiceClient autoSuggestionServiceClient = AutoSuggestionServiceClient.Create(); - // Initialize request argument(s) - SuggestQueriesRequest request = new SuggestQueriesRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Scopes = { "", }, - Query = "", - SuggestionTypes = - { - SuggestionType.Unspecified, - }, - }; - // Make the request - SuggestQueriesResponse response = autoSuggestionServiceClient.SuggestQueries(request); - // End snippet - } - - /// Snippet for SuggestQueriesAsync - public async Task SuggestQueriesRequestObjectAsync() - { - // Snippet: SuggestQueriesAsync(SuggestQueriesRequest, CallSettings) - // Additional: SuggestQueriesAsync(SuggestQueriesRequest, CancellationToken) - // Create client - AutoSuggestionServiceClient autoSuggestionServiceClient = await AutoSuggestionServiceClient.CreateAsync(); - // Initialize request argument(s) - SuggestQueriesRequest request = new SuggestQueriesRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Scopes = { "", }, - Query = "", - SuggestionTypes = - { - SuggestionType.Unspecified, - }, - }; - // Make the request - SuggestQueriesResponse response = await autoSuggestionServiceClient.SuggestQueriesAsync(request); - // End snippet - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/Google.Cloud.DataQnA.V1Alpha.Snippets.csproj b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/Google.Cloud.DataQnA.V1Alpha.Snippets.csproj deleted file mode 100644 index d4743bd7e0d7..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/Google.Cloud.DataQnA.V1Alpha.Snippets.csproj +++ /dev/null @@ -1,20 +0,0 @@ - - - - net6.0;net462 - net6.0 - false - 1701;1702;1705;xUnit2004;xUnit2013 - - - - - - - - - - - - - \ No newline at end of file diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/QuestionServiceClientSnippets.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/QuestionServiceClientSnippets.g.cs deleted file mode 100644 index cb86af2aca35..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/QuestionServiceClientSnippets.g.cs +++ /dev/null @@ -1,424 +0,0 @@ -// Copyright 2024 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 GoogleCSharpSnippets -{ - using Google.Api.Gax.ResourceNames; - using Google.Cloud.DataQnA.V1Alpha; - using Google.Protobuf.WellKnownTypes; - using System.Threading.Tasks; - - /// Generated snippets. - public sealed class AllGeneratedQuestionServiceClientSnippets - { - /// Snippet for GetQuestion - public void GetQuestionRequestObject() - { - // Snippet: GetQuestion(GetQuestionRequest, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - GetQuestionRequest request = new GetQuestionRequest - { - QuestionName = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - ReadMask = new FieldMask(), - }; - // Make the request - Question response = questionServiceClient.GetQuestion(request); - // End snippet - } - - /// Snippet for GetQuestionAsync - public async Task GetQuestionRequestObjectAsync() - { - // Snippet: GetQuestionAsync(GetQuestionRequest, CallSettings) - // Additional: GetQuestionAsync(GetQuestionRequest, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - GetQuestionRequest request = new GetQuestionRequest - { - QuestionName = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - ReadMask = new FieldMask(), - }; - // Make the request - Question response = await questionServiceClient.GetQuestionAsync(request); - // End snippet - } - - /// Snippet for GetQuestion - public void GetQuestion() - { - // Snippet: GetQuestion(string, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]"; - // Make the request - Question response = questionServiceClient.GetQuestion(name); - // End snippet - } - - /// Snippet for GetQuestionAsync - public async Task GetQuestionAsync() - { - // Snippet: GetQuestionAsync(string, CallSettings) - // Additional: GetQuestionAsync(string, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]"; - // Make the request - Question response = await questionServiceClient.GetQuestionAsync(name); - // End snippet - } - - /// Snippet for GetQuestion - public void GetQuestionResourceNames() - { - // Snippet: GetQuestion(QuestionName, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - QuestionName name = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - Question response = questionServiceClient.GetQuestion(name); - // End snippet - } - - /// Snippet for GetQuestionAsync - public async Task GetQuestionResourceNamesAsync() - { - // Snippet: GetQuestionAsync(QuestionName, CallSettings) - // Additional: GetQuestionAsync(QuestionName, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - QuestionName name = QuestionName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - Question response = await questionServiceClient.GetQuestionAsync(name); - // End snippet - } - - /// Snippet for CreateQuestion - public void CreateQuestionRequestObject() - { - // Snippet: CreateQuestion(CreateQuestionRequest, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - CreateQuestionRequest request = new CreateQuestionRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Question = new Question(), - }; - // Make the request - Question response = questionServiceClient.CreateQuestion(request); - // End snippet - } - - /// Snippet for CreateQuestionAsync - public async Task CreateQuestionRequestObjectAsync() - { - // Snippet: CreateQuestionAsync(CreateQuestionRequest, CallSettings) - // Additional: CreateQuestionAsync(CreateQuestionRequest, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - CreateQuestionRequest request = new CreateQuestionRequest - { - ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), - Question = new Question(), - }; - // Make the request - Question response = await questionServiceClient.CreateQuestionAsync(request); - // End snippet - } - - /// Snippet for CreateQuestion - public void CreateQuestion() - { - // Snippet: CreateQuestion(string, Question, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string parent = "projects/[PROJECT]/locations/[LOCATION]"; - Question question = new Question(); - // Make the request - Question response = questionServiceClient.CreateQuestion(parent, question); - // End snippet - } - - /// Snippet for CreateQuestionAsync - public async Task CreateQuestionAsync() - { - // Snippet: CreateQuestionAsync(string, Question, CallSettings) - // Additional: CreateQuestionAsync(string, Question, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string parent = "projects/[PROJECT]/locations/[LOCATION]"; - Question question = new Question(); - // Make the request - Question response = await questionServiceClient.CreateQuestionAsync(parent, question); - // End snippet - } - - /// Snippet for CreateQuestion - public void CreateQuestionResourceNames() - { - // Snippet: CreateQuestion(LocationName, Question, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); - Question question = new Question(); - // Make the request - Question response = questionServiceClient.CreateQuestion(parent, question); - // End snippet - } - - /// Snippet for CreateQuestionAsync - public async Task CreateQuestionResourceNamesAsync() - { - // Snippet: CreateQuestionAsync(LocationName, Question, CallSettings) - // Additional: CreateQuestionAsync(LocationName, Question, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); - Question question = new Question(); - // Make the request - Question response = await questionServiceClient.CreateQuestionAsync(parent, question); - // End snippet - } - - /// Snippet for ExecuteQuestion - public void ExecuteQuestionRequestObject() - { - // Snippet: ExecuteQuestion(ExecuteQuestionRequest, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - ExecuteQuestionRequest request = new ExecuteQuestionRequest - { - Name = "", - InterpretationIndex = 0, - }; - // Make the request - Question response = questionServiceClient.ExecuteQuestion(request); - // End snippet - } - - /// Snippet for ExecuteQuestionAsync - public async Task ExecuteQuestionRequestObjectAsync() - { - // Snippet: ExecuteQuestionAsync(ExecuteQuestionRequest, CallSettings) - // Additional: ExecuteQuestionAsync(ExecuteQuestionRequest, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - ExecuteQuestionRequest request = new ExecuteQuestionRequest - { - Name = "", - InterpretationIndex = 0, - }; - // Make the request - Question response = await questionServiceClient.ExecuteQuestionAsync(request); - // End snippet - } - - /// Snippet for ExecuteQuestion - public void ExecuteQuestion() - { - // Snippet: ExecuteQuestion(string, int, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string name = ""; - int interpretationIndex = 0; - // Make the request - Question response = questionServiceClient.ExecuteQuestion(name, interpretationIndex); - // End snippet - } - - /// Snippet for ExecuteQuestionAsync - public async Task ExecuteQuestionAsync() - { - // Snippet: ExecuteQuestionAsync(string, int, CallSettings) - // Additional: ExecuteQuestionAsync(string, int, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string name = ""; - int interpretationIndex = 0; - // Make the request - Question response = await questionServiceClient.ExecuteQuestionAsync(name, interpretationIndex); - // End snippet - } - - /// Snippet for GetUserFeedback - public void GetUserFeedbackRequestObject() - { - // Snippet: GetUserFeedback(GetUserFeedbackRequest, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - GetUserFeedbackRequest request = new GetUserFeedbackRequest - { - UserFeedbackName = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - }; - // Make the request - UserFeedback response = questionServiceClient.GetUserFeedback(request); - // End snippet - } - - /// Snippet for GetUserFeedbackAsync - public async Task GetUserFeedbackRequestObjectAsync() - { - // Snippet: GetUserFeedbackAsync(GetUserFeedbackRequest, CallSettings) - // Additional: GetUserFeedbackAsync(GetUserFeedbackRequest, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - GetUserFeedbackRequest request = new GetUserFeedbackRequest - { - UserFeedbackName = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"), - }; - // Make the request - UserFeedback response = await questionServiceClient.GetUserFeedbackAsync(request); - // End snippet - } - - /// Snippet for GetUserFeedback - public void GetUserFeedback() - { - // Snippet: GetUserFeedback(string, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]/userFeedback"; - // Make the request - UserFeedback response = questionServiceClient.GetUserFeedback(name); - // End snippet - } - - /// Snippet for GetUserFeedbackAsync - public async Task GetUserFeedbackAsync() - { - // Snippet: GetUserFeedbackAsync(string, CallSettings) - // Additional: GetUserFeedbackAsync(string, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - string name = "projects/[PROJECT]/locations/[LOCATION]/questions/[QUESTION]/userFeedback"; - // Make the request - UserFeedback response = await questionServiceClient.GetUserFeedbackAsync(name); - // End snippet - } - - /// Snippet for GetUserFeedback - public void GetUserFeedbackResourceNames() - { - // Snippet: GetUserFeedback(UserFeedbackName, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - UserFeedbackName name = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - UserFeedback response = questionServiceClient.GetUserFeedback(name); - // End snippet - } - - /// Snippet for GetUserFeedbackAsync - public async Task GetUserFeedbackResourceNamesAsync() - { - // Snippet: GetUserFeedbackAsync(UserFeedbackName, CallSettings) - // Additional: GetUserFeedbackAsync(UserFeedbackName, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - UserFeedbackName name = UserFeedbackName.FromProjectLocationQuestion("[PROJECT]", "[LOCATION]", "[QUESTION]"); - // Make the request - UserFeedback response = await questionServiceClient.GetUserFeedbackAsync(name); - // End snippet - } - - /// Snippet for UpdateUserFeedback - public void UpdateUserFeedbackRequestObject() - { - // Snippet: UpdateUserFeedback(UpdateUserFeedbackRequest, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - UpdateUserFeedbackRequest request = new UpdateUserFeedbackRequest - { - UserFeedback = new UserFeedback(), - UpdateMask = new FieldMask(), - }; - // Make the request - UserFeedback response = questionServiceClient.UpdateUserFeedback(request); - // End snippet - } - - /// Snippet for UpdateUserFeedbackAsync - public async Task UpdateUserFeedbackRequestObjectAsync() - { - // Snippet: UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, CallSettings) - // Additional: UpdateUserFeedbackAsync(UpdateUserFeedbackRequest, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - UpdateUserFeedbackRequest request = new UpdateUserFeedbackRequest - { - UserFeedback = new UserFeedback(), - UpdateMask = new FieldMask(), - }; - // Make the request - UserFeedback response = await questionServiceClient.UpdateUserFeedbackAsync(request); - // End snippet - } - - /// Snippet for UpdateUserFeedback - public void UpdateUserFeedback() - { - // Snippet: UpdateUserFeedback(UserFeedback, FieldMask, CallSettings) - // Create client - QuestionServiceClient questionServiceClient = QuestionServiceClient.Create(); - // Initialize request argument(s) - UserFeedback userFeedback = new UserFeedback(); - FieldMask updateMask = new FieldMask(); - // Make the request - UserFeedback response = questionServiceClient.UpdateUserFeedback(userFeedback, updateMask); - // End snippet - } - - /// Snippet for UpdateUserFeedbackAsync - public async Task UpdateUserFeedbackAsync() - { - // Snippet: UpdateUserFeedbackAsync(UserFeedback, FieldMask, CallSettings) - // Additional: UpdateUserFeedbackAsync(UserFeedback, FieldMask, CancellationToken) - // Create client - QuestionServiceClient questionServiceClient = await QuestionServiceClient.CreateAsync(); - // Initialize request argument(s) - UserFeedback userFeedback = new UserFeedback(); - FieldMask updateMask = new FieldMask(); - // Make the request - UserFeedback response = await questionServiceClient.UpdateUserFeedbackAsync(userFeedback, updateMask); - // End snippet - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/coverage.xml b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/coverage.xml deleted file mode 100644 index 63e1bf237362..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.Snippets/coverage.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - C:/Program Files/dotnet/dotnet.exe - test --no-build -c Release - - - - Google.Cloud.DataQnA.V1Alpha - - - - - System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute - System.Diagnostics.DebuggerNonUserCodeAttribute - - . - ../../../coverage/Google.Cloud.DataQnA.V1Alpha.Snippets.dvcr - \ No newline at end of file diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.sln b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.sln deleted file mode 100644 index d721b0cb9ed9..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.sln +++ /dev/null @@ -1,40 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.DataQnA.V1Alpha", "Google.Cloud.DataQnA.V1Alpha\Google.Cloud.DataQnA.V1Alpha.csproj", "{30423AC5-BE63-452F-96CC-DD4332B91419}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets", "Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets\Google.Cloud.DataQnA.V1Alpha.GeneratedSnippets.csproj", "{707E22D3-2966-463A-886F-0AF7A19A70AF}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.ClientTesting", "..\..\tools\Google.Cloud.ClientTesting\Google.Cloud.ClientTesting.csproj", "{94D89F25-B136-468B-BFB3-554325F5FC8C}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.DataQnA.V1Alpha.Snippets", "Google.Cloud.DataQnA.V1Alpha.Snippets\Google.Cloud.DataQnA.V1Alpha.Snippets.csproj", "{849307C2-291A-4329-A666-7CB39D8B286C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {30423AC5-BE63-452F-96CC-DD4332B91419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {30423AC5-BE63-452F-96CC-DD4332B91419}.Debug|Any CPU.Build.0 = Debug|Any CPU - {30423AC5-BE63-452F-96CC-DD4332B91419}.Release|Any CPU.ActiveCfg = Release|Any CPU - {30423AC5-BE63-452F-96CC-DD4332B91419}.Release|Any CPU.Build.0 = Release|Any CPU - {707E22D3-2966-463A-886F-0AF7A19A70AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {707E22D3-2966-463A-886F-0AF7A19A70AF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {707E22D3-2966-463A-886F-0AF7A19A70AF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {707E22D3-2966-463A-886F-0AF7A19A70AF}.Release|Any CPU.Build.0 = Release|Any CPU - {94D89F25-B136-468B-BFB3-554325F5FC8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {94D89F25-B136-468B-BFB3-554325F5FC8C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {94D89F25-B136-468B-BFB3-554325F5FC8C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {94D89F25-B136-468B-BFB3-554325F5FC8C}.Release|Any CPU.Build.0 = Release|Any CPU - {849307C2-291A-4329-A666-7CB39D8B286C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {849307C2-291A-4329-A666-7CB39D8B286C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {849307C2-291A-4329-A666-7CB39D8B286C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {849307C2-291A-4329-A666-7CB39D8B286C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AnnotatedString.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AnnotatedString.g.cs deleted file mode 100644 index 85481678d4c0..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AnnotatedString.g.cs +++ /dev/null @@ -1,668 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataqna/v1alpha/annotated_string.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.DataQnA.V1Alpha { - - /// Holder for reflection information generated from google/cloud/dataqna/v1alpha/annotated_string.proto - public static partial class AnnotatedStringReflection { - - #region Descriptor - /// File descriptor for google/cloud/dataqna/v1alpha/annotated_string.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AnnotatedStringReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFscGhhL2Fubm90YXRlZF9zdHJp", - "bmcucHJvdG8SHGdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEimQMKD0Fu", - "bm90YXRlZFN0cmluZxIWCg50ZXh0X2Zvcm1hdHRlZBgBIAEoCRIWCg5odG1s", - "X2Zvcm1hdHRlZBgCIAEoCRJNCgdtYXJrdXBzGAMgAygLMjwuZ29vZ2xlLmNs", - "b3VkLmRhdGFxbmEudjFhbHBoYS5Bbm5vdGF0ZWRTdHJpbmcuU2VtYW50aWNN", - "YXJrdXAaigEKDlNlbWFudGljTWFya3VwEk4KBHR5cGUYASABKA4yQC5nb29n", - "bGUuY2xvdWQuZGF0YXFuYS52MWFscGhhLkFubm90YXRlZFN0cmluZy5TZW1h", - "bnRpY01hcmt1cFR5cGUSGAoQc3RhcnRfY2hhcl9pbmRleBgCIAEoBRIOCgZs", - "ZW5ndGgYAyABKAUiegoSU2VtYW50aWNNYXJrdXBUeXBlEhsKF01BUktVUF9U", - "WVBFX1VOU1BFQ0lGSUVEEAASCgoGTUVUUklDEAESDQoJRElNRU5TSU9OEAIS", - "CgoGRklMVEVSEAMSCgoGVU5VU0VEEAQSCwoHQkxPQ0tFRBAFEgcKA1JPVxAG", - "QtYBCiBjb20uZ29vZ2xlLmNsb3VkLmRhdGFxbmEudjFhbHBoYUIUQW5ub3Rh", - "dGVkU3RyaW5nUHJvdG9QAVo6Y2xvdWQuZ29vZ2xlLmNvbS9nby9kYXRhcW5h", - "L2FwaXYxYWxwaGEvZGF0YXFuYXBiO2RhdGFxbmFwYqoCHEdvb2dsZS5DbG91", - "ZC5EYXRhUW5BLlYxQWxwaGHKAhxHb29nbGVcQ2xvdWRcRGF0YVFuQVxWMWFs", - "cGhh6gIfR29vZ2xlOjpDbG91ZDo6RGF0YVFuQTo6VjFhbHBoYWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString), global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Parser, new[]{ "TextFormatted", "HtmlFormatted", "Markups" }, null, new[]{ typeof(global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkup), global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkup.Parser, new[]{ "Type", "StartCharIndex", "Length" }, null, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// Describes string annotation from both semantic and formatting perspectives. - /// Example: - /// - /// User Query: - /// - /// top countries by population in Africa - /// - /// 0 4 14 17 28 31 37 - /// - /// Table Data: - /// - /// + "country" - dimension - /// + "population" - metric - /// + "Africa" - value in the "continent" column - /// - /// text_formatted = `"top countries by population in Africa"` - /// - /// html_formatted = - /// `"top <b>countries</b> by <b>population</b> in <i>Africa</i>"` - /// - /// ``` - /// markups = [ - /// {DIMENSION, 4, 12}, // 'countries' - /// {METRIC, 17, 26}, // 'population' - /// {FILTER, 31, 36} // 'Africa' - /// ] - /// ``` - /// - /// Note that html formattings for 'DIMENSION' and 'METRIC' are the same, while - /// semantic markups are different. - /// - public sealed partial class AnnotatedString : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AnnotatedString()); - 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.DataQnA.V1Alpha.AnnotatedStringReflection.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 AnnotatedString() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AnnotatedString(AnnotatedString other) : this() { - textFormatted_ = other.textFormatted_; - htmlFormatted_ = other.htmlFormatted_; - markups_ = other.markups_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AnnotatedString Clone() { - return new AnnotatedString(this); - } - - /// Field number for the "text_formatted" field. - public const int TextFormattedFieldNumber = 1; - private string textFormatted_ = ""; - /// - /// Text version of the string. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TextFormatted { - get { return textFormatted_; } - set { - textFormatted_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "html_formatted" field. - public const int HtmlFormattedFieldNumber = 2; - private string htmlFormatted_ = ""; - /// - /// HTML version of the string annotation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HtmlFormatted { - get { return htmlFormatted_; } - set { - htmlFormatted_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "markups" field. - public const int MarkupsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_markups_codec - = pb::FieldCodec.ForMessage(26, global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkup.Parser); - private readonly pbc::RepeatedField markups_ = new pbc::RepeatedField(); - /// - /// Semantic version of the string annotation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Markups { - get { return markups_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AnnotatedString); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AnnotatedString other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TextFormatted != other.TextFormatted) return false; - if (HtmlFormatted != other.HtmlFormatted) return false; - if(!markups_.Equals(other.markups_)) 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 (TextFormatted.Length != 0) hash ^= TextFormatted.GetHashCode(); - if (HtmlFormatted.Length != 0) hash ^= HtmlFormatted.GetHashCode(); - hash ^= markups_.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 (TextFormatted.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TextFormatted); - } - if (HtmlFormatted.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HtmlFormatted); - } - markups_.WriteTo(output, _repeated_markups_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 (TextFormatted.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TextFormatted); - } - if (HtmlFormatted.Length != 0) { - output.WriteRawTag(18); - output.WriteString(HtmlFormatted); - } - markups_.WriteTo(ref output, _repeated_markups_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 (TextFormatted.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TextFormatted); - } - if (HtmlFormatted.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HtmlFormatted); - } - size += markups_.CalculateSize(_repeated_markups_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AnnotatedString other) { - if (other == null) { - return; - } - if (other.TextFormatted.Length != 0) { - TextFormatted = other.TextFormatted; - } - if (other.HtmlFormatted.Length != 0) { - HtmlFormatted = other.HtmlFormatted; - } - markups_.Add(other.markups_); - _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: { - TextFormatted = input.ReadString(); - break; - } - case 18: { - HtmlFormatted = input.ReadString(); - break; - } - case 26: { - markups_.AddEntriesFrom(input, _repeated_markups_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: { - TextFormatted = input.ReadString(); - break; - } - case 18: { - HtmlFormatted = input.ReadString(); - break; - } - case 26: { - markups_.AddEntriesFrom(ref input, _repeated_markups_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AnnotatedString message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Semantic markup types. - /// - public enum SemanticMarkupType { - /// - /// No markup type was specified. - /// - [pbr::OriginalName("MARKUP_TYPE_UNSPECIFIED")] MarkupTypeUnspecified = 0, - /// - /// Markup for a substring denoting a metric. - /// - [pbr::OriginalName("METRIC")] Metric = 1, - /// - /// Markup for a substring denoting a dimension. - /// - [pbr::OriginalName("DIMENSION")] Dimension = 2, - /// - /// Markup for a substring denoting a filter. - /// - [pbr::OriginalName("FILTER")] Filter = 3, - /// - /// Markup for an unused substring. - /// - [pbr::OriginalName("UNUSED")] Unused = 4, - /// - /// Markup for a substring containing blocked phrases. - /// - [pbr::OriginalName("BLOCKED")] Blocked = 5, - /// - /// Markup for a substring that contains terms for row. - /// - [pbr::OriginalName("ROW")] Row = 6, - } - - /// - /// Semantic markup denotes a substring (by index and length) with markup - /// information. - /// - public sealed partial class SemanticMarkup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SemanticMarkup()); - 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.DataQnA.V1Alpha.AnnotatedString.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 SemanticMarkup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SemanticMarkup(SemanticMarkup other) : this() { - type_ = other.type_; - startCharIndex_ = other.startCharIndex_; - length_ = other.length_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SemanticMarkup Clone() { - return new SemanticMarkup(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType type_ = global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType.MarkupTypeUnspecified; - /// - /// The semantic type of the markup substring. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "start_char_index" field. - public const int StartCharIndexFieldNumber = 2; - private int startCharIndex_; - /// - /// Unicode character index of the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int StartCharIndex { - get { return startCharIndex_; } - set { - startCharIndex_ = value; - } - } - - /// Field number for the "length" field. - public const int LengthFieldNumber = 3; - private int length_; - /// - /// The length (number of unicode characters) of the markup substring. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Length { - get { return length_; } - set { - length_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SemanticMarkup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SemanticMarkup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (StartCharIndex != other.StartCharIndex) return false; - if (Length != other.Length) 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 (Type != global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType.MarkupTypeUnspecified) hash ^= Type.GetHashCode(); - if (StartCharIndex != 0) hash ^= StartCharIndex.GetHashCode(); - if (Length != 0) hash ^= Length.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 (Type != global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType.MarkupTypeUnspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (StartCharIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(StartCharIndex); - } - if (Length != 0) { - output.WriteRawTag(24); - output.WriteInt32(Length); - } - 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 (Type != global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType.MarkupTypeUnspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (StartCharIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(StartCharIndex); - } - if (Length != 0) { - output.WriteRawTag(24); - output.WriteInt32(Length); - } - 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 (Type != global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType.MarkupTypeUnspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (StartCharIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartCharIndex); - } - if (Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Length); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SemanticMarkup other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType.MarkupTypeUnspecified) { - Type = other.Type; - } - if (other.StartCharIndex != 0) { - StartCharIndex = other.StartCharIndex; - } - if (other.Length != 0) { - Length = other.Length; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType) input.ReadEnum(); - break; - } - case 16: { - StartCharIndex = input.ReadInt32(); - break; - } - case 24: { - Length = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString.Types.SemanticMarkupType) input.ReadEnum(); - break; - } - case 16: { - StartCharIndex = input.ReadInt32(); - break; - } - case 24: { - Length = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionService.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionService.g.cs deleted file mode 100644 index 917b760d82f6..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionService.g.cs +++ /dev/null @@ -1,1375 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataqna/v1alpha/auto_suggestion_service.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.DataQnA.V1Alpha { - - /// Holder for reflection information generated from google/cloud/dataqna/v1alpha/auto_suggestion_service.proto - public static partial class AutoSuggestionServiceReflection { - - #region Descriptor - /// File descriptor for google/cloud/dataqna/v1alpha/auto_suggestion_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AutoSuggestionServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFscGhhL2F1dG9fc3VnZ2VzdGlv", - "bl9zZXJ2aWNlLnByb3RvEhxnb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhh", - "Ghxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "GjNnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFscGhhL2Fubm90YXRlZF9zdHJp", - "bmcucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvIrkBChVTdWdnZXN0", - "UXVlcmllc1JlcXVlc3QSOQoGcGFyZW50GAEgASgJQingQQL6QSMKIWxvY2F0", - "aW9ucy5nb29nbGVhcGlzLmNvbS9Mb2NhdGlvbhIOCgZzY29wZXMYAiADKAkS", - "DQoFcXVlcnkYAyABKAkSRgoQc3VnZ2VzdGlvbl90eXBlcxgEIAMoDjIsLmdv", - "b2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuU3VnZ2VzdGlvblR5cGUisQEK", - "ClN1Z2dlc3Rpb24SRQoPc3VnZ2VzdGlvbl9pbmZvGAEgASgLMiwuZ29vZ2xl", - "LmNsb3VkLmRhdGFxbmEudjFhbHBoYS5TdWdnZXN0aW9uSW5mbxIVCg1yYW5r", - "aW5nX3Njb3JlGAIgASgBEkUKD3N1Z2dlc3Rpb25fdHlwZRgDIAEoDjIsLmdv", - "b2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuU3VnZ2VzdGlvblR5cGUi4wEK", - "DlN1Z2dlc3Rpb25JbmZvEksKFGFubm90YXRlZF9zdWdnZXN0aW9uGAEgASgL", - "Mi0uZ29vZ2xlLmNsb3VkLmRhdGFxbmEudjFhbHBoYS5Bbm5vdGF0ZWRTdHJp", - "bmcSTQoNcXVlcnlfbWF0Y2hlcxgCIAMoCzI2Lmdvb2dsZS5jbG91ZC5kYXRh", - "cW5hLnYxYWxwaGEuU3VnZ2VzdGlvbkluZm8uTWF0Y2hJbmZvGjUKCU1hdGNo", - "SW5mbxIYChBzdGFydF9jaGFyX2luZGV4GAEgASgFEg4KBmxlbmd0aBgCIAEo", - "BSJXChZTdWdnZXN0UXVlcmllc1Jlc3BvbnNlEj0KC3N1Z2dlc3Rpb25zGAEg", - "AygLMiguZ29vZ2xlLmNsb3VkLmRhdGFxbmEudjFhbHBoYS5TdWdnZXN0aW9u", - "KksKDlN1Z2dlc3Rpb25UeXBlEh8KG1NVR0dFU1RJT05fVFlQRV9VTlNQRUNJ", - "RklFRBAAEgoKBkVOVElUWRABEgwKCFRFTVBMQVRFEAIypQIKFUF1dG9TdWdn", - "ZXN0aW9uU2VydmljZRK/AQoOU3VnZ2VzdFF1ZXJpZXMSMy5nb29nbGUuY2xv", - "dWQuZGF0YXFuYS52MWFscGhhLlN1Z2dlc3RRdWVyaWVzUmVxdWVzdBo0Lmdv", - "b2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuU3VnZ2VzdFF1ZXJpZXNSZXNw", - "b25zZSJCgtPkkwI8IjcvdjFhbHBoYS97cGFyZW50PXByb2plY3RzLyovbG9j", - "YXRpb25zLyp9OnN1Z2dlc3RRdWVyaWVzOgEqGkrKQRZkYXRhcW5hLmdvb2ds", - "ZWFwaXMuY29t0kEuaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9j", - "bG91ZC1wbGF0Zm9ybULcAQogY29tLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYx", - "YWxwaGFCGkF1dG9TdWdnZXN0aW9uU2VydmljZVByb3RvUAFaOmNsb3VkLmdv", - "b2dsZS5jb20vZ28vZGF0YXFuYS9hcGl2MWFscGhhL2RhdGFxbmFwYjtkYXRh", - "cW5hcGKqAhxHb29nbGUuQ2xvdWQuRGF0YVFuQS5WMUFscGhhygIcR29vZ2xl", - "XENsb3VkXERhdGFRbkFcVjFhbHBoYeoCH0dvb2dsZTo6Q2xvdWQ6OkRhdGFR", - "bkE6OlYxYWxwaGFiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.DataQnA.V1Alpha.AnnotatedStringReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.DataQnA.V1Alpha.SuggestionType), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest), global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest.Parser, new[]{ "Parent", "Scopes", "Query", "SuggestionTypes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.Suggestion), global::Google.Cloud.DataQnA.V1Alpha.Suggestion.Parser, new[]{ "SuggestionInfo", "RankingScore", "SuggestionType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo), global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo.Parser, new[]{ "AnnotatedSuggestion", "QueryMatches" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo.Types.MatchInfo), global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo.Types.MatchInfo.Parser, new[]{ "StartCharIndex", "Length" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesResponse), global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesResponse.Parser, new[]{ "Suggestions" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - /// - /// The type of suggestion. - /// - public enum SuggestionType { - /// - /// No suggestiont type is specified. - /// - [pbr::OriginalName("SUGGESTION_TYPE_UNSPECIFIED")] Unspecified = 0, - /// - /// Entity suggestion type. Suggestions are for single entities. - /// - [pbr::OriginalName("ENTITY")] Entity = 1, - /// - /// Template suggestion type. Suggestions are for full sentences. - /// - [pbr::OriginalName("TEMPLATE")] Template = 2, - } - - #endregion - - #region Messages - /// - /// Request for query suggestions. - /// - public sealed partial class SuggestQueriesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestQueriesRequest()); - 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.DataQnA.V1Alpha.AutoSuggestionServiceReflection.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 SuggestQueriesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestQueriesRequest(SuggestQueriesRequest other) : this() { - parent_ = other.parent_; - scopes_ = other.scopes_.Clone(); - query_ = other.query_; - suggestionTypes_ = other.suggestionTypes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestQueriesRequest Clone() { - return new SuggestQueriesRequest(this); - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 1; - private string parent_ = ""; - /// - /// Required. The parent of the suggestion query is the resource denoting the project and - /// location. - /// - [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 "scopes" field. - public const int ScopesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_scopes_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField scopes_ = new pbc::RepeatedField(); - /// - /// The scopes to which this search is restricted. The only supported scope - /// pattern is - /// `//bigquery.googleapis.com/projects/{GCP-PROJECT-ID}/datasets/{DATASET-ID}/tables/{TABLE-ID}`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Scopes { - get { return scopes_; } - } - - /// Field number for the "query" field. - public const int QueryFieldNumber = 3; - private string query_ = ""; - /// - /// User query for which to generate suggestions. If the query is empty, zero - /// state suggestions are returned. This allows UIs to display suggestions - /// right away, helping the user to get a sense of what a query might look - /// like. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } - set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "suggestion_types" field. - public const int SuggestionTypesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_suggestionTypes_codec - = pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Google.Cloud.DataQnA.V1Alpha.SuggestionType) x); - private readonly pbc::RepeatedField suggestionTypes_ = new pbc::RepeatedField(); - /// - /// The requested suggestion type. Multiple suggestion types can be - /// requested, but there is no guarantee that the service will return - /// suggestions for each type. Suggestions for a requested type might rank - /// lower than suggestions for other types and the service may decide to cut - /// these suggestions off. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SuggestionTypes { - get { return suggestionTypes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuggestQueriesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuggestQueriesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Parent != other.Parent) return false; - if(!scopes_.Equals(other.scopes_)) return false; - if (Query != other.Query) return false; - if(!suggestionTypes_.Equals(other.suggestionTypes_)) 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(); - hash ^= scopes_.GetHashCode(); - if (Query.Length != 0) hash ^= Query.GetHashCode(); - hash ^= suggestionTypes_.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); - } - scopes_.WriteTo(output, _repeated_scopes_codec); - if (Query.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Query); - } - suggestionTypes_.WriteTo(output, _repeated_suggestionTypes_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 (Parent.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Parent); - } - scopes_.WriteTo(ref output, _repeated_scopes_codec); - if (Query.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Query); - } - suggestionTypes_.WriteTo(ref output, _repeated_suggestionTypes_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 (Parent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); - } - size += scopes_.CalculateSize(_repeated_scopes_codec); - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); - } - size += suggestionTypes_.CalculateSize(_repeated_suggestionTypes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuggestQueriesRequest other) { - if (other == null) { - return; - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - scopes_.Add(other.scopes_); - if (other.Query.Length != 0) { - Query = other.Query; - } - suggestionTypes_.Add(other.suggestionTypes_); - _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: { - scopes_.AddEntriesFrom(input, _repeated_scopes_codec); - break; - } - case 26: { - Query = input.ReadString(); - break; - } - case 34: - case 32: { - suggestionTypes_.AddEntriesFrom(input, _repeated_suggestionTypes_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: { - Parent = input.ReadString(); - break; - } - case 18: { - scopes_.AddEntriesFrom(ref input, _repeated_scopes_codec); - break; - } - case 26: { - Query = input.ReadString(); - break; - } - case 34: - case 32: { - suggestionTypes_.AddEntriesFrom(ref input, _repeated_suggestionTypes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A suggestion for a query with a ranking score. - /// - public sealed partial class Suggestion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Suggestion()); - 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.DataQnA.V1Alpha.AutoSuggestionServiceReflection.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 Suggestion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Suggestion(Suggestion other) : this() { - suggestionInfo_ = other.suggestionInfo_ != null ? other.suggestionInfo_.Clone() : null; - rankingScore_ = other.rankingScore_; - suggestionType_ = other.suggestionType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Suggestion Clone() { - return new Suggestion(this); - } - - /// Field number for the "suggestion_info" field. - public const int SuggestionInfoFieldNumber = 1; - private global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo suggestionInfo_; - /// - /// Detailed information about the suggestion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo SuggestionInfo { - get { return suggestionInfo_; } - set { - suggestionInfo_ = value; - } - } - - /// Field number for the "ranking_score" field. - public const int RankingScoreFieldNumber = 2; - private double rankingScore_; - /// - /// The score of the suggestion. This can be used to define ordering in UI. - /// The score represents confidence in the suggestion where higher is better. - /// All score values must be in the range [0, 1). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double RankingScore { - get { return rankingScore_; } - set { - rankingScore_ = value; - } - } - - /// Field number for the "suggestion_type" field. - public const int SuggestionTypeFieldNumber = 3; - private global::Google.Cloud.DataQnA.V1Alpha.SuggestionType suggestionType_ = global::Google.Cloud.DataQnA.V1Alpha.SuggestionType.Unspecified; - /// - /// The type of the suggestion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.SuggestionType SuggestionType { - get { return suggestionType_; } - set { - suggestionType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Suggestion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Suggestion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(SuggestionInfo, other.SuggestionInfo)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RankingScore, other.RankingScore)) return false; - if (SuggestionType != other.SuggestionType) 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 (suggestionInfo_ != null) hash ^= SuggestionInfo.GetHashCode(); - if (RankingScore != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RankingScore); - if (SuggestionType != global::Google.Cloud.DataQnA.V1Alpha.SuggestionType.Unspecified) hash ^= SuggestionType.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 (suggestionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SuggestionInfo); - } - if (RankingScore != 0D) { - output.WriteRawTag(17); - output.WriteDouble(RankingScore); - } - if (SuggestionType != global::Google.Cloud.DataQnA.V1Alpha.SuggestionType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) SuggestionType); - } - 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 (suggestionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SuggestionInfo); - } - if (RankingScore != 0D) { - output.WriteRawTag(17); - output.WriteDouble(RankingScore); - } - if (SuggestionType != global::Google.Cloud.DataQnA.V1Alpha.SuggestionType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) SuggestionType); - } - 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 (suggestionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuggestionInfo); - } - if (RankingScore != 0D) { - size += 1 + 8; - } - if (SuggestionType != global::Google.Cloud.DataQnA.V1Alpha.SuggestionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SuggestionType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Suggestion other) { - if (other == null) { - return; - } - if (other.suggestionInfo_ != null) { - if (suggestionInfo_ == null) { - SuggestionInfo = new global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo(); - } - SuggestionInfo.MergeFrom(other.SuggestionInfo); - } - if (other.RankingScore != 0D) { - RankingScore = other.RankingScore; - } - if (other.SuggestionType != global::Google.Cloud.DataQnA.V1Alpha.SuggestionType.Unspecified) { - SuggestionType = other.SuggestionType; - } - _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 (suggestionInfo_ == null) { - SuggestionInfo = new global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo(); - } - input.ReadMessage(SuggestionInfo); - break; - } - case 17: { - RankingScore = input.ReadDouble(); - break; - } - case 24: { - SuggestionType = (global::Google.Cloud.DataQnA.V1Alpha.SuggestionType) 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: { - if (suggestionInfo_ == null) { - SuggestionInfo = new global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo(); - } - input.ReadMessage(SuggestionInfo); - break; - } - case 17: { - RankingScore = input.ReadDouble(); - break; - } - case 24: { - SuggestionType = (global::Google.Cloud.DataQnA.V1Alpha.SuggestionType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Detailed information about the suggestion. - /// - public sealed partial class SuggestionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestionInfo()); - 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.DataQnA.V1Alpha.AutoSuggestionServiceReflection.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 SuggestionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestionInfo(SuggestionInfo other) : this() { - annotatedSuggestion_ = other.annotatedSuggestion_ != null ? other.annotatedSuggestion_.Clone() : null; - queryMatches_ = other.queryMatches_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestionInfo Clone() { - return new SuggestionInfo(this); - } - - /// Field number for the "annotated_suggestion" field. - public const int AnnotatedSuggestionFieldNumber = 1; - private global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString annotatedSuggestion_; - /// - /// Annotations for the suggestion. This provides information about which part - /// of the suggestion corresponds to what semantic meaning (e.g. a metric). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString AnnotatedSuggestion { - get { return annotatedSuggestion_; } - set { - annotatedSuggestion_ = value; - } - } - - /// Field number for the "query_matches" field. - public const int QueryMatchesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_queryMatches_codec - = pb::FieldCodec.ForMessage(18, global::Google.Cloud.DataQnA.V1Alpha.SuggestionInfo.Types.MatchInfo.Parser); - private readonly pbc::RepeatedField queryMatches_ = new pbc::RepeatedField(); - /// - /// Matches between user query and the annotated string. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField QueryMatches { - get { return queryMatches_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuggestionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuggestionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AnnotatedSuggestion, other.AnnotatedSuggestion)) return false; - if(!queryMatches_.Equals(other.queryMatches_)) 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 (annotatedSuggestion_ != null) hash ^= AnnotatedSuggestion.GetHashCode(); - hash ^= queryMatches_.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 (annotatedSuggestion_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AnnotatedSuggestion); - } - queryMatches_.WriteTo(output, _repeated_queryMatches_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 (annotatedSuggestion_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AnnotatedSuggestion); - } - queryMatches_.WriteTo(ref output, _repeated_queryMatches_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 (annotatedSuggestion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnnotatedSuggestion); - } - size += queryMatches_.CalculateSize(_repeated_queryMatches_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuggestionInfo other) { - if (other == null) { - return; - } - if (other.annotatedSuggestion_ != null) { - if (annotatedSuggestion_ == null) { - AnnotatedSuggestion = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - AnnotatedSuggestion.MergeFrom(other.AnnotatedSuggestion); - } - queryMatches_.Add(other.queryMatches_); - _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 (annotatedSuggestion_ == null) { - AnnotatedSuggestion = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - input.ReadMessage(AnnotatedSuggestion); - break; - } - case 18: { - queryMatches_.AddEntriesFrom(input, _repeated_queryMatches_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: { - if (annotatedSuggestion_ == null) { - AnnotatedSuggestion = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - input.ReadMessage(AnnotatedSuggestion); - break; - } - case 18: { - queryMatches_.AddEntriesFrom(ref input, _repeated_queryMatches_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the SuggestionInfo message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// MatchInfo describes which part of suggestion matched with data in user - /// typed query. This can be used to highlight matching parts in the UI. This - /// is different from the annotations provided in annotated_suggestion. The - /// annotated_suggestion provides information about the semantic meaning, while - /// this provides information about how it relates to the input. - /// - /// Example: - /// user query: `top products` - /// - /// ``` - /// annotated_suggestion { - /// text_formatted = "top product_group" - /// html_formatted = "top <b>product_group</b>" - /// markups { - /// {type: TEXT, start_char_index: 0, length: 3} - /// {type: DIMENSION, start_char_index: 4, length: 13} - /// } - /// } - /// - /// query_matches { - /// { start_char_index: 0, length: 3 } - /// { start_char_index: 4, length: 7} - /// } - /// ``` - /// - public sealed partial class MatchInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MatchInfo()); - 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.DataQnA.V1Alpha.SuggestionInfo.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 MatchInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MatchInfo(MatchInfo other) : this() { - startCharIndex_ = other.startCharIndex_; - length_ = other.length_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MatchInfo Clone() { - return new MatchInfo(this); - } - - /// Field number for the "start_char_index" field. - public const int StartCharIndexFieldNumber = 1; - private int startCharIndex_; - /// - /// Unicode character index of the string annotation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int StartCharIndex { - get { return startCharIndex_; } - set { - startCharIndex_ = value; - } - } - - /// Field number for the "length" field. - public const int LengthFieldNumber = 2; - private int length_; - /// - /// Count of unicode characters of this substring. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Length { - get { return length_; } - set { - length_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MatchInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MatchInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartCharIndex != other.StartCharIndex) return false; - if (Length != other.Length) 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 (StartCharIndex != 0) hash ^= StartCharIndex.GetHashCode(); - if (Length != 0) hash ^= Length.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 (StartCharIndex != 0) { - output.WriteRawTag(8); - output.WriteInt32(StartCharIndex); - } - if (Length != 0) { - output.WriteRawTag(16); - output.WriteInt32(Length); - } - 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 (StartCharIndex != 0) { - output.WriteRawTag(8); - output.WriteInt32(StartCharIndex); - } - if (Length != 0) { - output.WriteRawTag(16); - output.WriteInt32(Length); - } - 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 (StartCharIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartCharIndex); - } - if (Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Length); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MatchInfo other) { - if (other == null) { - return; - } - if (other.StartCharIndex != 0) { - StartCharIndex = other.StartCharIndex; - } - if (other.Length != 0) { - Length = other.Length; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - StartCharIndex = input.ReadInt32(); - break; - } - case 16: { - Length = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - StartCharIndex = input.ReadInt32(); - break; - } - case 16: { - Length = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Response to SuggestQueries. - /// - public sealed partial class SuggestQueriesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestQueriesResponse()); - 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.DataQnA.V1Alpha.AutoSuggestionServiceReflection.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 SuggestQueriesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestQueriesResponse(SuggestQueriesResponse other) : this() { - suggestions_ = other.suggestions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestQueriesResponse Clone() { - return new SuggestQueriesResponse(this); - } - - /// Field number for the "suggestions" field. - public const int SuggestionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_suggestions_codec - = pb::FieldCodec.ForMessage(10, global::Google.Cloud.DataQnA.V1Alpha.Suggestion.Parser); - private readonly pbc::RepeatedField suggestions_ = new pbc::RepeatedField(); - /// - /// A list of suggestions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Suggestions { - get { return suggestions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuggestQueriesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuggestQueriesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!suggestions_.Equals(other.suggestions_)) 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 ^= suggestions_.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 - suggestions_.WriteTo(output, _repeated_suggestions_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) { - suggestions_.WriteTo(ref output, _repeated_suggestions_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 += suggestions_.CalculateSize(_repeated_suggestions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuggestQueriesResponse other) { - if (other == null) { - return; - } - suggestions_.Add(other.suggestions_); - _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: { - suggestions_.AddEntriesFrom(input, _repeated_suggestions_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: { - suggestions_.AddEntriesFrom(ref input, _repeated_suggestions_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceClient.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceClient.g.cs deleted file mode 100644 index 077b0ae2f2ac..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceClient.g.cs +++ /dev/null @@ -1,436 +0,0 @@ -// Copyright 2024 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 proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Cloud.DataQnA.V1Alpha -{ - /// Settings for instances. - public sealed partial class AutoSuggestionServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AutoSuggestionServiceSettings GetDefault() => new AutoSuggestionServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AutoSuggestionServiceSettings() - { - } - - private AutoSuggestionServiceSettings(AutoSuggestionServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - SuggestQueriesSettings = existing.SuggestQueriesSettings; - OnCopy(existing); - } - - partial void OnCopy(AutoSuggestionServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AutoSuggestionServiceClient.SuggestQueries and AutoSuggestionServiceClient.SuggestQueriesAsync - /// . - /// - /// - /// - /// This call will not be retried. - /// Timeout: 2 seconds. - /// - /// - public gaxgrpc::CallSettings SuggestQueriesSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(2000))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AutoSuggestionServiceSettings Clone() => new AutoSuggestionServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - public sealed partial class AutoSuggestionServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AutoSuggestionServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AutoSuggestionServiceClientBuilder() : base(AutoSuggestionServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AutoSuggestionServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AutoSuggestionServiceClient Build() - { - AutoSuggestionServiceClient 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 AutoSuggestionServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AutoSuggestionServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AutoSuggestionServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AutoSuggestionServiceClient.ChannelPool; - } - - /// AutoSuggestionService client wrapper, for convenient use. - /// - /// This stateless API provides automatic suggestions for natural language - /// queries for the data sources in the provided project and location. - /// - /// The service provides a resourceless operation `suggestQueries` that can be - /// called to get a list of suggestions for a given incomplete query and scope - /// (or list of scopes) under which the query is to be interpreted. - /// - /// There are two types of suggestions, ENTITY for single entity suggestions - /// and TEMPLATE for full sentences. By default, both types are returned. - /// - /// Example Request: - /// ``` - /// GetSuggestions({ - /// parent: "locations/us/projects/my-project" - /// scopes: - /// "//bigquery.googleapis.com/projects/my-project/datasets/my-dataset/tables/my-table" - /// query: "top it" - /// }) - /// ``` - /// - /// The service will retrieve information based on the given scope(s) and give - /// suggestions based on that (e.g. "top item" for "top it" if "item" is a known - /// dimension for the provided scope). - /// ``` - /// suggestions { - /// suggestion_info { - /// annotated_suggestion { - /// text_formatted: "top item by sum of usd_revenue_net" - /// markups { - /// type: DIMENSION - /// start_char_index: 4 - /// length: 4 - /// } - /// markups { - /// type: METRIC - /// start_char_index: 19 - /// length: 15 - /// } - /// } - /// query_matches { - /// start_char_index: 0 - /// length: 6 - /// } - /// } - /// suggestion_type: TEMPLATE - /// ranking_score: 0.9 - /// } - /// suggestions { - /// suggestion_info { - /// annotated_suggestion { - /// text_formatted: "item" - /// markups { - /// type: DIMENSION - /// start_char_index: 4 - /// length: 2 - /// } - /// } - /// query_matches { - /// start_char_index: 0 - /// length: 6 - /// } - /// } - /// suggestion_type: ENTITY - /// ranking_score: 0.8 - /// } - /// ``` - /// - public abstract partial class AutoSuggestionServiceClient - { - /// - /// The default endpoint for the AutoSuggestionService service, which is a host of "dataqna.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "dataqna.googleapis.com:443"; - - /// The default AutoSuggestionService scopes. - /// - /// The default AutoSuggestionService 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(AutoSuggestionService.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 AutoSuggestionServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AutoSuggestionServiceClient Create() => new AutoSuggestionServiceClientBuilder().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 AutoSuggestionServiceClient Create(grpccore::CallInvoker callInvoker, AutoSuggestionServiceSettings 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); - } - AutoSuggestionService.AutoSuggestionServiceClient grpcClient = new AutoSuggestionService.AutoSuggestionServiceClient(callInvoker); - return new AutoSuggestionServiceClientImpl(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 AutoSuggestionService client - public virtual AutoSuggestionService.AutoSuggestionServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueriesResponse SuggestQueries(SuggestQueriesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueriesAsync(SuggestQueriesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueriesAsync(SuggestQueriesRequest request, st::CancellationToken cancellationToken) => - SuggestQueriesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AutoSuggestionService client wrapper implementation, for convenient use. - /// - /// This stateless API provides automatic suggestions for natural language - /// queries for the data sources in the provided project and location. - /// - /// The service provides a resourceless operation `suggestQueries` that can be - /// called to get a list of suggestions for a given incomplete query and scope - /// (or list of scopes) under which the query is to be interpreted. - /// - /// There are two types of suggestions, ENTITY for single entity suggestions - /// and TEMPLATE for full sentences. By default, both types are returned. - /// - /// Example Request: - /// ``` - /// GetSuggestions({ - /// parent: "locations/us/projects/my-project" - /// scopes: - /// "//bigquery.googleapis.com/projects/my-project/datasets/my-dataset/tables/my-table" - /// query: "top it" - /// }) - /// ``` - /// - /// The service will retrieve information based on the given scope(s) and give - /// suggestions based on that (e.g. "top item" for "top it" if "item" is a known - /// dimension for the provided scope). - /// ``` - /// suggestions { - /// suggestion_info { - /// annotated_suggestion { - /// text_formatted: "top item by sum of usd_revenue_net" - /// markups { - /// type: DIMENSION - /// start_char_index: 4 - /// length: 4 - /// } - /// markups { - /// type: METRIC - /// start_char_index: 19 - /// length: 15 - /// } - /// } - /// query_matches { - /// start_char_index: 0 - /// length: 6 - /// } - /// } - /// suggestion_type: TEMPLATE - /// ranking_score: 0.9 - /// } - /// suggestions { - /// suggestion_info { - /// annotated_suggestion { - /// text_formatted: "item" - /// markups { - /// type: DIMENSION - /// start_char_index: 4 - /// length: 2 - /// } - /// } - /// query_matches { - /// start_char_index: 0 - /// length: 6 - /// } - /// } - /// suggestion_type: ENTITY - /// ranking_score: 0.8 - /// } - /// ``` - /// - public sealed partial class AutoSuggestionServiceClientImpl : AutoSuggestionServiceClient - { - private readonly gaxgrpc::ApiCall _callSuggestQueries; - - /// - /// Constructs a client wrapper for the AutoSuggestionService 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 AutoSuggestionServiceClientImpl(AutoSuggestionService.AutoSuggestionServiceClient grpcClient, AutoSuggestionServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AutoSuggestionServiceSettings effectiveSettings = settings ?? AutoSuggestionServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callSuggestQueries = clientHelper.BuildApiCall("SuggestQueries", grpcClient.SuggestQueriesAsync, grpcClient.SuggestQueries, effectiveSettings.SuggestQueriesSettings).WithGoogleRequestParam("parent", request => request.Parent); - Modify_ApiCall(ref _callSuggestQueries); - Modify_SuggestQueriesApiCall(ref _callSuggestQueries); - 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_SuggestQueriesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AutoSuggestionService.AutoSuggestionServiceClient grpcClient, AutoSuggestionServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AutoSuggestionService client - public override AutoSuggestionService.AutoSuggestionServiceClient GrpcClient { get; } - - partial void Modify_SuggestQueriesRequest(ref SuggestQueriesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueriesResponse SuggestQueries(SuggestQueriesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SuggestQueriesRequest(ref request, ref callSettings); - return _callSuggestQueries.Sync(request, callSettings); - } - - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueriesAsync(SuggestQueriesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SuggestQueriesRequest(ref request, ref callSettings); - return _callSuggestQueries.Async(request, callSettings); - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceGrpc.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceGrpc.g.cs deleted file mode 100644 index 5326d89a88ce..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceGrpc.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataqna/v1alpha/auto_suggestion_service.proto -// -// Original file comments: -// Copyright 2020 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.DataQnA.V1Alpha { - /// - /// This stateless API provides automatic suggestions for natural language - /// queries for the data sources in the provided project and location. - /// - /// The service provides a resourceless operation `suggestQueries` that can be - /// called to get a list of suggestions for a given incomplete query and scope - /// (or list of scopes) under which the query is to be interpreted. - /// - /// There are two types of suggestions, ENTITY for single entity suggestions - /// and TEMPLATE for full sentences. By default, both types are returned. - /// - /// Example Request: - /// ``` - /// GetSuggestions({ - /// parent: "locations/us/projects/my-project" - /// scopes: - /// "//bigquery.googleapis.com/projects/my-project/datasets/my-dataset/tables/my-table" - /// query: "top it" - /// }) - /// ``` - /// - /// The service will retrieve information based on the given scope(s) and give - /// suggestions based on that (e.g. "top item" for "top it" if "item" is a known - /// dimension for the provided scope). - /// ``` - /// suggestions { - /// suggestion_info { - /// annotated_suggestion { - /// text_formatted: "top item by sum of usd_revenue_net" - /// markups { - /// type: DIMENSION - /// start_char_index: 4 - /// length: 4 - /// } - /// markups { - /// type: METRIC - /// start_char_index: 19 - /// length: 15 - /// } - /// } - /// query_matches { - /// start_char_index: 0 - /// length: 6 - /// } - /// } - /// suggestion_type: TEMPLATE - /// ranking_score: 0.9 - /// } - /// suggestions { - /// suggestion_info { - /// annotated_suggestion { - /// text_formatted: "item" - /// markups { - /// type: DIMENSION - /// start_char_index: 4 - /// length: 2 - /// } - /// } - /// query_matches { - /// start_char_index: 0 - /// length: 6 - /// } - /// } - /// suggestion_type: ENTITY - /// ranking_score: 0.8 - /// } - /// ``` - /// - public static partial class AutoSuggestionService - { - static readonly string __ServiceName = "google.cloud.dataqna.v1alpha.AutoSuggestionService"; - - [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_dataqna_v1alpha_SuggestQueriesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_dataqna_v1alpha_SuggestQueriesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SuggestQueries = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SuggestQueries", - __Marshaller_google_cloud_dataqna_v1alpha_SuggestQueriesRequest, - __Marshaller_google_cloud_dataqna_v1alpha_SuggestQueriesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Cloud.DataQnA.V1Alpha.AutoSuggestionServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AutoSuggestionService - [grpc::BindServiceMethod(typeof(AutoSuggestionService), "BindService")] - public abstract partial class AutoSuggestionServiceBase - { - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueries(global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AutoSuggestionService - public partial class AutoSuggestionServiceClient : grpc::ClientBase - { - /// Creates a new client for AutoSuggestionService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AutoSuggestionServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AutoSuggestionService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AutoSuggestionServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AutoSuggestionServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AutoSuggestionServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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.DataQnA.V1Alpha.SuggestQueriesResponse SuggestQueries(global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SuggestQueries(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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.DataQnA.V1Alpha.SuggestQueriesResponse SuggestQueries(global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SuggestQueries, null, options, request); - } - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueriesAsync(global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SuggestQueriesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a list of suggestions based on a prefix string. - /// AutoSuggestion tolerance should be less than 1 second. - /// - /// 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 SuggestQueriesAsync(global::Google.Cloud.DataQnA.V1Alpha.SuggestQueriesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SuggestQueries, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AutoSuggestionServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AutoSuggestionServiceClient(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(AutoSuggestionServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_SuggestQueries, serviceImpl.SuggestQueries).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, AutoSuggestionServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_SuggestQueries, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SuggestQueries)); - } - - } -} -#endregion diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceResourceNames.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceResourceNames.g.cs deleted file mode 100644 index 403e644c8370..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/AutoSuggestionServiceResourceNames.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2024 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 gagr = Google.Api.Gax.ResourceNames; - -namespace Google.Cloud.DataQnA.V1Alpha -{ - public partial class SuggestQueriesRequest - { - /// - /// -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() ?? ""; - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.csproj b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.csproj deleted file mode 100644 index 0798711bb5a7..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - 2.0.0-alpha02 - netstandard2.1;net462 - true - Recommended Google client library to access the Google Cloud Data QnA API (v1alpha) which is a natural language question and answer service for BigQuery data. - language;bigquery;Google;Cloud - - - - - - - \ No newline at end of file diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/PackageApiMetadata.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/PackageApiMetadata.g.cs deleted file mode 100644 index 00b990d8b01c..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/PackageApiMetadata.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2024 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 gaxgrpc = Google.Api.Gax.Grpc; -using gpr = Google.Protobuf.Reflection; -using scg = System.Collections.Generic; - -namespace Google.Cloud.DataQnA.V1Alpha -{ - /// Static class to provide common access to package-wide API metadata. - internal static class PackageApiMetadata - { - /// The for services in this package. - internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Cloud.DataQnA.V1Alpha", GetFileDescriptors); - - private static scg::IEnumerable GetFileDescriptors() - { - yield return AnnotatedStringReflection.Descriptor; - yield return AutoSuggestionServiceReflection.Descriptor; - yield return QuestionReflection.Descriptor; - yield return QuestionServiceReflection.Descriptor; - yield return UserFeedbackReflection.Descriptor; - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/Question.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/Question.g.cs deleted file mode 100644 index 742f94cd3976..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/Question.g.cs +++ /dev/null @@ -1,4653 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataqna/v1alpha/question.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.DataQnA.V1Alpha { - - /// Holder for reflection information generated from google/cloud/dataqna/v1alpha/question.proto - public static partial class QuestionReflection { - - #region Descriptor - /// File descriptor for google/cloud/dataqna/v1alpha/question.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static QuestionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Citnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFscGhhL3F1ZXN0aW9uLnByb3Rv", - "Ehxnb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "GjNnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFscGhhL2Fubm90YXRlZF9zdHJp", - "bmcucHJvdG8aGWdvb2dsZS9wcm90b2J1Zi9hbnkucHJvdG8aH2dvb2dsZS9w", - "cm90b2J1Zi90aW1lc3RhbXAucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnBy", - "b3RvIp0ECghRdWVzdGlvbhIUCgRuYW1lGAEgASgJQgbgQQPgQQUSFgoGc2Nv", - "cGVzGAIgAygJQgbgQQLgQQUSFQoFcXVlcnkYAyABKAlCBuBBAuBBBRIfChdk", - "YXRhX3NvdXJjZV9hbm5vdGF0aW9ucxgEIAMoCRJFCg9pbnRlcnByZXRfZXJy", - "b3IYBSABKAsyLC5nb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhLkludGVy", - "cHJldEVycm9yEkUKD2ludGVycHJldGF0aW9ucxgGIAMoCzIsLmdvb2dsZS5j", - "bG91ZC5kYXRhcW5hLnYxYWxwaGEuSW50ZXJwcmV0YXRpb24SLwoLY3JlYXRl", - "X3RpbWUYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhcKCnVz", - "ZXJfZW1haWwYCCABKAlCA+BBAxJFCgtkZWJ1Z19mbGFncxgJIAEoCzIoLmdv", - "b2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuRGVidWdGbGFnc0IG4EEF4EEE", - "EigKCmRlYnVnX2luZm8YCiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55OmLq", - "QV8KH2RhdGFxbmEuZ29vZ2xlYXBpcy5jb20vUXVlc3Rpb24SPHByb2plY3Rz", - "L3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9xdWVzdGlvbnMve3F1", - "ZXN0aW9ufSLbBgoOSW50ZXJwcmV0RXJyb3ISDwoHbWVzc2FnZRgBIAEoCRJN", - "CgRjb2RlGAIgASgOMj8uZ29vZ2xlLmNsb3VkLmRhdGFxbmEudjFhbHBoYS5J", - "bnRlcnByZXRFcnJvci5JbnRlcnByZXRFcnJvckNvZGUSUwoHZGV0YWlscxgD", - "IAEoCzJCLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuSW50ZXJwcmV0", - "RXJyb3IuSW50ZXJwcmV0RXJyb3JEZXRhaWxzGtECChVJbnRlcnByZXRFcnJv", - "ckRldGFpbHMSZQoTdW5zdXBwb3J0ZWRfZGV0YWlscxgBIAEoCzJILmdvb2ds", - "ZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuSW50ZXJwcmV0RXJyb3IuSW50ZXJw", - "cmV0VW5zdXBwb3J0ZWREZXRhaWxzEm4KGGluY29tcGxldGVfcXVlcnlfZGV0", - "YWlscxgCIAEoCzJMLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuSW50", - "ZXJwcmV0RXJyb3IuSW50ZXJwcmV0SW5jb21wbGV0ZVF1ZXJ5RGV0YWlscxJh", - "ChFhbWJpZ3VpdHlfZGV0YWlscxgDIAEoCzJGLmdvb2dsZS5jbG91ZC5kYXRh", - "cW5hLnYxYWxwaGEuSW50ZXJwcmV0RXJyb3IuSW50ZXJwcmV0QW1iaWd1aXR5", - "RGV0YWlscxpAChtJbnRlcnByZXRVbnN1cHBvcnRlZERldGFpbHMSEQoJb3Bl", - "cmF0b3JzGAEgAygJEg4KBmludGVudBgCIAMoCRpiCh9JbnRlcnByZXRJbmNv", - "bXBsZXRlUXVlcnlEZXRhaWxzEj8KCGVudGl0aWVzGAEgAygOMi0uZ29vZ2xl", - "LmNsb3VkLmRhdGFxbmEudjFhbHBoYS5JbnRlcnByZXRFbnRpdHkaGwoZSW50", - "ZXJwcmV0QW1iaWd1aXR5RGV0YWlscyJ9ChJJbnRlcnByZXRFcnJvckNvZGUS", - "JAogSU5URVJQUkVUX0VSUk9SX0NPREVfVU5TUEVDSUZJRUQQABIRCg1JTlZB", - "TElEX1FVRVJZEAESGAoURkFJTEVEX1RPX1VOREVSU1RBTkQQAhIUChBGQUlM", - "RURfVE9fQU5TV0VSEAMiggMKDUV4ZWN1dGlvbkluZm8SLwoTam9iX2NyZWF0", - "aW9uX3N0YXR1cxgBIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEloKE2pvYl9l", - "eGVjdXRpb25fc3RhdGUYAiABKA4yPS5nb29nbGUuY2xvdWQuZGF0YXFuYS52", - "MWFscGhhLkV4ZWN1dGlvbkluZm8uSm9iRXhlY3V0aW9uU3RhdGUSLwoLY3Jl", - "YXRlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEj8K", - "DGJpZ3F1ZXJ5X2pvYhgEIAEoCzIpLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYx", - "YWxwaGEuQmlnUXVlcnlKb2IicgoRSm9iRXhlY3V0aW9uU3RhdGUSIwofSk9C", - "X0VYRUNVVElPTl9TVEFURV9VTlNQRUNJRklFRBAAEhAKDE5PVF9FWEVDVVRF", - "RBABEgsKB1JVTk5JTkcQAhINCglTVUNDRUVERUQQAxIKCgZGQUlMRUQQBCJD", - "CgtCaWdRdWVyeUpvYhIOCgZqb2JfaWQYASABKAkSEgoKcHJvamVjdF9pZBgC", - "IAEoCRIQCghsb2NhdGlvbhgDIAEoCSLyAgoOSW50ZXJwcmV0YXRpb24SFAoM", - "ZGF0YV9zb3VyY2VzGAEgAygJEhIKCmNvbmZpZGVuY2UYAiABKAESFgoOdW51", - "c2VkX3BocmFzZXMYAyADKAkSQwoOaHVtYW5fcmVhZGFibGUYBCABKAsyKy5n", - "b29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhLkh1bWFuUmVhZGFibGUSVwoY", - "aW50ZXJwcmV0YXRpb25fc3RydWN0dXJlGAUgASgLMjUuZ29vZ2xlLmNsb3Vk", - "LmRhdGFxbmEudjFhbHBoYS5JbnRlcnByZXRhdGlvblN0cnVjdHVyZRI7Cgpk", - "YXRhX3F1ZXJ5GAYgASgLMicuZ29vZ2xlLmNsb3VkLmRhdGFxbmEudjFhbHBo", - "YS5EYXRhUXVlcnkSQwoOZXhlY3V0aW9uX2luZm8YByABKAsyKy5nb29nbGUu", - "Y2xvdWQuZGF0YXFuYS52MWFscGhhLkV4ZWN1dGlvbkluZm8iGAoJRGF0YVF1", - "ZXJ5EgsKA3NxbBgBIAEoCSKqAQoNSHVtYW5SZWFkYWJsZRJPChhnZW5lcmF0", - "ZWRfaW50ZXJwcmV0YXRpb24YASABKAsyLS5nb29nbGUuY2xvdWQuZGF0YXFu", - "YS52MWFscGhhLkFubm90YXRlZFN0cmluZxJIChFvcmlnaW5hbF9xdWVzdGlv", - "bhgCIAEoCzItLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuQW5ub3Rh", - "dGVkU3RyaW5nIpIEChdJbnRlcnByZXRhdGlvblN0cnVjdHVyZRJkChN2aXN1", - "YWxpemF0aW9uX3R5cGVzGAEgAygOMkcuZ29vZ2xlLmNsb3VkLmRhdGFxbmEu", - "djFhbHBoYS5JbnRlcnByZXRhdGlvblN0cnVjdHVyZS5WaXN1YWxpemF0aW9u", - "VHlwZRJVCgtjb2x1bW5faW5mbxgCIAMoCzJALmdvb2dsZS5jbG91ZC5kYXRh", - "cW5hLnYxYWxwaGEuSW50ZXJwcmV0YXRpb25TdHJ1Y3R1cmUuQ29sdW1uSW5m", - "bxo4CgpDb2x1bW5JbmZvEhQKDG91dHB1dF9hbGlhcxgBIAEoCRIUCgxkaXNw", - "bGF5X25hbWUYAiABKAki/wEKEVZpc3VhbGl6YXRpb25UeXBlEiIKHlZJU1VB", - "TElaQVRJT05fVFlQRV9VTlNQRUNJRklFRBAAEgkKBVRBQkxFEAESDQoJQkFS", - "X0NIQVJUEAISEAoMQ09MVU1OX0NIQVJUEAMSDAoIVElNRUxJTkUQBBIQCgxT", - "Q0FUVEVSX1BMT1QQBRINCglQSUVfQ0hBUlQQBhIOCgpMSU5FX0NIQVJUEAcS", - "DgoKQVJFQV9DSEFSVBAIEg8KC0NPTUJPX0NIQVJUEAkSDQoJSElTVE9HUkFN", - "EAoSEQoNR0VORVJJQ19DSEFSVBALEhgKFENIQVJUX05PVF9VTkRFUlNUT09E", - "EAwilQMKCkRlYnVnRmxhZ3MSGAoQaW5jbHVkZV92YV9xdWVyeRgBIAEoCBIf", - "ChdpbmNsdWRlX25lc3RlZF92YV9xdWVyeRgCIAEoCBIkChxpbmNsdWRlX2h1", - "bWFuX2ludGVycHJldGF0aW9uGAMgASgIEiMKG2luY2x1ZGVfYXF1YV9kZWJ1", - "Z19yZXNwb25zZRgEIAEoCBIVCg10aW1lX292ZXJyaWRlGAUgASgDEh8KF2lz", - "X2ludGVybmFsX2dvb2dsZV91c2VyGAYgASgIEhQKDGlnbm9yZV9jYWNoZRgH", - "IAEoCBIjChtpbmNsdWRlX3NlYXJjaF9lbnRpdGllc19ycGMYCCABKAgSKwoj", - "aW5jbHVkZV9saXN0X2NvbHVtbl9hbm5vdGF0aW9uc19ycGMYCSABKAgSKAog", - "aW5jbHVkZV92aXJ0dWFsX2FuYWx5c3RfZW50aXRpZXMYCiABKAgSGgoSaW5j", - "bHVkZV90YWJsZV9saXN0GAsgASgIEhsKE2luY2x1ZGVfZG9tYWluX2xpc3QY", - "DCABKAgqTgoPSW50ZXJwcmV0RW50aXR5EiAKHElOVEVSUFJFVF9FTlRJVFlf", - "VU5TUEVDSUZJRUQQABINCglESU1FTlNJT04QARIKCgZNRVRSSUMQAkLPAQog", - "Y29tLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGFCDVF1ZXN0aW9uUHJv", - "dG9QAVo6Y2xvdWQuZ29vZ2xlLmNvbS9nby9kYXRhcW5hL2FwaXYxYWxwaGEv", - "ZGF0YXFuYXBiO2RhdGFxbmFwYqoCHEdvb2dsZS5DbG91ZC5EYXRhUW5BLlYx", - "QWxwaGHKAhxHb29nbGVcQ2xvdWRcRGF0YVFuQVxWMWFscGhh6gIfR29vZ2xl", - "OjpDbG91ZDo6RGF0YVFuQTo6VjFhbHBoYWIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.DataQnA.V1Alpha.AnnotatedStringReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretEntity), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.Question), global::Google.Cloud.DataQnA.V1Alpha.Question.Parser, new[]{ "Name", "Scopes", "Query", "DataSourceAnnotations", "InterpretError", "Interpretations", "CreateTime", "UserEmail", "DebugFlags", "DebugInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretError), global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Parser, new[]{ "Message", "Code", "Details" }, null, new[]{ typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorDetails), global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorDetails.Parser, new[]{ "UnsupportedDetails", "IncompleteQueryDetails", "AmbiguityDetails" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretUnsupportedDetails), global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretUnsupportedDetails.Parser, new[]{ "Operators", "Intent" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretIncompleteQueryDetails), global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretIncompleteQueryDetails.Parser, new[]{ "Entities" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretAmbiguityDetails), global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretAmbiguityDetails.Parser, null, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo), global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Parser, new[]{ "JobCreationStatus", "JobExecutionState", "CreateTime", "BigqueryJob" }, null, new[]{ typeof(global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.BigQueryJob), global::Google.Cloud.DataQnA.V1Alpha.BigQueryJob.Parser, new[]{ "JobId", "ProjectId", "Location" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.Interpretation), global::Google.Cloud.DataQnA.V1Alpha.Interpretation.Parser, new[]{ "DataSources", "Confidence", "UnusedPhrases", "HumanReadable", "InterpretationStructure", "DataQuery", "ExecutionInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.DataQuery), global::Google.Cloud.DataQnA.V1Alpha.DataQuery.Parser, new[]{ "Sql" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.HumanReadable), global::Google.Cloud.DataQnA.V1Alpha.HumanReadable.Parser, new[]{ "GeneratedInterpretation", "OriginalQuestion" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure), global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure.Parser, new[]{ "VisualizationTypes", "ColumnInfo" }, null, new[]{ typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure.Types.VisualizationType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure.Types.ColumnInfo), global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure.Types.ColumnInfo.Parser, new[]{ "OutputAlias", "DisplayName" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.DebugFlags), global::Google.Cloud.DataQnA.V1Alpha.DebugFlags.Parser, new[]{ "IncludeVaQuery", "IncludeNestedVaQuery", "IncludeHumanInterpretation", "IncludeAquaDebugResponse", "TimeOverride", "IsInternalGoogleUser", "IgnoreCache", "IncludeSearchEntitiesRpc", "IncludeListColumnAnnotationsRpc", "IncludeVirtualAnalystEntities", "IncludeTableList", "IncludeDomainList" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - /// - /// Query entities of an interpretation. - /// - public enum InterpretEntity { - /// - /// No interpret entity was specified. - /// - [pbr::OriginalName("INTERPRET_ENTITY_UNSPECIFIED")] Unspecified = 0, - /// - /// A dimenstion entity. - /// - [pbr::OriginalName("DIMENSION")] Dimension = 1, - /// - /// A metric entity. - /// - [pbr::OriginalName("METRIC")] Metric = 2, - } - - #endregion - - #region Messages - /// - /// The question resource represents a natural language query, its settings, - /// understanding generated by the system, and answer retrieval status. - /// A question cannot be modified. - /// - public sealed partial class Question : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Question()); - 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.DataQnA.V1Alpha.QuestionReflection.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 Question() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Question(Question other) : this() { - name_ = other.name_; - scopes_ = other.scopes_.Clone(); - query_ = other.query_; - dataSourceAnnotations_ = other.dataSourceAnnotations_.Clone(); - interpretError_ = other.interpretError_ != null ? other.interpretError_.Clone() : null; - interpretations_ = other.interpretations_.Clone(); - createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; - userEmail_ = other.userEmail_; - debugFlags_ = other.debugFlags_ != null ? other.debugFlags_.Clone() : null; - debugInfo_ = other.debugInfo_ != null ? other.debugInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Question Clone() { - return new Question(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Output only. Immutable. The unique identifier for the Question. The ID is server-generated. - /// Example: `projects/foo/locations/bar/questions/123` - /// - [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 "scopes" field. - public const int ScopesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_scopes_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField scopes_ = new pbc::RepeatedField(); - /// - /// Required. Immutable. Scopes to be used for the question. A scope defines the relevant data set - /// scope. It can be a reference to a specific data source or a collection of - /// data sources. Currently, support is limited to a single BigQuery table. - /// There must be exactly one `scopes` element. - /// - /// Example: - /// `//bigquery.googleapis.com/projects/test-project/datasets/foo/tables/bar` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Scopes { - get { return scopes_; } - } - - /// Field number for the "query" field. - public const int QueryFieldNumber = 3; - private string query_ = ""; - /// - /// Required. Immutable. The query in natural language. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } - set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "data_source_annotations" field. - public const int DataSourceAnnotationsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_dataSourceAnnotations_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField dataSourceAnnotations_ = new pbc::RepeatedField(); - /// - /// A list of annotations to use instead of the default annotation of a data - /// source (set in the data source reference resource). There must not be - /// more than one annotation with the same data source reference. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DataSourceAnnotations { - get { return dataSourceAnnotations_; } - } - - /// Field number for the "interpret_error" field. - public const int InterpretErrorFieldNumber = 5; - private global::Google.Cloud.DataQnA.V1Alpha.InterpretError interpretError_; - /// - /// An error field explaining why interpretation failed. This is only populated - /// if the interpretation failed. - /// - /// Note: This is different from getting a status error on the request itself. - /// This is not a client or server error and the Question resource is still - /// persisted, but the service could not interpret the question. Clients should - /// present the error to the user so the user can rephrase the question. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.InterpretError InterpretError { - get { return interpretError_; } - set { - interpretError_ = value; - } - } - - /// Field number for the "interpretations" field. - public const int InterpretationsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_interpretations_codec - = pb::FieldCodec.ForMessage(50, global::Google.Cloud.DataQnA.V1Alpha.Interpretation.Parser); - private readonly pbc::RepeatedField interpretations_ = new pbc::RepeatedField(); - /// - /// A list of interpretations for this question. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Interpretations { - get { return interpretations_; } - } - - /// Field number for the "create_time" field. - public const int CreateTimeFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; - /// - /// Time when the question 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 "user_email" field. - public const int UserEmailFieldNumber = 8; - private string userEmail_ = ""; - /// - /// Output only. The e-mail address of the user that created this question. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserEmail { - get { return userEmail_; } - set { - userEmail_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "debug_flags" field. - public const int DebugFlagsFieldNumber = 9; - private global::Google.Cloud.DataQnA.V1Alpha.DebugFlags debugFlags_; - /// - /// Input only. Immutable. Flags to request additional information for debugging purposes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.DebugFlags DebugFlags { - get { return debugFlags_; } - set { - debugFlags_ = value; - } - } - - /// Field number for the "debug_info" field. - public const int DebugInfoFieldNumber = 10; - private global::Google.Protobuf.WellKnownTypes.Any debugInfo_; - /// - /// Top level debug information. - /// This will be stored as the type DebugInformation. - /// Using Any so clients don't need to pull in anything - /// inside the debug message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Any DebugInfo { - get { return debugInfo_; } - set { - debugInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Question); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Question other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if(!scopes_.Equals(other.scopes_)) return false; - if (Query != other.Query) return false; - if(!dataSourceAnnotations_.Equals(other.dataSourceAnnotations_)) return false; - if (!object.Equals(InterpretError, other.InterpretError)) return false; - if(!interpretations_.Equals(other.interpretations_)) return false; - if (!object.Equals(CreateTime, other.CreateTime)) return false; - if (UserEmail != other.UserEmail) return false; - if (!object.Equals(DebugFlags, other.DebugFlags)) return false; - if (!object.Equals(DebugInfo, other.DebugInfo)) 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(); - hash ^= scopes_.GetHashCode(); - if (Query.Length != 0) hash ^= Query.GetHashCode(); - hash ^= dataSourceAnnotations_.GetHashCode(); - if (interpretError_ != null) hash ^= InterpretError.GetHashCode(); - hash ^= interpretations_.GetHashCode(); - if (createTime_ != null) hash ^= CreateTime.GetHashCode(); - if (UserEmail.Length != 0) hash ^= UserEmail.GetHashCode(); - if (debugFlags_ != null) hash ^= DebugFlags.GetHashCode(); - if (debugInfo_ != null) hash ^= DebugInfo.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); - } - scopes_.WriteTo(output, _repeated_scopes_codec); - if (Query.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Query); - } - dataSourceAnnotations_.WriteTo(output, _repeated_dataSourceAnnotations_codec); - if (interpretError_ != null) { - output.WriteRawTag(42); - output.WriteMessage(InterpretError); - } - interpretations_.WriteTo(output, _repeated_interpretations_codec); - if (createTime_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CreateTime); - } - if (UserEmail.Length != 0) { - output.WriteRawTag(66); - output.WriteString(UserEmail); - } - if (debugFlags_ != null) { - output.WriteRawTag(74); - output.WriteMessage(DebugFlags); - } - if (debugInfo_ != null) { - output.WriteRawTag(82); - output.WriteMessage(DebugInfo); - } - 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); - } - scopes_.WriteTo(ref output, _repeated_scopes_codec); - if (Query.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Query); - } - dataSourceAnnotations_.WriteTo(ref output, _repeated_dataSourceAnnotations_codec); - if (interpretError_ != null) { - output.WriteRawTag(42); - output.WriteMessage(InterpretError); - } - interpretations_.WriteTo(ref output, _repeated_interpretations_codec); - if (createTime_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CreateTime); - } - if (UserEmail.Length != 0) { - output.WriteRawTag(66); - output.WriteString(UserEmail); - } - if (debugFlags_ != null) { - output.WriteRawTag(74); - output.WriteMessage(DebugFlags); - } - if (debugInfo_ != null) { - output.WriteRawTag(82); - output.WriteMessage(DebugInfo); - } - 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); - } - size += scopes_.CalculateSize(_repeated_scopes_codec); - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); - } - size += dataSourceAnnotations_.CalculateSize(_repeated_dataSourceAnnotations_codec); - if (interpretError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InterpretError); - } - size += interpretations_.CalculateSize(_repeated_interpretations_codec); - if (createTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); - } - if (UserEmail.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserEmail); - } - if (debugFlags_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DebugFlags); - } - if (debugInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DebugInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Question other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - scopes_.Add(other.scopes_); - if (other.Query.Length != 0) { - Query = other.Query; - } - dataSourceAnnotations_.Add(other.dataSourceAnnotations_); - if (other.interpretError_ != null) { - if (interpretError_ == null) { - InterpretError = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError(); - } - InterpretError.MergeFrom(other.InterpretError); - } - interpretations_.Add(other.interpretations_); - if (other.createTime_ != null) { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreateTime.MergeFrom(other.CreateTime); - } - if (other.UserEmail.Length != 0) { - UserEmail = other.UserEmail; - } - if (other.debugFlags_ != null) { - if (debugFlags_ == null) { - DebugFlags = new global::Google.Cloud.DataQnA.V1Alpha.DebugFlags(); - } - DebugFlags.MergeFrom(other.DebugFlags); - } - if (other.debugInfo_ != null) { - if (debugInfo_ == null) { - DebugInfo = new global::Google.Protobuf.WellKnownTypes.Any(); - } - DebugInfo.MergeFrom(other.DebugInfo); - } - _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: { - scopes_.AddEntriesFrom(input, _repeated_scopes_codec); - break; - } - case 26: { - Query = input.ReadString(); - break; - } - case 34: { - dataSourceAnnotations_.AddEntriesFrom(input, _repeated_dataSourceAnnotations_codec); - break; - } - case 42: { - if (interpretError_ == null) { - InterpretError = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError(); - } - input.ReadMessage(InterpretError); - break; - } - case 50: { - interpretations_.AddEntriesFrom(input, _repeated_interpretations_codec); - break; - } - case 58: { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreateTime); - break; - } - case 66: { - UserEmail = input.ReadString(); - break; - } - case 74: { - if (debugFlags_ == null) { - DebugFlags = new global::Google.Cloud.DataQnA.V1Alpha.DebugFlags(); - } - input.ReadMessage(DebugFlags); - break; - } - case 82: { - if (debugInfo_ == null) { - DebugInfo = new global::Google.Protobuf.WellKnownTypes.Any(); - } - input.ReadMessage(DebugInfo); - 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: { - scopes_.AddEntriesFrom(ref input, _repeated_scopes_codec); - break; - } - case 26: { - Query = input.ReadString(); - break; - } - case 34: { - dataSourceAnnotations_.AddEntriesFrom(ref input, _repeated_dataSourceAnnotations_codec); - break; - } - case 42: { - if (interpretError_ == null) { - InterpretError = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError(); - } - input.ReadMessage(InterpretError); - break; - } - case 50: { - interpretations_.AddEntriesFrom(ref input, _repeated_interpretations_codec); - break; - } - case 58: { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreateTime); - break; - } - case 66: { - UserEmail = input.ReadString(); - break; - } - case 74: { - if (debugFlags_ == null) { - DebugFlags = new global::Google.Cloud.DataQnA.V1Alpha.DebugFlags(); - } - input.ReadMessage(DebugFlags); - break; - } - case 82: { - if (debugInfo_ == null) { - DebugInfo = new global::Google.Protobuf.WellKnownTypes.Any(); - } - input.ReadMessage(DebugInfo); - break; - } - } - } - } - #endif - - } - - /// - /// Details on the failure to interpret the question. - /// - public sealed partial class InterpretError : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InterpretError()); - 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.DataQnA.V1Alpha.QuestionReflection.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 InterpretError() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretError(InterpretError other) : this() { - message_ = other.message_; - code_ = other.code_; - details_ = other.details_ != null ? other.details_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretError Clone() { - return new InterpretError(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - private string message_ = ""; - /// - /// Error message explaining why this question could not be interpreted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "code" field. - public const int CodeFieldNumber = 2; - private global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode code_ = global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode.Unspecified; - /// - /// The code for the error category why the interpretation failed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode Code { - get { return code_; } - set { - code_ = value; - } - } - - /// Field number for the "details" field. - public const int DetailsFieldNumber = 3; - private global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorDetails details_; - /// - /// Details on interpretation failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorDetails Details { - get { return details_; } - set { - details_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InterpretError); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InterpretError other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Message != other.Message) return false; - if (Code != other.Code) return false; - if (!object.Equals(Details, other.Details)) 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 (Message.Length != 0) hash ^= Message.GetHashCode(); - if (Code != global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode.Unspecified) hash ^= Code.GetHashCode(); - if (details_ != null) hash ^= Details.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 (Message.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (Code != global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Code); - } - if (details_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Details); - } - 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 (Message.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (Code != global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Code); - } - if (details_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Details); - } - 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 (Message.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (Code != global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); - } - if (details_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Details); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InterpretError other) { - if (other == null) { - return; - } - if (other.Message.Length != 0) { - Message = other.Message; - } - if (other.Code != global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode.Unspecified) { - Code = other.Code; - } - if (other.details_ != null) { - if (details_ == null) { - Details = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorDetails(); - } - Details.MergeFrom(other.Details); - } - _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: { - Message = input.ReadString(); - break; - } - case 16: { - Code = (global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode) input.ReadEnum(); - break; - } - case 26: { - if (details_ == null) { - Details = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorDetails(); - } - input.ReadMessage(Details); - 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: { - Message = input.ReadString(); - break; - } - case 16: { - Code = (global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorCode) input.ReadEnum(); - break; - } - case 26: { - if (details_ == null) { - Details = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretErrorDetails(); - } - input.ReadMessage(Details); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the InterpretError message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The interpret error code provides an error category why the interpretation - /// failed. - /// - public enum InterpretErrorCode { - /// - /// No interpret error code was specified. - /// - [pbr::OriginalName("INTERPRET_ERROR_CODE_UNSPECIFIED")] Unspecified = 0, - /// - /// The query is not valid. - /// - [pbr::OriginalName("INVALID_QUERY")] InvalidQuery = 1, - /// - /// The interpreter failed to understand the question. For example, because - /// it was too ambiguous. - /// - [pbr::OriginalName("FAILED_TO_UNDERSTAND")] FailedToUnderstand = 2, - /// - /// The interpreter could understand the question, but was not able to arrive - /// at an answer. For example, because a requested operation is not - /// supported. - /// - [pbr::OriginalName("FAILED_TO_ANSWER")] FailedToAnswer = 3, - } - - /// - /// Details on interpretation failure. - /// - public sealed partial class InterpretErrorDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InterpretErrorDetails()); - 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.DataQnA.V1Alpha.InterpretError.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 InterpretErrorDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretErrorDetails(InterpretErrorDetails other) : this() { - unsupportedDetails_ = other.unsupportedDetails_ != null ? other.unsupportedDetails_.Clone() : null; - incompleteQueryDetails_ = other.incompleteQueryDetails_ != null ? other.incompleteQueryDetails_.Clone() : null; - ambiguityDetails_ = other.ambiguityDetails_ != null ? other.ambiguityDetails_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretErrorDetails Clone() { - return new InterpretErrorDetails(this); - } - - /// Field number for the "unsupported_details" field. - public const int UnsupportedDetailsFieldNumber = 1; - private global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretUnsupportedDetails unsupportedDetails_; - /// - /// Populated if parts of the query are unsupported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretUnsupportedDetails UnsupportedDetails { - get { return unsupportedDetails_; } - set { - unsupportedDetails_ = value; - } - } - - /// Field number for the "incomplete_query_details" field. - public const int IncompleteQueryDetailsFieldNumber = 2; - private global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretIncompleteQueryDetails incompleteQueryDetails_; - /// - /// Populated if the query is incomplete. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretIncompleteQueryDetails IncompleteQueryDetails { - get { return incompleteQueryDetails_; } - set { - incompleteQueryDetails_ = value; - } - } - - /// Field number for the "ambiguity_details" field. - public const int AmbiguityDetailsFieldNumber = 3; - private global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretAmbiguityDetails ambiguityDetails_; - /// - /// Populated if the query was too ambiguous. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretAmbiguityDetails AmbiguityDetails { - get { return ambiguityDetails_; } - set { - ambiguityDetails_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InterpretErrorDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InterpretErrorDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UnsupportedDetails, other.UnsupportedDetails)) return false; - if (!object.Equals(IncompleteQueryDetails, other.IncompleteQueryDetails)) return false; - if (!object.Equals(AmbiguityDetails, other.AmbiguityDetails)) 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 (unsupportedDetails_ != null) hash ^= UnsupportedDetails.GetHashCode(); - if (incompleteQueryDetails_ != null) hash ^= IncompleteQueryDetails.GetHashCode(); - if (ambiguityDetails_ != null) hash ^= AmbiguityDetails.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 (unsupportedDetails_ != null) { - output.WriteRawTag(10); - output.WriteMessage(UnsupportedDetails); - } - if (incompleteQueryDetails_ != null) { - output.WriteRawTag(18); - output.WriteMessage(IncompleteQueryDetails); - } - if (ambiguityDetails_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AmbiguityDetails); - } - 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 (unsupportedDetails_ != null) { - output.WriteRawTag(10); - output.WriteMessage(UnsupportedDetails); - } - if (incompleteQueryDetails_ != null) { - output.WriteRawTag(18); - output.WriteMessage(IncompleteQueryDetails); - } - if (ambiguityDetails_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AmbiguityDetails); - } - 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 (unsupportedDetails_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnsupportedDetails); - } - if (incompleteQueryDetails_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(IncompleteQueryDetails); - } - if (ambiguityDetails_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AmbiguityDetails); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InterpretErrorDetails other) { - if (other == null) { - return; - } - if (other.unsupportedDetails_ != null) { - if (unsupportedDetails_ == null) { - UnsupportedDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretUnsupportedDetails(); - } - UnsupportedDetails.MergeFrom(other.UnsupportedDetails); - } - if (other.incompleteQueryDetails_ != null) { - if (incompleteQueryDetails_ == null) { - IncompleteQueryDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretIncompleteQueryDetails(); - } - IncompleteQueryDetails.MergeFrom(other.IncompleteQueryDetails); - } - if (other.ambiguityDetails_ != null) { - if (ambiguityDetails_ == null) { - AmbiguityDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretAmbiguityDetails(); - } - AmbiguityDetails.MergeFrom(other.AmbiguityDetails); - } - _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 (unsupportedDetails_ == null) { - UnsupportedDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretUnsupportedDetails(); - } - input.ReadMessage(UnsupportedDetails); - break; - } - case 18: { - if (incompleteQueryDetails_ == null) { - IncompleteQueryDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretIncompleteQueryDetails(); - } - input.ReadMessage(IncompleteQueryDetails); - break; - } - case 26: { - if (ambiguityDetails_ == null) { - AmbiguityDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretAmbiguityDetails(); - } - input.ReadMessage(AmbiguityDetails); - 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 (unsupportedDetails_ == null) { - UnsupportedDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretUnsupportedDetails(); - } - input.ReadMessage(UnsupportedDetails); - break; - } - case 18: { - if (incompleteQueryDetails_ == null) { - IncompleteQueryDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretIncompleteQueryDetails(); - } - input.ReadMessage(IncompleteQueryDetails); - break; - } - case 26: { - if (ambiguityDetails_ == null) { - AmbiguityDetails = new global::Google.Cloud.DataQnA.V1Alpha.InterpretError.Types.InterpretAmbiguityDetails(); - } - input.ReadMessage(AmbiguityDetails); - break; - } - } - } - } - #endif - - } - - /// - /// Details about unsupported parts in a query. - /// - public sealed partial class InterpretUnsupportedDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InterpretUnsupportedDetails()); - 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.DataQnA.V1Alpha.InterpretError.Descriptor.NestedTypes[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 InterpretUnsupportedDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretUnsupportedDetails(InterpretUnsupportedDetails other) : this() { - operators_ = other.operators_.Clone(); - intent_ = other.intent_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretUnsupportedDetails Clone() { - return new InterpretUnsupportedDetails(this); - } - - /// Field number for the "operators" field. - public const int OperatorsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_operators_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField operators_ = new pbc::RepeatedField(); - /// - /// Unsupported operators. For example: median. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operators { - get { return operators_; } - } - - /// Field number for the "intent" field. - public const int IntentFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_intent_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField intent_ = new pbc::RepeatedField(); - /// - /// Unsupported intents. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Intent { - get { return intent_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InterpretUnsupportedDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InterpretUnsupportedDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!operators_.Equals(other.operators_)) return false; - if(!intent_.Equals(other.intent_)) 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 ^= operators_.GetHashCode(); - hash ^= intent_.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 - operators_.WriteTo(output, _repeated_operators_codec); - intent_.WriteTo(output, _repeated_intent_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) { - operators_.WriteTo(ref output, _repeated_operators_codec); - intent_.WriteTo(ref output, _repeated_intent_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 += operators_.CalculateSize(_repeated_operators_codec); - size += intent_.CalculateSize(_repeated_intent_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InterpretUnsupportedDetails other) { - if (other == null) { - return; - } - operators_.Add(other.operators_); - intent_.Add(other.intent_); - _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: { - operators_.AddEntriesFrom(input, _repeated_operators_codec); - break; - } - case 18: { - intent_.AddEntriesFrom(input, _repeated_intent_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: { - operators_.AddEntriesFrom(ref input, _repeated_operators_codec); - break; - } - case 18: { - intent_.AddEntriesFrom(ref input, _repeated_intent_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Details about an incomplete query. - /// - public sealed partial class InterpretIncompleteQueryDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InterpretIncompleteQueryDetails()); - 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.DataQnA.V1Alpha.InterpretError.Descriptor.NestedTypes[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 InterpretIncompleteQueryDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretIncompleteQueryDetails(InterpretIncompleteQueryDetails other) : this() { - entities_ = other.entities_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretIncompleteQueryDetails Clone() { - return new InterpretIncompleteQueryDetails(this); - } - - /// Field number for the "entities" field. - public const int EntitiesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_entities_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Cloud.DataQnA.V1Alpha.InterpretEntity) x); - private readonly pbc::RepeatedField entities_ = new pbc::RepeatedField(); - /// - /// List of missing interpret entities. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Entities { - get { return entities_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InterpretIncompleteQueryDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InterpretIncompleteQueryDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!entities_.Equals(other.entities_)) 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 ^= entities_.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 - entities_.WriteTo(output, _repeated_entities_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) { - entities_.WriteTo(ref output, _repeated_entities_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 += entities_.CalculateSize(_repeated_entities_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InterpretIncompleteQueryDetails other) { - if (other == null) { - return; - } - entities_.Add(other.entities_); - _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: - case 8: { - entities_.AddEntriesFrom(input, _repeated_entities_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: - case 8: { - entities_.AddEntriesFrom(ref input, _repeated_entities_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Details about a query that was too ambiguous. Currently, the message - /// has no fields and its presence signals that there was ambiguity. - /// - public sealed partial class InterpretAmbiguityDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InterpretAmbiguityDetails()); - 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.DataQnA.V1Alpha.InterpretError.Descriptor.NestedTypes[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 InterpretAmbiguityDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretAmbiguityDetails(InterpretAmbiguityDetails other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretAmbiguityDetails Clone() { - return new InterpretAmbiguityDetails(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InterpretAmbiguityDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InterpretAmbiguityDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - 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 (_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 (_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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InterpretAmbiguityDetails other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Information about the backend status (such as BigQuery) of the execution. - /// - public sealed partial class ExecutionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionInfo()); - 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.DataQnA.V1Alpha.QuestionReflection.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 ExecutionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionInfo(ExecutionInfo other) : this() { - jobCreationStatus_ = other.jobCreationStatus_ != null ? other.jobCreationStatus_.Clone() : null; - jobExecutionState_ = other.jobExecutionState_; - createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; - bigqueryJob_ = other.bigqueryJob_ != null ? other.bigqueryJob_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionInfo Clone() { - return new ExecutionInfo(this); - } - - /// Field number for the "job_creation_status" field. - public const int JobCreationStatusFieldNumber = 1; - private global::Google.Rpc.Status jobCreationStatus_; - /// - /// Status returned by the backend when the job was created. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status JobCreationStatus { - get { return jobCreationStatus_; } - set { - jobCreationStatus_ = value; - } - } - - /// Field number for the "job_execution_state" field. - public const int JobExecutionStateFieldNumber = 2; - private global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState jobExecutionState_ = global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState.Unspecified; - /// - /// Status of the job execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState JobExecutionState { - get { return jobExecutionState_; } - set { - jobExecutionState_ = value; - } - } - - /// Field number for the "create_time" field. - public const int CreateTimeFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; - /// - /// Time when the execution was triggered. - /// - [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 "bigquery_job" field. - public const int BigqueryJobFieldNumber = 4; - private global::Google.Cloud.DataQnA.V1Alpha.BigQueryJob bigqueryJob_; - /// - /// BigQuery job information. - /// Future versions will have different backends. Hence, clients must make sure - /// they can handle it when this field is not populated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.BigQueryJob BigqueryJob { - get { return bigqueryJob_; } - set { - bigqueryJob_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecutionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecutionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(JobCreationStatus, other.JobCreationStatus)) return false; - if (JobExecutionState != other.JobExecutionState) return false; - if (!object.Equals(CreateTime, other.CreateTime)) return false; - if (!object.Equals(BigqueryJob, other.BigqueryJob)) 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 (jobCreationStatus_ != null) hash ^= JobCreationStatus.GetHashCode(); - if (JobExecutionState != global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState.Unspecified) hash ^= JobExecutionState.GetHashCode(); - if (createTime_ != null) hash ^= CreateTime.GetHashCode(); - if (bigqueryJob_ != null) hash ^= BigqueryJob.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 (jobCreationStatus_ != null) { - output.WriteRawTag(10); - output.WriteMessage(JobCreationStatus); - } - if (JobExecutionState != global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) JobExecutionState); - } - if (createTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CreateTime); - } - if (bigqueryJob_ != null) { - output.WriteRawTag(34); - output.WriteMessage(BigqueryJob); - } - 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 (jobCreationStatus_ != null) { - output.WriteRawTag(10); - output.WriteMessage(JobCreationStatus); - } - if (JobExecutionState != global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) JobExecutionState); - } - if (createTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CreateTime); - } - if (bigqueryJob_ != null) { - output.WriteRawTag(34); - output.WriteMessage(BigqueryJob); - } - 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 (jobCreationStatus_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(JobCreationStatus); - } - if (JobExecutionState != global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) JobExecutionState); - } - if (createTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); - } - if (bigqueryJob_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BigqueryJob); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecutionInfo other) { - if (other == null) { - return; - } - if (other.jobCreationStatus_ != null) { - if (jobCreationStatus_ == null) { - JobCreationStatus = new global::Google.Rpc.Status(); - } - JobCreationStatus.MergeFrom(other.JobCreationStatus); - } - if (other.JobExecutionState != global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState.Unspecified) { - JobExecutionState = other.JobExecutionState; - } - if (other.createTime_ != null) { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreateTime.MergeFrom(other.CreateTime); - } - if (other.bigqueryJob_ != null) { - if (bigqueryJob_ == null) { - BigqueryJob = new global::Google.Cloud.DataQnA.V1Alpha.BigQueryJob(); - } - BigqueryJob.MergeFrom(other.BigqueryJob); - } - _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 (jobCreationStatus_ == null) { - JobCreationStatus = new global::Google.Rpc.Status(); - } - input.ReadMessage(JobCreationStatus); - break; - } - case 16: { - JobExecutionState = (global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState) input.ReadEnum(); - break; - } - case 26: { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreateTime); - break; - } - case 34: { - if (bigqueryJob_ == null) { - BigqueryJob = new global::Google.Cloud.DataQnA.V1Alpha.BigQueryJob(); - } - input.ReadMessage(BigqueryJob); - 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 (jobCreationStatus_ == null) { - JobCreationStatus = new global::Google.Rpc.Status(); - } - input.ReadMessage(JobCreationStatus); - break; - } - case 16: { - JobExecutionState = (global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo.Types.JobExecutionState) input.ReadEnum(); - break; - } - case 26: { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreateTime); - break; - } - case 34: { - if (bigqueryJob_ == null) { - BigqueryJob = new global::Google.Cloud.DataQnA.V1Alpha.BigQueryJob(); - } - input.ReadMessage(BigqueryJob); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExecutionInfo message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum of possible job execution statuses. - /// - public enum JobExecutionState { - /// - /// No job execution was specified. - /// - [pbr::OriginalName("JOB_EXECUTION_STATE_UNSPECIFIED")] Unspecified = 0, - /// - /// No job execution was requested, yet. - /// - [pbr::OriginalName("NOT_EXECUTED")] NotExecuted = 1, - /// - /// The job is running. - /// - [pbr::OriginalName("RUNNING")] Running = 2, - /// - /// The job completed successfully. - /// - [pbr::OriginalName("SUCCEEDED")] Succeeded = 3, - /// - /// The job completed unsuccessfully. - /// - [pbr::OriginalName("FAILED")] Failed = 4, - } - - } - #endregion - - } - - /// - /// BigQuery job information. This can be used to query the BigQuery API and - /// retrieve the current job's status (using - /// [jobs.get](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/get)). - /// - public sealed partial class BigQueryJob : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BigQueryJob()); - 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.DataQnA.V1Alpha.QuestionReflection.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 BigQueryJob() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BigQueryJob(BigQueryJob other) : this() { - jobId_ = other.jobId_; - projectId_ = other.projectId_; - location_ = other.location_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BigQueryJob Clone() { - return new BigQueryJob(this); - } - - /// Field number for the "job_id" field. - public const int JobIdFieldNumber = 1; - private string jobId_ = ""; - /// - /// The job ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string JobId { - get { return jobId_; } - set { - jobId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "project_id" field. - public const int ProjectIdFieldNumber = 2; - private string projectId_ = ""; - /// - /// The project ID of the job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProjectId { - get { return projectId_; } - set { - projectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 3; - private string location_ = ""; - /// - /// The location where the job is running. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Location { - get { return location_; } - set { - location_ = 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 BigQueryJob); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BigQueryJob other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (JobId != other.JobId) return false; - if (ProjectId != other.ProjectId) return false; - if (Location != other.Location) 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 (JobId.Length != 0) hash ^= JobId.GetHashCode(); - if (ProjectId.Length != 0) hash ^= ProjectId.GetHashCode(); - if (Location.Length != 0) hash ^= Location.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 (JobId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(JobId); - } - if (ProjectId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ProjectId); - } - if (Location.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Location); - } - 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 (JobId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(JobId); - } - if (ProjectId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ProjectId); - } - if (Location.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Location); - } - 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 (JobId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(JobId); - } - if (ProjectId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectId); - } - if (Location.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BigQueryJob other) { - if (other == null) { - return; - } - if (other.JobId.Length != 0) { - JobId = other.JobId; - } - if (other.ProjectId.Length != 0) { - ProjectId = other.ProjectId; - } - if (other.Location.Length != 0) { - Location = other.Location; - } - _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: { - JobId = input.ReadString(); - break; - } - case 18: { - ProjectId = input.ReadString(); - break; - } - case 26: { - Location = 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: { - JobId = input.ReadString(); - break; - } - case 18: { - ProjectId = input.ReadString(); - break; - } - case 26: { - Location = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An interpretation of a natural language query. - /// - public sealed partial class Interpretation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Interpretation()); - 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.DataQnA.V1Alpha.QuestionReflection.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 Interpretation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Interpretation(Interpretation other) : this() { - dataSources_ = other.dataSources_.Clone(); - confidence_ = other.confidence_; - unusedPhrases_ = other.unusedPhrases_.Clone(); - humanReadable_ = other.humanReadable_ != null ? other.humanReadable_.Clone() : null; - interpretationStructure_ = other.interpretationStructure_ != null ? other.interpretationStructure_.Clone() : null; - dataQuery_ = other.dataQuery_ != null ? other.dataQuery_.Clone() : null; - executionInfo_ = other.executionInfo_ != null ? other.executionInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Interpretation Clone() { - return new Interpretation(this); - } - - /// Field number for the "data_sources" field. - public const int DataSourcesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_dataSources_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField dataSources_ = new pbc::RepeatedField(); - /// - /// List of data sources used in the current understanding. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DataSources { - get { return dataSources_; } - } - - /// Field number for the "confidence" field. - public const int ConfidenceFieldNumber = 2; - private double confidence_; - /// - /// The level of confidence that one of the interpretations is correct. This is - /// a value in the range [0, 1] where a value of 0.5 or below is to be - /// considered a low confidence. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Confidence { - get { return confidence_; } - set { - confidence_ = value; - } - } - - /// Field number for the "unused_phrases" field. - public const int UnusedPhrasesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_unusedPhrases_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField unusedPhrases_ = new pbc::RepeatedField(); - /// - /// A list of unused phrases. Clients should display a Did You Mean (DYM) - /// dialog if this is non-empty, even if this is the only interpretation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UnusedPhrases { - get { return unusedPhrases_; } - } - - /// Field number for the "human_readable" field. - public const int HumanReadableFieldNumber = 4; - private global::Google.Cloud.DataQnA.V1Alpha.HumanReadable humanReadable_; - /// - /// Human readable representation of the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.HumanReadable HumanReadable { - get { return humanReadable_; } - set { - humanReadable_ = value; - } - } - - /// Field number for the "interpretation_structure" field. - public const int InterpretationStructureFieldNumber = 5; - private global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure interpretationStructure_; - /// - /// Information about the interpretation structure that helps to understand and - /// visualize the response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure InterpretationStructure { - get { return interpretationStructure_; } - set { - interpretationStructure_ = value; - } - } - - /// Field number for the "data_query" field. - public const int DataQueryFieldNumber = 6; - private global::Google.Cloud.DataQnA.V1Alpha.DataQuery dataQuery_; - /// - /// Representation of the data query to be sent to the backend. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.DataQuery DataQuery { - get { return dataQuery_; } - set { - dataQuery_ = value; - } - } - - /// Field number for the "execution_info" field. - public const int ExecutionInfoFieldNumber = 7; - private global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo executionInfo_; - /// - /// Information about the backend response. This is populated only if execution - /// of an interpretation was requested. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo ExecutionInfo { - get { return executionInfo_; } - set { - executionInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Interpretation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Interpretation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!dataSources_.Equals(other.dataSources_)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Confidence, other.Confidence)) return false; - if(!unusedPhrases_.Equals(other.unusedPhrases_)) return false; - if (!object.Equals(HumanReadable, other.HumanReadable)) return false; - if (!object.Equals(InterpretationStructure, other.InterpretationStructure)) return false; - if (!object.Equals(DataQuery, other.DataQuery)) return false; - if (!object.Equals(ExecutionInfo, other.ExecutionInfo)) 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 ^= dataSources_.GetHashCode(); - if (Confidence != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Confidence); - hash ^= unusedPhrases_.GetHashCode(); - if (humanReadable_ != null) hash ^= HumanReadable.GetHashCode(); - if (interpretationStructure_ != null) hash ^= InterpretationStructure.GetHashCode(); - if (dataQuery_ != null) hash ^= DataQuery.GetHashCode(); - if (executionInfo_ != null) hash ^= ExecutionInfo.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 - dataSources_.WriteTo(output, _repeated_dataSources_codec); - if (Confidence != 0D) { - output.WriteRawTag(17); - output.WriteDouble(Confidence); - } - unusedPhrases_.WriteTo(output, _repeated_unusedPhrases_codec); - if (humanReadable_ != null) { - output.WriteRawTag(34); - output.WriteMessage(HumanReadable); - } - if (interpretationStructure_ != null) { - output.WriteRawTag(42); - output.WriteMessage(InterpretationStructure); - } - if (dataQuery_ != null) { - output.WriteRawTag(50); - output.WriteMessage(DataQuery); - } - if (executionInfo_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ExecutionInfo); - } - 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) { - dataSources_.WriteTo(ref output, _repeated_dataSources_codec); - if (Confidence != 0D) { - output.WriteRawTag(17); - output.WriteDouble(Confidence); - } - unusedPhrases_.WriteTo(ref output, _repeated_unusedPhrases_codec); - if (humanReadable_ != null) { - output.WriteRawTag(34); - output.WriteMessage(HumanReadable); - } - if (interpretationStructure_ != null) { - output.WriteRawTag(42); - output.WriteMessage(InterpretationStructure); - } - if (dataQuery_ != null) { - output.WriteRawTag(50); - output.WriteMessage(DataQuery); - } - if (executionInfo_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ExecutionInfo); - } - 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 += dataSources_.CalculateSize(_repeated_dataSources_codec); - if (Confidence != 0D) { - size += 1 + 8; - } - size += unusedPhrases_.CalculateSize(_repeated_unusedPhrases_codec); - if (humanReadable_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HumanReadable); - } - if (interpretationStructure_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InterpretationStructure); - } - if (dataQuery_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataQuery); - } - if (executionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Interpretation other) { - if (other == null) { - return; - } - dataSources_.Add(other.dataSources_); - if (other.Confidence != 0D) { - Confidence = other.Confidence; - } - unusedPhrases_.Add(other.unusedPhrases_); - if (other.humanReadable_ != null) { - if (humanReadable_ == null) { - HumanReadable = new global::Google.Cloud.DataQnA.V1Alpha.HumanReadable(); - } - HumanReadable.MergeFrom(other.HumanReadable); - } - if (other.interpretationStructure_ != null) { - if (interpretationStructure_ == null) { - InterpretationStructure = new global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure(); - } - InterpretationStructure.MergeFrom(other.InterpretationStructure); - } - if (other.dataQuery_ != null) { - if (dataQuery_ == null) { - DataQuery = new global::Google.Cloud.DataQnA.V1Alpha.DataQuery(); - } - DataQuery.MergeFrom(other.DataQuery); - } - if (other.executionInfo_ != null) { - if (executionInfo_ == null) { - ExecutionInfo = new global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo(); - } - ExecutionInfo.MergeFrom(other.ExecutionInfo); - } - _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: { - dataSources_.AddEntriesFrom(input, _repeated_dataSources_codec); - break; - } - case 17: { - Confidence = input.ReadDouble(); - break; - } - case 26: { - unusedPhrases_.AddEntriesFrom(input, _repeated_unusedPhrases_codec); - break; - } - case 34: { - if (humanReadable_ == null) { - HumanReadable = new global::Google.Cloud.DataQnA.V1Alpha.HumanReadable(); - } - input.ReadMessage(HumanReadable); - break; - } - case 42: { - if (interpretationStructure_ == null) { - InterpretationStructure = new global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure(); - } - input.ReadMessage(InterpretationStructure); - break; - } - case 50: { - if (dataQuery_ == null) { - DataQuery = new global::Google.Cloud.DataQnA.V1Alpha.DataQuery(); - } - input.ReadMessage(DataQuery); - break; - } - case 58: { - if (executionInfo_ == null) { - ExecutionInfo = new global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo(); - } - input.ReadMessage(ExecutionInfo); - 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: { - dataSources_.AddEntriesFrom(ref input, _repeated_dataSources_codec); - break; - } - case 17: { - Confidence = input.ReadDouble(); - break; - } - case 26: { - unusedPhrases_.AddEntriesFrom(ref input, _repeated_unusedPhrases_codec); - break; - } - case 34: { - if (humanReadable_ == null) { - HumanReadable = new global::Google.Cloud.DataQnA.V1Alpha.HumanReadable(); - } - input.ReadMessage(HumanReadable); - break; - } - case 42: { - if (interpretationStructure_ == null) { - InterpretationStructure = new global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure(); - } - input.ReadMessage(InterpretationStructure); - break; - } - case 50: { - if (dataQuery_ == null) { - DataQuery = new global::Google.Cloud.DataQnA.V1Alpha.DataQuery(); - } - input.ReadMessage(DataQuery); - break; - } - case 58: { - if (executionInfo_ == null) { - ExecutionInfo = new global::Google.Cloud.DataQnA.V1Alpha.ExecutionInfo(); - } - input.ReadMessage(ExecutionInfo); - break; - } - } - } - } - #endif - - } - - /// - /// Representation of the data query for the backend. - /// This is provided for informational purposes only. Clients should not use - /// it to send it to the backend directly, but rather use the `execute` RPC - /// to trigger the execution. Using the `execute` RPC is needed in order to - /// track the state of a question and report on it correctly to the data - /// administrators. - /// - public sealed partial class DataQuery : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataQuery()); - 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.DataQnA.V1Alpha.QuestionReflection.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 DataQuery() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataQuery(DataQuery other) : this() { - sql_ = other.sql_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataQuery Clone() { - return new DataQuery(this); - } - - /// Field number for the "sql" field. - public const int SqlFieldNumber = 1; - private string sql_ = ""; - /// - /// The generated SQL query to be sent to the backend. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sql { - get { return sql_; } - set { - sql_ = 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 DataQuery); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DataQuery other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Sql != other.Sql) 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 (Sql.Length != 0) hash ^= Sql.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 (Sql.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Sql); - } - 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 (Sql.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Sql); - } - 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 (Sql.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Sql); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DataQuery other) { - if (other == null) { - return; - } - if (other.Sql.Length != 0) { - Sql = other.Sql; - } - _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: { - Sql = 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: { - Sql = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Human readable interpretation. - /// - public sealed partial class HumanReadable : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HumanReadable()); - 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.DataQnA.V1Alpha.QuestionReflection.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 HumanReadable() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HumanReadable(HumanReadable other) : this() { - generatedInterpretation_ = other.generatedInterpretation_ != null ? other.generatedInterpretation_.Clone() : null; - originalQuestion_ = other.originalQuestion_ != null ? other.originalQuestion_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HumanReadable Clone() { - return new HumanReadable(this); - } - - /// Field number for the "generated_interpretation" field. - public const int GeneratedInterpretationFieldNumber = 1; - private global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString generatedInterpretation_; - /// - /// Generated query explaining the interpretation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString GeneratedInterpretation { - get { return generatedInterpretation_; } - set { - generatedInterpretation_ = value; - } - } - - /// Field number for the "original_question" field. - public const int OriginalQuestionFieldNumber = 2; - private global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString originalQuestion_; - /// - /// Annotations on the original query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString OriginalQuestion { - get { return originalQuestion_; } - set { - originalQuestion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HumanReadable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HumanReadable other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(GeneratedInterpretation, other.GeneratedInterpretation)) return false; - if (!object.Equals(OriginalQuestion, other.OriginalQuestion)) 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 (generatedInterpretation_ != null) hash ^= GeneratedInterpretation.GetHashCode(); - if (originalQuestion_ != null) hash ^= OriginalQuestion.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 (generatedInterpretation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(GeneratedInterpretation); - } - if (originalQuestion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(OriginalQuestion); - } - 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 (generatedInterpretation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(GeneratedInterpretation); - } - if (originalQuestion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(OriginalQuestion); - } - 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 (generatedInterpretation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GeneratedInterpretation); - } - if (originalQuestion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalQuestion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HumanReadable other) { - if (other == null) { - return; - } - if (other.generatedInterpretation_ != null) { - if (generatedInterpretation_ == null) { - GeneratedInterpretation = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - GeneratedInterpretation.MergeFrom(other.GeneratedInterpretation); - } - if (other.originalQuestion_ != null) { - if (originalQuestion_ == null) { - OriginalQuestion = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - OriginalQuestion.MergeFrom(other.OriginalQuestion); - } - _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 (generatedInterpretation_ == null) { - GeneratedInterpretation = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - input.ReadMessage(GeneratedInterpretation); - break; - } - case 18: { - if (originalQuestion_ == null) { - OriginalQuestion = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - input.ReadMessage(OriginalQuestion); - 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 (generatedInterpretation_ == null) { - GeneratedInterpretation = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - input.ReadMessage(GeneratedInterpretation); - break; - } - case 18: { - if (originalQuestion_ == null) { - OriginalQuestion = new global::Google.Cloud.DataQnA.V1Alpha.AnnotatedString(); - } - input.ReadMessage(OriginalQuestion); - break; - } - } - } - } - #endif - - } - - /// - /// Information about the interpretation structure that helps to understand and - /// visualize the response. - /// - public sealed partial class InterpretationStructure : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InterpretationStructure()); - 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.DataQnA.V1Alpha.QuestionReflection.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 InterpretationStructure() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretationStructure(InterpretationStructure other) : this() { - visualizationTypes_ = other.visualizationTypes_.Clone(); - columnInfo_ = other.columnInfo_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InterpretationStructure Clone() { - return new InterpretationStructure(this); - } - - /// Field number for the "visualization_types" field. - public const int VisualizationTypesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_visualizationTypes_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure.Types.VisualizationType) x); - private readonly pbc::RepeatedField visualizationTypes_ = new pbc::RepeatedField(); - /// - /// List of possible visualization types to apply for this interpretation. The - /// order has no relevance. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField VisualizationTypes { - get { return visualizationTypes_; } - } - - /// Field number for the "column_info" field. - public const int ColumnInfoFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_columnInfo_codec - = pb::FieldCodec.ForMessage(18, global::Google.Cloud.DataQnA.V1Alpha.InterpretationStructure.Types.ColumnInfo.Parser); - private readonly pbc::RepeatedField columnInfo_ = new pbc::RepeatedField(); - /// - /// Information about the output columns, that is, the columns that will be - /// returned by the backend. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ColumnInfo { - get { return columnInfo_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InterpretationStructure); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InterpretationStructure other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!visualizationTypes_.Equals(other.visualizationTypes_)) return false; - if(!columnInfo_.Equals(other.columnInfo_)) 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 ^= visualizationTypes_.GetHashCode(); - hash ^= columnInfo_.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 - visualizationTypes_.WriteTo(output, _repeated_visualizationTypes_codec); - columnInfo_.WriteTo(output, _repeated_columnInfo_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) { - visualizationTypes_.WriteTo(ref output, _repeated_visualizationTypes_codec); - columnInfo_.WriteTo(ref output, _repeated_columnInfo_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 += visualizationTypes_.CalculateSize(_repeated_visualizationTypes_codec); - size += columnInfo_.CalculateSize(_repeated_columnInfo_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InterpretationStructure other) { - if (other == null) { - return; - } - visualizationTypes_.Add(other.visualizationTypes_); - columnInfo_.Add(other.columnInfo_); - _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: - case 8: { - visualizationTypes_.AddEntriesFrom(input, _repeated_visualizationTypes_codec); - break; - } - case 18: { - columnInfo_.AddEntriesFrom(input, _repeated_columnInfo_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: - case 8: { - visualizationTypes_.AddEntriesFrom(ref input, _repeated_visualizationTypes_codec); - break; - } - case 18: { - columnInfo_.AddEntriesFrom(ref input, _repeated_columnInfo_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the InterpretationStructure message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumeration of visualzation types to use for query response data. - /// - public enum VisualizationType { - /// - /// No visualization type was specified. - /// - [pbr::OriginalName("VISUALIZATION_TYPE_UNSPECIFIED")] Unspecified = 0, - /// - /// Show a table. - /// - [pbr::OriginalName("TABLE")] Table = 1, - /// - /// Show a [bar - /// chart](https://developers.google.com/chart/interactive/docs/gallery/barchart). - /// - [pbr::OriginalName("BAR_CHART")] BarChart = 2, - /// - /// Show a [column - /// chart](https://developers.google.com/chart/interactive/docs/gallery/columnchart). - /// - [pbr::OriginalName("COLUMN_CHART")] ColumnChart = 3, - /// - /// Show a - /// [timeline](https://developers.google.com/chart/interactive/docs/gallery/timeline). - /// - [pbr::OriginalName("TIMELINE")] Timeline = 4, - /// - /// Show a [scatter - /// plot](https://developers.google.com/chart/interactive/docs/gallery/scatterchart). - /// - [pbr::OriginalName("SCATTER_PLOT")] ScatterPlot = 5, - /// - /// Show a [pie - /// chart](https://developers.google.com/chart/interactive/docs/gallery/piechart). - /// - [pbr::OriginalName("PIE_CHART")] PieChart = 6, - /// - /// Show a [line - /// chart](https://developers.google.com/chart/interactive/docs/gallery/linechart). - /// - [pbr::OriginalName("LINE_CHART")] LineChart = 7, - /// - /// Show an [area - /// chart](https://developers.google.com/chart/interactive/docs/gallery/areachart). - /// - [pbr::OriginalName("AREA_CHART")] AreaChart = 8, - /// - /// Show a [combo - /// chart](https://developers.google.com/chart/interactive/docs/gallery/combochart). - /// - [pbr::OriginalName("COMBO_CHART")] ComboChart = 9, - /// - /// Show a - /// [histogram](https://developers.google.com/chart/interactive/docs/gallery/histogram). - /// - [pbr::OriginalName("HISTOGRAM")] Histogram = 10, - /// - /// This denotes queries when the user has not specified the particular type - /// of chart and has mentioned only a generic chart name such as "Chart", - /// "Plot", "Graph", etc. This will differentiate it from specific charting - /// terms such as "Bar chart", "Pie chart", etc. - /// - [pbr::OriginalName("GENERIC_CHART")] GenericChart = 11, - /// - /// The user tried to specify a chart type, but the interpreter could not - /// understand the type. The client should display a generic chart and may - /// give a hint to the user that the requested type was not understood. - /// - [pbr::OriginalName("CHART_NOT_UNDERSTOOD")] ChartNotUnderstood = 12, - } - - /// - /// Information about a column. - /// - public sealed partial class ColumnInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ColumnInfo()); - 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.DataQnA.V1Alpha.InterpretationStructure.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 ColumnInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ColumnInfo(ColumnInfo other) : this() { - outputAlias_ = other.outputAlias_; - displayName_ = other.displayName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ColumnInfo Clone() { - return new ColumnInfo(this); - } - - /// Field number for the "output_alias" field. - public const int OutputAliasFieldNumber = 1; - private string outputAlias_ = ""; - /// - /// The alias of the output column as used by the backend. For example, the - /// field name in the schema provided in the query response in BigQuery. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OutputAlias { - get { return outputAlias_; } - set { - outputAlias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 2; - private string displayName_ = ""; - /// - /// Human readable name of the output column. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_; } - set { - displayName_ = 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 ColumnInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ColumnInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OutputAlias != other.OutputAlias) return false; - if (DisplayName != other.DisplayName) 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 (OutputAlias.Length != 0) hash ^= OutputAlias.GetHashCode(); - if (DisplayName.Length != 0) hash ^= DisplayName.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 (OutputAlias.Length != 0) { - output.WriteRawTag(10); - output.WriteString(OutputAlias); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DisplayName); - } - 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 (OutputAlias.Length != 0) { - output.WriteRawTag(10); - output.WriteString(OutputAlias); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DisplayName); - } - 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 (OutputAlias.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputAlias); - } - if (DisplayName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ColumnInfo other) { - if (other == null) { - return; - } - if (other.OutputAlias.Length != 0) { - OutputAlias = other.OutputAlias; - } - if (other.DisplayName.Length != 0) { - DisplayName = other.DisplayName; - } - _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: { - OutputAlias = input.ReadString(); - break; - } - case 18: { - DisplayName = 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: { - OutputAlias = input.ReadString(); - break; - } - case 18: { - DisplayName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Configuriation of debug flags. - /// - public sealed partial class DebugFlags : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DebugFlags()); - 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.DataQnA.V1Alpha.QuestionReflection.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 DebugFlags() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DebugFlags(DebugFlags other) : this() { - includeVaQuery_ = other.includeVaQuery_; - includeNestedVaQuery_ = other.includeNestedVaQuery_; - includeHumanInterpretation_ = other.includeHumanInterpretation_; - includeAquaDebugResponse_ = other.includeAquaDebugResponse_; - timeOverride_ = other.timeOverride_; - isInternalGoogleUser_ = other.isInternalGoogleUser_; - ignoreCache_ = other.ignoreCache_; - includeSearchEntitiesRpc_ = other.includeSearchEntitiesRpc_; - includeListColumnAnnotationsRpc_ = other.includeListColumnAnnotationsRpc_; - includeVirtualAnalystEntities_ = other.includeVirtualAnalystEntities_; - includeTableList_ = other.includeTableList_; - includeDomainList_ = other.includeDomainList_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DebugFlags Clone() { - return new DebugFlags(this); - } - - /// Field number for the "include_va_query" field. - public const int IncludeVaQueryFieldNumber = 1; - private bool includeVaQuery_; - /// - /// Whether to include the original VAQuery. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeVaQuery { - get { return includeVaQuery_; } - set { - includeVaQuery_ = value; - } - } - - /// Field number for the "include_nested_va_query" field. - public const int IncludeNestedVaQueryFieldNumber = 2; - private bool includeNestedVaQuery_; - /// - /// Whether to include the original nested VAQuery. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeNestedVaQuery { - get { return includeNestedVaQuery_; } - set { - includeNestedVaQuery_ = value; - } - } - - /// Field number for the "include_human_interpretation" field. - public const int IncludeHumanInterpretationFieldNumber = 3; - private bool includeHumanInterpretation_; - /// - /// Whether to include the original human interpretation strings generated - /// by Analyza. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeHumanInterpretation { - get { return includeHumanInterpretation_; } - set { - includeHumanInterpretation_ = value; - } - } - - /// Field number for the "include_aqua_debug_response" field. - public const int IncludeAquaDebugResponseFieldNumber = 4; - private bool includeAquaDebugResponse_; - /// - /// Whether to include the Aqua debug response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeAquaDebugResponse { - get { return includeAquaDebugResponse_; } - set { - includeAquaDebugResponse_ = value; - } - } - - /// Field number for the "time_override" field. - public const int TimeOverrideFieldNumber = 5; - private long timeOverride_; - /// - /// The time in milliseconds from Unix epoch to be used - /// to process the query. This is useful for testing - /// the queries at different time period. - /// If not set or time_override <= 0, then the current - /// time is used. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TimeOverride { - get { return timeOverride_; } - set { - timeOverride_ = value; - } - } - - /// Field number for the "is_internal_google_user" field. - public const int IsInternalGoogleUserFieldNumber = 6; - private bool isInternalGoogleUser_; - /// - /// Set to true if request is initiated by an internal Google user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsInternalGoogleUser { - get { return isInternalGoogleUser_; } - set { - isInternalGoogleUser_ = value; - } - } - - /// Field number for the "ignore_cache" field. - public const int IgnoreCacheFieldNumber = 7; - private bool ignoreCache_; - /// - /// Determines whether cache needs to be ignored. If set to - /// true, cache won't be queried and updated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IgnoreCache { - get { return ignoreCache_; } - set { - ignoreCache_ = value; - } - } - - /// Field number for the "include_search_entities_rpc" field. - public const int IncludeSearchEntitiesRpcFieldNumber = 8; - private bool includeSearchEntitiesRpc_; - /// - /// Whether to include the request/response pair from the call to the - /// EntityIndex for SearchEntities. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeSearchEntitiesRpc { - get { return includeSearchEntitiesRpc_; } - set { - includeSearchEntitiesRpc_ = value; - } - } - - /// Field number for the "include_list_column_annotations_rpc" field. - public const int IncludeListColumnAnnotationsRpcFieldNumber = 9; - private bool includeListColumnAnnotationsRpc_; - /// - /// Whether to include the request/response pair from the call to the - /// Annotations service for ListColumnAnnotations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeListColumnAnnotationsRpc { - get { return includeListColumnAnnotationsRpc_; } - set { - includeListColumnAnnotationsRpc_ = value; - } - } - - /// Field number for the "include_virtual_analyst_entities" field. - public const int IncludeVirtualAnalystEntitiesFieldNumber = 10; - private bool includeVirtualAnalystEntities_; - /// - /// Whether to include the entity list passed to Analyza. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeVirtualAnalystEntities { - get { return includeVirtualAnalystEntities_; } - set { - includeVirtualAnalystEntities_ = value; - } - } - - /// Field number for the "include_table_list" field. - public const int IncludeTableListFieldNumber = 11; - private bool includeTableList_; - /// - /// Whether to include the table list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeTableList { - get { return includeTableList_; } - set { - includeTableList_ = value; - } - } - - /// Field number for the "include_domain_list" field. - public const int IncludeDomainListFieldNumber = 12; - private bool includeDomainList_; - /// - /// Whether to include the domain list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeDomainList { - get { return includeDomainList_; } - set { - includeDomainList_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DebugFlags); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DebugFlags other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (IncludeVaQuery != other.IncludeVaQuery) return false; - if (IncludeNestedVaQuery != other.IncludeNestedVaQuery) return false; - if (IncludeHumanInterpretation != other.IncludeHumanInterpretation) return false; - if (IncludeAquaDebugResponse != other.IncludeAquaDebugResponse) return false; - if (TimeOverride != other.TimeOverride) return false; - if (IsInternalGoogleUser != other.IsInternalGoogleUser) return false; - if (IgnoreCache != other.IgnoreCache) return false; - if (IncludeSearchEntitiesRpc != other.IncludeSearchEntitiesRpc) return false; - if (IncludeListColumnAnnotationsRpc != other.IncludeListColumnAnnotationsRpc) return false; - if (IncludeVirtualAnalystEntities != other.IncludeVirtualAnalystEntities) return false; - if (IncludeTableList != other.IncludeTableList) return false; - if (IncludeDomainList != other.IncludeDomainList) 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 (IncludeVaQuery != false) hash ^= IncludeVaQuery.GetHashCode(); - if (IncludeNestedVaQuery != false) hash ^= IncludeNestedVaQuery.GetHashCode(); - if (IncludeHumanInterpretation != false) hash ^= IncludeHumanInterpretation.GetHashCode(); - if (IncludeAquaDebugResponse != false) hash ^= IncludeAquaDebugResponse.GetHashCode(); - if (TimeOverride != 0L) hash ^= TimeOverride.GetHashCode(); - if (IsInternalGoogleUser != false) hash ^= IsInternalGoogleUser.GetHashCode(); - if (IgnoreCache != false) hash ^= IgnoreCache.GetHashCode(); - if (IncludeSearchEntitiesRpc != false) hash ^= IncludeSearchEntitiesRpc.GetHashCode(); - if (IncludeListColumnAnnotationsRpc != false) hash ^= IncludeListColumnAnnotationsRpc.GetHashCode(); - if (IncludeVirtualAnalystEntities != false) hash ^= IncludeVirtualAnalystEntities.GetHashCode(); - if (IncludeTableList != false) hash ^= IncludeTableList.GetHashCode(); - if (IncludeDomainList != false) hash ^= IncludeDomainList.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 (IncludeVaQuery != false) { - output.WriteRawTag(8); - output.WriteBool(IncludeVaQuery); - } - if (IncludeNestedVaQuery != false) { - output.WriteRawTag(16); - output.WriteBool(IncludeNestedVaQuery); - } - if (IncludeHumanInterpretation != false) { - output.WriteRawTag(24); - output.WriteBool(IncludeHumanInterpretation); - } - if (IncludeAquaDebugResponse != false) { - output.WriteRawTag(32); - output.WriteBool(IncludeAquaDebugResponse); - } - if (TimeOverride != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TimeOverride); - } - if (IsInternalGoogleUser != false) { - output.WriteRawTag(48); - output.WriteBool(IsInternalGoogleUser); - } - if (IgnoreCache != false) { - output.WriteRawTag(56); - output.WriteBool(IgnoreCache); - } - if (IncludeSearchEntitiesRpc != false) { - output.WriteRawTag(64); - output.WriteBool(IncludeSearchEntitiesRpc); - } - if (IncludeListColumnAnnotationsRpc != false) { - output.WriteRawTag(72); - output.WriteBool(IncludeListColumnAnnotationsRpc); - } - if (IncludeVirtualAnalystEntities != false) { - output.WriteRawTag(80); - output.WriteBool(IncludeVirtualAnalystEntities); - } - if (IncludeTableList != false) { - output.WriteRawTag(88); - output.WriteBool(IncludeTableList); - } - if (IncludeDomainList != false) { - output.WriteRawTag(96); - output.WriteBool(IncludeDomainList); - } - 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 (IncludeVaQuery != false) { - output.WriteRawTag(8); - output.WriteBool(IncludeVaQuery); - } - if (IncludeNestedVaQuery != false) { - output.WriteRawTag(16); - output.WriteBool(IncludeNestedVaQuery); - } - if (IncludeHumanInterpretation != false) { - output.WriteRawTag(24); - output.WriteBool(IncludeHumanInterpretation); - } - if (IncludeAquaDebugResponse != false) { - output.WriteRawTag(32); - output.WriteBool(IncludeAquaDebugResponse); - } - if (TimeOverride != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TimeOverride); - } - if (IsInternalGoogleUser != false) { - output.WriteRawTag(48); - output.WriteBool(IsInternalGoogleUser); - } - if (IgnoreCache != false) { - output.WriteRawTag(56); - output.WriteBool(IgnoreCache); - } - if (IncludeSearchEntitiesRpc != false) { - output.WriteRawTag(64); - output.WriteBool(IncludeSearchEntitiesRpc); - } - if (IncludeListColumnAnnotationsRpc != false) { - output.WriteRawTag(72); - output.WriteBool(IncludeListColumnAnnotationsRpc); - } - if (IncludeVirtualAnalystEntities != false) { - output.WriteRawTag(80); - output.WriteBool(IncludeVirtualAnalystEntities); - } - if (IncludeTableList != false) { - output.WriteRawTag(88); - output.WriteBool(IncludeTableList); - } - if (IncludeDomainList != false) { - output.WriteRawTag(96); - output.WriteBool(IncludeDomainList); - } - 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 (IncludeVaQuery != false) { - size += 1 + 1; - } - if (IncludeNestedVaQuery != false) { - size += 1 + 1; - } - if (IncludeHumanInterpretation != false) { - size += 1 + 1; - } - if (IncludeAquaDebugResponse != false) { - size += 1 + 1; - } - if (TimeOverride != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeOverride); - } - if (IsInternalGoogleUser != false) { - size += 1 + 1; - } - if (IgnoreCache != false) { - size += 1 + 1; - } - if (IncludeSearchEntitiesRpc != false) { - size += 1 + 1; - } - if (IncludeListColumnAnnotationsRpc != false) { - size += 1 + 1; - } - if (IncludeVirtualAnalystEntities != false) { - size += 1 + 1; - } - if (IncludeTableList != false) { - size += 1 + 1; - } - if (IncludeDomainList != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DebugFlags other) { - if (other == null) { - return; - } - if (other.IncludeVaQuery != false) { - IncludeVaQuery = other.IncludeVaQuery; - } - if (other.IncludeNestedVaQuery != false) { - IncludeNestedVaQuery = other.IncludeNestedVaQuery; - } - if (other.IncludeHumanInterpretation != false) { - IncludeHumanInterpretation = other.IncludeHumanInterpretation; - } - if (other.IncludeAquaDebugResponse != false) { - IncludeAquaDebugResponse = other.IncludeAquaDebugResponse; - } - if (other.TimeOverride != 0L) { - TimeOverride = other.TimeOverride; - } - if (other.IsInternalGoogleUser != false) { - IsInternalGoogleUser = other.IsInternalGoogleUser; - } - if (other.IgnoreCache != false) { - IgnoreCache = other.IgnoreCache; - } - if (other.IncludeSearchEntitiesRpc != false) { - IncludeSearchEntitiesRpc = other.IncludeSearchEntitiesRpc; - } - if (other.IncludeListColumnAnnotationsRpc != false) { - IncludeListColumnAnnotationsRpc = other.IncludeListColumnAnnotationsRpc; - } - if (other.IncludeVirtualAnalystEntities != false) { - IncludeVirtualAnalystEntities = other.IncludeVirtualAnalystEntities; - } - if (other.IncludeTableList != false) { - IncludeTableList = other.IncludeTableList; - } - if (other.IncludeDomainList != false) { - IncludeDomainList = other.IncludeDomainList; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - IncludeVaQuery = input.ReadBool(); - break; - } - case 16: { - IncludeNestedVaQuery = input.ReadBool(); - break; - } - case 24: { - IncludeHumanInterpretation = input.ReadBool(); - break; - } - case 32: { - IncludeAquaDebugResponse = input.ReadBool(); - break; - } - case 40: { - TimeOverride = input.ReadInt64(); - break; - } - case 48: { - IsInternalGoogleUser = input.ReadBool(); - break; - } - case 56: { - IgnoreCache = input.ReadBool(); - break; - } - case 64: { - IncludeSearchEntitiesRpc = input.ReadBool(); - break; - } - case 72: { - IncludeListColumnAnnotationsRpc = input.ReadBool(); - break; - } - case 80: { - IncludeVirtualAnalystEntities = input.ReadBool(); - break; - } - case 88: { - IncludeTableList = input.ReadBool(); - break; - } - case 96: { - IncludeDomainList = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - IncludeVaQuery = input.ReadBool(); - break; - } - case 16: { - IncludeNestedVaQuery = input.ReadBool(); - break; - } - case 24: { - IncludeHumanInterpretation = input.ReadBool(); - break; - } - case 32: { - IncludeAquaDebugResponse = input.ReadBool(); - break; - } - case 40: { - TimeOverride = input.ReadInt64(); - break; - } - case 48: { - IsInternalGoogleUser = input.ReadBool(); - break; - } - case 56: { - IgnoreCache = input.ReadBool(); - break; - } - case 64: { - IncludeSearchEntitiesRpc = input.ReadBool(); - break; - } - case 72: { - IncludeListColumnAnnotationsRpc = input.ReadBool(); - break; - } - case 80: { - IncludeVirtualAnalystEntities = input.ReadBool(); - break; - } - case 88: { - IncludeTableList = input.ReadBool(); - break; - } - case 96: { - IncludeDomainList = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionResourceNames.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionResourceNames.g.cs deleted file mode 100644 index 35a4dbf6ca91..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionResourceNames.g.cs +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright 2024 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 gcdv = Google.Cloud.DataQnA.V1Alpha; -using sys = System; - -namespace Google.Cloud.DataQnA.V1Alpha -{ - /// Resource name for the Question resource. - public sealed partial class QuestionName : 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}/questions/{question}. - /// - ProjectLocationQuestion = 1, - } - - private static gax::PathTemplate s_projectLocationQuestion = new gax::PathTemplate("projects/{project}/locations/{location}/questions/{question}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static QuestionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new QuestionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// projects/{project}/locations/{location}/questions/{question}. - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static QuestionName FromProjectLocationQuestion(string projectId, string locationId, string questionId) => - new QuestionName(ResourceNameType.ProjectLocationQuestion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), questionId: gax::GaxPreconditions.CheckNotNullOrEmpty(questionId, nameof(questionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}. - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}. - /// - public static string Format(string projectId, string locationId, string questionId) => - FormatProjectLocationQuestion(projectId, locationId, questionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}. - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}. - /// - public static string FormatProjectLocationQuestion(string projectId, string locationId, string questionId) => - s_projectLocationQuestion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(questionId, nameof(questionId))); - - /// 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}/questions/{question} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static QuestionName Parse(string questionName) => Parse(questionName, 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}/questions/{question} - /// - /// 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 QuestionName Parse(string questionName, bool allowUnparsed) => - TryParse(questionName, allowUnparsed, out QuestionName 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}/questions/{question} - /// - /// - /// 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 questionName, out QuestionName result) => TryParse(questionName, 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}/questions/{question} - /// - /// 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 questionName, bool allowUnparsed, out QuestionName result) - { - gax::GaxPreconditions.CheckNotNull(questionName, nameof(questionName)); - gax::TemplatedResourceName resourceName; - if (s_projectLocationQuestion.TryParseName(questionName, out resourceName)) - { - result = FromProjectLocationQuestion(resourceName[0], resourceName[1], resourceName[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(questionName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private QuestionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string locationId = null, string projectId = null, string questionId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - LocationId = locationId; - ProjectId = projectId; - QuestionId = questionId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// projects/{project}/locations/{location}/questions/{question} - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - public QuestionName(string projectId, string locationId, string questionId) : this(ResourceNameType.ProjectLocationQuestion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), questionId: gax::GaxPreconditions.CheckNotNullOrEmpty(questionId, nameof(questionId))) - { - } - - /// 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 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; } - - /// - /// The Question ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string QuestionId { 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.ProjectLocationQuestion: return s_projectLocationQuestion.Expand(ProjectId, LocationId, QuestionId); - 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 QuestionName); - - /// - public bool Equals(QuestionName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(QuestionName a, QuestionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(QuestionName a, QuestionName b) => !(a == b); - } - - public partial class Question - { - /// - /// -typed view over the resource name property. - /// - public gcdv::QuestionName QuestionName - { - get => string.IsNullOrEmpty(Name) ? null : gcdv::QuestionName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionService.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionService.g.cs deleted file mode 100644 index 809b4b7dc7b1..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionService.g.cs +++ /dev/null @@ -1,1275 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataqna/v1alpha/question_service.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.DataQnA.V1Alpha { - - /// Holder for reflection information generated from google/cloud/dataqna/v1alpha/question_service.proto - public static partial class QuestionServiceReflection { - - #region Descriptor - /// File descriptor for google/cloud/dataqna/v1alpha/question_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static QuestionServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFscGhhL3F1ZXN0aW9uX3NlcnZp", - "Y2UucHJvdG8SHGdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEaHGdvb2ds", - "ZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnBy", - "b3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvGitnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFs", - "cGhhL3F1ZXN0aW9uLnByb3RvGjBnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFs", - "cGhhL3VzZXJfZmVlZGJhY2sucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVs", - "ZF9tYXNrLnByb3RvInoKEkdldFF1ZXN0aW9uUmVxdWVzdBI1CgRuYW1lGAEg", - "ASgJQifgQQL6QSEKH2RhdGFxbmEuZ29vZ2xlYXBpcy5jb20vUXVlc3Rpb24S", - "LQoJcmVhZF9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFz", - "ayKRAQoVQ3JlYXRlUXVlc3Rpb25SZXF1ZXN0EjkKBnBhcmVudBgBIAEoCUIp", - "4EEC+kEjCiFsb2NhdGlvbnMuZ29vZ2xlYXBpcy5jb20vTG9jYXRpb24SPQoI", - "cXVlc3Rpb24YAiABKAsyJi5nb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhh", - "LlF1ZXN0aW9uQgPgQQIiTgoWRXhlY3V0ZVF1ZXN0aW9uUmVxdWVzdBIRCgRu", - "YW1lGAEgASgJQgPgQQISIQoUaW50ZXJwcmV0YXRpb25faW5kZXgYAiABKAVC", - "A+BBAiJTChZHZXRVc2VyRmVlZGJhY2tSZXF1ZXN0EjkKBG5hbWUYASABKAlC", - "K+BBAvpBJQojZGF0YXFuYS5nb29nbGVhcGlzLmNvbS9Vc2VyRmVlZGJhY2si", - "lAEKGVVwZGF0ZVVzZXJGZWVkYmFja1JlcXVlc3QSRgoNdXNlcl9mZWVkYmFj", - "axgBIAEoCzIqLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuVXNlckZl", - "ZWRiYWNrQgPgQQISLwoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJv", - "dG9idWYuRmllbGRNYXNrMuwICg9RdWVzdGlvblNlcnZpY2USqgEKC0dldFF1", - "ZXN0aW9uEjAuZ29vZ2xlLmNsb3VkLmRhdGFxbmEudjFhbHBoYS5HZXRRdWVz", - "dGlvblJlcXVlc3QaJi5nb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhLlF1", - "ZXN0aW9uIkGC0+STAjQSMi92MWFscGhhL3tuYW1lPXByb2plY3RzLyovbG9j", - "YXRpb25zLyovcXVlc3Rpb25zLyp92kEEbmFtZRLFAQoOQ3JlYXRlUXVlc3Rp", - "b24SMy5nb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhLkNyZWF0ZVF1ZXN0", - "aW9uUmVxdWVzdBomLmdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuUXVl", - "c3Rpb24iVoLT5JMCPiIyL3YxYWxwaGEve3BhcmVudD1wcm9qZWN0cy8qL2xv", - "Y2F0aW9ucy8qfS9xdWVzdGlvbnM6CHF1ZXN0aW9u2kEPcGFyZW50LHF1ZXN0", - "aW9uEtIBCg9FeGVjdXRlUXVlc3Rpb24SNC5nb29nbGUuY2xvdWQuZGF0YXFu", - "YS52MWFscGhhLkV4ZWN1dGVRdWVzdGlvblJlcXVlc3QaJi5nb29nbGUuY2xv", - "dWQuZGF0YXFuYS52MWFscGhhLlF1ZXN0aW9uImGC0+STAj8iOi92MWFscGhh", - "L3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovcXVlc3Rpb25zLyp9OmV4", - "ZWN1dGU6ASraQRluYW1lLGludGVycHJldGF0aW9uX2luZGV4EsMBCg9HZXRV", - "c2VyRmVlZGJhY2sSNC5nb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhLkdl", - "dFVzZXJGZWVkYmFja1JlcXVlc3QaKi5nb29nbGUuY2xvdWQuZGF0YXFuYS52", - "MWFscGhhLlVzZXJGZWVkYmFjayJOgtPkkwJBEj8vdjFhbHBoYS97bmFtZT1w", - "cm9qZWN0cy8qL2xvY2F0aW9ucy8qL3F1ZXN0aW9ucy8qL3VzZXJGZWVkYmFj", - "a33aQQRuYW1lEvwBChJVcGRhdGVVc2VyRmVlZGJhY2sSNy5nb29nbGUuY2xv", - "dWQuZGF0YXFuYS52MWFscGhhLlVwZGF0ZVVzZXJGZWVkYmFja1JlcXVlc3Qa", - "Ki5nb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhLlVzZXJGZWVkYmFjayKA", - "AYLT5JMCXjJNL3YxYWxwaGEve3VzZXJfZmVlZGJhY2submFtZT1wcm9qZWN0", - "cy8qL2xvY2F0aW9ucy8qL3F1ZXN0aW9ucy8qL3VzZXJGZWVkYmFja306DXVz", - "ZXJfZmVlZGJhY2vaQRl1c2VyX2ZlZWRiYWNrLHVwZGF0ZV9tYXNrGkrKQRZk", - "YXRhcW5hLmdvb2dsZWFwaXMuY29t0kEuaHR0cHM6Ly93d3cuZ29vZ2xlYXBp", - "cy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9ybULWAQogY29tLmdvb2dsZS5jbG91", - "ZC5kYXRhcW5hLnYxYWxwaGFCFFF1ZXN0aW9uU2VydmljZVByb3RvUAFaOmNs", - "b3VkLmdvb2dsZS5jb20vZ28vZGF0YXFuYS9hcGl2MWFscGhhL2RhdGFxbmFw", - "YjtkYXRhcW5hcGKqAhxHb29nbGUuQ2xvdWQuRGF0YVFuQS5WMUFscGhhygIc", - "R29vZ2xlXENsb3VkXERhdGFRbkFcVjFhbHBoYeoCH0dvb2dsZTo6Q2xvdWQ6", - "OkRhdGFRbkE6OlYxYWxwaGFiBnByb3RvMw==")); - 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.Cloud.DataQnA.V1Alpha.QuestionReflection.Descriptor, global::Google.Cloud.DataQnA.V1Alpha.UserFeedbackReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest), global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest.Parser, new[]{ "Name", "ReadMask" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest), global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest.Parser, new[]{ "Parent", "Question" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest), global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest.Parser, new[]{ "Name", "InterpretationIndex" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest), global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest.Parser, new[]{ "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest), global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest.Parser, new[]{ "UserFeedback", "UpdateMask" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A request to get a previously created question. - /// - public sealed partial class GetQuestionRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetQuestionRequest()); - 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.DataQnA.V1Alpha.QuestionServiceReflection.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 GetQuestionRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetQuestionRequest(GetQuestionRequest other) : this() { - name_ = other.name_; - readMask_ = other.readMask_ != null ? other.readMask_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetQuestionRequest Clone() { - return new GetQuestionRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - [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 "read_mask" field. - public const int ReadMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask readMask_; - /// - /// The list of fields to be retrieved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask ReadMask { - get { return readMask_; } - set { - readMask_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetQuestionRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetQuestionRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (!object.Equals(ReadMask, other.ReadMask)) 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 (readMask_ != null) hash ^= ReadMask.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 (readMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ReadMask); - } - 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 (readMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ReadMask); - } - 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 (readMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReadMask); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetQuestionRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.readMask_ != null) { - if (readMask_ == null) { - ReadMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - ReadMask.MergeFrom(other.ReadMask); - } - _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 (readMask_ == null) { - ReadMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(ReadMask); - 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 (readMask_ == null) { - ReadMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(ReadMask); - break; - } - } - } - } - #endif - - } - - /// - /// Request to create a question resource. - /// - public sealed partial class CreateQuestionRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateQuestionRequest()); - 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.DataQnA.V1Alpha.QuestionServiceReflection.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 CreateQuestionRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateQuestionRequest(CreateQuestionRequest other) : this() { - parent_ = other.parent_; - question_ = other.question_ != null ? other.question_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateQuestionRequest Clone() { - return new CreateQuestionRequest(this); - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 1; - private string parent_ = ""; - /// - /// Required. The name of the project this data source reference belongs to. - /// Example: `projects/foo/locations/bar` - /// - [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 "question" field. - public const int QuestionFieldNumber = 2; - private global::Google.Cloud.DataQnA.V1Alpha.Question question_; - /// - /// Required. The question to create. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.Question Question { - get { return question_; } - set { - question_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateQuestionRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateQuestionRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Parent != other.Parent) return false; - if (!object.Equals(Question, other.Question)) 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 (question_ != null) hash ^= Question.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 (question_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Question); - } - 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 (question_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Question); - } - 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 (question_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Question); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateQuestionRequest other) { - if (other == null) { - return; - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.question_ != null) { - if (question_ == null) { - Question = new global::Google.Cloud.DataQnA.V1Alpha.Question(); - } - Question.MergeFrom(other.Question); - } - _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: { - if (question_ == null) { - Question = new global::Google.Cloud.DataQnA.V1Alpha.Question(); - } - input.ReadMessage(Question); - 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: { - if (question_ == null) { - Question = new global::Google.Cloud.DataQnA.V1Alpha.Question(); - } - input.ReadMessage(Question); - break; - } - } - } - } - #endif - - } - - /// - /// Request to execute an interpretation. - /// - public sealed partial class ExecuteQuestionRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecuteQuestionRequest()); - 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.DataQnA.V1Alpha.QuestionServiceReflection.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 ExecuteQuestionRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecuteQuestionRequest(ExecuteQuestionRequest other) : this() { - name_ = other.name_; - interpretationIndex_ = other.interpretationIndex_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecuteQuestionRequest Clone() { - return new ExecuteQuestionRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - [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 "interpretation_index" field. - public const int InterpretationIndexFieldNumber = 2; - private int interpretationIndex_; - /// - /// Required. Index of the interpretation to execute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int InterpretationIndex { - get { return interpretationIndex_; } - set { - interpretationIndex_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecuteQuestionRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecuteQuestionRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (InterpretationIndex != other.InterpretationIndex) 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 (InterpretationIndex != 0) hash ^= InterpretationIndex.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 (InterpretationIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(InterpretationIndex); - } - 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 (InterpretationIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(InterpretationIndex); - } - 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 (InterpretationIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(InterpretationIndex); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecuteQuestionRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.InterpretationIndex != 0) { - InterpretationIndex = other.InterpretationIndex; - } - _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: { - InterpretationIndex = input.ReadInt32(); - 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: { - InterpretationIndex = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Request to get user feedback. - /// - public sealed partial class GetUserFeedbackRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserFeedbackRequest()); - 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.DataQnA.V1Alpha.QuestionServiceReflection.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 GetUserFeedbackRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserFeedbackRequest(GetUserFeedbackRequest other) : this() { - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserFeedbackRequest Clone() { - return new GetUserFeedbackRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - [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 GetUserFeedbackRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetUserFeedbackRequest 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(GetUserFeedbackRequest 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 to updates user feedback. - /// - public sealed partial class UpdateUserFeedbackRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserFeedbackRequest()); - 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.DataQnA.V1Alpha.QuestionServiceReflection.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 UpdateUserFeedbackRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserFeedbackRequest(UpdateUserFeedbackRequest other) : this() { - userFeedback_ = other.userFeedback_ != null ? other.userFeedback_.Clone() : null; - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateUserFeedbackRequest Clone() { - return new UpdateUserFeedbackRequest(this); - } - - /// Field number for the "user_feedback" field. - public const int UserFeedbackFieldNumber = 1; - private global::Google.Cloud.DataQnA.V1Alpha.UserFeedback userFeedback_; - /// - /// Required. The user feedback to update. This can be called even if there is no - /// user feedback so far. - /// The feedback's name field is used to identify the user feedback (and the - /// corresponding question) to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.UserFeedback UserFeedback { - get { return userFeedback_; } - set { - userFeedback_ = value; - } - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// The list of fields to be updated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UpdateUserFeedbackRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateUserFeedbackRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UserFeedback, other.UserFeedback)) return false; - if (!object.Equals(UpdateMask, other.UpdateMask)) 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 (userFeedback_ != null) hash ^= UserFeedback.GetHashCode(); - if (updateMask_ != null) hash ^= UpdateMask.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 (userFeedback_ != null) { - output.WriteRawTag(10); - output.WriteMessage(UserFeedback); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - 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 (userFeedback_ != null) { - output.WriteRawTag(10); - output.WriteMessage(UserFeedback); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - 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 (userFeedback_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserFeedback); - } - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateUserFeedbackRequest other) { - if (other == null) { - return; - } - if (other.userFeedback_ != null) { - if (userFeedback_ == null) { - UserFeedback = new global::Google.Cloud.DataQnA.V1Alpha.UserFeedback(); - } - UserFeedback.MergeFrom(other.UserFeedback); - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - _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 (userFeedback_ == null) { - UserFeedback = new global::Google.Cloud.DataQnA.V1Alpha.UserFeedback(); - } - input.ReadMessage(UserFeedback); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - 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 (userFeedback_ == null) { - UserFeedback = new global::Google.Cloud.DataQnA.V1Alpha.UserFeedback(); - } - input.ReadMessage(UserFeedback); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceClient.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceClient.g.cs deleted file mode 100644 index 42bc2d7f4ef5..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceClient.g.cs +++ /dev/null @@ -1,1028 +0,0 @@ -// Copyright 2024 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 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 scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Cloud.DataQnA.V1Alpha -{ - /// Settings for instances. - public sealed partial class QuestionServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static QuestionServiceSettings GetDefault() => new QuestionServiceSettings(); - - /// Constructs a new object with default settings. - public QuestionServiceSettings() - { - } - - private QuestionServiceSettings(QuestionServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - GetQuestionSettings = existing.GetQuestionSettings; - CreateQuestionSettings = existing.CreateQuestionSettings; - ExecuteQuestionSettings = existing.ExecuteQuestionSettings; - GetUserFeedbackSettings = existing.GetUserFeedbackSettings; - UpdateUserFeedbackSettings = existing.UpdateUserFeedbackSettings; - OnCopy(existing); - } - - partial void OnCopy(QuestionServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// QuestionServiceClient.GetQuestion and QuestionServiceClient.GetQuestionAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 60 seconds. - /// - /// - public gaxgrpc::CallSettings GetQuestionSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// QuestionServiceClient.CreateQuestion and QuestionServiceClient.CreateQuestionAsync. - /// - /// - /// - /// This call will not be retried. - /// Timeout: 60 seconds. - /// - /// - public gaxgrpc::CallSettings CreateQuestionSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); - - /// - /// for synchronous and asynchronous calls to - /// QuestionServiceClient.ExecuteQuestion and QuestionServiceClient.ExecuteQuestionAsync. - /// - /// - /// - /// This call will not be retried. - /// Timeout: 60 seconds. - /// - /// - public gaxgrpc::CallSettings ExecuteQuestionSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); - - /// - /// for synchronous and asynchronous calls to - /// QuestionServiceClient.GetUserFeedback and QuestionServiceClient.GetUserFeedbackAsync. - /// - /// - /// - /// Initial retry delay: 1000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 10000 milliseconds. - /// Maximum attempts: 5 - /// - /// Retriable status codes: . - /// - /// Timeout: 60 seconds. - /// - /// - public gaxgrpc::CallSettings GetUserFeedbackSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); - - /// - /// for synchronous and asynchronous calls to - /// QuestionServiceClient.UpdateUserFeedback and QuestionServiceClient.UpdateUserFeedbackAsync. - /// - /// - /// - /// This call will not be retried. - /// Timeout: 60 seconds. - /// - /// - public gaxgrpc::CallSettings UpdateUserFeedbackSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public QuestionServiceSettings Clone() => new QuestionServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - public sealed partial class QuestionServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public QuestionServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public QuestionServiceClientBuilder() : base(QuestionServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref QuestionServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override QuestionServiceClient Build() - { - QuestionServiceClient 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 QuestionServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return QuestionServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return QuestionServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => QuestionServiceClient.ChannelPool; - } - - /// QuestionService client wrapper, for convenient use. - /// - /// Service to interpret natural language queries. - /// The service allows to create `Question` resources that are interpreted and - /// are filled with one or more interpretations if the question could be - /// interpreted. Once a `Question` resource is created and has at least one - /// interpretation, an interpretation can be chosen for execution, which - /// triggers a query to the backend (for BigQuery, it will create a job). - /// Upon successful execution of that interpretation, backend specific - /// information will be returned so that the client can retrieve the results - /// from the backend. - /// - /// The `Question` resources are named `projects/*/locations/*/questions/*`. - /// - /// The `Question` resource has a singletion sub-resource `UserFeedback` named - /// `projects/*/locations/*/questions/*/userFeedback`, which allows access to - /// user feedback. - /// - public abstract partial class QuestionServiceClient - { - /// - /// The default endpoint for the QuestionService service, which is a host of "dataqna.googleapis.com" and a port - /// of 443. - /// - public static string DefaultEndpoint { get; } = "dataqna.googleapis.com:443"; - - /// The default QuestionService scopes. - /// - /// The default QuestionService 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(QuestionService.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 QuestionServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static QuestionServiceClient Create() => new QuestionServiceClientBuilder().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 QuestionServiceClient Create(grpccore::CallInvoker callInvoker, QuestionServiceSettings 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); - } - QuestionService.QuestionServiceClient grpcClient = new QuestionService.QuestionServiceClient(callInvoker); - return new QuestionServiceClientImpl(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 QuestionService client - public virtual QuestionService.QuestionServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Gets a previously created question. - /// - /// 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 Question GetQuestion(GetQuestionRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Gets a previously created question. - /// - /// 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 GetQuestionAsync(GetQuestionRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Gets a previously created question. - /// - /// 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 GetQuestionAsync(GetQuestionRequest request, st::CancellationToken cancellationToken) => - GetQuestionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Gets a previously created question. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Question GetQuestion(string name, gaxgrpc::CallSettings callSettings = null) => - GetQuestion(new GetQuestionRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - }, callSettings); - - /// - /// Gets a previously created question. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetQuestionAsync(string name, gaxgrpc::CallSettings callSettings = null) => - GetQuestionAsync(new GetQuestionRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - }, callSettings); - - /// - /// Gets a previously created question. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetQuestionAsync(string name, st::CancellationToken cancellationToken) => - GetQuestionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Gets a previously created question. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Question GetQuestion(QuestionName name, gaxgrpc::CallSettings callSettings = null) => - GetQuestion(new GetQuestionRequest - { - QuestionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), - }, callSettings); - - /// - /// Gets a previously created question. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetQuestionAsync(QuestionName name, gaxgrpc::CallSettings callSettings = null) => - GetQuestionAsync(new GetQuestionRequest - { - QuestionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), - }, callSettings); - - /// - /// Gets a previously created question. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetQuestionAsync(QuestionName name, st::CancellationToken cancellationToken) => - GetQuestionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates a question. - /// - /// 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 Question CreateQuestion(CreateQuestionRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a question. - /// - /// 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 CreateQuestionAsync(CreateQuestionRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a question. - /// - /// 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 CreateQuestionAsync(CreateQuestionRequest request, st::CancellationToken cancellationToken) => - CreateQuestionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates a question. - /// - /// - /// Required. The name of the project this data source reference belongs to. - /// Example: `projects/foo/locations/bar` - /// - /// - /// Required. The question to create. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Question CreateQuestion(string parent, Question question, gaxgrpc::CallSettings callSettings = null) => - CreateQuestion(new CreateQuestionRequest - { - Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), - Question = gax::GaxPreconditions.CheckNotNull(question, nameof(question)), - }, callSettings); - - /// - /// Creates a question. - /// - /// - /// Required. The name of the project this data source reference belongs to. - /// Example: `projects/foo/locations/bar` - /// - /// - /// Required. The question to create. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateQuestionAsync(string parent, Question question, gaxgrpc::CallSettings callSettings = null) => - CreateQuestionAsync(new CreateQuestionRequest - { - Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), - Question = gax::GaxPreconditions.CheckNotNull(question, nameof(question)), - }, callSettings); - - /// - /// Creates a question. - /// - /// - /// Required. The name of the project this data source reference belongs to. - /// Example: `projects/foo/locations/bar` - /// - /// - /// Required. The question to create. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateQuestionAsync(string parent, Question question, st::CancellationToken cancellationToken) => - CreateQuestionAsync(parent, question, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates a question. - /// - /// - /// Required. The name of the project this data source reference belongs to. - /// Example: `projects/foo/locations/bar` - /// - /// - /// Required. The question to create. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Question CreateQuestion(gagr::LocationName parent, Question question, gaxgrpc::CallSettings callSettings = null) => - CreateQuestion(new CreateQuestionRequest - { - ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), - Question = gax::GaxPreconditions.CheckNotNull(question, nameof(question)), - }, callSettings); - - /// - /// Creates a question. - /// - /// - /// Required. The name of the project this data source reference belongs to. - /// Example: `projects/foo/locations/bar` - /// - /// - /// Required. The question to create. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateQuestionAsync(gagr::LocationName parent, Question question, gaxgrpc::CallSettings callSettings = null) => - CreateQuestionAsync(new CreateQuestionRequest - { - ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), - Question = gax::GaxPreconditions.CheckNotNull(question, nameof(question)), - }, callSettings); - - /// - /// Creates a question. - /// - /// - /// Required. The name of the project this data source reference belongs to. - /// Example: `projects/foo/locations/bar` - /// - /// - /// Required. The question to create. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateQuestionAsync(gagr::LocationName parent, Question question, st::CancellationToken cancellationToken) => - CreateQuestionAsync(parent, question, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Executes an interpretation. - /// - /// 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 Question ExecuteQuestion(ExecuteQuestionRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Executes an interpretation. - /// - /// 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 ExecuteQuestionAsync(ExecuteQuestionRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Executes an interpretation. - /// - /// 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 ExecuteQuestionAsync(ExecuteQuestionRequest request, st::CancellationToken cancellationToken) => - ExecuteQuestionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Executes an interpretation. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// - /// Required. Index of the interpretation to execute. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual Question ExecuteQuestion(string name, int interpretationIndex, gaxgrpc::CallSettings callSettings = null) => - ExecuteQuestion(new ExecuteQuestionRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - InterpretationIndex = interpretationIndex, - }, callSettings); - - /// - /// Executes an interpretation. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// - /// Required. Index of the interpretation to execute. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ExecuteQuestionAsync(string name, int interpretationIndex, gaxgrpc::CallSettings callSettings = null) => - ExecuteQuestionAsync(new ExecuteQuestionRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - InterpretationIndex = interpretationIndex, - }, callSettings); - - /// - /// Executes an interpretation. - /// - /// - /// Required. The unique identifier for the question. - /// Example: `projects/foo/locations/bar/questions/1234` - /// - /// - /// Required. Index of the interpretation to execute. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ExecuteQuestionAsync(string name, int interpretationIndex, st::CancellationToken cancellationToken) => - ExecuteQuestionAsync(name, interpretationIndex, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Gets previously created user feedback. - /// - /// 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 UserFeedback GetUserFeedback(GetUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Gets previously created user feedback. - /// - /// 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 GetUserFeedbackAsync(GetUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Gets previously created user feedback. - /// - /// 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 GetUserFeedbackAsync(GetUserFeedbackRequest request, st::CancellationToken cancellationToken) => - GetUserFeedbackAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Gets previously created user feedback. - /// - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UserFeedback GetUserFeedback(string name, gaxgrpc::CallSettings callSettings = null) => - GetUserFeedback(new GetUserFeedbackRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - }, callSettings); - - /// - /// Gets previously created user feedback. - /// - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetUserFeedbackAsync(string name, gaxgrpc::CallSettings callSettings = null) => - GetUserFeedbackAsync(new GetUserFeedbackRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - }, callSettings); - - /// - /// Gets previously created user feedback. - /// - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetUserFeedbackAsync(string name, st::CancellationToken cancellationToken) => - GetUserFeedbackAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Gets previously created user feedback. - /// - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UserFeedback GetUserFeedback(UserFeedbackName name, gaxgrpc::CallSettings callSettings = null) => - GetUserFeedback(new GetUserFeedbackRequest - { - UserFeedbackName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), - }, callSettings); - - /// - /// Gets previously created user feedback. - /// - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetUserFeedbackAsync(UserFeedbackName name, gaxgrpc::CallSettings callSettings = null) => - GetUserFeedbackAsync(new GetUserFeedbackRequest - { - UserFeedbackName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), - }, callSettings); - - /// - /// Gets previously created user feedback. - /// - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetUserFeedbackAsync(UserFeedbackName name, st::CancellationToken cancellationToken) => - GetUserFeedbackAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, st::CancellationToken cancellationToken) => - UpdateUserFeedbackAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// - /// Required. The user feedback to update. This can be called even if there is no - /// user feedback so far. - /// The feedback's name field is used to identify the user feedback (and the - /// corresponding question) to update. - /// - /// - /// The list of fields to be updated. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UserFeedback UpdateUserFeedback(UserFeedback userFeedback, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => - UpdateUserFeedback(new UpdateUserFeedbackRequest - { - UserFeedback = gax::GaxPreconditions.CheckNotNull(userFeedback, nameof(userFeedback)), - UpdateMask = updateMask, - }, callSettings); - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// - /// Required. The user feedback to update. This can be called even if there is no - /// user feedback so far. - /// The feedback's name field is used to identify the user feedback (and the - /// corresponding question) to update. - /// - /// - /// The list of fields to be updated. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UpdateUserFeedbackAsync(UserFeedback userFeedback, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => - UpdateUserFeedbackAsync(new UpdateUserFeedbackRequest - { - UserFeedback = gax::GaxPreconditions.CheckNotNull(userFeedback, nameof(userFeedback)), - UpdateMask = updateMask, - }, callSettings); - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// - /// Required. The user feedback to update. This can be called even if there is no - /// user feedback so far. - /// The feedback's name field is used to identify the user feedback (and the - /// corresponding question) to update. - /// - /// - /// The list of fields to be updated. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UpdateUserFeedbackAsync(UserFeedback userFeedback, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => - UpdateUserFeedbackAsync(userFeedback, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// QuestionService client wrapper implementation, for convenient use. - /// - /// Service to interpret natural language queries. - /// The service allows to create `Question` resources that are interpreted and - /// are filled with one or more interpretations if the question could be - /// interpreted. Once a `Question` resource is created and has at least one - /// interpretation, an interpretation can be chosen for execution, which - /// triggers a query to the backend (for BigQuery, it will create a job). - /// Upon successful execution of that interpretation, backend specific - /// information will be returned so that the client can retrieve the results - /// from the backend. - /// - /// The `Question` resources are named `projects/*/locations/*/questions/*`. - /// - /// The `Question` resource has a singletion sub-resource `UserFeedback` named - /// `projects/*/locations/*/questions/*/userFeedback`, which allows access to - /// user feedback. - /// - public sealed partial class QuestionServiceClientImpl : QuestionServiceClient - { - private readonly gaxgrpc::ApiCall _callGetQuestion; - - private readonly gaxgrpc::ApiCall _callCreateQuestion; - - private readonly gaxgrpc::ApiCall _callExecuteQuestion; - - private readonly gaxgrpc::ApiCall _callGetUserFeedback; - - private readonly gaxgrpc::ApiCall _callUpdateUserFeedback; - - /// - /// Constructs a client wrapper for the QuestionService 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 QuestionServiceClientImpl(QuestionService.QuestionServiceClient grpcClient, QuestionServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - QuestionServiceSettings effectiveSettings = settings ?? QuestionServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callGetQuestion = clientHelper.BuildApiCall("GetQuestion", grpcClient.GetQuestionAsync, grpcClient.GetQuestion, effectiveSettings.GetQuestionSettings).WithGoogleRequestParam("name", request => request.Name); - Modify_ApiCall(ref _callGetQuestion); - Modify_GetQuestionApiCall(ref _callGetQuestion); - _callCreateQuestion = clientHelper.BuildApiCall("CreateQuestion", grpcClient.CreateQuestionAsync, grpcClient.CreateQuestion, effectiveSettings.CreateQuestionSettings).WithGoogleRequestParam("parent", request => request.Parent); - Modify_ApiCall(ref _callCreateQuestion); - Modify_CreateQuestionApiCall(ref _callCreateQuestion); - _callExecuteQuestion = clientHelper.BuildApiCall("ExecuteQuestion", grpcClient.ExecuteQuestionAsync, grpcClient.ExecuteQuestion, effectiveSettings.ExecuteQuestionSettings).WithGoogleRequestParam("name", request => request.Name); - Modify_ApiCall(ref _callExecuteQuestion); - Modify_ExecuteQuestionApiCall(ref _callExecuteQuestion); - _callGetUserFeedback = clientHelper.BuildApiCall("GetUserFeedback", grpcClient.GetUserFeedbackAsync, grpcClient.GetUserFeedback, effectiveSettings.GetUserFeedbackSettings).WithGoogleRequestParam("name", request => request.Name); - Modify_ApiCall(ref _callGetUserFeedback); - Modify_GetUserFeedbackApiCall(ref _callGetUserFeedback); - _callUpdateUserFeedback = clientHelper.BuildApiCall("UpdateUserFeedback", grpcClient.UpdateUserFeedbackAsync, grpcClient.UpdateUserFeedback, effectiveSettings.UpdateUserFeedbackSettings).WithGoogleRequestParam("user_feedback.name", request => request.UserFeedback?.Name); - Modify_ApiCall(ref _callUpdateUserFeedback); - Modify_UpdateUserFeedbackApiCall(ref _callUpdateUserFeedback); - 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_GetQuestionApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_CreateQuestionApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ExecuteQuestionApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GetUserFeedbackApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_UpdateUserFeedbackApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(QuestionService.QuestionServiceClient grpcClient, QuestionServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC QuestionService client - public override QuestionService.QuestionServiceClient GrpcClient { get; } - - partial void Modify_GetQuestionRequest(ref GetQuestionRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_CreateQuestionRequest(ref CreateQuestionRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ExecuteQuestionRequest(ref ExecuteQuestionRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GetUserFeedbackRequest(ref GetUserFeedbackRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_UpdateUserFeedbackRequest(ref UpdateUserFeedbackRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Gets a previously created question. - /// - /// 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 Question GetQuestion(GetQuestionRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetQuestionRequest(ref request, ref callSettings); - return _callGetQuestion.Sync(request, callSettings); - } - - /// - /// Gets a previously created question. - /// - /// 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 GetQuestionAsync(GetQuestionRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetQuestionRequest(ref request, ref callSettings); - return _callGetQuestion.Async(request, callSettings); - } - - /// - /// Creates a question. - /// - /// 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 Question CreateQuestion(CreateQuestionRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateQuestionRequest(ref request, ref callSettings); - return _callCreateQuestion.Sync(request, callSettings); - } - - /// - /// Creates a question. - /// - /// 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 CreateQuestionAsync(CreateQuestionRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateQuestionRequest(ref request, ref callSettings); - return _callCreateQuestion.Async(request, callSettings); - } - - /// - /// Executes an interpretation. - /// - /// 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 Question ExecuteQuestion(ExecuteQuestionRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ExecuteQuestionRequest(ref request, ref callSettings); - return _callExecuteQuestion.Sync(request, callSettings); - } - - /// - /// Executes an interpretation. - /// - /// 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 ExecuteQuestionAsync(ExecuteQuestionRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ExecuteQuestionRequest(ref request, ref callSettings); - return _callExecuteQuestion.Async(request, callSettings); - } - - /// - /// Gets previously created user feedback. - /// - /// 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 UserFeedback GetUserFeedback(GetUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetUserFeedbackRequest(ref request, ref callSettings); - return _callGetUserFeedback.Sync(request, callSettings); - } - - /// - /// Gets previously created user feedback. - /// - /// 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 GetUserFeedbackAsync(GetUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetUserFeedbackRequest(ref request, ref callSettings); - return _callGetUserFeedback.Async(request, callSettings); - } - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UserFeedback UpdateUserFeedback(UpdateUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateUserFeedbackRequest(ref request, ref callSettings); - return _callUpdateUserFeedback.Sync(request, callSettings); - } - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UpdateUserFeedbackAsync(UpdateUserFeedbackRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UpdateUserFeedbackRequest(ref request, ref callSettings); - return _callUpdateUserFeedback.Async(request, callSettings); - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceGrpc.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceGrpc.g.cs deleted file mode 100644 index f7fddf895df3..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceGrpc.g.cs +++ /dev/null @@ -1,516 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataqna/v1alpha/question_service.proto -// -// Original file comments: -// Copyright 2020 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.DataQnA.V1Alpha { - /// - /// Service to interpret natural language queries. - /// The service allows to create `Question` resources that are interpreted and - /// are filled with one or more interpretations if the question could be - /// interpreted. Once a `Question` resource is created and has at least one - /// interpretation, an interpretation can be chosen for execution, which - /// triggers a query to the backend (for BigQuery, it will create a job). - /// Upon successful execution of that interpretation, backend specific - /// information will be returned so that the client can retrieve the results - /// from the backend. - /// - /// The `Question` resources are named `projects/*/locations/*/questions/*`. - /// - /// The `Question` resource has a singletion sub-resource `UserFeedback` named - /// `projects/*/locations/*/questions/*/userFeedback`, which allows access to - /// user feedback. - /// - public static partial class QuestionService - { - static readonly string __ServiceName = "google.cloud.dataqna.v1alpha.QuestionService"; - - [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_dataqna_v1alpha_GetQuestionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_dataqna_v1alpha_Question = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.Question.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_dataqna_v1alpha_CreateQuestionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_dataqna_v1alpha_ExecuteQuestionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_dataqna_v1alpha_GetUserFeedbackRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_dataqna_v1alpha_UserFeedback = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_dataqna_v1alpha_UpdateUserFeedbackRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetQuestion = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetQuestion", - __Marshaller_google_cloud_dataqna_v1alpha_GetQuestionRequest, - __Marshaller_google_cloud_dataqna_v1alpha_Question); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateQuestion = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateQuestion", - __Marshaller_google_cloud_dataqna_v1alpha_CreateQuestionRequest, - __Marshaller_google_cloud_dataqna_v1alpha_Question); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ExecuteQuestion = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ExecuteQuestion", - __Marshaller_google_cloud_dataqna_v1alpha_ExecuteQuestionRequest, - __Marshaller_google_cloud_dataqna_v1alpha_Question); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetUserFeedback = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetUserFeedback", - __Marshaller_google_cloud_dataqna_v1alpha_GetUserFeedbackRequest, - __Marshaller_google_cloud_dataqna_v1alpha_UserFeedback); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UpdateUserFeedback = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UpdateUserFeedback", - __Marshaller_google_cloud_dataqna_v1alpha_UpdateUserFeedbackRequest, - __Marshaller_google_cloud_dataqna_v1alpha_UserFeedback); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Cloud.DataQnA.V1Alpha.QuestionServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of QuestionService - [grpc::BindServiceMethod(typeof(QuestionService), "BindService")] - public abstract partial class QuestionServiceBase - { - /// - /// Gets a previously created question. - /// - /// 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 GetQuestion(global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Creates a question. - /// - /// 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 CreateQuestion(global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Executes an interpretation. - /// - /// 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 ExecuteQuestion(global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Gets previously created user feedback. - /// - /// 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 GetUserFeedback(global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UpdateUserFeedback(global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for QuestionService - public partial class QuestionServiceClient : grpc::ClientBase - { - /// Creates a new client for QuestionService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public QuestionServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for QuestionService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public QuestionServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected QuestionServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected QuestionServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Gets a previously created question. - /// - /// 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.DataQnA.V1Alpha.Question GetQuestion(global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetQuestion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a previously created question. - /// - /// 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.DataQnA.V1Alpha.Question GetQuestion(global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetQuestion, null, options, request); - } - /// - /// Gets a previously created question. - /// - /// 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 GetQuestionAsync(global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetQuestionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets a previously created question. - /// - /// 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 GetQuestionAsync(global::Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetQuestion, null, options, request); - } - /// - /// Creates a question. - /// - /// 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.DataQnA.V1Alpha.Question CreateQuestion(global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateQuestion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a question. - /// - /// 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.DataQnA.V1Alpha.Question CreateQuestion(global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateQuestion, null, options, request); - } - /// - /// Creates a question. - /// - /// 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 CreateQuestionAsync(global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateQuestionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a question. - /// - /// 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 CreateQuestionAsync(global::Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateQuestion, null, options, request); - } - /// - /// Executes an interpretation. - /// - /// 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.DataQnA.V1Alpha.Question ExecuteQuestion(global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ExecuteQuestion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Executes an interpretation. - /// - /// 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.DataQnA.V1Alpha.Question ExecuteQuestion(global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ExecuteQuestion, null, options, request); - } - /// - /// Executes an interpretation. - /// - /// 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 ExecuteQuestionAsync(global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ExecuteQuestionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Executes an interpretation. - /// - /// 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 ExecuteQuestionAsync(global::Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ExecuteQuestion, null, options, request); - } - /// - /// Gets previously created user feedback. - /// - /// 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.DataQnA.V1Alpha.UserFeedback GetUserFeedback(global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetUserFeedback(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets previously created user feedback. - /// - /// 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.DataQnA.V1Alpha.UserFeedback GetUserFeedback(global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetUserFeedback, null, options, request); - } - /// - /// Gets previously created user feedback. - /// - /// 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 GetUserFeedbackAsync(global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetUserFeedbackAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Gets previously created user feedback. - /// - /// 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 GetUserFeedbackAsync(global::Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetUserFeedback, null, options, request); - } - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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.DataQnA.V1Alpha.UserFeedback UpdateUserFeedback(global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateUserFeedback(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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.DataQnA.V1Alpha.UserFeedback UpdateUserFeedback(global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UpdateUserFeedback, null, options, request); - } - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UpdateUserFeedbackAsync(global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UpdateUserFeedbackAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates user feedback. This creates user feedback if there was none before - /// (upsert). - /// - /// 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 UpdateUserFeedbackAsync(global::Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UpdateUserFeedback, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override QuestionServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new QuestionServiceClient(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(QuestionServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_GetQuestion, serviceImpl.GetQuestion) - .AddMethod(__Method_CreateQuestion, serviceImpl.CreateQuestion) - .AddMethod(__Method_ExecuteQuestion, serviceImpl.ExecuteQuestion) - .AddMethod(__Method_GetUserFeedback, serviceImpl.GetUserFeedback) - .AddMethod(__Method_UpdateUserFeedback, serviceImpl.UpdateUserFeedback).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, QuestionServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_GetQuestion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetQuestion)); - serviceBinder.AddMethod(__Method_CreateQuestion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateQuestion)); - serviceBinder.AddMethod(__Method_ExecuteQuestion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ExecuteQuestion)); - serviceBinder.AddMethod(__Method_GetUserFeedback, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUserFeedback)); - serviceBinder.AddMethod(__Method_UpdateUserFeedback, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateUserFeedback)); - } - - } -} -#endregion diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceResourceNames.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceResourceNames.g.cs deleted file mode 100644 index efa0b4f15375..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/QuestionServiceResourceNames.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2024 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 gagr = Google.Api.Gax.ResourceNames; -using gcdv = Google.Cloud.DataQnA.V1Alpha; - -namespace Google.Cloud.DataQnA.V1Alpha -{ - public partial class GetQuestionRequest - { - /// - /// -typed view over the resource name property. - /// - public gcdv::QuestionName QuestionName - { - get => string.IsNullOrEmpty(Name) ? null : gcdv::QuestionName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } - - public partial class CreateQuestionRequest - { - /// - /// -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 GetUserFeedbackRequest - { - /// - /// -typed view over the resource name property. - /// - public gcdv::UserFeedbackName UserFeedbackName - { - get => string.IsNullOrEmpty(Name) ? null : gcdv::UserFeedbackName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/ServiceCollectionExtensions.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/ServiceCollectionExtensions.g.cs deleted file mode 100644 index b754633aba44..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/ServiceCollectionExtensions.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2024 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 gaxgrpc = Google.Api.Gax.Grpc; -using gcdv = Google.Cloud.DataQnA.V1Alpha; -using gpr = Google.Protobuf.Reflection; -using sys = System; -using scg = System.Collections.Generic; - -namespace Microsoft.Extensions.DependencyInjection -{ - /// Static class to provide extension methods to configure API clients. - public static partial class ServiceCollectionExtensions - { - /// - /// 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 AddAutoSuggestionServiceClient(this IServiceCollection services, sys::Action action = null) => - services.AddSingleton(provider => - { - gcdv::AutoSuggestionServiceClientBuilder builder = new gcdv::AutoSuggestionServiceClientBuilder(); - 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 AddQuestionServiceClient(this IServiceCollection services, sys::Action action = null) => - services.AddSingleton(provider => - { - gcdv::QuestionServiceClientBuilder builder = new gcdv::QuestionServiceClientBuilder(); - action?.Invoke(builder); - return builder.Build(provider); - }); - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/UserFeedback.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/UserFeedback.g.cs deleted file mode 100644 index 931868bc542f..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/UserFeedback.g.cs +++ /dev/null @@ -1,360 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataqna/v1alpha/user_feedback.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.DataQnA.V1Alpha { - - /// Holder for reflection information generated from google/cloud/dataqna/v1alpha/user_feedback.proto - public static partial class UserFeedbackReflection { - - #region Descriptor - /// File descriptor for google/cloud/dataqna/v1alpha/user_feedback.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static UserFeedbackReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvY2xvdWQvZGF0YXFuYS92MWFscGhhL3VzZXJfZmVlZGJhY2su", - "cHJvdG8SHGdvb2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEaH2dvb2dsZS9h", - "cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2Uu", - "cHJvdG8i2QIKDFVzZXJGZWVkYmFjaxIRCgRuYW1lGAEgASgJQgPgQQISGgoS", - "ZnJlZV9mb3JtX2ZlZWRiYWNrGAIgASgJEk0KBnJhdGluZxgDIAEoDjI9Lmdv", - "b2dsZS5jbG91ZC5kYXRhcW5hLnYxYWxwaGEuVXNlckZlZWRiYWNrLlVzZXJG", - "ZWVkYmFja1JhdGluZyJWChJVc2VyRmVlZGJhY2tSYXRpbmcSJAogVVNFUl9G", - "RUVEQkFDS19SQVRJTkdfVU5TUEVDSUZJRUQQABIMCghQT1NJVElWRRABEgwK", - "CE5FR0FUSVZFEAI6c+pBcAojZGF0YXFuYS5nb29nbGVhcGlzLmNvbS9Vc2Vy", - "RmVlZGJhY2sSSXByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0", - "aW9ufS9xdWVzdGlvbnMve3F1ZXN0aW9ufS91c2VyRmVlZGJhY2tC0wEKIGNv", - "bS5nb29nbGUuY2xvdWQuZGF0YXFuYS52MWFscGhhQhFVc2VyRmVlZGJhY2tQ", - "cm90b1ABWjpjbG91ZC5nb29nbGUuY29tL2dvL2RhdGFxbmEvYXBpdjFhbHBo", - "YS9kYXRhcW5hcGI7ZGF0YXFuYXBiqgIcR29vZ2xlLkNsb3VkLkRhdGFRbkEu", - "VjFBbHBoYcoCHEdvb2dsZVxDbG91ZFxEYXRhUW5BXFYxYWxwaGHqAh9Hb29n", - "bGU6OkNsb3VkOjpEYXRhUW5BOjpWMWFscGhhYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.DataQnA.V1Alpha.UserFeedback), global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Parser, new[]{ "Name", "FreeFormFeedback", "Rating" }, null, new[]{ typeof(global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Feedback provided by a user. - /// - public sealed partial class UserFeedback : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserFeedback()); - 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.DataQnA.V1Alpha.UserFeedbackReflection.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 UserFeedback() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserFeedback(UserFeedback other) : this() { - name_ = other.name_; - freeFormFeedback_ = other.freeFormFeedback_; - rating_ = other.rating_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserFeedback Clone() { - return new UserFeedback(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Required. The unique identifier for the user feedback. - /// User feedback is a singleton resource on a Question. - /// Example: `projects/foo/locations/bar/questions/1234/userFeedback` - /// - [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 "free_form_feedback" field. - public const int FreeFormFeedbackFieldNumber = 2; - private string freeFormFeedback_ = ""; - /// - /// Free form user feedback, such as a text box. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FreeFormFeedback { - get { return freeFormFeedback_; } - set { - freeFormFeedback_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "rating" field. - public const int RatingFieldNumber = 3; - private global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating rating_ = global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating.Unspecified; - /// - /// The user feedback rating - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating Rating { - get { return rating_; } - set { - rating_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserFeedback); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserFeedback other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (FreeFormFeedback != other.FreeFormFeedback) return false; - if (Rating != other.Rating) 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 (FreeFormFeedback.Length != 0) hash ^= FreeFormFeedback.GetHashCode(); - if (Rating != global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating.Unspecified) hash ^= Rating.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 (FreeFormFeedback.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FreeFormFeedback); - } - if (Rating != global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Rating); - } - 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 (FreeFormFeedback.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FreeFormFeedback); - } - if (Rating != global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Rating); - } - 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 (FreeFormFeedback.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FreeFormFeedback); - } - if (Rating != global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Rating); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserFeedback other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.FreeFormFeedback.Length != 0) { - FreeFormFeedback = other.FreeFormFeedback; - } - if (other.Rating != global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating.Unspecified) { - Rating = other.Rating; - } - _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: { - FreeFormFeedback = input.ReadString(); - break; - } - case 24: { - Rating = (global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating) 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 18: { - FreeFormFeedback = input.ReadString(); - break; - } - case 24: { - Rating = (global::Google.Cloud.DataQnA.V1Alpha.UserFeedback.Types.UserFeedbackRating) input.ReadEnum(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the UserFeedback message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumeration of feedback ratings. - /// - public enum UserFeedbackRating { - /// - /// No rating was specified. - /// - [pbr::OriginalName("USER_FEEDBACK_RATING_UNSPECIFIED")] Unspecified = 0, - /// - /// The user provided positive feedback. - /// - [pbr::OriginalName("POSITIVE")] Positive = 1, - /// - /// The user provided negative feedback. - /// - [pbr::OriginalName("NEGATIVE")] Negative = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/UserFeedbackResourceNames.g.cs b/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/UserFeedbackResourceNames.g.cs deleted file mode 100644 index 07f0e9c42f33..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/Google.Cloud.DataQnA.V1Alpha/UserFeedbackResourceNames.g.cs +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright 2024 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 gcdv = Google.Cloud.DataQnA.V1Alpha; -using sys = System; - -namespace Google.Cloud.DataQnA.V1Alpha -{ - /// Resource name for the UserFeedback resource. - public sealed partial class UserFeedbackName : 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}/questions/{question}/userFeedback. - /// - ProjectLocationQuestion = 1, - } - - private static gax::PathTemplate s_projectLocationQuestion = new gax::PathTemplate("projects/{project}/locations/{location}/questions/{question}/userFeedback"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static UserFeedbackName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new UserFeedbackName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// projects/{project}/locations/{location}/questions/{question}/userFeedback. - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static UserFeedbackName FromProjectLocationQuestion(string projectId, string locationId, string questionId) => - new UserFeedbackName(ResourceNameType.ProjectLocationQuestion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), questionId: gax::GaxPreconditions.CheckNotNullOrEmpty(questionId, nameof(questionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}/userFeedback. - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}/userFeedback. - /// - public static string Format(string projectId, string locationId, string questionId) => - FormatProjectLocationQuestion(projectId, locationId, questionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}/userFeedback. - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// projects/{project}/locations/{location}/questions/{question}/userFeedback. - /// - public static string FormatProjectLocationQuestion(string projectId, string locationId, string questionId) => - s_projectLocationQuestion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(questionId, nameof(questionId))); - - /// 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}/questions/{question}/userFeedback - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static UserFeedbackName Parse(string userFeedbackName) => Parse(userFeedbackName, 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}/questions/{question}/userFeedback - /// - /// - /// 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 UserFeedbackName Parse(string userFeedbackName, bool allowUnparsed) => - TryParse(userFeedbackName, allowUnparsed, out UserFeedbackName 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}/questions/{question}/userFeedback - /// - /// - /// - /// 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 userFeedbackName, out UserFeedbackName result) => - TryParse(userFeedbackName, 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}/questions/{question}/userFeedback - /// - /// - /// 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 userFeedbackName, bool allowUnparsed, out UserFeedbackName result) - { - gax::GaxPreconditions.CheckNotNull(userFeedbackName, nameof(userFeedbackName)); - gax::TemplatedResourceName resourceName; - if (s_projectLocationQuestion.TryParseName(userFeedbackName, out resourceName)) - { - result = FromProjectLocationQuestion(resourceName[0], resourceName[1], resourceName[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(userFeedbackName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private UserFeedbackName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string locationId = null, string projectId = null, string questionId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - LocationId = locationId; - ProjectId = projectId; - QuestionId = questionId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// projects/{project}/locations/{location}/questions/{question}/userFeedback - /// - /// The Project ID. Must not be null or empty. - /// The Location ID. Must not be null or empty. - /// The Question ID. Must not be null or empty. - public UserFeedbackName(string projectId, string locationId, string questionId) : this(ResourceNameType.ProjectLocationQuestion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), questionId: gax::GaxPreconditions.CheckNotNullOrEmpty(questionId, nameof(questionId))) - { - } - - /// 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 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; } - - /// - /// The Question ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string QuestionId { 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.ProjectLocationQuestion: return s_projectLocationQuestion.Expand(ProjectId, LocationId, QuestionId); - 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 UserFeedbackName); - - /// - public bool Equals(UserFeedbackName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(UserFeedbackName a, UserFeedbackName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(UserFeedbackName a, UserFeedbackName b) => !(a == b); - } - - public partial class UserFeedback - { - /// - /// -typed view over the resource name property. - /// - public gcdv::UserFeedbackName UserFeedbackName - { - get => string.IsNullOrEmpty(Name) ? null : gcdv::UserFeedbackName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/docs/history.md b/apis/Google.Cloud.DataQnA.V1Alpha/docs/history.md deleted file mode 100644 index 22796fb70e6d..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/docs/history.md +++ /dev/null @@ -1,37 +0,0 @@ -# Version history - -## Version 2.0.0-alpha02, released 2024-01-24 - -This release is being used to publish a new front-page of -documentation, to indicate package deprecation. - -## Version 2.0.0-alpha01, released 2022-06-08 - -This is the first version of this package to depend on GAX v4. - -There are some breaking changes, both in GAX v4 and in the generated -code. The changes that aren't specific to any given API are [described in the Google Cloud -documentation](https://cloud.google.com/dotnet/docs/reference/help/breaking-gax4). -We don't anticipate any changes to most customer code, but please [file a -GitHub issue](https://github.com/googleapis/google-cloud-dotnet/issues/new/choose) -if you run into problems. - -The most important change in this release is the use of the Grpc.Net.Client package -for gRPC communication, instead of Grpc.Core. When using .NET Core 3.1 or .NET 5.0+ -this should lead to a smaller installation footprint and greater compatibility (e.g. -with Apple M1 chips). Any significant change in a core component comes with the risk -of incompatibility, however - so again, please let us know if you encounter any -issues. -## Version 1.0.0-alpha03, released 2021-08-19 - -- [Commit ac367e2](https://github.com/googleapis/google-cloud-dotnet/commit/ac367e2): feat: Regenerate all APIs to support self-signed JWTs - -## Version 1.0.0-alpha02, released 2021-05-25 - -No API surface changes; just dependency updates. - -## Version 1.0.0-alpha01, released 2021-02-26 - -First release. - - diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/docs/index.md b/apis/Google.Cloud.DataQnA.V1Alpha/docs/index.md deleted file mode 100644 index cb2fccbe0544..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/docs/index.md +++ /dev/null @@ -1,11 +0,0 @@ -{{title}} - -{{description}} - -The DataQnA API is officially deprecated. - -The Google.Cloud.DataQnA.V1Alpha package is delisted from NuGet, -and the source code removed from the google-cloud-dotnet repository. -Any projects that depend on the package will still be -able to restore that dependency, but the package won't be shown in -search results on [nuget.org](https://www.nuget.org/). diff --git a/apis/Google.Cloud.DataQnA.V1Alpha/gapic_metadata.json b/apis/Google.Cloud.DataQnA.V1Alpha/gapic_metadata.json deleted file mode 100644 index e5143dd3cdd3..000000000000 --- a/apis/Google.Cloud.DataQnA.V1Alpha/gapic_metadata.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "csharp", - "protoPackage": "google.cloud.dataqna.v1alpha", - "libraryPackage": "Google.Cloud.DataQnA.V1Alpha", - "services": { - "AutoSuggestionService": { - "clients": { - "grpc": { - "libraryClient": "AutoSuggestionServiceClient", - "rpcs": { - "SuggestQueries": { - "methods": [ - "SuggestQueries", - "SuggestQueriesAsync" - ] - } - } - } - } - }, - "QuestionService": { - "clients": { - "grpc": { - "libraryClient": "QuestionServiceClient", - "rpcs": { - "CreateQuestion": { - "methods": [ - "CreateQuestion", - "CreateQuestionAsync" - ] - }, - "ExecuteQuestion": { - "methods": [ - "ExecuteQuestion", - "ExecuteQuestionAsync" - ] - }, - "GetQuestion": { - "methods": [ - "GetQuestion", - "GetQuestionAsync" - ] - }, - "GetUserFeedback": { - "methods": [ - "GetUserFeedback", - "GetUserFeedbackAsync" - ] - }, - "UpdateUserFeedback": { - "methods": [ - "UpdateUserFeedback", - "UpdateUserFeedbackAsync" - ] - } - } - } - } - } - } -} diff --git a/apis/apis.json b/apis/apis.json index 8edb73fcb59f..018153734a4c 100644 --- a/apis/apis.json +++ b/apis/apis.json @@ -1605,24 +1605,6 @@ "restNumericEnums": true, "includeCommonResourcesProto": true }, - { - "id": "Google.Cloud.DataQnA.V1Alpha", - "version": "2.0.0-alpha02", - "type": "grpc", - "productName": "Data QnA", - "productUrl": "https://cloud.google.com/bigquery/docs/dataqna", - "description": "Recommended Google client library to access the Google Cloud Data QnA API (v1alpha) which is a natural language question and answer service for BigQuery data.", - "tags": [ - "language", - "bigquery" - ], - "dependencies": {}, - "generator": "micro", - "protoPath": "google/cloud/dataqna/v1alpha", - "shortName": "dataqna", - "serviceConfigFile": "dataqna_v1alpha.yaml", - "includeCommonResourcesProto": true - }, { "id": "Google.Cloud.Dataflow.V1Beta3", "version": "2.0.0-beta04",