Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

fix: publish missing client config annotations #653

Merged
merged 2 commits into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions protos/google/cloud/dialogflow/v2beta1/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -408,7 +408,12 @@ message TrainAgentRequest {
message ExportAgentRequest {
// Required. The project that the agent to export is associated with.
// Format: `projects/<Project ID>`.
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/)
Expand Down
1 change: 1 addition & 0 deletions protos/google/cloud/dialogflow/v2beta1/context.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ service Contexts {
}
};
option (google.api.method_signature) = "context,update_mask";
option (google.api.method_signature) = "context";
}

// Deletes the specified context.
Expand Down
1 change: 1 addition & 0 deletions protos/google/cloud/dialogflow/v2beta1/document.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 5 additions & 3 deletions protos/google/cloud/dialogflow/v2beta1/entity_type.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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/<Project ID>`.
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.
Expand Down
3 changes: 2 additions & 1 deletion protos/google/cloud/dialogflow/v2beta1/environment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -48,6 +48,7 @@ service Environments {
get: "/v2beta1/{parent=projects/*/locations/*/agent}/environments"
}
};
option (google.api.method_signature) = "parent";
}
}

Expand Down
7 changes: 4 additions & 3 deletions protos/google/cloud/dialogflow/v2beta1/intent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ service KnowledgeBases {
}
};
option (google.api.method_signature) = "knowledge_base,update_mask";
option (google.api.method_signature) = "knowledge_base";
}
}

Expand Down
15 changes: 9 additions & 6 deletions protos/google/cloud/dialogflow/v2beta1/session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -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;
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading