# Interface AmbientSoundConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface AmbientSoundConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getGcsUri()

    public abstract String getGcsUri()

Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
[Cloud Storage](https://cloud.google.com/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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The gcsUri. |

### getGcsUriBytes()

    public abstract ByteString getGcsUriBytes()

Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
[Cloud Storage](https://cloud.google.com/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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for gcsUri. |

### getPrebuiltAmbientNoise() (deprecated)

    public abstract AmbientSoundConfig.PrebuiltAmbientNoise getPrebuiltAmbientNoise()

**Deprecated.** *google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated.
See google/cloud/ces/v1beta/app.proto;l=313*

Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
`prebuilt_ambient_sound`.

`
.google.cloud.ces.v1beta.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.AmbientSoundConfig.PrebuiltAmbientNoise` | The prebuiltAmbientNoise. |

### getPrebuiltAmbientNoiseValue() (deprecated)

    public abstract int getPrebuiltAmbientNoiseValue()

**Deprecated.** *google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated.
See google/cloud/ces/v1beta/app.proto;l=313*

Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
`prebuilt_ambient_sound`.

`
.google.cloud.ces.v1beta.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for prebuiltAmbientNoise. |

### getPrebuiltAmbientSound()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The prebuiltAmbientSound. |

### getPrebuiltAmbientSoundBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for prebuiltAmbientSound. |

### getSourceCase()

    public abstract AmbientSoundConfig.SourceCase getSourceCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.AmbientSoundConfig.SourceCase` |   |

### getVolumeGainDb()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The volumeGainDb. |

### hasGcsUri()

    public abstract boolean hasGcsUri()

Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
[Cloud Storage](https://cloud.google.com/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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the gcsUri field is set. |

### hasPrebuiltAmbientNoise() (deprecated)

    public abstract boolean hasPrebuiltAmbientNoise()

**Deprecated.** *google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated.
See google/cloud/ces/v1beta/app.proto;l=313*

Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
`prebuilt_ambient_sound`.

`
.google.cloud.ces.v1beta.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the prebuiltAmbientNoise field is set. |

### hasPrebuiltAmbientSound()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the prebuiltAmbientSound field is set. |