diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto index 71e72dcc5a3..09b5c61c082 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -156,12 +156,12 @@ message ListKnowledgeBasesRequest { } ]; - // Optional. The maximum number of items to return in a single page. By + // The maximum number of items to return in a single page. By // default 10 and at most 100. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + int32 page_size = 2; - // Optional. The next_page_token value returned from a previous list request. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + // The next_page_token value returned from a previous list request. + string page_token = 3; } // Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. @@ -214,7 +214,7 @@ message DeleteKnowledgeBaseRequest { // Optional. Force deletes the knowledge base. When set to true, any documents // in the knowledge base are also deleted. - bool force = 2; + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for [KnowledgeBases.UpdateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBase]. diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto index 2505b6760fd..d38a362ecdd 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto @@ -23,6 +23,7 @@ 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"; +import "google/cloud/dialogflow/v2beta1/gcs.proto"; import "google/cloud/dialogflow/v2beta1/intent.proto"; import "google/cloud/dialogflow/v2beta1/session_entity_type.proto"; import "google/protobuf/duration.proto"; diff --git a/packages/google-cloud-dialogflow/protos/protos.json b/packages/google-cloud-dialogflow/protos/protos.json index 525fa09f4dc..1b37a49e38c 100644 --- a/packages/google-cloud-dialogflow/protos/protos.json +++ b/packages/google-cloud-dialogflow/protos/protos.json @@ -6666,17 +6666,11 @@ }, "pageSize": { "type": "int32", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 2 }, "pageToken": { "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 3 } } }, @@ -6736,7 +6730,10 @@ }, "force": { "type": "bool", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, diff --git a/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.ts b/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.ts index 8791d2acd5f..465375c0e14 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.ts +++ b/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.ts @@ -599,7 +599,7 @@ export class KnowledgeBasesClient { * @param {string} request.name * Required. The name of the knowledge base to delete. * Format: `projects//knowledgeBases/`. - * @param {boolean} request.force + * @param {boolean} [request.force] * Optional. Force deletes the knowledge base. When set to true, any documents * in the knowledge base are also deleted. * @param {object} [options] @@ -799,11 +799,11 @@ export class KnowledgeBasesClient { * @param {string} request.parent * Required. The project to list of knowledge bases for. * Format: `projects/`. - * @param {number} [request.pageSize] - * Optional. The maximum number of items to return in a single page. By + * @param {number} request.pageSize + * The maximum number of items to return in a single page. By * default 10 and at most 100. - * @param {string} [request.pageToken] - * Optional. The next_page_token value returned from a previous list request. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -885,11 +885,11 @@ export class KnowledgeBasesClient { * @param {string} request.parent * Required. The project to list of knowledge bases for. * Format: `projects/`. - * @param {number} [request.pageSize] - * Optional. The maximum number of items to return in a single page. By + * @param {number} request.pageSize + * The maximum number of items to return in a single page. By * default 10 and at most 100. - * @param {string} [request.pageToken] - * Optional. The next_page_token value returned from a previous list request. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -927,11 +927,11 @@ export class KnowledgeBasesClient { * @param {string} request.parent * Required. The project to list of knowledge bases for. * Format: `projects/`. - * @param {number} [request.pageSize] - * Optional. The maximum number of items to return in a single page. By + * @param {number} request.pageSize + * The maximum number of items to return in a single page. By * default 10 and at most 100. - * @param {string} [request.pageToken] - * Optional. The next_page_token value returned from a previous list request. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-dialogflow/synth.metadata b/packages/google-cloud-dialogflow/synth.metadata index 805e3019d8a..5b2d40ad04c 100644 --- a/packages/google-cloud-dialogflow/synth.metadata +++ b/packages/google-cloud-dialogflow/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-dialogflow.git", - "sha": "3cba5aa9f4cf11f586b114c2a03757a3f7409dcf" + "sha": "fc7565994a009a64c703b3da2a36a0e946e96a0f" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "791be5a40033c18034afed50232daad6bdc8cf3e", - "internalRef": "331627223" + "sha": "470d84e263c833af5280753b8e4188432b8d5b06", + "internalRef": "333132625" } }, {