public final class AmbientSoundConfig extends GeneratedMessage implements AmbientSoundConfigOrBuilder
Configuration for the ambient sound to be played with the synthesized agent
response, to enhance the naturalness of the conversation.
Protobuf type google.cloud.ces.v1.AmbientSoundConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
GCS_URI_FIELD_NUMBER
public static final int GCS_URI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PREBUILT_AMBIENT_NOISE_FIELD_NUMBER
public static final int PREBUILT_AMBIENT_NOISE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PREBUILT_AMBIENT_SOUND_FIELD_NUMBER
public static final int PREBUILT_AMBIENT_SOUND_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VOLUME_GAIN_DB_FIELD_NUMBER
public static final int VOLUME_GAIN_DB_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static AmbientSoundConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AmbientSoundConfig.Builder newBuilder()
newBuilder(AmbientSoundConfig prototype)
public static AmbientSoundConfig.Builder newBuilder(AmbientSoundConfig prototype)
public static AmbientSoundConfig parseDelimitedFrom(InputStream input)
public static AmbientSoundConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AmbientSoundConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AmbientSoundConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AmbientSoundConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AmbientSoundConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AmbientSoundConfig parseFrom(CodedInputStream input)
public static AmbientSoundConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AmbientSoundConfig parseFrom(InputStream input)
public static AmbientSoundConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AmbientSoundConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AmbientSoundConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AmbientSoundConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public AmbientSoundConfig getDefaultInstanceForType()
getGcsUri()
public String getGcsUri()
Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
Cloud Storage.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com has
storage.objects.get permission to the Cloud Storage object.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The gcsUri.
|
getGcsUriBytes()
public ByteString getGcsUriBytes()
Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
Cloud Storage.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com has
storage.objects.get permission to the Cloud Storage object.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for gcsUri.
|
getParserForType()
public Parser<AmbientSoundConfig> getParserForType()
Overrides
getPrebuiltAmbientNoise() (deprecated)
public AmbientSoundConfig.PrebuiltAmbientNoise getPrebuiltAmbientNoise()
Deprecated. google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See
google/cloud/ces/v1/app.proto;l=285
Optional. Deprecated: prebuilt_ambient_noise is deprecated in favor of
prebuilt_ambient_sound.
.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
getPrebuiltAmbientNoiseValue() (deprecated)
public int getPrebuiltAmbientNoiseValue()
Deprecated. google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See
google/cloud/ces/v1/app.proto;l=285
Optional. Deprecated: prebuilt_ambient_noise is deprecated in favor of
prebuilt_ambient_sound.
.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for prebuiltAmbientNoise.
|
getPrebuiltAmbientSound()
public String getPrebuiltAmbientSound()
Optional. Name of the prebuilt ambient sound.
Valid values are:
- "coffee_shop"
- "keyboard"
- "keypad"
- "hum"
- "office_1"
- "office_2"
- "office_3"
- "room_1"
- "room_2"
- "room_3"
- "room_4"
- "room_5"
- "air_conditioner"
string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The prebuiltAmbientSound.
|
getPrebuiltAmbientSoundBytes()
public ByteString getPrebuiltAmbientSoundBytes()
Optional. Name of the prebuilt ambient sound.
Valid values are:
- "coffee_shop"
- "keyboard"
- "keypad"
- "hum"
- "office_1"
- "office_2"
- "office_3"
- "room_1"
- "room_2"
- "room_3"
- "room_4"
- "room_5"
- "air_conditioner"
string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for prebuiltAmbientSound.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSourceCase()
public AmbientSoundConfig.SourceCase getSourceCase()
getVolumeGainDb()
public double getVolumeGainDb()
Optional. Volume gain (in dB) of the normal native volume supported by
ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of
0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
will play at approximately half the amplitude of the normal native signal
amplitude. A value of +6.0 (dB) will play at approximately twice the
amplitude of the normal native signal amplitude. We strongly recommend not
to exceed +10 (dB) as there's usually no effective increase in loudness for
any value greater than that.
double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
double |
The volumeGainDb.
|
hasGcsUri()
public boolean hasGcsUri()
Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
Cloud Storage.
Note: Please make sure the CES service agent
service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com has
storage.objects.get permission to the Cloud Storage object.
string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the gcsUri field is set.
|
hasPrebuiltAmbientNoise() (deprecated)
public boolean hasPrebuiltAmbientNoise()
Deprecated. google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See
google/cloud/ces/v1/app.proto;l=285
Optional. Deprecated: prebuilt_ambient_noise is deprecated in favor of
prebuilt_ambient_sound.
.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the prebuiltAmbientNoise field is set.
|
hasPrebuiltAmbientSound()
public boolean hasPrebuiltAmbientSound()
Optional. Name of the prebuilt ambient sound.
Valid values are:
- "coffee_shop"
- "keyboard"
- "keypad"
- "hum"
- "office_1"
- "office_2"
- "office_3"
- "room_1"
- "room_2"
- "room_3"
- "room_4"
- "room_5"
- "air_conditioner"
string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the prebuiltAmbientSound field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AmbientSoundConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AmbientSoundConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public AmbientSoundConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides