Skip to content

Commit 58084f1

Browse files
feat: generate libraries
1 parent c353aa5 commit 58084f1

File tree

203 files changed

+56558
-2104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+56558
-2104
lines changed

.librarian/state.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ libraries:
5353
tag_format: '{id}-v{version}'
5454
- id: google-ai-generativelanguage
5555
version: 0.9.0
56-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
56+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
5757
apis:
5858
- path: google/ai/generativelanguage/v1
5959
service_config: generativelanguage_v1.yaml
@@ -134,7 +134,7 @@ libraries:
134134
tag_format: '{id}-v{version}'
135135
- id: google-apps-chat
136136
version: 0.4.0
137-
last_generated_commit: e8365a7f88fabe8717cb8322b8ce784b03b6daea
137+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
138138
apis:
139139
- path: google/chat/v1
140140
service_config: chat_v1.yaml
@@ -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: effe5c4fa816021e724ca856d5640f2e55b14a8b
296+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
297297
apis:
298298
- path: google/cloud/alloydb/v1beta
299299
service_config: alloydb_v1beta.yaml
@@ -473,7 +473,7 @@ libraries:
473473
tag_format: '{id}-v{version}'
474474
- id: google-cloud-artifact-registry
475475
version: 1.18.0
476-
last_generated_commit: 535d161c24965e9ed1a0b27032cc1c8b4beab818
476+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
477477
apis:
478478
- path: google/devtools/artifactregistry/v1
479479
service_config: artifactregistry_v1.yaml
@@ -990,7 +990,7 @@ libraries:
990990
tag_format: '{id}-v{version}'
991991
- id: google-cloud-build
992992
version: 3.34.0
993-
last_generated_commit: 535d161c24965e9ed1a0b27032cc1c8b4beab818
993+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
994994
apis:
995995
- path: google/devtools/cloudbuild/v1
996996
service_config: cloudbuild_v1.yaml
@@ -1344,7 +1344,7 @@ libraries:
13441344
tag_format: '{id}-v{version}'
13451345
- id: google-cloud-databasecenter
13461346
version: 0.1.0
1347-
last_generated_commit: 9a665b700840373e253db5af289d7df2a4fb41b9
1347+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
13481348
apis:
13491349
- path: google/cloud/databasecenter/v1beta
13501350
service_config: databasecenter_v1beta.yaml
@@ -1576,7 +1576,7 @@ libraries:
15761576
tag_format: '{id}-v{version}'
15771577
- id: google-cloud-dialogflow
15781578
version: 2.44.0
1579-
last_generated_commit: c2db528a3e4d12b95666c719ee0db30a3d4c78ad
1579+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
15801580
apis:
15811581
- path: google/cloud/dialogflow/v2beta1
15821582
service_config: dialogflow_v2beta1.yaml
@@ -1595,7 +1595,7 @@ libraries:
15951595
tag_format: '{id}-v{version}'
15961596
- id: google-cloud-dialogflow-cx
15971597
version: 2.1.0
1598-
last_generated_commit: c2db528a3e4d12b95666c719ee0db30a3d4c78ad
1598+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
15991599
apis:
16001600
- path: google/cloud/dialogflow/cx/v3
16011601
service_config: dialogflow_v3.yaml
@@ -1635,7 +1635,7 @@ libraries:
16351635
tag_format: '{id}-v{version}'
16361636
- id: google-cloud-dlp
16371637
version: 3.33.0
1638-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
1638+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
16391639
apis:
16401640
- path: google/privacy/dlp/v2
16411641
service_config: dlp_v2.yaml
@@ -1879,7 +1879,7 @@ libraries:
18791879
tag_format: '{id}-v{version}'
18801880
- id: google-cloud-geminidataanalytics
18811881
version: 0.7.0
1882-
last_generated_commit: effe5c4fa816021e724ca856d5640f2e55b14a8b
1882+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
18831883
apis:
18841884
- path: google/cloud/geminidataanalytics/v1beta
18851885
service_config: geminidataanalytics_v1beta.yaml
@@ -2331,7 +2331,7 @@ libraries:
23312331
tag_format: '{id}-v{version}'
23322332
- id: google-cloud-memorystore
23332333
version: 0.2.0
2334-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
2334+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
23352335
apis:
23362336
- path: google/cloud/memorystore/v1beta
23372337
service_config: memorystore_v1beta.yaml
@@ -2862,7 +2862,7 @@ libraries:
28622862
tag_format: '{id}-v{version}'
28632863
- id: google-cloud-recaptcha-enterprise
28642864
version: 1.29.0
2865-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
2865+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
28662866
apis:
28672867
- path: google/cloud/recaptchaenterprise/v1
28682868
service_config: recaptchaenterprise_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: effe5c4fa816021e724ca856d5640f2e55b14a8b
4265+
last_generated_commit: ef6a532bfd9ab7a944bdedd64c69a2b4042db58b
42664266
apis:
42674267
- path: google/api
42684268
service_config: serviceconfig.yaml

packages/google-ai-generativelanguage/google/ai/generativelanguage/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,21 @@
9393
DynamicRetrievalConfig,
9494
ExecutableCode,
9595
FileData,
96+
FileSearch,
9697
FunctionCall,
9798
FunctionCallingConfig,
9899
FunctionDeclaration,
99100
FunctionResponse,
100101
FunctionResponseBlob,
101102
FunctionResponsePart,
103+
GoogleMaps,
102104
GoogleSearchRetrieval,
103105
GroundingPassage,
104106
GroundingPassages,
105107
Modality,
106108
ModalityTokenCount,
107109
Part,
110+
RetrievalConfig,
108111
Schema,
109112
Tool,
110113
ToolConfig,
@@ -325,17 +328,20 @@
325328
"DynamicRetrievalConfig",
326329
"ExecutableCode",
327330
"FileData",
331+
"FileSearch",
328332
"FunctionCall",
329333
"FunctionCallingConfig",
330334
"FunctionDeclaration",
331335
"FunctionResponse",
332336
"FunctionResponseBlob",
333337
"FunctionResponsePart",
338+
"GoogleMaps",
334339
"GoogleSearchRetrieval",
335340
"GroundingPassage",
336341
"GroundingPassages",
337342
"ModalityTokenCount",
338343
"Part",
344+
"RetrievalConfig",
339345
"Schema",
340346
"Tool",
341347
"ToolConfig",

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1/services/generative_service/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ async def sample_generate_content():
349349
Args:
350350
request (Optional[Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]]):
351351
The request object. Request to generate a completion from
352-
the model. NEXT ID: 18
352+
the model.
353353
model (:class:`str`):
354354
Required. The name of the ``Model`` to use for
355355
generating the completion.
@@ -493,7 +493,7 @@ async def sample_stream_generate_content():
493493
Args:
494494
request (Optional[Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]]):
495495
The request object. Request to generate a completion from
496-
the model. NEXT ID: 18
496+
the model.
497497
model (:class:`str`):
498498
Required. The name of the ``Model`` to use for
499499
generating the completion.

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1/services/generative_service/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def sample_generate_content():
783783
Args:
784784
request (Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]):
785785
The request object. Request to generate a completion from
786-
the model. NEXT ID: 18
786+
the model.
787787
model (str):
788788
Required. The name of the ``Model`` to use for
789789
generating the completion.
@@ -924,7 +924,7 @@ def sample_stream_generate_content():
924924
Args:
925925
request (Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]):
926926
The request object. Request to generate a completion from
927-
the model. NEXT ID: 18
927+
the model.
928928
model (str):
929929
Required. The name of the ``Model`` to use for
930930
generating the completion.

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1/services/generative_service/transports/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ def __call__(
10711071
Args:
10721072
request (~.generative_service.GenerateContentRequest):
10731073
The request object. Request to generate a completion from
1074-
the model. NEXT ID: 18
1074+
the model.
10751075
retry (google.api_core.retry.Retry): Designation of what errors, if any,
10761076
should be retried.
10771077
timeout (float): The timeout for this request.
@@ -1244,7 +1244,7 @@ def __call__(
12441244
Args:
12451245
request (~.generative_service.GenerateContentRequest):
12461246
The request object. Request to generate a completion from
1247-
the model. NEXT ID: 18
1247+
the model.
12481248
retry (google.api_core.retry.Retry): Designation of what errors, if any,
12491249
should be retried.
12501250
timeout (float): The timeout for this request.

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1/types/generative_service.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ class TaskType(proto.Enum):
9797

9898
class GenerateContentRequest(proto.Message):
9999
r"""Request to generate a completion from the model.
100-
NEXT ID: 18
101-
102100
103101
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
104102
@@ -173,7 +171,6 @@ class GenerateContentRequest(proto.Message):
173171
class GenerationConfig(proto.Message):
174172
r"""Configuration options for model generation and outputs. Not
175173
all parameters are configurable for every model.
176-
Next ID: 29
177174
178175
179176
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
@@ -672,6 +669,8 @@ class FinishReason(proto.Enum):
672669
NO_IMAGE (16):
673670
The model was expected to generate an image,
674671
but none was generated.
672+
IMAGE_RECITATION (17):
673+
Image generation stopped due to recitation.
675674
UNEXPECTED_TOOL_CALL (12):
676675
Model generated a tool call but no tools were
677676
enabled in the request.
@@ -694,6 +693,7 @@ class FinishReason(proto.Enum):
694693
IMAGE_PROHIBITED_CONTENT = 14
695694
IMAGE_OTHER = 15
696695
NO_IMAGE = 16
696+
IMAGE_RECITATION = 17
697697
UNEXPECTED_TOOL_CALL = 12
698698
TOO_MANY_TOOL_CALLS = 13
699699

@@ -940,6 +940,14 @@ class GroundingMetadata(proto.Message):
940940
web_search_queries (MutableSequence[str]):
941941
Web search queries for the following-up web
942942
search.
943+
google_maps_widget_context_token (str):
944+
Optional. Resource name of the Google Maps
945+
widget context token that can be used with the
946+
PlacesContextElement widget in order to render
947+
contextual data. Only populated in the case that
948+
grounding with Google Maps is enabled.
949+
950+
This field is a member of `oneof`_ ``_google_maps_widget_context_token``.
943951
"""
944952

945953
search_entry_point: "SearchEntryPoint" = proto.Field(
@@ -968,6 +976,11 @@ class GroundingMetadata(proto.Message):
968976
proto.STRING,
969977
number=5,
970978
)
979+
google_maps_widget_context_token: str = proto.Field(
980+
proto.STRING,
981+
number=7,
982+
optional=True,
983+
)
971984

972985

973986
class SearchEntryPoint(proto.Message):

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,21 @@
6767
DynamicRetrievalConfig,
6868
ExecutableCode,
6969
FileData,
70+
FileSearch,
7071
FunctionCall,
7172
FunctionCallingConfig,
7273
FunctionDeclaration,
7374
FunctionResponse,
7475
FunctionResponseBlob,
7576
FunctionResponsePart,
77+
GoogleMaps,
7678
GoogleSearchRetrieval,
7779
GroundingPassage,
7880
GroundingPassages,
7981
Modality,
8082
ModalityTokenCount,
8183
Part,
84+
RetrievalConfig,
8285
Schema,
8386
Tool,
8487
ToolConfig,
@@ -444,6 +447,7 @@ def _get_version(dependency_name):
444447
"ExecutableCode",
445448
"File",
446449
"FileData",
450+
"FileSearch",
447451
"FileServiceClient",
448452
"FunctionCall",
449453
"FunctionCallingConfig",
@@ -470,6 +474,7 @@ def _get_version(dependency_name):
470474
"GetPermissionRequest",
471475
"GetTunedModelRequest",
472476
"GoAway",
477+
"GoogleMaps",
473478
"GoogleSearchRetrieval",
474479
"GroundingAttribution",
475480
"GroundingChunk",
@@ -523,6 +528,7 @@ def _get_version(dependency_name):
523528
"QueryDocumentResponse",
524529
"RealtimeInputConfig",
525530
"RelevantChunk",
531+
"RetrievalConfig",
526532
"RetrievalMetadata",
527533
"RetrieverServiceClient",
528534
"SafetyFeedback",

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta/services/generative_service/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ async def sample_generate_content():
354354
Args:
355355
request (Optional[Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]]):
356356
The request object. Request to generate a completion from
357-
the model. NEXT ID: 18
357+
the model.
358358
model (:class:`str`):
359359
Required. The name of the ``Model`` to use for
360360
generating the completion.
@@ -674,7 +674,7 @@ async def sample_stream_generate_content():
674674
Args:
675675
request (Optional[Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]]):
676676
The request object. Request to generate a completion from
677-
the model. NEXT ID: 18
677+
the model.
678678
model (:class:`str`):
679679
Required. The name of the ``Model`` to use for
680680
generating the completion.

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta/services/generative_service/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def sample_generate_content():
799799
Args:
800800
request (Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]):
801801
The request object. Request to generate a completion from
802-
the model. NEXT ID: 18
802+
the model.
803803
model (str):
804804
Required. The name of the ``Model`` to use for
805805
generating the completion.
@@ -1113,7 +1113,7 @@ def sample_stream_generate_content():
11131113
Args:
11141114
request (Union[google.ai.generativelanguage_v1beta.types.GenerateContentRequest, dict]):
11151115
The request object. Request to generate a completion from
1116-
the model. NEXT ID: 18
1116+
the model.
11171117
model (str):
11181118
Required. The name of the ``Model`` to use for
11191119
generating the completion.

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1beta/services/generative_service/transports/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ def __call__(
13061306
Args:
13071307
request (~.generative_service.GenerateContentRequest):
13081308
The request object. Request to generate a completion from
1309-
the model. NEXT ID: 18
1309+
the model.
13101310
retry (google.api_core.retry.Retry): Designation of what errors, if any,
13111311
should be retried.
13121312
timeout (float): The timeout for this request.
@@ -1479,7 +1479,7 @@ def __call__(
14791479
Args:
14801480
request (~.generative_service.GenerateContentRequest):
14811481
The request object. Request to generate a completion from
1482-
the model. NEXT ID: 18
1482+
the model.
14831483
retry (google.api_core.retry.Retry): Designation of what errors, if any,
14841484
should be retried.
14851485
timeout (float): The timeout for this request.

0 commit comments

Comments
 (0)