docs: fixed link from SentimentAnalysisResult

feat: added filter for ListDocuments and ListKnowledgeBases
fix!: added REQUIRED annotation for Agent.parent and EntityType.Entity.value
fix!: added resource reference for Agent.parent and StreamingDetectIntentRequest.session

PiperOrigin-RevId: 336721089
This commit is contained in:
Google APIs 2020-10-12 12:38:48 -07:00 committed by Copybara-Service
parent 795f0cacce
commit d616167ada
8 changed files with 72 additions and 7 deletions

View File

@ -390,8 +390,8 @@ csharp_grpc_library(
csharp_gapic_library(
name = "dialogflow_csharp_gapic",
srcs = [":dialogflow_proto_with_info"],
grpc_service_config = "dialogflow_grpc_service_config.json",
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "dialogflow_grpc_service_config.json",
deps = [
":dialogflow_csharp_grpc",
":dialogflow_csharp_proto",

View File

@ -264,7 +264,12 @@ message Agent {
// Required. The project of this agent.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`
string parent = 1;
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "cloudresourcemanager.googleapis.com/Project"
}
];
// Required. The name of this agent.
string display_name = 2;

View File

@ -145,6 +145,7 @@ service Documents {
body: "*"
}
};
option (google.api.method_signature) = "name,gcs_source";
option (google.longrunning.operation_info) = {
response_type: "Document"
metadata_type: "KnowledgeOperationMetadata"
@ -289,6 +290,29 @@ message ListDocumentsRequest {
// The next_page_token value returned from a previous list request.
string page_token = 3;
// The filter expression used to filter documents returned by the list method.
// The expression has the following syntax:
//
// <field> <operator> <value> [AND <field> <operator> <value>] ...
//
// The following fields and operators are supported:
//
// * knowledge_types with has(:) operator
// * display_name with has(:) operator
// * state with equals(=) operator
//
// Examples:
//
// * "knowledge_types:FAQ" matches documents with FAQ knowledge type.
// * "display_name:customer" matches documents whose display name contains
// "customer".
// * "state=ACTIVE" matches documents with ACTIVE state.
// * "knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
string filter = 4;
}
// Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].

View File

@ -234,7 +234,7 @@ message EntityType {
//
// * A string that can contain references to other entity types (with or
// without aliases).
string value = 1;
string value = 1 [(google.api.field_behavior) = REQUIRED];
// Required. A collection of value synonyms. For example, if the entity type
// is *vegetable*, and `value` is *scallions*, a synonym could be *green

View File

@ -16,6 +16,7 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;
import "google/api/field_behavior.proto";
import "google/api/annotations.proto";
option cc_enable_arenas = true;

View File

@ -120,6 +120,8 @@ service Intents {
body: "*"
}
};
option (google.api.method_signature) = "parent,intent_batch_uri";
option (google.api.method_signature) = "parent,intent_batch_inline";
option (google.longrunning.operation_info) = {
response_type: "google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse"
metadata_type: "google.protobuf.Struct"

View File

@ -162,6 +162,34 @@ message ListKnowledgeBasesRequest {
// The next_page_token value returned from a previous list request.
string page_token = 3;
// The filter expression used to filter knowledge bases returned by the list
// method. The expression has the following syntax:
//
// <field> <operator> <value> [AND <field> <operator> <value>] ...
//
// The following fields and operators are supported:
//
// * display_name with has(:) operator
// * language_code with equals(=) operator
//
// Examples:
//
// * 'language_code=en-us' matches knowledge bases with en-us language code.
// * 'display_name:articles' matches knowledge bases whose display name
// contains "articles".
// * 'display_name:"Best Articles"' matches knowledge bases whose display
// name contains "Best Articles".
// * 'language_code=en-gb AND display_name=articles' matches all knowledge
// bases whose display name contains "articles" and whose language code is
// "en-gb".
//
// Note: An empty filter string (i.e. "") is a no-op and will result in no
// filtering.
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
string filter = 4;
}
// Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].

View File

@ -487,7 +487,12 @@ message StreamingDetectIntentRequest {
//
// For more information, see the [API interactions
// guide](https://cloud.google.com/dialogflow/docs/api-overview).
string session = 1 [(google.api.field_behavior) = REQUIRED];
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;
@ -511,7 +516,7 @@ message StreamingDetectIntentRequest {
// client should close the stream and start a new request with a new stream as
// needed.
// This setting is ignored when `query_input` is a piece of text or an event.
bool single_utterance = 4;
bool single_utterance = 4 [deprecated = true];
// Instructs the speech synthesizer how to generate the output
// audio. If this field is not set and agent-level speech synthesizer is not
@ -744,9 +749,9 @@ message SentimentAnalysisRequestConfig {
// The result of sentiment analysis. Sentiment analysis inspects user input
// and identifies the prevailing subjective opinion, especially to determine a
// user's attitude as positive, negative, or neutral.
// For [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent], it needs to be configured in
// For [Participants.DetectIntent][], it needs to be configured in
// [DetectIntentRequest.query_params][google.cloud.dialogflow.v2beta1.DetectIntentRequest.query_params]. For
// [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent], it needs to be configured in
// [Participants.StreamingDetectIntent][], it needs to be configured in
// [StreamingDetectIntentRequest.query_params][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.query_params].
// And for [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and
// [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent], it needs to be configured in