diff --git a/protos/google/cloud/dialogflow/v2/audio_config.proto b/protos/google/cloud/dialogflow/v2/audio_config.proto index 6ba9c084..53803f51 100644 --- a/protos/google/cloud/dialogflow/v2/audio_config.proto +++ b/protos/google/cloud/dialogflow/v2/audio_config.proto @@ -29,6 +29,36 @@ option java_outer_classname = "AudioConfigProto"; option java_package = "com.google.cloud.dialogflow.v2"; option objc_class_prefix = "DF"; +// Hints for the speech recognizer to help with recognition in a specific +// conversation state. +message SpeechContext { + // Optional. A list of strings containing words and phrases that the speech + // recognizer should recognize with higher likelihood. + // + // This list can be used to: + // + // * improve accuracy for words and phrases you expect the user to say, + // e.g. typical commands for your Dialogflow agent + // * add additional words to the speech recognizer vocabulary + // * ... + // + // See the [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/quotas) for usage + // limits. + repeated string phrases = 1; + + // Optional. Boost for this context compared to other contexts: + // + // * If the boost is positive, Dialogflow will increase the probability that + // the phrases in this context are recognized over similar sounding phrases. + // * If the boost is unspecified or non-positive, Dialogflow will not apply + // any boost. + // + // Dialogflow recommends that you use boosts in the range (0, 20] and that you + // find a value that fits your use case with binary search. + float boost = 2; +} + // Audio encoding of the audio content sent in the conversational query request. // Refer to the // [Cloud Speech API @@ -78,36 +108,6 @@ enum AudioEncoding { AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; } -// Hints for the speech recognizer to help with recognition in a specific -// conversation state. -message SpeechContext { - // Optional. A list of strings containing words and phrases that the speech - // recognizer should recognize with higher likelihood. - // - // This list can be used to: - // - // * improve accuracy for words and phrases you expect the user to say, - // e.g. typical commands for your Dialogflow agent - // * add additional words to the speech recognizer vocabulary - // * ... - // - // See the [Cloud Speech - // documentation](https://cloud.google.com/speech-to-text/quotas) for usage - // limits. - repeated string phrases = 1; - - // Optional. Boost for this context compared to other contexts: - // - // * If the boost is positive, Dialogflow will increase the probability that - // the phrases in this context are recognized over similar sounding phrases. - // * If the boost is unspecified or non-positive, Dialogflow will not apply - // any boost. - // - // Dialogflow recommends that you use boosts in the range (0, 20] and that you - // find a value that fits your use case with binary search. - float boost = 2; -} - // Information for a word recognized by the speech recognizer. message SpeechWordInfo { // The word this info is for. diff --git a/protos/google/cloud/dialogflow/v2/environment.proto b/protos/google/cloud/dialogflow/v2/environment.proto index 45c0ff0f..a25e7050 100644 --- a/protos/google/cloud/dialogflow/v2/environment.proto +++ b/protos/google/cloud/dialogflow/v2/environment.proto @@ -41,7 +41,7 @@ service Environments { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/dialogflow"; - // Returns the list of all non-draft environments of the specified agent. + // Returns the list of all non-default environments of the specified agent. rpc ListEnvironments(ListEnvironmentsRequest) returns (ListEnvironmentsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/agent}/environments" @@ -79,13 +79,13 @@ service Environments { // This method allows you to deploy new agent versions into the environment. // When an environment is pointed to a new agent version by setting // `environment.agent_version`, the environment is temporarily set to the - // `LOADING` state. During that time, the environment keeps on serving the + // `LOADING` state. During that time, the environment continues serving the // previous version of the agent. After the new agent version is done loading, // the environment is set back to the `RUNNING` state. - // You can use "-" as Environment ID in environment name to update version - // in "draft" environment. WARNING: this will negate all recent changes to - // draft and can't be undone. You may want to save the draft to a version - // before calling this function. + // You can use "-" as Environment ID in environment name to update an agent + // version in the default environment. WARNING: this will negate all recent + // changes to the draft agent and can't be undone. You may want to save the + // draft agent to a version before calling this method. rpc UpdateEnvironment(UpdateEnvironmentRequest) returns (Environment) { option (google.api.http) = { patch: "/v2/{environment.name=projects/*/agent/environments/*}" @@ -164,17 +164,21 @@ message Environment { // Output only. The unique identifier of this agent environment. // Supported formats: + // // - `projects//agent/environments/` // - `projects//locations//agent/environments/` + // + // The environment ID for the default environment is `-`. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The developer-provided description for this environment. // The maximum length is 500 characters. If exceeded, the request is rejected. string description = 2 [(google.api.field_behavior) = OPTIONAL]; - // Required. The agent version loaded into this environment. + // Optional. The agent version loaded into this environment. // Supported formats: + // // - `projects//agent/versions/` // - `projects//locations//agent/versions/` @@ -226,6 +230,7 @@ message TextToSpeechSettings { message ListEnvironmentsRequest { // Required. The agent to list all environments from. // Format: + // // - `projects//agent` // - `projects//locations//agent` string parent = 1 [ @@ -258,9 +263,12 @@ message ListEnvironmentsResponse { message GetEnvironmentRequest { // Required. The name of the environment. // Supported formats: + // // - `projects//agent/environments/` // - `projects//locations//agent/environments/` + // + // The environment ID for the default environment is `-`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -273,6 +281,7 @@ message GetEnvironmentRequest { message CreateEnvironmentRequest { // Required. The agent to create an environment for. // Supported formats: + // // - `projects//agent` // - `projects//locations//agent` string parent = 1 [ @@ -297,10 +306,10 @@ message UpdateEnvironmentRequest { // Required. The mask to control which fields get updated. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. This field is used to prevent accidental overwrite of the draft + // Optional. This field is used to prevent accidental overwrite of the default // environment, which is an operation that cannot be undone. To confirm that // the caller desires this overwrite, this field must be explicitly set to - // true when updating the draft environment (environment ID = `-`). + // true when updating the default environment (environment ID = `-`). bool allow_load_to_draft_and_discard_changes = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -308,9 +317,12 @@ message UpdateEnvironmentRequest { message DeleteEnvironmentRequest { // Required. The name of the environment to delete. // / Format: + // // - `projects//agent/environments/` // - `projects//locations//agent/environments/` + // ID>/agent/environments/` + // + // The environment ID for the default environment is `-`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -323,9 +335,12 @@ message DeleteEnvironmentRequest { message GetEnvironmentHistoryRequest { // Required. The name of the environment to retrieve history for. // Supported formats: + // // - `projects//agent/environments/` // - `projects//locations//agent/environments/` + // + // The environment ID for the default environment is `-`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -357,9 +372,12 @@ message EnvironmentHistory { // Output only. The name of the environment this history is for. // Supported formats: + // // - `projects//agent/environments/` // - `projects//locations//agent/environments/` + // + // The environment ID for the default environment is `-`. string parent = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The list of agent environments. There will be a maximum number of items diff --git a/protos/google/cloud/dialogflow/v2/session.proto b/protos/google/cloud/dialogflow/v2/session.proto index 2398811a..b4290f33 100644 --- a/protos/google/cloud/dialogflow/v2/session.proto +++ b/protos/google/cloud/dialogflow/v2/session.proto @@ -584,6 +584,9 @@ message StreamingRecognitionResult { // Time offset of the end of this Speech recognition result relative to the // beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. google.protobuf.Duration speech_end_offset = 8; + + // Detected language code for the transcript. + string language_code = 10; } // Represents the natural language text to be processed. diff --git a/protos/google/cloud/dialogflow/v2/version.proto b/protos/google/cloud/dialogflow/v2/version.proto index 9dd2bb2b..8e8c0011 100644 --- a/protos/google/cloud/dialogflow/v2/version.proto +++ b/protos/google/cloud/dialogflow/v2/version.proto @@ -147,6 +147,7 @@ message Version { // Output only. The unique identifier of this agent version. // Supported formats: + // // - `projects//agent/versions/` // - `projects//locations//agent/versions/` @@ -172,6 +173,7 @@ message Version { message ListVersionsRequest { // Required. The agent to list all versions from. // Supported formats: + // // - `projects//agent` // - `projects//locations//agent` string parent = 1 [ @@ -204,6 +206,7 @@ message ListVersionsResponse { message GetVersionRequest { // Required. The name of the version. // Supported formats: + // // - `projects//agent/versions/` // - `projects//locations//agent/versions/` @@ -219,6 +222,7 @@ message GetVersionRequest { message CreateVersionRequest { // Required. The agent to create a version for. // Supported formats: + // // - `projects//agent` // - `projects//locations//agent` string parent = 1 [ @@ -236,6 +240,7 @@ message CreateVersionRequest { message UpdateVersionRequest { // Required. The version to update. // Supported formats: + // // - `projects//agent/versions/` // - `projects//locations//agent/versions/` @@ -249,6 +254,7 @@ message UpdateVersionRequest { message DeleteVersionRequest { // Required. The name of the version to delete. // Supported formats: + // // - `projects//agent/versions/` // - `projects//locations//agent/versions/` diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 6ec763a0..428d6df6 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -4908,18 +4908,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** AudioEncoding enum. */ - enum AudioEncoding { - AUDIO_ENCODING_UNSPECIFIED = 0, - AUDIO_ENCODING_LINEAR_16 = 1, - AUDIO_ENCODING_FLAC = 2, - AUDIO_ENCODING_MULAW = 3, - AUDIO_ENCODING_AMR = 4, - AUDIO_ENCODING_AMR_WB = 5, - AUDIO_ENCODING_OGG_OPUS = 6, - AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 - } - /** Properties of a SpeechContext. */ interface ISpeechContext { @@ -5016,6 +5004,18 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** AudioEncoding enum. */ + enum AudioEncoding { + AUDIO_ENCODING_UNSPECIFIED = 0, + AUDIO_ENCODING_LINEAR_16 = 1, + AUDIO_ENCODING_FLAC = 2, + AUDIO_ENCODING_MULAW = 3, + AUDIO_ENCODING_AMR = 4, + AUDIO_ENCODING_AMR_WB = 5, + AUDIO_ENCODING_OGG_OPUS = 6, + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 + } + /** Properties of a SpeechWordInfo. */ interface ISpeechWordInfo { @@ -6679,6 +6679,9 @@ export namespace google { /** StreamingRecognitionResult speechEndOffset */ speechEndOffset?: (google.protobuf.IDuration|null); + + /** StreamingRecognitionResult languageCode */ + languageCode?: (string|null); } /** Represents a StreamingRecognitionResult. */ @@ -6708,6 +6711,9 @@ export namespace google { /** StreamingRecognitionResult speechEndOffset. */ public speechEndOffset?: (google.protobuf.IDuration|null); + /** StreamingRecognitionResult languageCode. */ + public languageCode: string; + /** * Creates a new StreamingRecognitionResult instance using the specified properties. * @param [properties] Properties to set diff --git a/protos/protos.js b/protos/protos.js index 2773ef4f..fe5ade12 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -11697,32 +11697,6 @@ return MessageAnnotation; })(); - /** - * AudioEncoding enum. - * @name google.cloud.dialogflow.v2.AudioEncoding - * @enum {number} - * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value - * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value - * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value - * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value - * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value - * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value - * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value - * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value - */ - v2.AudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; - values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; - values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; - values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; - values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; - values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; - return values; - })(); - v2.SpeechContext = (function() { /** @@ -11949,6 +11923,32 @@ return SpeechContext; })(); + /** + * AudioEncoding enum. + * @name google.cloud.dialogflow.v2.AudioEncoding + * @enum {number} + * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value + * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value + * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value + * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value + * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value + * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value + * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value + * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value + */ + v2.AudioEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; + values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; + values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; + values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; + values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; + values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; + return values; + })(); + v2.SpeechWordInfo = (function() { /** @@ -16492,6 +16492,7 @@ * @property {number|null} [confidence] StreamingRecognitionResult confidence * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset + * @property {string|null} [languageCode] StreamingRecognitionResult languageCode */ /** @@ -16558,6 +16559,14 @@ */ StreamingRecognitionResult.prototype.speechEndOffset = null; + /** + * StreamingRecognitionResult languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.v2.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.languageCode = ""; + /** * Creates a new StreamingRecognitionResult instance using the specified properties. * @function create @@ -16595,6 +16604,8 @@ $root.google.cloud.dialogflow.v2.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.languageCode); return writer; }; @@ -16649,6 +16660,9 @@ case 8: message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; + case 10: + message.languageCode = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -16716,6 +16730,9 @@ if (error) return "speechEndOffset." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; @@ -16766,6 +16783,8 @@ throw TypeError(".google.cloud.dialogflow.v2.StreamingRecognitionResult.speechEndOffset: object expected"); message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; @@ -16790,6 +16809,7 @@ object.isFinal = false; object.confidence = 0; object.speechEndOffset = null; + object.languageCode = ""; } if (message.messageType != null && message.hasOwnProperty("messageType")) object.messageType = options.enums === String ? $root.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; @@ -16806,6 +16826,8 @@ } if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; diff --git a/protos/protos.json b/protos/protos.json index e131f318..05024529 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -1576,18 +1576,6 @@ } } }, - "AudioEncoding": { - "values": { - "AUDIO_ENCODING_UNSPECIFIED": 0, - "AUDIO_ENCODING_LINEAR_16": 1, - "AUDIO_ENCODING_FLAC": 2, - "AUDIO_ENCODING_MULAW": 3, - "AUDIO_ENCODING_AMR": 4, - "AUDIO_ENCODING_AMR_WB": 5, - "AUDIO_ENCODING_OGG_OPUS": 6, - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": 7 - } - }, "SpeechContext": { "fields": { "phrases": { @@ -1601,6 +1589,18 @@ } } }, + "AudioEncoding": { + "values": { + "AUDIO_ENCODING_UNSPECIFIED": 0, + "AUDIO_ENCODING_LINEAR_16": 1, + "AUDIO_ENCODING_FLAC": 2, + "AUDIO_ENCODING_MULAW": 3, + "AUDIO_ENCODING_AMR": 4, + "AUDIO_ENCODING_AMR_WB": 5, + "AUDIO_ENCODING_OGG_OPUS": 6, + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": 7 + } + }, "SpeechWordInfo": { "fields": { "word": { @@ -2102,6 +2102,10 @@ "speechEndOffset": { "type": "google.protobuf.Duration", "id": 8 + }, + "languageCode": { + "type": "string", + "id": 10 } }, "nested": { diff --git a/src/v2/environments_client.ts b/src/v2/environments_client.ts index 1c37f1f0..9d1fbd5f 100644 --- a/src/v2/environments_client.ts +++ b/src/v2/environments_client.ts @@ -478,9 +478,12 @@ export class EnvironmentsClient { * @param {string} request.name * Required. The name of the environment. * Supported formats: + * * - `projects//agent/environments/` * - `projects//locations//agent/environments/` + * + * The environment ID for the default environment is `-`. * @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. @@ -573,6 +576,7 @@ export class EnvironmentsClient { * @param {string} request.parent * Required. The agent to create an environment for. * Supported formats: + * * - `projects//agent` * - `projects//locations//agent` * @param {google.cloud.dialogflow.v2.Environment} request.environment @@ -669,13 +673,13 @@ export class EnvironmentsClient { * This method allows you to deploy new agent versions into the environment. * When an environment is pointed to a new agent version by setting * `environment.agent_version`, the environment is temporarily set to the - * `LOADING` state. During that time, the environment keeps on serving the + * `LOADING` state. During that time, the environment continues serving the * previous version of the agent. After the new agent version is done loading, * the environment is set back to the `RUNNING` state. - * You can use "-" as Environment ID in environment name to update version - * in "draft" environment. WARNING: this will negate all recent changes to - * draft and can't be undone. You may want to save the draft to a version - * before calling this function. + * You can use "-" as Environment ID in environment name to update an agent + * version in the default environment. WARNING: this will negate all recent + * changes to the draft agent and can't be undone. You may want to save the + * draft agent to a version before calling this method. * * @param {Object} request * The request object that will be sent. @@ -684,10 +688,10 @@ export class EnvironmentsClient { * @param {google.protobuf.FieldMask} request.updateMask * Required. The mask to control which fields get updated. * @param {boolean} [request.allowLoadToDraftAndDiscardChanges] - * Optional. This field is used to prevent accidental overwrite of the draft + * Optional. This field is used to prevent accidental overwrite of the default * environment, which is an operation that cannot be undone. To confirm that * the caller desires this overwrite, this field must be explicitly set to - * true when updating the draft environment (environment ID = `-`). + * true when updating the default environment (environment ID = `-`). * @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. @@ -780,9 +784,12 @@ export class EnvironmentsClient { * @param {string} request.name * Required. The name of the environment to delete. * / Format: + * * - `projects//agent/environments/` * - `projects//locations//agent/environments/` + * ID>/agent/environments/` + * + * The environment ID for the default environment is `-`. * @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. @@ -869,13 +876,14 @@ export class EnvironmentsClient { > ): void; /** - * Returns the list of all non-draft environments of the specified agent. + * Returns the list of all non-default environments of the specified agent. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The agent to list all environments from. * Format: + * * - `projects//agent` * - `projects//locations//agent` * @param {number} [request.pageSize] @@ -947,6 +955,7 @@ export class EnvironmentsClient { * @param {string} request.parent * Required. The agent to list all environments from. * Format: + * * - `projects//agent` * - `projects//locations//agent` * @param {number} [request.pageSize] @@ -996,6 +1005,7 @@ export class EnvironmentsClient { * @param {string} request.parent * Required. The agent to list all environments from. * Format: + * * - `projects//agent` * - `projects//locations//agent` * @param {number} [request.pageSize] @@ -1075,9 +1085,12 @@ export class EnvironmentsClient { * @param {string} request.parent * Required. The name of the environment to retrieve history for. * Supported formats: + * * - `projects//agent/environments/` * - `projects//locations//agent/environments/` + * + * The environment ID for the default environment is `-`. * @param {number} [request.pageSize] * Optional. The maximum number of items to return in a single page. By default 100 and * at most 1000. @@ -1145,9 +1158,12 @@ export class EnvironmentsClient { * @param {string} request.parent * Required. The name of the environment to retrieve history for. * Supported formats: + * * - `projects//agent/environments/` * - `projects//locations//agent/environments/` + * + * The environment ID for the default environment is `-`. * @param {number} [request.pageSize] * Optional. The maximum number of items to return in a single page. By default 100 and * at most 1000. @@ -1195,9 +1211,12 @@ export class EnvironmentsClient { * @param {string} request.parent * Required. The name of the environment to retrieve history for. * Supported formats: + * * - `projects//agent/environments/` * - `projects//locations//agent/environments/` + * + * The environment ID for the default environment is `-`. * @param {number} [request.pageSize] * Optional. The maximum number of items to return in a single page. By default 100 and * at most 1000. diff --git a/src/v2/versions_client.ts b/src/v2/versions_client.ts index d7c1528b..7822e5c3 100644 --- a/src/v2/versions_client.ts +++ b/src/v2/versions_client.ts @@ -468,6 +468,7 @@ export class VersionsClient { * @param {string} request.name * Required. The name of the version. * Supported formats: + * * - `projects//agent/versions/` * - `projects//locations//agent/versions/` @@ -563,6 +564,7 @@ export class VersionsClient { * @param {string} request.parent * Required. The agent to create a version for. * Supported formats: + * * - `projects//agent` * - `projects//locations//agent` * @param {google.cloud.dialogflow.v2.Version} request.version @@ -663,6 +665,7 @@ export class VersionsClient { * @param {google.cloud.dialogflow.v2.Version} request.version * Required. The version to update. * Supported formats: + * * - `projects//agent/versions/` * - `projects//locations//agent/versions/` @@ -760,6 +763,7 @@ export class VersionsClient { * @param {string} request.name * Required. The name of the version to delete. * Supported formats: + * * - `projects//agent/versions/` * - `projects//locations//agent/versions/` @@ -856,6 +860,7 @@ export class VersionsClient { * @param {string} request.parent * Required. The agent to list all versions from. * Supported formats: + * * - `projects//agent` * - `projects//locations//agent` * @param {number} [request.pageSize] @@ -927,6 +932,7 @@ export class VersionsClient { * @param {string} request.parent * Required. The agent to list all versions from. * Supported formats: + * * - `projects//agent` * - `projects//locations//agent` * @param {number} [request.pageSize] @@ -976,6 +982,7 @@ export class VersionsClient { * @param {string} request.parent * Required. The agent to list all versions from. * Supported formats: + * * - `projects//agent` * - `projects//locations//agent` * @param {number} [request.pageSize]