From 9e1ace054db0d732d520fd70d7230c129a4501f8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Apr 2021 14:51:52 -0700 Subject: [PATCH] fix!: remove unused proto InputText, InputAudio (#796) Committer: @sheimi PiperOrigin-RevId: 367294563 Source-Author: Google APIs Source-Date: Wed Apr 7 14:09:22 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 05958a4be99ee175858e14dbba580faa18079b07 Source-Link: https://github.com/googleapis/googleapis/commit/05958a4be99ee175858e14dbba580faa18079b07 Co-authored-by: Benjamin E. Coe --- .../dialogflow/v2beta1/participant.proto | 23 - .../protos/protos.d.ts | 192 -------- .../google-cloud-dialogflow/protos/protos.js | 434 ------------------ .../protos/protos.json | 24 - .../google-cloud-dialogflow/synth.metadata | 4 +- 5 files changed, 2 insertions(+), 675 deletions(-) diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto index 731b98d9bd9..39d0384ea70 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto @@ -373,29 +373,6 @@ message UpdateParticipantRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Represents the natural language text to be processed. -message InputText { - // Required. The UTF-8 encoded natural language text to be processed. - // Text length must not exceed 256 bytes. - string text = 1; - - // Required. The language of this conversational query. See [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/language) - // for a list of the currently supported language codes. - string language_code = 2; -} - -// Represents the natural language speech audio to be processed. -message InputAudio { - // Required. Instructs the speech recognizer how to process the speech audio. - InputAudioConfig config = 1; - - // Required. The natural language speech audio to be processed. - // A single request can contain up to 1 minute of speech audio data. - // The transcribed text cannot contain more than 256 bytes. - bytes audio = 2; -} - // Represents the natural language speech audio to be played to the end user. message OutputAudio { // Required. Instructs the speech synthesizer how to generate the speech diff --git a/packages/google-cloud-dialogflow/protos/protos.d.ts b/packages/google-cloud-dialogflow/protos/protos.d.ts index ac9911cc146..8b4299a4590 100644 --- a/packages/google-cloud-dialogflow/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow/protos/protos.d.ts @@ -27157,198 +27157,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of an InputText. */ - interface IInputText { - - /** InputText text */ - text?: (string|null); - - /** InputText languageCode */ - languageCode?: (string|null); - } - - /** Represents an InputText. */ - class InputText implements IInputText { - - /** - * Constructs a new InputText. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.v2beta1.IInputText); - - /** InputText text. */ - public text: string; - - /** InputText languageCode. */ - public languageCode: string; - - /** - * Creates a new InputText instance using the specified properties. - * @param [properties] Properties to set - * @returns InputText instance - */ - public static create(properties?: google.cloud.dialogflow.v2beta1.IInputText): google.cloud.dialogflow.v2beta1.InputText; - - /** - * Encodes the specified InputText message. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputText.verify|verify} messages. - * @param message InputText message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.v2beta1.IInputText, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InputText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputText.verify|verify} messages. - * @param message InputText message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.v2beta1.IInputText, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputText message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.v2beta1.InputText; - - /** - * Decodes an InputText message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.v2beta1.InputText; - - /** - * Verifies an InputText message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InputText message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputText - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.v2beta1.InputText; - - /** - * Creates a plain object from an InputText message. Also converts values to other types if specified. - * @param message InputText - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.v2beta1.InputText, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InputText to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an InputAudio. */ - interface IInputAudio { - - /** InputAudio config */ - config?: (google.cloud.dialogflow.v2beta1.IInputAudioConfig|null); - - /** InputAudio audio */ - audio?: (Uint8Array|string|null); - } - - /** Represents an InputAudio. */ - class InputAudio implements IInputAudio { - - /** - * Constructs a new InputAudio. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.v2beta1.IInputAudio); - - /** InputAudio config. */ - public config?: (google.cloud.dialogflow.v2beta1.IInputAudioConfig|null); - - /** InputAudio audio. */ - public audio: (Uint8Array|string); - - /** - * Creates a new InputAudio instance using the specified properties. - * @param [properties] Properties to set - * @returns InputAudio instance - */ - public static create(properties?: google.cloud.dialogflow.v2beta1.IInputAudio): google.cloud.dialogflow.v2beta1.InputAudio; - - /** - * Encodes the specified InputAudio message. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputAudio.verify|verify} messages. - * @param message InputAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.v2beta1.IInputAudio, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InputAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputAudio.verify|verify} messages. - * @param message InputAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.v2beta1.IInputAudio, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputAudio message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.v2beta1.InputAudio; - - /** - * Decodes an InputAudio message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.v2beta1.InputAudio; - - /** - * Verifies an InputAudio message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InputAudio message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputAudio - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.v2beta1.InputAudio; - - /** - * Creates a plain object from an InputAudio message. Also converts values to other types if specified. - * @param message InputAudio - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.v2beta1.InputAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InputAudio to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of an OutputAudio. */ interface IOutputAudio { diff --git a/packages/google-cloud-dialogflow/protos/protos.js b/packages/google-cloud-dialogflow/protos/protos.js index 4afbdf76f31..e0922a1d926 100644 --- a/packages/google-cloud-dialogflow/protos/protos.js +++ b/packages/google-cloud-dialogflow/protos/protos.js @@ -64685,440 +64685,6 @@ return UpdateParticipantRequest; })(); - v2beta1.InputText = (function() { - - /** - * Properties of an InputText. - * @memberof google.cloud.dialogflow.v2beta1 - * @interface IInputText - * @property {string|null} [text] InputText text - * @property {string|null} [languageCode] InputText languageCode - */ - - /** - * Constructs a new InputText. - * @memberof google.cloud.dialogflow.v2beta1 - * @classdesc Represents an InputText. - * @implements IInputText - * @constructor - * @param {google.cloud.dialogflow.v2beta1.IInputText=} [properties] Properties to set - */ - function InputText(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InputText text. - * @member {string} text - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @instance - */ - InputText.prototype.text = ""; - - /** - * InputText languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @instance - */ - InputText.prototype.languageCode = ""; - - /** - * Creates a new InputText instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {google.cloud.dialogflow.v2beta1.IInputText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.v2beta1.InputText} InputText instance - */ - InputText.create = function create(properties) { - return new InputText(properties); - }; - - /** - * Encodes the specified InputText message. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputText.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {google.cloud.dialogflow.v2beta1.IInputText} message InputText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputText.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - return writer; - }; - - /** - * Encodes the specified InputText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputText.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {google.cloud.dialogflow.v2beta1.IInputText} message InputText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputText.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputText message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.v2beta1.InputText} InputText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputText.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.v2beta1.InputText(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - case 2: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InputText message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.v2beta1.InputText} InputText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputText.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InputText message. - * @function verify - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputText.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; - - /** - * Creates an InputText message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.v2beta1.InputText} InputText - */ - InputText.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.v2beta1.InputText) - return object; - var message = new $root.google.cloud.dialogflow.v2beta1.InputText(); - if (object.text != null) - message.text = String(object.text); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; - - /** - * Creates a plain object from an InputText message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @static - * @param {google.cloud.dialogflow.v2beta1.InputText} message InputText - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InputText.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.text = ""; - object.languageCode = ""; - } - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; - - /** - * Converts this InputText to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.v2beta1.InputText - * @instance - * @returns {Object.} JSON object - */ - InputText.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InputText; - })(); - - v2beta1.InputAudio = (function() { - - /** - * Properties of an InputAudio. - * @memberof google.cloud.dialogflow.v2beta1 - * @interface IInputAudio - * @property {google.cloud.dialogflow.v2beta1.IInputAudioConfig|null} [config] InputAudio config - * @property {Uint8Array|null} [audio] InputAudio audio - */ - - /** - * Constructs a new InputAudio. - * @memberof google.cloud.dialogflow.v2beta1 - * @classdesc Represents an InputAudio. - * @implements IInputAudio - * @constructor - * @param {google.cloud.dialogflow.v2beta1.IInputAudio=} [properties] Properties to set - */ - function InputAudio(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InputAudio config. - * @member {google.cloud.dialogflow.v2beta1.IInputAudioConfig|null|undefined} config - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @instance - */ - InputAudio.prototype.config = null; - - /** - * InputAudio audio. - * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @instance - */ - InputAudio.prototype.audio = $util.newBuffer([]); - - /** - * Creates a new InputAudio instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {google.cloud.dialogflow.v2beta1.IInputAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.v2beta1.InputAudio} InputAudio instance - */ - InputAudio.create = function create(properties) { - return new InputAudio(properties); - }; - - /** - * Encodes the specified InputAudio message. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputAudio.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {google.cloud.dialogflow.v2beta1.IInputAudio} message InputAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputAudio.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.cloud.dialogflow.v2beta1.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); - return writer; - }; - - /** - * Encodes the specified InputAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.v2beta1.InputAudio.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {google.cloud.dialogflow.v2beta1.IInputAudio} message InputAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputAudio.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputAudio message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.v2beta1.InputAudio} InputAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputAudio.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.v2beta1.InputAudio(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.config = $root.google.cloud.dialogflow.v2beta1.InputAudioConfig.decode(reader, reader.uint32()); - break; - case 2: - message.audio = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InputAudio message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.v2beta1.InputAudio} InputAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputAudio.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InputAudio message. - * @function verify - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputAudio.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.config != null && message.hasOwnProperty("config")) { - var error = $root.google.cloud.dialogflow.v2beta1.InputAudioConfig.verify(message.config); - if (error) - return "config." + error; - } - if (message.audio != null && message.hasOwnProperty("audio")) - if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) - return "audio: buffer expected"; - return null; - }; - - /** - * Creates an InputAudio message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.v2beta1.InputAudio} InputAudio - */ - InputAudio.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.v2beta1.InputAudio) - return object; - var message = new $root.google.cloud.dialogflow.v2beta1.InputAudio(); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.cloud.dialogflow.v2beta1.InputAudio.config: object expected"); - message.config = $root.google.cloud.dialogflow.v2beta1.InputAudioConfig.fromObject(object.config); - } - if (object.audio != null) - if (typeof object.audio === "string") - $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); - else if (object.audio.length) - message.audio = object.audio; - return message; - }; - - /** - * Creates a plain object from an InputAudio message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @static - * @param {google.cloud.dialogflow.v2beta1.InputAudio} message InputAudio - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InputAudio.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.config = null; - if (options.bytes === String) - object.audio = ""; - else { - object.audio = []; - if (options.bytes !== Array) - object.audio = $util.newBuffer(object.audio); - } - } - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.cloud.dialogflow.v2beta1.InputAudioConfig.toObject(message.config, options); - if (message.audio != null && message.hasOwnProperty("audio")) - object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; - return object; - }; - - /** - * Converts this InputAudio to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.v2beta1.InputAudio - * @instance - * @returns {Object.} JSON object - */ - InputAudio.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InputAudio; - })(); - v2beta1.OutputAudio = (function() { /** diff --git a/packages/google-cloud-dialogflow/protos/protos.json b/packages/google-cloud-dialogflow/protos/protos.json index a04018c4b8c..d374a56ac0a 100644 --- a/packages/google-cloud-dialogflow/protos/protos.json +++ b/packages/google-cloud-dialogflow/protos/protos.json @@ -8567,30 +8567,6 @@ } } }, - "InputText": { - "fields": { - "text": { - "type": "string", - "id": 1 - }, - "languageCode": { - "type": "string", - "id": 2 - } - } - }, - "InputAudio": { - "fields": { - "config": { - "type": "InputAudioConfig", - "id": 1 - }, - "audio": { - "type": "bytes", - "id": 2 - } - } - }, "OutputAudio": { "fields": { "config": { diff --git a/packages/google-cloud-dialogflow/synth.metadata b/packages/google-cloud-dialogflow/synth.metadata index 218a2d924ee..cd09f6a84c2 100644 --- a/packages/google-cloud-dialogflow/synth.metadata +++ b/packages/google-cloud-dialogflow/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "80c3d0da03afdb09a194341087fe666743d694a0", - "internalRef": "364697203" + "sha": "05958a4be99ee175858e14dbba580faa18079b07", + "internalRef": "367294563" } }, {