Synchronize new proto/yaml changes.
PiperOrigin-RevId: 249058289
This commit is contained in:
parent
64f0053af0
commit
ad24d2f809
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
|
|
@ -35,6 +34,9 @@ option objc_class_prefix = "DF";
|
|||
// Manages documents of a knowledge base.
|
||||
service Documents {
|
||||
// Returns the list of all documents of the knowledge base.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
|
||||
// only use `projects.knowledgeBases.documents`.
|
||||
rpc ListDocuments(ListDocumentsRequest) returns (ListDocumentsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v2beta1/{parent=projects/*/knowledgeBases/*}/documents"
|
||||
|
|
@ -45,6 +47,9 @@ service Documents {
|
|||
}
|
||||
|
||||
// Retrieves the specified document.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
|
||||
// only use `projects.knowledgeBases.documents`.
|
||||
rpc GetDocument(GetDocumentRequest) returns (Document) {
|
||||
option (google.api.http) = {
|
||||
get: "/v2beta1/{name=projects/*/knowledgeBases/*/documents/*}"
|
||||
|
|
@ -56,6 +61,9 @@ service Documents {
|
|||
|
||||
// Creates a new document.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
|
||||
// only use `projects.knowledgeBases.documents`.
|
||||
//
|
||||
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
rpc CreateDocument(CreateDocumentRequest) returns (google.longrunning.Operation) {
|
||||
|
|
@ -71,6 +79,9 @@ service Documents {
|
|||
|
||||
// Deletes the specified document.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
|
||||
// only use `projects.knowledgeBases.documents`.
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
rpc DeleteDocument(DeleteDocumentRequest) returns (google.longrunning.Operation) {
|
||||
|
|
@ -83,6 +94,10 @@ service Documents {
|
|||
}
|
||||
|
||||
// Updates the specified document.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
|
||||
// only use `projects.knowledgeBases.documents`.
|
||||
//
|
||||
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
rpc UpdateDocument(UpdateDocumentRequest) returns (google.longrunning.Operation) {
|
||||
|
|
@ -100,6 +115,10 @@ service Documents {
|
|||
// content. The previously loaded content of the document will be deleted.
|
||||
// Note: Even when the content of the document has not changed, there still
|
||||
// may be side effects because of internal implementation changes.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
|
||||
// only use `projects.knowledgeBases.documents`.
|
||||
//
|
||||
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
rpc ReloadDocument(ReloadDocumentRequest) returns (google.longrunning.Operation) {
|
||||
|
|
@ -116,8 +135,8 @@ service Documents {
|
|||
|
||||
// A document resource.
|
||||
//
|
||||
// Note: resource `projects.agent.knowledgeBases.documents` is deprecated,
|
||||
// please use `projects.knowledgeBases.documents` instead.
|
||||
// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
|
||||
// only use `projects.knowledgeBases.documents`.
|
||||
message Document {
|
||||
// The knowledge type of document content.
|
||||
enum KnowledgeType {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/cloud/dialogflow/v2beta1/context.proto";
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
|
|
@ -569,6 +568,9 @@ message Intent {
|
|||
|
||||
// Telephony Gateway.
|
||||
TELEPHONY = 10;
|
||||
|
||||
// Google Hangouts.
|
||||
GOOGLE_HANGOUTS = 11;
|
||||
}
|
||||
|
||||
// Required. The rich response message.
|
||||
|
|
@ -728,8 +730,8 @@ message Intent {
|
|||
// `Response` field in the Dialogflow console.
|
||||
repeated Message messages = 14;
|
||||
|
||||
// Optional. The list of platforms for which the first response will be
|
||||
// taken from among the messages assigned to the DEFAULT_PLATFORM.
|
||||
// Optional. The list of platforms for which the first responses will be
|
||||
// copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
|
||||
repeated Message.Platform default_response_platforms = 15;
|
||||
|
||||
// Read-only. The unique identifier of the root intent in the chain of
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
|
||||
|
|
@ -35,6 +34,9 @@ option objc_class_prefix = "DF";
|
|||
// Allows users to setup and maintain knowledge bases with their knowledge data.
|
||||
service KnowledgeBases {
|
||||
// Returns the list of all knowledge bases of the specified agent.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
||||
// only use `projects.knowledgeBases`.
|
||||
rpc ListKnowledgeBases(ListKnowledgeBasesRequest) returns (ListKnowledgeBasesResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v2beta1/{parent=projects/*}/knowledgeBases"
|
||||
|
|
@ -45,6 +47,9 @@ service KnowledgeBases {
|
|||
}
|
||||
|
||||
// Retrieves the specified knowledge base.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
||||
// only use `projects.knowledgeBases`.
|
||||
rpc GetKnowledgeBase(GetKnowledgeBaseRequest) returns (KnowledgeBase) {
|
||||
option (google.api.http) = {
|
||||
get: "/v2beta1/{name=projects/*/knowledgeBases/*}"
|
||||
|
|
@ -55,6 +60,9 @@ service KnowledgeBases {
|
|||
}
|
||||
|
||||
// Creates a knowledge base.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
||||
// only use `projects.knowledgeBases`.
|
||||
rpc CreateKnowledgeBase(CreateKnowledgeBaseRequest) returns (KnowledgeBase) {
|
||||
option (google.api.http) = {
|
||||
post: "/v2beta1/{parent=projects/*}/knowledgeBases"
|
||||
|
|
@ -67,6 +75,9 @@ service KnowledgeBases {
|
|||
}
|
||||
|
||||
// Deletes the specified knowledge base.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
||||
// only use `projects.knowledgeBases`.
|
||||
rpc DeleteKnowledgeBase(DeleteKnowledgeBaseRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v2beta1/{name=projects/*/knowledgeBases/*}"
|
||||
|
|
@ -77,6 +88,9 @@ service KnowledgeBases {
|
|||
}
|
||||
|
||||
// Updates the specified knowledge base.
|
||||
//
|
||||
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
||||
// only use `projects.knowledgeBases`.
|
||||
rpc UpdateKnowledgeBase(UpdateKnowledgeBaseRequest) returns (KnowledgeBase) {
|
||||
option (google.api.http) = {
|
||||
patch: "/v2beta1/{knowledge_base.name=projects/*/knowledgeBases/*}"
|
||||
|
|
@ -91,8 +105,8 @@ service KnowledgeBases {
|
|||
|
||||
// Represents knowledge base resource.
|
||||
//
|
||||
// Note: resource `projects.agent.knowledgeBases` is deprecated, please use
|
||||
// `projects.knowledgeBases` instead.
|
||||
// Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
||||
// only use `projects.knowledgeBases`.
|
||||
message KnowledgeBase {
|
||||
// The knowledge base resource name.
|
||||
// The name must be empty when creating a knowledge base.
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/cloud/dialogflow/v2beta1/agent.proto";
|
||||
import "google/cloud/dialogflow/v2beta1/audio_config.proto";
|
||||
import "google/cloud/dialogflow/v2beta1/context.proto";
|
||||
|
|
@ -202,12 +201,14 @@ message QueryInput {
|
|||
// Represents the result of conversational query or event processing.
|
||||
message QueryResult {
|
||||
// The original conversational query text:
|
||||
//
|
||||
// - If natural language text was provided as input, `query_text` contains
|
||||
// a copy of the input.
|
||||
// - If natural language speech audio was provided as input, `query_text`
|
||||
// contains the speech recognition result. If speech recognizer produced
|
||||
// multiple alternatives, a particular one is picked.
|
||||
// - If an event was provided as input, `query_text` is not set.
|
||||
// - If automatic spell correction is enabled, `query_text` will contain the
|
||||
// corrected user input.
|
||||
string query_text = 1;
|
||||
|
||||
// The language that was triggered during intent detection.
|
||||
|
|
@ -234,6 +235,7 @@ message QueryResult {
|
|||
google.protobuf.Struct parameters = 4;
|
||||
|
||||
// This field is set to:
|
||||
//
|
||||
// - `false` if the matched intent has required parameters and not all of
|
||||
// the required parameter values have been collected.
|
||||
// - `true` if all required parameter values have been collected, or if the
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ syntax = "proto3";
|
|||
package google.cloud.dialogflow.v2beta1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/resource.proto";
|
||||
import "google/cloud/dialogflow/v2beta1/entity_type.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
|
|
|
|||
Loading…
Reference in New Issue