Class AudioProcessingConfig (0.1.0)

public final class AudioProcessingConfig extends GeneratedMessage implements AudioProcessingConfigOrBuilder

Configuration for how the input and output audio should be processed and delivered.

Protobuf type google.cloud.ces.v1.AudioProcessingConfig

Static Fields

AMBIENT_SOUND_CONFIG_FIELD_NUMBER

public static final int AMBIENT_SOUND_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

BARGE_IN_CONFIG_FIELD_NUMBER

public static final int BARGE_IN_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

INACTIVITY_TIMEOUT_FIELD_NUMBER

public static final int INACTIVITY_TIMEOUT_FIELD_NUMBER
Field Value
Type Description
int

SYNTHESIZE_SPEECH_CONFIGS_FIELD_NUMBER

public static final int SYNTHESIZE_SPEECH_CONFIGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AudioProcessingConfig getDefaultInstance()
Returns
Type Description
AudioProcessingConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AudioProcessingConfig.Builder newBuilder()
Returns
Type Description
AudioProcessingConfig.Builder

newBuilder(AudioProcessingConfig prototype)

public static AudioProcessingConfig.Builder newBuilder(AudioProcessingConfig prototype)
Parameter
Name Description
prototype AudioProcessingConfig
Returns
Type Description
AudioProcessingConfig.Builder

parseDelimitedFrom(InputStream input)

public static AudioProcessingConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioProcessingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AudioProcessingConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AudioProcessingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AudioProcessingConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AudioProcessingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AudioProcessingConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioProcessingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AudioProcessingConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioProcessingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AudioProcessingConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AudioProcessingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudioProcessingConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AudioProcessingConfig> parser()
Returns
Type Description
Parser<AudioProcessingConfig>

Methods

containsSynthesizeSpeechConfigs(String key)

public boolean containsSynthesizeSpeechConfigs(String key)

Optional. Configuration of how the agent response should be synthesized, mapping from the language code to SynthesizeSpeechConfig.

If the configuration for the specified language code is not found, the configuration for the root language code will be used. For example, if the map contains "en-us" and "en", and the specified language code is "en-gb", then "en" configuration will be used.

Note: Language code is case-insensitive.

map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAmbientSoundConfig()

public AmbientSoundConfig getAmbientSoundConfig()

Optional. Configuration for the ambient sound to be played with the synthesized agent response, to enhance the naturalness of the conversation.

.google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AmbientSoundConfig

The ambientSoundConfig.

getAmbientSoundConfigOrBuilder()

public AmbientSoundConfigOrBuilder getAmbientSoundConfigOrBuilder()

Optional. Configuration for the ambient sound to be played with the synthesized agent response, to enhance the naturalness of the conversation.

.google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AmbientSoundConfigOrBuilder

getBargeInConfig()

public BargeInConfig getBargeInConfig()

Optional. Configures the agent behavior for the user barge-in activities.

.google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BargeInConfig

The bargeInConfig.

getBargeInConfigOrBuilder()

public BargeInConfigOrBuilder getBargeInConfigOrBuilder()

Optional. Configures the agent behavior for the user barge-in activities.

.google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BargeInConfigOrBuilder

getDefaultInstanceForType()

public AudioProcessingConfig getDefaultInstanceForType()
Returns
Type Description
AudioProcessingConfig

getInactivityTimeout()

public Duration getInactivityTimeout()

Optional. The duration of user inactivity (no speech or interaction) before the agent prompts the user for reengagement. If not set, the agent will not prompt the user for reengagement.

.google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The inactivityTimeout.

getInactivityTimeoutOrBuilder()

public DurationOrBuilder getInactivityTimeoutOrBuilder()

Optional. The duration of user inactivity (no speech or interaction) before the agent prompts the user for reengagement. If not set, the agent will not prompt the user for reengagement.

.google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getParserForType()

public Parser<AudioProcessingConfig> getParserForType()
Returns
Type Description
Parser<AudioProcessingConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSynthesizeSpeechConfigs() (deprecated)

public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()
Returns
Type Description
Map<String,SynthesizeSpeechConfig>

getSynthesizeSpeechConfigsCount()

public int getSynthesizeSpeechConfigsCount()

Optional. Configuration of how the agent response should be synthesized, mapping from the language code to SynthesizeSpeechConfig.

If the configuration for the specified language code is not found, the configuration for the root language code will be used. For example, if the map contains "en-us" and "en", and the specified language code is "en-gb", then "en" configuration will be used.

Note: Language code is case-insensitive.

map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSynthesizeSpeechConfigsMap()

public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigsMap()

Optional. Configuration of how the agent response should be synthesized, mapping from the language code to SynthesizeSpeechConfig.

If the configuration for the specified language code is not found, the configuration for the root language code will be used. For example, if the map contains "en-us" and "en", and the specified language code is "en-gb", then "en" configuration will be used.

Note: Language code is case-insensitive.

map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,SynthesizeSpeechConfig>

getSynthesizeSpeechConfigsOrDefault(String key, SynthesizeSpeechConfig defaultValue)

public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrDefault(String key, SynthesizeSpeechConfig defaultValue)

Optional. Configuration of how the agent response should be synthesized, mapping from the language code to SynthesizeSpeechConfig.

If the configuration for the specified language code is not found, the configuration for the root language code will be used. For example, if the map contains "en-us" and "en", and the specified language code is "en-gb", then "en" configuration will be used.

Note: Language code is case-insensitive.

map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue SynthesizeSpeechConfig
Returns
Type Description
SynthesizeSpeechConfig

getSynthesizeSpeechConfigsOrThrow(String key)

public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrThrow(String key)

Optional. Configuration of how the agent response should be synthesized, mapping from the language code to SynthesizeSpeechConfig.

If the configuration for the specified language code is not found, the configuration for the root language code will be used. For example, if the map contains "en-us" and "en", and the specified language code is "en-gb", then "en" configuration will be used.

Note: Language code is case-insensitive.

map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
SynthesizeSpeechConfig

hasAmbientSoundConfig()

public boolean hasAmbientSoundConfig()

Optional. Configuration for the ambient sound to be played with the synthesized agent response, to enhance the naturalness of the conversation.

.google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the ambientSoundConfig field is set.

hasBargeInConfig()

public boolean hasBargeInConfig()

Optional. Configures the agent behavior for the user barge-in activities.

.google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the bargeInConfig field is set.

hasInactivityTimeout()

public boolean hasInactivityTimeout()

Optional. The duration of user inactivity (no speech or interaction) before the agent prompts the user for reengagement. If not set, the agent will not prompt the user for reengagement.

.google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inactivityTimeout field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AudioProcessingConfig.Builder newBuilderForType()
Returns
Type Description
AudioProcessingConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AudioProcessingConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AudioProcessingConfig.Builder
Overrides

toBuilder()

public AudioProcessingConfig.Builder toBuilder()
Returns
Type Description
AudioProcessingConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException