Skip to content

Commit b3cb4de

Browse files
chore: librarian generate pull request: 20260107T084051Z (#14995)
PR created by the Librarian CLI to generate Cloud Client Libraries code from protos. BEGIN_COMMIT BEGIN_NESTED_COMMIT feat: add POSTGRES_18 to DatabaseVersion PiperOrigin-RevId: 852794094 Library-IDs: google-cloud-alloydb Source-link: [googleapis/googleapis@a745ee41](googleapis/googleapis@a745ee41) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add custom prompt config in the request and return prompt in the response PiperOrigin-RevId: 852383212 Library-IDs: google-cloud-speech Source-link: [googleapis/googleapis@1a141530](googleapis/googleapis@1a141530) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: update min_speaker_count and max_speaker_count to be optional PiperOrigin-RevId: 852383212 Library-IDs: google-cloud-speech Source-link: [googleapis/googleapis@1a141530](googleapis/googleapis@1a141530) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: Clarify that min_speaker_count and max_speaker_count in SpeakerDiarizationConfig are not currently used PiperOrigin-RevId: 852383212 Library-IDs: google-cloud-speech Source-link: [googleapis/googleapis@1a141530](googleapis/googleapis@1a141530) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: Update guidance on how to enable speaker diarization; to enable, set the diarization_config field to an empty SpeakerDiarizationConfig message PiperOrigin-RevId: 852383212 Library-IDs: google-cloud-speech Source-link: [googleapis/googleapis@1a141530](googleapis/googleapis@1a141530) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add support for creating Job resource in dry-run mode PiperOrigin-RevId: 843787937 Library-IDs: google-cloud-storagebatchoperations Source-link: [googleapis/googleapis@8f3e57f0](googleapis/googleapis@8f3e57f0) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add object retention setting to StorageBatchOperations API PiperOrigin-RevId: 843787937 Library-IDs: google-cloud-storagebatchoperations Source-link: [googleapis/googleapis@8f3e57f0](googleapis/googleapis@8f3e57f0) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Launch StorageBatchOperations permissions and roles to GA PiperOrigin-RevId: 843787937 Library-IDs: google-cloud-storagebatchoperations Source-link: [googleapis/googleapis@8f3e57f0](googleapis/googleapis@8f3e57f0) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Launch storagebatchoperations resource permissions to GA PiperOrigin-RevId: 843787937 Library-IDs: google-cloud-storagebatchoperations Source-link: [googleapis/googleapis@8f3e57f0](googleapis/googleapis@8f3e57f0) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add inclusion scopes PiperOrigin-RevId: 843787937 Library-IDs: google-cloud-storagebatchoperations Source-link: [googleapis/googleapis@8f3e57f0](googleapis/googleapis@8f3e57f0) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: Fix comment formatting PiperOrigin-RevId: 843787937 Library-IDs: google-cloud-storagebatchoperations Source-link: [googleapis/googleapis@8f3e57f0](googleapis/googleapis@8f3e57f0) END_NESTED_COMMIT BEGIN_NESTED_COMMIT chore: Add Tag Manager IAM permissions for multiple GCP services Clients can now create Job in dry-run mode, returning the total object count and, if the object configuration is a prefix list, the bytes found from source. No transformations will be performed. PiperOrigin-RevId: 843787937 Library-IDs: google-cloud-storagebatchoperations Source-link: [googleapis/googleapis@8f3e57f0](googleapis/googleapis@8f3e57f0) END_NESTED_COMMIT END_COMMIT This pull request is generated with proto changes between [googleapis/googleapis@9a477cd3](googleapis/googleapis@9a477cd) (exclusive) and [googleapis/googleapis@a745ee41](googleapis/googleapis@a745ee4) (inclusive). Librarian Version: v0.0.0-20251218164811-cd2252e38d0a Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209 ## Generation failed for - google-cloud-compute - google-cloud-compute-v1beta
1 parent 6d04c1f commit b3cb4de

File tree

15 files changed

+179
-48
lines changed

15 files changed

+179
-48
lines changed

.librarian/state.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ libraries:
293293
tag_format: '{id}-v{version}'
294294
- id: google-cloud-alloydb
295295
version: 0.6.0
296-
last_generated_commit: 9a477cd3c26a704130e2a2fb44a40281d9312e4c
296+
last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27
297297
apis:
298298
- path: google/cloud/alloydb/v1beta
299299
service_config: alloydb_v1beta.yaml
@@ -3265,7 +3265,7 @@ libraries:
32653265
tag_format: '{id}-v{version}'
32663266
- id: google-cloud-speech
32673267
version: 2.35.0
3268-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
3268+
last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27
32693269
apis:
32703270
- path: google/cloud/speech/v1
32713271
service_config: speech_v1.yaml
@@ -3322,7 +3322,7 @@ libraries:
33223322
tag_format: '{id}-v{version}'
33233323
- id: google-cloud-storagebatchoperations
33243324
version: 0.2.0
3325-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
3325+
last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27
33263326
apis:
33273327
- path: google/cloud/storagebatchoperations/v1
33283328
service_config: storagebatchoperations_v1.yaml
@@ -4262,7 +4262,7 @@ libraries:
42624262
tag_format: '{id}-v{version}'
42634263
- id: googleapis-common-protos
42644264
version: 1.72.0
4265-
last_generated_commit: 9a477cd3c26a704130e2a2fb44a40281d9312e4c
4265+
last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27
42664266
apis:
42674267
- path: google/api
42684268
service_config: serviceconfig.yaml

packages/google-cloud-alloydb/google/cloud/alloydb_v1alpha/services/alloy_db_admin/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ async def sample_upgrade_cluster():
12551255
# Initialize request argument(s)
12561256
request = alloydb_v1alpha.UpgradeClusterRequest(
12571257
name="name_value",
1258-
version="POSTGRES_17",
1258+
version="POSTGRES_18",
12591259
)
12601260
12611261
# Make the request

packages/google-cloud-alloydb/google/cloud/alloydb_v1alpha/services/alloy_db_admin/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ def sample_upgrade_cluster():
18781878
# Initialize request argument(s)
18791879
request = alloydb_v1alpha.UpgradeClusterRequest(
18801880
name="name_value",
1881-
version="POSTGRES_17",
1881+
version="POSTGRES_18",
18821882
)
18831883
18841884
# Make the request

packages/google-cloud-alloydb/google/cloud/alloydb_v1alpha/types/resources.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,16 @@ class DatabaseVersion(proto.Enum):
121121
The database version is Postgres 16.
122122
POSTGRES_17 (5):
123123
The database version is Postgres 17.
124+
POSTGRES_18 (6):
125+
The database version is Postgres 18.
124126
"""
125127
DATABASE_VERSION_UNSPECIFIED = 0
126128
POSTGRES_13 = 1
127129
POSTGRES_14 = 2
128130
POSTGRES_15 = 3
129131
POSTGRES_16 = 4
130132
POSTGRES_17 = 5
133+
POSTGRES_18 = 6
131134

132135

133136
class SubscriptionType(proto.Enum):

packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1alpha_generated_alloy_db_admin_upgrade_cluster_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def sample_upgrade_cluster():
4141
# Initialize request argument(s)
4242
request = alloydb_v1alpha.UpgradeClusterRequest(
4343
name="name_value",
44-
version="POSTGRES_17",
44+
version="POSTGRES_18",
4545
)
4646

4747
# Make the request

packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1alpha_generated_alloy_db_admin_upgrade_cluster_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def sample_upgrade_cluster():
4141
# Initialize request argument(s)
4242
request = alloydb_v1alpha.UpgradeClusterRequest(
4343
name="name_value",
44-
version="POSTGRES_17",
44+
version="POSTGRES_18",
4545
)
4646

4747
# Make the request

packages/google-cloud-speech/google/cloud/speech_v2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
CreatePhraseSetRequest,
4545
CreateRecognizerRequest,
4646
CustomClass,
47+
CustomPromptConfig,
4748
DeleteCustomClassRequest,
4849
DeletePhraseSetRequest,
4950
DeleteRecognizerRequest,
@@ -215,6 +216,7 @@ def _get_version(dependency_name):
215216
"CreatePhraseSetRequest",
216217
"CreateRecognizerRequest",
217218
"CustomClass",
219+
"CustomPromptConfig",
218220
"DeleteCustomClassRequest",
219221
"DeletePhraseSetRequest",
220222
"DeleteRecognizerRequest",

packages/google-cloud-speech/google/cloud/speech_v2/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
CreatePhraseSetRequest,
2929
CreateRecognizerRequest,
3030
CustomClass,
31+
CustomPromptConfig,
3132
DeleteCustomClassRequest,
3233
DeletePhraseSetRequest,
3334
DeleteRecognizerRequest,
@@ -103,6 +104,7 @@
103104
"CreatePhraseSetRequest",
104105
"CreateRecognizerRequest",
105106
"CustomClass",
107+
"CustomPromptConfig",
106108
"DeleteCustomClassRequest",
107109
"DeletePhraseSetRequest",
108110
"DeleteRecognizerRequest",

packages/google-cloud-speech/google/cloud/speech_v2/types/cloud_speech.py

Lines changed: 45 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"AutoDetectDecodingConfig",
3939
"ExplicitDecodingConfig",
4040
"SpeakerDiarizationConfig",
41+
"CustomPromptConfig",
4142
"RecognitionFeatures",
4243
"TranscriptNormalization",
4344
"TranslationConfig",
@@ -898,17 +899,13 @@ class SpeakerDiarizationConfig(proto.Message):
898899
899900
Attributes:
900901
min_speaker_count (int):
901-
Required. Minimum number of speakers in the conversation.
902-
This range gives you more flexibility by allowing the system
903-
to automatically determine the correct number of speakers.
904-
905-
To fix the number of speakers detected in the audio, set
906-
``min_speaker_count`` = ``max_speaker_count``.
902+
Optional. The system automatically determines
903+
the number of speakers. This value is not
904+
currently used.
907905
max_speaker_count (int):
908-
Required. Maximum number of speakers in the conversation.
909-
Valid values are: 1-6. Must be >= ``min_speaker_count``.
910-
This range gives you more flexibility by allowing the system
911-
to automatically determine the correct number of speakers.
906+
Optional. The system automatically determines
907+
the number of speakers. This value is not
908+
currently used.
912909
"""
913910

914911
min_speaker_count: int = proto.Field(
@@ -921,6 +918,21 @@ class SpeakerDiarizationConfig(proto.Message):
921918
)
922919

923920

921+
class CustomPromptConfig(proto.Message):
922+
r"""Configuration to enable custom prompt in chirp3.
923+
924+
Attributes:
925+
custom_prompt (str):
926+
Optional. The custom instructions to override
927+
the existing instructions for chirp3.
928+
"""
929+
930+
custom_prompt: str = proto.Field(
931+
proto.STRING,
932+
number=1,
933+
)
934+
935+
924936
class RecognitionFeatures(proto.Message):
925937
r"""Available recognition features.
926938
@@ -962,24 +974,18 @@ class RecognitionFeatures(proto.Message):
962974
multi_channel_mode (google.cloud.speech_v2.types.RecognitionFeatures.MultiChannelMode):
963975
Mode for recognizing multi-channel audio.
964976
diarization_config (google.cloud.speech_v2.types.SpeakerDiarizationConfig):
965-
Configuration to enable speaker diarization
966-
and set additional parameters to make
967-
diarization better suited for your application.
968-
When this is enabled, we send all the words from
969-
the beginning of the audio for the top
970-
alternative in every consecutive STREAMING
971-
responses. This is done in order to improve our
972-
speaker tags as our models learn to identify the
973-
speakers in the conversation over time. For
974-
non-streaming requests, the diarization results
975-
will be provided only in the top alternative of
976-
the FINAL SpeechRecognitionResult.
977+
Configuration to enable speaker diarization.
978+
To enable diarization, set this field to an
979+
empty SpeakerDiarizationConfig message.
977980
max_alternatives (int):
978981
Maximum number of recognition hypotheses to be returned. The
979982
server may return fewer than ``max_alternatives``. Valid
980983
values are ``0``-``30``. A value of ``0`` or ``1`` will
981984
return a maximum of one. If omitted, will return a maximum
982985
of one.
986+
custom_prompt_config (google.cloud.speech_v2.types.CustomPromptConfig):
987+
Optional. Configuration to enable custom
988+
prompt for chirp3.
983989
"""
984990

985991
class MultiChannelMode(proto.Enum):
@@ -1038,6 +1044,11 @@ class MultiChannelMode(proto.Enum):
10381044
proto.INT32,
10391045
number=16,
10401046
)
1047+
custom_prompt_config: "CustomPromptConfig" = proto.Field(
1048+
proto.MESSAGE,
1049+
number=18,
1050+
message="CustomPromptConfig",
1051+
)
10411052

10421053

10431054
class TranscriptNormalization(proto.Message):
@@ -1410,13 +1421,20 @@ class RecognizeRequest(proto.Message):
14101421
class RecognitionResponseMetadata(proto.Message):
14111422
r"""Metadata about the recognition request and response.
14121423
1424+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1425+
14131426
Attributes:
14141427
request_id (str):
14151428
Global request identifier auto-generated by
14161429
the API.
14171430
total_billed_duration (google.protobuf.duration_pb2.Duration):
14181431
When available, billed audio seconds for the
14191432
corresponding request.
1433+
prompt (str):
1434+
Optional. Output only. Provides the prompt
1435+
used for the recognition request.
1436+
1437+
This field is a member of `oneof`_ ``_prompt``.
14201438
"""
14211439

14221440
request_id: str = proto.Field(
@@ -1428,6 +1446,11 @@ class RecognitionResponseMetadata(proto.Message):
14281446
number=6,
14291447
message=duration_pb2.Duration,
14301448
)
1449+
prompt: str = proto.Field(
1450+
proto.STRING,
1451+
number=10,
1452+
optional=True,
1453+
)
14311454

14321455

14331456
class SpeechRecognitionAlternative(proto.Message):

packages/google-cloud-speech/tests/unit/gapic/speech_v2/test_speech.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15366,6 +15366,7 @@ def test_create_recognizer_rest_call_success(request_type):
1536615366
"max_speaker_count": 1816,
1536715367
},
1536815368
"max_alternatives": 1719,
15369+
"custom_prompt_config": {"custom_prompt": "custom_prompt_value"},
1536915370
},
1537015371
"adaptation": {
1537115372
"phrase_sets": [
@@ -15928,6 +15929,7 @@ def test_update_recognizer_rest_call_success(request_type):
1592815929
"max_speaker_count": 1816,
1592915930
},
1593015931
"max_alternatives": 1719,
15932+
"custom_prompt_config": {"custom_prompt": "custom_prompt_value"},
1593115933
},
1593215934
"adaptation": {
1593315935
"phrase_sets": [

0 commit comments

Comments
 (0)