Skip to content

Commit c169348

Browse files
feat: [google-cloud-dialogflow] created new boolean fields in conversation dataset for zone isolation and zone separation compliance status (#13107)
BEGIN_COMMIT_OVERRIDE feat: created new boolean fields in conversation dataset for zone isolation and zone separation compliance status feat: add ALAW encoding value to Audio encoding enum END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: add ALAW encoding value to Audio encoding enum PiperOrigin-RevId: 678636701 Source-Link: googleapis/googleapis@0ede901 Source-Link: googleapis/googleapis-gen@39c4278 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6IjM5YzQyNzgyZmViYzkyMTI0MTM0OTk1YjJlN2Q3OGJlNzYyYmNjMjIifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 023d099 commit c169348

18 files changed

Lines changed: 65 additions & 17 deletions

packages/google-cloud-dialogflow/google/cloud/dialogflow/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.32.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.32.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/participants/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ async def sample_streaming_analyze_content():
913913
914914
# Initialize request argument(s)
915915
audio_config = dialogflow_v2.InputAudioConfig()
916-
audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
916+
audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
917917
audio_config.sample_rate_hertz = 1817
918918
audio_config.language_code = "language_code_value"
919919

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/participants/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ def sample_streaming_analyze_content():
14091409
14101410
# Initialize request argument(s)
14111411
audio_config = dialogflow_v2.InputAudioConfig()
1412-
audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
1412+
audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
14131413
audio_config.sample_rate_hertz = 1817
14141414
audio_config.language_code = "language_code_value"
14151415

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/sessions/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ async def sample_detect_intent():
309309
310310
# Initialize request argument(s)
311311
query_input = dialogflow_v2.QueryInput()
312-
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
312+
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
313313
query_input.audio_config.sample_rate_hertz = 1817
314314
query_input.audio_config.language_code = "language_code_value"
315315
@@ -472,7 +472,7 @@ async def sample_streaming_detect_intent():
472472
473473
# Initialize request argument(s)
474474
query_input = dialogflow_v2.QueryInput()
475-
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
475+
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
476476
query_input.audio_config.sample_rate_hertz = 1817
477477
query_input.audio_config.language_code = "language_code_value"
478478

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/sessions/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def sample_detect_intent():
784784
785785
# Initialize request argument(s)
786786
query_input = dialogflow_v2.QueryInput()
787-
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
787+
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
788788
query_input.audio_config.sample_rate_hertz = 1817
789789
query_input.audio_config.language_code = "language_code_value"
790790
@@ -944,7 +944,7 @@ def sample_streaming_detect_intent():
944944
945945
# Initialize request argument(s)
946946
query_input = dialogflow_v2.QueryInput()
947-
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
947+
query_input.audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
948948
query_input.audio_config.sample_rate_hertz = 1817
949949
query_input.audio_config.language_code = "language_code_value"
950950

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/types/audio_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ class AudioEncoding(proto.Enum):
150150
5574. In other words, each RTP header is replaced with a
151151
single byte containing the block length. Only Speex wideband
152152
is supported. ``sample_rate_hertz`` must be 16000.
153+
AUDIO_ENCODING_ALAW (8):
154+
8-bit samples that compand 13-bit audio
155+
samples using G.711 PCMU/a-law.
153156
"""
154157
AUDIO_ENCODING_UNSPECIFIED = 0
155158
AUDIO_ENCODING_LINEAR_16 = 1
@@ -159,6 +162,7 @@ class AudioEncoding(proto.Enum):
159162
AUDIO_ENCODING_AMR_WB = 5
160163
AUDIO_ENCODING_OGG_OPUS = 6
161164
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7
165+
AUDIO_ENCODING_ALAW = 8
162166

163167

164168
class SpeechModelVariant(proto.Enum):
@@ -258,13 +262,17 @@ class OutputAudioEncoding(proto.Enum):
258262
OUTPUT_AUDIO_ENCODING_MULAW (5):
259263
8-bit samples that compand 14-bit audio
260264
samples using G.711 PCMU/mu-law.
265+
OUTPUT_AUDIO_ENCODING_ALAW (6):
266+
8-bit samples that compand 13-bit audio
267+
samples using G.711 PCMU/a-law.
261268
"""
262269
OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0
263270
OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1
264271
OUTPUT_AUDIO_ENCODING_MP3 = 2
265272
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4
266273
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3
267274
OUTPUT_AUDIO_ENCODING_MULAW = 5
275+
OUTPUT_AUDIO_ENCODING_ALAW = 6
268276

269277

270278
class SpeechContext(proto.Message):

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/types/conversation_dataset.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ class ConversationDataset(proto.Message):
9191
ImportConversationData on a dataset that already has data is not
9292
allowed).
9393
94+
95+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
96+
9497
Attributes:
9598
name (str):
9699
Output only. ConversationDataset resource name. Format:
@@ -112,6 +115,17 @@ class ConversationDataset(proto.Message):
112115
conversation_count (int):
113116
Output only. The number of conversations this
114117
conversation dataset contains.
118+
satisfies_pzi (bool):
119+
Output only. A read only boolean field
120+
reflecting Zone Isolation status of the dataset.
121+
122+
This field is a member of `oneof`_ ``_satisfies_pzi``.
123+
satisfies_pzs (bool):
124+
Output only. A read only boolean field
125+
reflecting Zone Separation status of the
126+
dataset.
127+
128+
This field is a member of `oneof`_ ``_satisfies_pzs``.
115129
"""
116130

117131
name: str = proto.Field(
@@ -145,6 +159,16 @@ class ConversationDataset(proto.Message):
145159
proto.INT64,
146160
number=7,
147161
)
162+
satisfies_pzi: bool = proto.Field(
163+
proto.BOOL,
164+
number=8,
165+
optional=True,
166+
)
167+
satisfies_pzs: bool = proto.Field(
168+
proto.BOOL,
169+
number=9,
170+
optional=True,
171+
)
148172

149173

150174
class CreateConversationDatasetRequest(proto.Message):

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.32.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow/samples/generated_samples/dialogflow_v2_generated_participants_streaming_analyze_content_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def sample_streaming_analyze_content():
4040

4141
# Initialize request argument(s)
4242
audio_config = dialogflow_v2.InputAudioConfig()
43-
audio_config.audio_encoding = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"
43+
audio_config.audio_encoding = "AUDIO_ENCODING_ALAW"
4444
audio_config.sample_rate_hertz = 1817
4545
audio_config.language_code = "language_code_value"
4646

0 commit comments

Comments
 (0)