Skip to content

Commit

Permalink
docs: update OPTIONAL annotations for some fields (#686)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 333132625

Source-Author: Google APIs <[email protected]>
Source-Date: Tue Sep 22 12:14:18 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 470d84e263c833af5280753b8e4188432b8d5b06
Source-Link: googleapis/googleapis@470d84e
  • Loading branch information
yoshi-automation authored Sep 25, 2020
1 parent f9bb798 commit aa8a61f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down Expand Up @@ -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].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
15 changes: 6 additions & 9 deletions packages/google-cloud-dialogflow/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ export class KnowledgeBasesClient {
* @param {string} request.name
* Required. The name of the knowledge base to delete.
* Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
* @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]
Expand Down Expand Up @@ -799,11 +799,11 @@ export class KnowledgeBasesClient {
* @param {string} request.parent
* Required. The project to list of knowledge bases for.
* Format: `projects/<Project ID>`.
* @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.
Expand Down Expand Up @@ -885,11 +885,11 @@ export class KnowledgeBasesClient {
* @param {string} request.parent
* Required. The project to list of knowledge bases for.
* Format: `projects/<Project ID>`.
* @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}
Expand Down Expand Up @@ -927,11 +927,11 @@ export class KnowledgeBasesClient {
* @param {string} request.parent
* Required. The project to list of knowledge bases for.
* Format: `projects/<Project ID>`.
* @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}
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-dialogflow/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down

0 comments on commit aa8a61f

Please sign in to comment.