From be0c5a9b1b88ca3bb8ad993ae7b2e6affde7fee2 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 21 Jul 2020 12:43:47 -0700 Subject: [PATCH] fix: publish missing client config annotations PiperOrigin-RevId: 322420178 --- google/cloud/dialogflow/v2beta1/BUILD.bazel | 9 +++++++++ google/cloud/dialogflow/v2beta1/agent.proto | 9 +++++++-- google/cloud/dialogflow/v2beta1/context.proto | 1 + google/cloud/dialogflow/v2beta1/document.proto | 1 + google/cloud/dialogflow/v2beta1/entity_type.proto | 8 +++++--- google/cloud/dialogflow/v2beta1/environment.proto | 3 ++- google/cloud/dialogflow/v2beta1/intent.proto | 7 ++++--- .../cloud/dialogflow/v2beta1/knowledge_base.proto | 1 + google/cloud/dialogflow/v2beta1/session.proto | 15 +++++++++------ .../dialogflow/v2beta1/session_entity_type.proto | 4 ++-- 10 files changed, 41 insertions(+), 17 deletions(-) diff --git a/google/cloud/dialogflow/v2beta1/BUILD.bazel b/google/cloud/dialogflow/v2beta1/BUILD.bazel index 89cf17054..f876013f2 100644 --- a/google/cloud/dialogflow/v2beta1/BUILD.bazel +++ b/google/cloud/dialogflow/v2beta1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) diff --git a/google/cloud/dialogflow/v2beta1/agent.proto b/google/cloud/dialogflow/v2beta1/agent.proto index 71ada6e6a..dec8dde09 100644 --- a/google/cloud/dialogflow/v2beta1/agent.proto +++ b/google/cloud/dialogflow/v2beta1/agent.proto @@ -332,7 +332,7 @@ message GetAgentRequest { // The request message for [Agents.SetAgent][google.cloud.dialogflow.v2beta1.Agents.SetAgent]. message SetAgentRequest { // Required. The agent to update. - Agent agent = 1; + Agent agent = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. The mask to control which fields get updated. google.protobuf.FieldMask update_mask = 2; @@ -408,7 +408,12 @@ message TrainAgentRequest { message ExportAgentRequest { // Required. The project that the agent to export is associated with. // Format: `projects/`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Agent" + } + ]; // Optional. The // [Google Cloud Storage](https://cloud.google.com/storage/docs/) diff --git a/google/cloud/dialogflow/v2beta1/context.proto b/google/cloud/dialogflow/v2beta1/context.proto index 777e52dd5..e829882d9 100644 --- a/google/cloud/dialogflow/v2beta1/context.proto +++ b/google/cloud/dialogflow/v2beta1/context.proto @@ -115,6 +115,7 @@ service Contexts { } }; option (google.api.method_signature) = "context,update_mask"; + option (google.api.method_signature) = "context"; } // Deletes the specified context. diff --git a/google/cloud/dialogflow/v2beta1/document.proto b/google/cloud/dialogflow/v2beta1/document.proto index 5349de59c..695ae20db 100644 --- a/google/cloud/dialogflow/v2beta1/document.proto +++ b/google/cloud/dialogflow/v2beta1/document.proto @@ -122,6 +122,7 @@ service Documents { } }; option (google.api.method_signature) = "document,update_mask"; + option (google.api.method_signature) = "document"; option (google.longrunning.operation_info) = { response_type: "Document" metadata_type: "KnowledgeOperationMetadata" diff --git a/google/cloud/dialogflow/v2beta1/entity_type.proto b/google/cloud/dialogflow/v2beta1/entity_type.proto index 032b97bf3..457c85916 100644 --- a/google/cloud/dialogflow/v2beta1/entity_type.proto +++ b/google/cloud/dialogflow/v2beta1/entity_type.proto @@ -150,6 +150,8 @@ service EntityTypes { body: "*" } }; + option (google.api.method_signature) = "parent,entities"; + option (google.api.method_signature) = "parent,entities,language_code"; option (google.longrunning.operation_info) = { response_type: "google.protobuf.Empty" metadata_type: "google.protobuf.Struct" @@ -477,7 +479,7 @@ message BatchCreateEntitiesRequest { ]; // Required. The entities to create. - repeated EntityType.Entity entities = 2; + repeated EntityType.Entity entities = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The language used to access language-specific data. // If not specified, the agent's default language is used. @@ -499,7 +501,7 @@ message BatchUpdateEntitiesRequest { ]; // Required. The entities to update or create. - repeated EntityType.Entity entities = 2; + repeated EntityType.Entity entities = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The language used to access language-specific data. // If not specified, the agent's default language is used. @@ -526,7 +528,7 @@ message BatchDeleteEntitiesRequest { // Required. The reference `values` of the entities to delete. Note that // these are not fully-qualified names, i.e. they don't start with // `projects/`. - repeated string entity_values = 2; + repeated string entity_values = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The language used to access language-specific data. // If not specified, the agent's default language is used. diff --git a/google/cloud/dialogflow/v2beta1/environment.proto b/google/cloud/dialogflow/v2beta1/environment.proto index 2a1069692..73f4e2980 100644 --- a/google/cloud/dialogflow/v2beta1/environment.proto +++ b/google/cloud/dialogflow/v2beta1/environment.proto @@ -17,13 +17,13 @@ syntax = "proto3"; package google.cloud.dialogflow.v2beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/v2beta1/audio_config.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; @@ -48,6 +48,7 @@ service Environments { get: "/v2beta1/{parent=projects/*/locations/*/agent}/environments" } }; + option (google.api.method_signature) = "parent"; } } diff --git a/google/cloud/dialogflow/v2beta1/intent.proto b/google/cloud/dialogflow/v2beta1/intent.proto index a0a774c78..cfecbc142 100644 --- a/google/cloud/dialogflow/v2beta1/intent.proto +++ b/google/cloud/dialogflow/v2beta1/intent.proto @@ -138,6 +138,7 @@ service Intents { body: "*" } }; + option (google.api.method_signature) = "parent,intents"; option (google.longrunning.operation_info) = { response_type: "google.protobuf.Empty" metadata_type: "google.protobuf.Struct" @@ -1249,7 +1250,7 @@ message CreateIntentRequest { ]; // Required. The intent to create. - Intent intent = 2; + Intent intent = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The language used to access language-specific data. // If not specified, the agent's default language is used. @@ -1265,7 +1266,7 @@ message CreateIntentRequest { // The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent]. message UpdateIntentRequest { // Required. The intent to update. - Intent intent = 1; + Intent intent = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. The language used to access language-specific data. // If not specified, the agent's default language is used. @@ -1355,7 +1356,7 @@ message BatchDeleteIntentsRequest { // Required. The collection of intents to delete. Only intent `name` must be // filled in. - repeated Intent intents = 2; + repeated Intent intents = 2 [(google.api.field_behavior) = REQUIRED]; } // This message is a wrapper around a collection of intents. diff --git a/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/google/cloud/dialogflow/v2beta1/knowledge_base.proto index 4c428f689..71e72dcc5 100644 --- a/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -110,6 +110,7 @@ service KnowledgeBases { } }; option (google.api.method_signature) = "knowledge_base,update_mask"; + option (google.api.method_signature) = "knowledge_base"; } } diff --git a/google/cloud/dialogflow/v2beta1/session.proto b/google/cloud/dialogflow/v2beta1/session.proto index 03804575d..ef882e190 100644 --- a/google/cloud/dialogflow/v2beta1/session.proto +++ b/google/cloud/dialogflow/v2beta1/session.proto @@ -100,9 +100,12 @@ message DetectIntentRequest { // // For more information, see the [API interactions // guide](https://cloud.google.com/dialogflow/docs/api-overview). - string session = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Session" - }]; + string session = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Session" + } + ]; // The parameters of this query. QueryParameters query_params = 2; @@ -115,7 +118,7 @@ message DetectIntentRequest { // 2. a conversational query in the form of text, or // // 3. an event that specifies which intent to trigger. - QueryInput query_input = 3; + QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED]; // Instructs the speech synthesizer how to generate the output // audio. If this field is not set and agent-level speech synthesizer is not @@ -470,7 +473,7 @@ message StreamingDetectIntentRequest { // // For more information, see the [API interactions // guide](https://cloud.google.com/dialogflow/docs/api-overview). - string session = 1; + string session = 1 [(google.api.field_behavior) = REQUIRED]; // The parameters of this query. QueryParameters query_params = 2; @@ -483,7 +486,7 @@ message StreamingDetectIntentRequest { // 2. a conversational query in the form of text, or // // 3. an event that specifies which intent to trigger. - QueryInput query_input = 3; + QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED]; // DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead. // If `false` (default), recognition does not cease until the diff --git a/google/cloud/dialogflow/v2beta1/session_entity_type.proto b/google/cloud/dialogflow/v2beta1/session_entity_type.proto index 7b9b93ebf..07b73530e 100644 --- a/google/cloud/dialogflow/v2beta1/session_entity_type.proto +++ b/google/cloud/dialogflow/v2beta1/session_entity_type.proto @@ -281,13 +281,13 @@ message CreateSessionEntityTypeRequest { ]; // Required. The session entity type to create. - SessionEntityType session_entity_type = 2; + SessionEntityType session_entity_type = 2 [(google.api.field_behavior) = REQUIRED]; } // The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType]. message UpdateSessionEntityTypeRequest { // Required. The session entity type to update. - SessionEntityType session_entity_type = 1; + SessionEntityType session_entity_type = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. The mask to control which fields get updated. google.protobuf.FieldMask update_mask = 2;