diff --git a/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto b/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto
index 9a8e256f..1deb3c7c 100644
--- a/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto
+++ b/protos/google/cloud/speech/v1p1beta1/cloud_speech.proto
@@ -24,6 +24,7 @@ import "google/longrunning/operations.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
import "google/rpc/status.proto";
option cc_enable_arenas = true;
@@ -242,6 +243,12 @@ message RecognitionConfig {
// kbps). When using this encoding, `sample_rate_hertz` has to match the
// sample rate of the file being used.
MP3 = 8;
+
+ // Opus encoded audio frames in WebM container
+ // ([OggOpus](https://wiki.xiph.org/OggOpus)). This is a Beta features and
+ // only available in v1p1beta1. `sample_rate_hertz` must be one of 8000,
+ // 12000, 16000, 24000, or 48000.
+ WEBM_OPUS = 9;
}
// Encoding of audio data sent in all `RecognitionAudio` messages.
@@ -316,7 +323,7 @@ message RecognitionConfig {
// Speech adaptation configuration improves the accuracy of speech
// recognition. When speech adaptation is set it supersedes the
// `speech_contexts` field. For more information, see the [speech
- // adaptation](https://cloud.google.com/speech-to-text/docs/context-strength)
+ // adaptation](https://cloud.google.com/speech-to-text/docs/adaptation)
// documentation.
SpeechAdaptation adaptation = 20;
@@ -324,7 +331,7 @@ message RecognitionConfig {
// A means to provide context to assist the speech recognition. For more
// information, see
// [speech
- // adaptation](https://cloud.google.com/speech-to-text/docs/context-strength).
+ // adaptation](https://cloud.google.com/speech-to-text/docs/adaptation).
repeated SpeechContext speech_contexts = 6;
// If `true`, the top result includes a list of words and
@@ -344,6 +351,22 @@ message RecognitionConfig {
// The default 'false' value does not add punctuation to result hypotheses.
bool enable_automatic_punctuation = 11;
+ // The spoken punctuation behavior for the call
+ // If not set, uses default behavior based on model of choice
+ // e.g. command_and_search will enable spoken punctuation by default
+ // If 'true', replaces spoken punctuation with the corresponding symbols in
+ // the request. For example, "how are you question mark" becomes "how are
+ // you?". See https://cloud.google.com/speech-to-text/docs/spoken-punctuation
+ // for support. If 'false', spoken punctuation is not replaced.
+ google.protobuf.BoolValue enable_spoken_punctuation = 22;
+
+ // The spoken emoji behavior for the call
+ // If not set, uses default behavior based on model of choice
+ // If 'true', adds spoken emoji formatting for the request. This will replace
+ // spoken emojis with the corresponding Unicode symbols in the final
+ // transcript. If 'false', spoken emojis are not replaced.
+ google.protobuf.BoolValue enable_spoken_emojis = 23;
+
// If 'true', enables speaker detection for each recognized word in
// the top alternative of the recognition result using a speaker_tag provided
// in the WordInfo.
@@ -388,7 +411,7 @@ message RecognitionConfig {
//
//
// video |
- // Best for audio that originated from from video or includes multiple
+ // | Best for audio that originated from video or includes multiple
// speakers. Ideally the audio is recorded at a 16khz or greater
// sampling rate. This is a premium model that costs more than the
// standard rate. |
@@ -674,8 +697,8 @@ message LongRunningRecognizeMetadata {
// audio, and `single_utterance` is set to false, then no messages are streamed
// back to the client.
//
-// Here's an example of a series of ten `StreamingRecognizeResponse`s that might
-// be returned while processing audio:
+// Here's an example of a series of `StreamingRecognizeResponse`s that might be
+// returned while processing audio:
//
// 1. results { alternatives { transcript: "tube" } stability: 0.01 }
//
diff --git a/protos/protos.d.ts b/protos/protos.d.ts
index 7764537f..f0e69f05 100644
--- a/protos/protos.d.ts
+++ b/protos/protos.d.ts
@@ -2604,6 +2604,12 @@ export namespace google {
/** RecognitionConfig enableAutomaticPunctuation */
enableAutomaticPunctuation?: (boolean|null);
+ /** RecognitionConfig enableSpokenPunctuation */
+ enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
+
+ /** RecognitionConfig enableSpokenEmojis */
+ enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
+
/** RecognitionConfig enableSpeakerDiarization */
enableSpeakerDiarization?: (boolean|null);
@@ -2671,6 +2677,12 @@ export namespace google {
/** RecognitionConfig enableAutomaticPunctuation. */
public enableAutomaticPunctuation: boolean;
+ /** RecognitionConfig enableSpokenPunctuation. */
+ public enableSpokenPunctuation?: (google.protobuf.IBoolValue|null);
+
+ /** RecognitionConfig enableSpokenEmojis. */
+ public enableSpokenEmojis?: (google.protobuf.IBoolValue|null);
+
/** RecognitionConfig enableSpeakerDiarization. */
public enableSpeakerDiarization: boolean;
@@ -2772,7 +2784,8 @@ export namespace google {
AMR_WB = 5,
OGG_OPUS = 6,
SPEEX_WITH_HEADER_BYTE = 7,
- MP3 = 8
+ MP3 = 8,
+ WEBM_OPUS = 9
}
}
@@ -10097,6 +10110,816 @@ export namespace google {
public toJSON(): { [k: string]: any };
}
+ /** Properties of a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @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.protobuf.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @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.protobuf.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue 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 a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @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.protobuf.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @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.protobuf.FloatValue;
+
+ /**
+ * Verifies a FloatValue 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 a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @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.protobuf.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @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.protobuf.Int64Value;
+
+ /**
+ * Verifies an Int64Value 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 Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @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.protobuf.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @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.protobuf.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value 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 a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @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.protobuf.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @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.protobuf.Int32Value;
+
+ /**
+ * Verifies an Int32Value 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 Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @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.protobuf.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @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.protobuf.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value 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 a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @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.protobuf.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @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.protobuf.BoolValue;
+
+ /**
+ * Verifies a BoolValue 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 a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @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.protobuf.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @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.protobuf.StringValue;
+
+ /**
+ * Verifies a StringValue 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 a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @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.protobuf.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @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.protobuf.BytesValue;
+
+ /**
+ * Verifies a BytesValue 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 a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
/** Properties of a FieldMask. */
interface IFieldMask {
diff --git a/protos/protos.js b/protos/protos.js
index aad611af..575cb00c 100644
--- a/protos/protos.js
+++ b/protos/protos.js
@@ -6276,6 +6276,8 @@
* @property {boolean|null} [enableWordTimeOffsets] RecognitionConfig enableWordTimeOffsets
* @property {boolean|null} [enableWordConfidence] RecognitionConfig enableWordConfidence
* @property {boolean|null} [enableAutomaticPunctuation] RecognitionConfig enableAutomaticPunctuation
+ * @property {google.protobuf.IBoolValue|null} [enableSpokenPunctuation] RecognitionConfig enableSpokenPunctuation
+ * @property {google.protobuf.IBoolValue|null} [enableSpokenEmojis] RecognitionConfig enableSpokenEmojis
* @property {boolean|null} [enableSpeakerDiarization] RecognitionConfig enableSpeakerDiarization
* @property {number|null} [diarizationSpeakerCount] RecognitionConfig diarizationSpeakerCount
* @property {google.cloud.speech.v1p1beta1.ISpeakerDiarizationConfig|null} [diarizationConfig] RecognitionConfig diarizationConfig
@@ -6405,6 +6407,22 @@
*/
RecognitionConfig.prototype.enableAutomaticPunctuation = false;
+ /**
+ * RecognitionConfig enableSpokenPunctuation.
+ * @member {google.protobuf.IBoolValue|null|undefined} enableSpokenPunctuation
+ * @memberof google.cloud.speech.v1p1beta1.RecognitionConfig
+ * @instance
+ */
+ RecognitionConfig.prototype.enableSpokenPunctuation = null;
+
+ /**
+ * RecognitionConfig enableSpokenEmojis.
+ * @member {google.protobuf.IBoolValue|null|undefined} enableSpokenEmojis
+ * @memberof google.cloud.speech.v1p1beta1.RecognitionConfig
+ * @instance
+ */
+ RecognitionConfig.prototype.enableSpokenEmojis = null;
+
/**
* RecognitionConfig enableSpeakerDiarization.
* @member {boolean} enableSpeakerDiarization
@@ -6517,6 +6535,10 @@
$root.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.encode(message.diarizationConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
if (message.adaptation != null && Object.hasOwnProperty.call(message, "adaptation"))
$root.google.cloud.speech.v1p1beta1.SpeechAdaptation.encode(message.adaptation, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
+ if (message.enableSpokenPunctuation != null && Object.hasOwnProperty.call(message, "enableSpokenPunctuation"))
+ $root.google.protobuf.BoolValue.encode(message.enableSpokenPunctuation, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ if (message.enableSpokenEmojis != null && Object.hasOwnProperty.call(message, "enableSpokenEmojis"))
+ $root.google.protobuf.BoolValue.encode(message.enableSpokenEmojis, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
return writer;
};
@@ -6594,6 +6616,12 @@
case 11:
message.enableAutomaticPunctuation = reader.bool();
break;
+ case 22:
+ message.enableSpokenPunctuation = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
+ break;
+ case 23:
+ message.enableSpokenEmojis = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
+ break;
case 16:
message.enableSpeakerDiarization = reader.bool();
break;
@@ -6660,6 +6688,7 @@
case 6:
case 7:
case 8:
+ case 9:
break;
}
if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz"))
@@ -6710,6 +6739,16 @@
if (message.enableAutomaticPunctuation != null && message.hasOwnProperty("enableAutomaticPunctuation"))
if (typeof message.enableAutomaticPunctuation !== "boolean")
return "enableAutomaticPunctuation: boolean expected";
+ if (message.enableSpokenPunctuation != null && message.hasOwnProperty("enableSpokenPunctuation")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.enableSpokenPunctuation);
+ if (error)
+ return "enableSpokenPunctuation." + error;
+ }
+ if (message.enableSpokenEmojis != null && message.hasOwnProperty("enableSpokenEmojis")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.enableSpokenEmojis);
+ if (error)
+ return "enableSpokenEmojis." + error;
+ }
if (message.enableSpeakerDiarization != null && message.hasOwnProperty("enableSpeakerDiarization"))
if (typeof message.enableSpeakerDiarization !== "boolean")
return "enableSpeakerDiarization: boolean expected";
@@ -6784,6 +6823,10 @@
case 8:
message.encoding = 8;
break;
+ case "WEBM_OPUS":
+ case 9:
+ message.encoding = 9;
+ break;
}
if (object.sampleRateHertz != null)
message.sampleRateHertz = object.sampleRateHertz | 0;
@@ -6825,6 +6868,16 @@
message.enableWordConfidence = Boolean(object.enableWordConfidence);
if (object.enableAutomaticPunctuation != null)
message.enableAutomaticPunctuation = Boolean(object.enableAutomaticPunctuation);
+ if (object.enableSpokenPunctuation != null) {
+ if (typeof object.enableSpokenPunctuation !== "object")
+ throw TypeError(".google.cloud.speech.v1p1beta1.RecognitionConfig.enableSpokenPunctuation: object expected");
+ message.enableSpokenPunctuation = $root.google.protobuf.BoolValue.fromObject(object.enableSpokenPunctuation);
+ }
+ if (object.enableSpokenEmojis != null) {
+ if (typeof object.enableSpokenEmojis !== "object")
+ throw TypeError(".google.cloud.speech.v1p1beta1.RecognitionConfig.enableSpokenEmojis: object expected");
+ message.enableSpokenEmojis = $root.google.protobuf.BoolValue.fromObject(object.enableSpokenEmojis);
+ }
if (object.enableSpeakerDiarization != null)
message.enableSpeakerDiarization = Boolean(object.enableSpeakerDiarization);
if (object.diarizationSpeakerCount != null)
@@ -6881,6 +6934,8 @@
object.diarizationSpeakerCount = 0;
object.diarizationConfig = null;
object.adaptation = null;
+ object.enableSpokenPunctuation = null;
+ object.enableSpokenEmojis = null;
}
if (message.encoding != null && message.hasOwnProperty("encoding"))
object.encoding = options.enums === String ? $root.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding[message.encoding] : message.encoding;
@@ -6926,6 +6981,10 @@
object.diarizationConfig = $root.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.toObject(message.diarizationConfig, options);
if (message.adaptation != null && message.hasOwnProperty("adaptation"))
object.adaptation = $root.google.cloud.speech.v1p1beta1.SpeechAdaptation.toObject(message.adaptation, options);
+ if (message.enableSpokenPunctuation != null && message.hasOwnProperty("enableSpokenPunctuation"))
+ object.enableSpokenPunctuation = $root.google.protobuf.BoolValue.toObject(message.enableSpokenPunctuation, options);
+ if (message.enableSpokenEmojis != null && message.hasOwnProperty("enableSpokenEmojis"))
+ object.enableSpokenEmojis = $root.google.protobuf.BoolValue.toObject(message.enableSpokenEmojis, options);
return object;
};
@@ -6953,6 +7012,7 @@
* @property {number} OGG_OPUS=6 OGG_OPUS value
* @property {number} SPEEX_WITH_HEADER_BYTE=7 SPEEX_WITH_HEADER_BYTE value
* @property {number} MP3=8 MP3 value
+ * @property {number} WEBM_OPUS=9 WEBM_OPUS value
*/
RecognitionConfig.AudioEncoding = (function() {
var valuesById = {}, values = Object.create(valuesById);
@@ -6965,6 +7025,7 @@
values[valuesById[6] = "OGG_OPUS"] = 6;
values[valuesById[7] = "SPEEX_WITH_HEADER_BYTE"] = 7;
values[valuesById[8] = "MP3"] = 8;
+ values[valuesById[9] = "WEBM_OPUS"] = 9;
return values;
})();
@@ -25721,6 +25782,1726 @@
return Timestamp;
})();
+ protobuf.DoubleValue = (function() {
+
+ /**
+ * Properties of a DoubleValue.
+ * @memberof google.protobuf
+ * @interface IDoubleValue
+ * @property {number|null} [value] DoubleValue value
+ */
+
+ /**
+ * Constructs a new DoubleValue.
+ * @memberof google.protobuf
+ * @classdesc Represents a DoubleValue.
+ * @implements IDoubleValue
+ * @constructor
+ * @param {google.protobuf.IDoubleValue=} [properties] Properties to set
+ */
+ function DoubleValue(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]];
+ }
+
+ /**
+ * DoubleValue value.
+ * @member {number} value
+ * @memberof google.protobuf.DoubleValue
+ * @instance
+ */
+ DoubleValue.prototype.value = 0;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {google.protobuf.IDoubleValue=} [properties] Properties to set
+ * @returns {google.protobuf.DoubleValue} DoubleValue instance
+ */
+ DoubleValue.create = function create(properties) {
+ return new DoubleValue(properties);
+ };
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DoubleValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 1 =*/9).double(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DoubleValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.DoubleValue} DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DoubleValue.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.protobuf.DoubleValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.double();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.DoubleValue} DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DoubleValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DoubleValue message.
+ * @function verify
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DoubleValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (typeof message.value !== "number")
+ return "value: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.DoubleValue} DoubleValue
+ */
+ DoubleValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.DoubleValue)
+ return object;
+ var message = new $root.google.protobuf.DoubleValue();
+ if (object.value != null)
+ message.value = Number(object.value);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.DoubleValue
+ * @static
+ * @param {google.protobuf.DoubleValue} message DoubleValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DoubleValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.value = 0;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
+ return object;
+ };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.DoubleValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DoubleValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return DoubleValue;
+ })();
+
+ protobuf.FloatValue = (function() {
+
+ /**
+ * Properties of a FloatValue.
+ * @memberof google.protobuf
+ * @interface IFloatValue
+ * @property {number|null} [value] FloatValue value
+ */
+
+ /**
+ * Constructs a new FloatValue.
+ * @memberof google.protobuf
+ * @classdesc Represents a FloatValue.
+ * @implements IFloatValue
+ * @constructor
+ * @param {google.protobuf.IFloatValue=} [properties] Properties to set
+ */
+ function FloatValue(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]];
+ }
+
+ /**
+ * FloatValue value.
+ * @member {number} value
+ * @memberof google.protobuf.FloatValue
+ * @instance
+ */
+ FloatValue.prototype.value = 0;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {google.protobuf.IFloatValue=} [properties] Properties to set
+ * @returns {google.protobuf.FloatValue} FloatValue instance
+ */
+ FloatValue.create = function create(properties) {
+ return new FloatValue(properties);
+ };
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FloatValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FloatValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.FloatValue} FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FloatValue.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.protobuf.FloatValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.float();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.FloatValue} FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FloatValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FloatValue message.
+ * @function verify
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FloatValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (typeof message.value !== "number")
+ return "value: number expected";
+ return null;
+ };
+
+ /**
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.FloatValue} FloatValue
+ */
+ FloatValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.FloatValue)
+ return object;
+ var message = new $root.google.protobuf.FloatValue();
+ if (object.value != null)
+ message.value = Number(object.value);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.FloatValue
+ * @static
+ * @param {google.protobuf.FloatValue} message FloatValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FloatValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.value = 0;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
+ return object;
+ };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.FloatValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FloatValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return FloatValue;
+ })();
+
+ protobuf.Int64Value = (function() {
+
+ /**
+ * Properties of an Int64Value.
+ * @memberof google.protobuf
+ * @interface IInt64Value
+ * @property {number|Long|null} [value] Int64Value value
+ */
+
+ /**
+ * Constructs a new Int64Value.
+ * @memberof google.protobuf
+ * @classdesc Represents an Int64Value.
+ * @implements IInt64Value
+ * @constructor
+ * @param {google.protobuf.IInt64Value=} [properties] Properties to set
+ */
+ function Int64Value(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]];
+ }
+
+ /**
+ * Int64Value value.
+ * @member {number|Long} value
+ * @memberof google.protobuf.Int64Value
+ * @instance
+ */
+ Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {google.protobuf.IInt64Value=} [properties] Properties to set
+ * @returns {google.protobuf.Int64Value} Int64Value instance
+ */
+ Int64Value.create = function create(properties) {
+ return new Int64Value(properties);
+ };
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Int64Value.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Int64Value.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.Int64Value} Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Int64Value.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.protobuf.Int64Value();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.int64();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.Int64Value} Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Int64Value.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Int64Value message.
+ * @function verify
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Int64Value.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
+ return "value: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.Int64Value} Int64Value
+ */
+ Int64Value.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.Int64Value)
+ return object;
+ var message = new $root.google.protobuf.Int64Value();
+ if (object.value != null)
+ if ($util.Long)
+ (message.value = $util.Long.fromValue(object.value)).unsigned = false;
+ else if (typeof object.value === "string")
+ message.value = parseInt(object.value, 10);
+ else if (typeof object.value === "number")
+ message.value = object.value;
+ else if (typeof object.value === "object")
+ message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.Int64Value
+ * @static
+ * @param {google.protobuf.Int64Value} message Int64Value
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Int64Value.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.value = options.longs === String ? "0" : 0;
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (typeof message.value === "number")
+ object.value = options.longs === String ? String(message.value) : message.value;
+ else
+ object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value;
+ return object;
+ };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.Int64Value
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Int64Value.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return Int64Value;
+ })();
+
+ protobuf.UInt64Value = (function() {
+
+ /**
+ * Properties of a UInt64Value.
+ * @memberof google.protobuf
+ * @interface IUInt64Value
+ * @property {number|Long|null} [value] UInt64Value value
+ */
+
+ /**
+ * Constructs a new UInt64Value.
+ * @memberof google.protobuf
+ * @classdesc Represents a UInt64Value.
+ * @implements IUInt64Value
+ * @constructor
+ * @param {google.protobuf.IUInt64Value=} [properties] Properties to set
+ */
+ function UInt64Value(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]];
+ }
+
+ /**
+ * UInt64Value value.
+ * @member {number|Long} value
+ * @memberof google.protobuf.UInt64Value
+ * @instance
+ */
+ UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {google.protobuf.IUInt64Value=} [properties] Properties to set
+ * @returns {google.protobuf.UInt64Value} UInt64Value instance
+ */
+ UInt64Value.create = function create(properties) {
+ return new UInt64Value(properties);
+ };
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UInt64Value.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UInt64Value.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.UInt64Value} UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UInt64Value.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.protobuf.UInt64Value();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.uint64();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.UInt64Value} UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UInt64Value.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a UInt64Value message.
+ * @function verify
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UInt64Value.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
+ return "value: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.UInt64Value} UInt64Value
+ */
+ UInt64Value.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.UInt64Value)
+ return object;
+ var message = new $root.google.protobuf.UInt64Value();
+ if (object.value != null)
+ if ($util.Long)
+ (message.value = $util.Long.fromValue(object.value)).unsigned = true;
+ else if (typeof object.value === "string")
+ message.value = parseInt(object.value, 10);
+ else if (typeof object.value === "number")
+ message.value = object.value;
+ else if (typeof object.value === "object")
+ message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.UInt64Value
+ * @static
+ * @param {google.protobuf.UInt64Value} message UInt64Value
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UInt64Value.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, true);
+ object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.value = options.longs === String ? "0" : 0;
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (typeof message.value === "number")
+ object.value = options.longs === String ? String(message.value) : message.value;
+ else
+ object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value;
+ return object;
+ };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.UInt64Value
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UInt64Value.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return UInt64Value;
+ })();
+
+ protobuf.Int32Value = (function() {
+
+ /**
+ * Properties of an Int32Value.
+ * @memberof google.protobuf
+ * @interface IInt32Value
+ * @property {number|null} [value] Int32Value value
+ */
+
+ /**
+ * Constructs a new Int32Value.
+ * @memberof google.protobuf
+ * @classdesc Represents an Int32Value.
+ * @implements IInt32Value
+ * @constructor
+ * @param {google.protobuf.IInt32Value=} [properties] Properties to set
+ */
+ function Int32Value(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]];
+ }
+
+ /**
+ * Int32Value value.
+ * @member {number} value
+ * @memberof google.protobuf.Int32Value
+ * @instance
+ */
+ Int32Value.prototype.value = 0;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {google.protobuf.IInt32Value=} [properties] Properties to set
+ * @returns {google.protobuf.Int32Value} Int32Value instance
+ */
+ Int32Value.create = function create(properties) {
+ return new Int32Value(properties);
+ };
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Int32Value.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Int32Value.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.Int32Value} Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Int32Value.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.protobuf.Int32Value();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.int32();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.Int32Value} Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Int32Value.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Int32Value message.
+ * @function verify
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Int32Value.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isInteger(message.value))
+ return "value: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.Int32Value} Int32Value
+ */
+ Int32Value.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.Int32Value)
+ return object;
+ var message = new $root.google.protobuf.Int32Value();
+ if (object.value != null)
+ message.value = object.value | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.Int32Value
+ * @static
+ * @param {google.protobuf.Int32Value} message Int32Value
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Int32Value.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.value = 0;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ return object;
+ };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.Int32Value
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Int32Value.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return Int32Value;
+ })();
+
+ protobuf.UInt32Value = (function() {
+
+ /**
+ * Properties of a UInt32Value.
+ * @memberof google.protobuf
+ * @interface IUInt32Value
+ * @property {number|null} [value] UInt32Value value
+ */
+
+ /**
+ * Constructs a new UInt32Value.
+ * @memberof google.protobuf
+ * @classdesc Represents a UInt32Value.
+ * @implements IUInt32Value
+ * @constructor
+ * @param {google.protobuf.IUInt32Value=} [properties] Properties to set
+ */
+ function UInt32Value(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]];
+ }
+
+ /**
+ * UInt32Value value.
+ * @member {number} value
+ * @memberof google.protobuf.UInt32Value
+ * @instance
+ */
+ UInt32Value.prototype.value = 0;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {google.protobuf.IUInt32Value=} [properties] Properties to set
+ * @returns {google.protobuf.UInt32Value} UInt32Value instance
+ */
+ UInt32Value.create = function create(properties) {
+ return new UInt32Value(properties);
+ };
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UInt32Value.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UInt32Value.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.UInt32Value} UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UInt32Value.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.protobuf.UInt32Value();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.uint32();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.UInt32Value} UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UInt32Value.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a UInt32Value message.
+ * @function verify
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UInt32Value.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isInteger(message.value))
+ return "value: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.UInt32Value} UInt32Value
+ */
+ UInt32Value.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.UInt32Value)
+ return object;
+ var message = new $root.google.protobuf.UInt32Value();
+ if (object.value != null)
+ message.value = object.value >>> 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.UInt32Value
+ * @static
+ * @param {google.protobuf.UInt32Value} message UInt32Value
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UInt32Value.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.value = 0;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ return object;
+ };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.UInt32Value
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UInt32Value.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return UInt32Value;
+ })();
+
+ protobuf.BoolValue = (function() {
+
+ /**
+ * Properties of a BoolValue.
+ * @memberof google.protobuf
+ * @interface IBoolValue
+ * @property {boolean|null} [value] BoolValue value
+ */
+
+ /**
+ * Constructs a new BoolValue.
+ * @memberof google.protobuf
+ * @classdesc Represents a BoolValue.
+ * @implements IBoolValue
+ * @constructor
+ * @param {google.protobuf.IBoolValue=} [properties] Properties to set
+ */
+ function BoolValue(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]];
+ }
+
+ /**
+ * BoolValue value.
+ * @member {boolean} value
+ * @memberof google.protobuf.BoolValue
+ * @instance
+ */
+ BoolValue.prototype.value = false;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {google.protobuf.IBoolValue=} [properties] Properties to set
+ * @returns {google.protobuf.BoolValue} BoolValue instance
+ */
+ BoolValue.create = function create(properties) {
+ return new BoolValue(properties);
+ };
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoolValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BoolValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.BoolValue} BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoolValue.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.protobuf.BoolValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.bool();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.BoolValue} BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BoolValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BoolValue message.
+ * @function verify
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BoolValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (typeof message.value !== "boolean")
+ return "value: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.BoolValue} BoolValue
+ */
+ BoolValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.BoolValue)
+ return object;
+ var message = new $root.google.protobuf.BoolValue();
+ if (object.value != null)
+ message.value = Boolean(object.value);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.BoolValue
+ * @static
+ * @param {google.protobuf.BoolValue} message BoolValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BoolValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.value = false;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ return object;
+ };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.BoolValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BoolValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return BoolValue;
+ })();
+
+ protobuf.StringValue = (function() {
+
+ /**
+ * Properties of a StringValue.
+ * @memberof google.protobuf
+ * @interface IStringValue
+ * @property {string|null} [value] StringValue value
+ */
+
+ /**
+ * Constructs a new StringValue.
+ * @memberof google.protobuf
+ * @classdesc Represents a StringValue.
+ * @implements IStringValue
+ * @constructor
+ * @param {google.protobuf.IStringValue=} [properties] Properties to set
+ */
+ function StringValue(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]];
+ }
+
+ /**
+ * StringValue value.
+ * @member {string} value
+ * @memberof google.protobuf.StringValue
+ * @instance
+ */
+ StringValue.prototype.value = "";
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {google.protobuf.IStringValue=} [properties] Properties to set
+ * @returns {google.protobuf.StringValue} StringValue instance
+ */
+ StringValue.create = function create(properties) {
+ return new StringValue(properties);
+ };
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StringValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StringValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.StringValue} StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StringValue.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.protobuf.StringValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.StringValue} StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StringValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StringValue message.
+ * @function verify
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StringValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isString(message.value))
+ return "value: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.StringValue} StringValue
+ */
+ StringValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.StringValue)
+ return object;
+ var message = new $root.google.protobuf.StringValue();
+ if (object.value != null)
+ message.value = String(object.value);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.StringValue
+ * @static
+ * @param {google.protobuf.StringValue} message StringValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StringValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.value = "";
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ return object;
+ };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.StringValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StringValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return StringValue;
+ })();
+
+ protobuf.BytesValue = (function() {
+
+ /**
+ * Properties of a BytesValue.
+ * @memberof google.protobuf
+ * @interface IBytesValue
+ * @property {Uint8Array|null} [value] BytesValue value
+ */
+
+ /**
+ * Constructs a new BytesValue.
+ * @memberof google.protobuf
+ * @classdesc Represents a BytesValue.
+ * @implements IBytesValue
+ * @constructor
+ * @param {google.protobuf.IBytesValue=} [properties] Properties to set
+ */
+ function BytesValue(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]];
+ }
+
+ /**
+ * BytesValue value.
+ * @member {Uint8Array} value
+ * @memberof google.protobuf.BytesValue
+ * @instance
+ */
+ BytesValue.prototype.value = $util.newBuffer([]);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {google.protobuf.IBytesValue=} [properties] Properties to set
+ * @returns {google.protobuf.BytesValue} BytesValue instance
+ */
+ BytesValue.create = function create(properties) {
+ return new BytesValue(properties);
+ };
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BytesValue.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BytesValue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.BytesValue} BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BytesValue.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.protobuf.BytesValue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.value = reader.bytes();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.BytesValue} BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BytesValue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BytesValue message.
+ * @function verify
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BytesValue.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
+ return "value: buffer expected";
+ return null;
+ };
+
+ /**
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.BytesValue} BytesValue
+ */
+ BytesValue.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.BytesValue)
+ return object;
+ var message = new $root.google.protobuf.BytesValue();
+ if (object.value != null)
+ if (typeof object.value === "string")
+ $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
+ else if (object.value.length)
+ message.value = object.value;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.BytesValue
+ * @static
+ * @param {google.protobuf.BytesValue} message BytesValue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BytesValue.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ if (options.bytes === String)
+ object.value = "";
+ else {
+ object.value = [];
+ if (options.bytes !== Array)
+ object.value = $util.newBuffer(object.value);
+ }
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
+ return object;
+ };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.BytesValue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BytesValue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return BytesValue;
+ })();
+
protobuf.FieldMask = (function() {
/**
diff --git a/protos/protos.json b/protos/protos.json
index 8068e3cb..77db130b 100644
--- a/protos/protos.json
+++ b/protos/protos.json
@@ -735,6 +735,14 @@
"type": "bool",
"id": 11
},
+ "enableSpokenPunctuation": {
+ "type": "google.protobuf.BoolValue",
+ "id": 22
+ },
+ "enableSpokenEmojis": {
+ "type": "google.protobuf.BoolValue",
+ "id": 23
+ },
"enableSpeakerDiarization": {
"type": "bool",
"id": 16,
@@ -777,7 +785,8 @@
"AMR_WB": 5,
"OGG_OPUS": 6,
"SPEEX_WITH_HEADER_BYTE": 7,
- "MP3": 8
+ "MP3": 8,
+ "WEBM_OPUS": 9
}
}
}
@@ -2720,6 +2729,78 @@
}
}
},
+ "DoubleValue": {
+ "fields": {
+ "value": {
+ "type": "double",
+ "id": 1
+ }
+ }
+ },
+ "FloatValue": {
+ "fields": {
+ "value": {
+ "type": "float",
+ "id": 1
+ }
+ }
+ },
+ "Int64Value": {
+ "fields": {
+ "value": {
+ "type": "int64",
+ "id": 1
+ }
+ }
+ },
+ "UInt64Value": {
+ "fields": {
+ "value": {
+ "type": "uint64",
+ "id": 1
+ }
+ }
+ },
+ "Int32Value": {
+ "fields": {
+ "value": {
+ "type": "int32",
+ "id": 1
+ }
+ }
+ },
+ "UInt32Value": {
+ "fields": {
+ "value": {
+ "type": "uint32",
+ "id": 1
+ }
+ }
+ },
+ "BoolValue": {
+ "fields": {
+ "value": {
+ "type": "bool",
+ "id": 1
+ }
+ }
+ },
+ "StringValue": {
+ "fields": {
+ "value": {
+ "type": "string",
+ "id": 1
+ }
+ }
+ },
+ "BytesValue": {
+ "fields": {
+ "value": {
+ "type": "bytes",
+ "id": 1
+ }
+ }
+ },
"FieldMask": {
"fields": {
"paths": {