Skip to content

Commit 84be903

Browse files
chore: librarian generate pull request: 20251017T151203Z (#14762)
BEGIN_COMMIT_OVERRIDE BEGIN_NESTED_COMMIT feat: Add `NestedWidget` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT fix: An existing field `start_icon_uri` is moved in to oneof in message `.google.apps.card.v1.SelectionInput` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add `Validation` and the field `TextInput.validation` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT fix: Changed proto3 optional flag of an existing field `multi_select_max_selected_items` in message `.google.apps.card.v1.SelectionInput` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add the field `TextParagraph.TextSyntax` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add `ChipList`,`Chip` and field `Widgets.chip_list` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: change `Workspace Add-ons` to `Workspace add-ons` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add `Button.Type` and field `Button.type` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add `Carousel` widget PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add the field `TextParagraph.max_lines` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add the field `DecoratedText.start_icon_vertical_alignment` PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: improve comments PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: Add `OverflowMenu` widget PiperOrigin-RevId: 820227260 Library-IDs: google-apps-card Source-link: [googleapis/googleapis@fef70094](googleapis/googleapis@fef70094) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add support for additional reasons to stop image generation PiperOrigin-RevId: 819823490 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@f495b459](googleapis/googleapis@f495b459) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add support for finish_message that contain details the reason why the model stopped generating tokens PiperOrigin-RevId: 819823490 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@f495b459](googleapis/googleapis@f495b459) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add URL_RETRIEVAL_STATUS_UNSAFE and URL_RETRIEVAL_STATUS_PAYWALL statuses for url retrieval PiperOrigin-RevId: 819823490 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@f495b459](googleapis/googleapis@f495b459) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add log_probability_sum PiperOrigin-RevId: 819823490 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@f495b459](googleapis/googleapis@f495b459) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: deprecation notice for HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY PiperOrigin-RevId: 819823490 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@f495b459](googleapis/googleapis@f495b459) END_NESTED_COMMIT BEGIN_NESTED_COMMIT fix: replaced GenerateVideoResponse by PredictLongRunningGeneratedVideoResponse field PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add Computer Use tool type PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add support for FunctionResponsePart PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add support for image generation features PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add support for additional reasons to stop image generation PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add support for raw media bytes for function response PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add log_probability_sum PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add URL_RETRIEVAL_STATUS_UNSAFE and URL_RETRIEVAL_STATUS_PAYWALL statuses for url retrieval PiperOrigin-RevId: 819821787 Library-IDs: google-ai-generativelanguage Source-link: [googleapis/googleapis@fd84be8a](googleapis/googleapis@fd84be8a) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: A comment for field `duration_distance_matrices` in message `.google.maps.routeoptimization.v1.ShipmentModel` is changed PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add experimental Load Costs feature PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: A comment for enum `TravelMode` is changed PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: A comment for field `precedence_rules` in message `.google.maps.routeoptimization.v1.ShipmentModel` is changed PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add experimental U-turn Avoidance feature PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add OptimizeToursLongRunning method PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: A comment for field `place_id` in message `.google.maps.routeoptimization.v1.Waypoint` is changed PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add OptimizeToursUri method PiperOrigin-RevId: 819788002 Library-IDs: google-maps-routeoptimization Source-link: [googleapis/googleapis@4c5d582e](googleapis/googleapis@4c5d582e) END_NESTED_COMMIT END_COMMIT_OVERRIDE This pull request is generated with proto changes between [googleapis/googleapis@a9ebc239](googleapis/googleapis@a9ebc23) (exclusive) and [googleapis/googleapis@fef70094](googleapis/googleapis@fef7009) (inclusive). Librarian Version: v0.0.0-20251016212833-7e6740ffb619 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator:latest ## Generation failed for - google-apps-chat - grpc-google-iam-v1
1 parent 9f36636 commit 84be903

File tree

44 files changed

+5665
-744
lines changed

Some content is hidden

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

44 files changed

+5665
-744
lines changed

.librarian/state.yaml

Lines changed: 245 additions & 245 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797
FunctionCallingConfig,
9898
FunctionDeclaration,
9999
FunctionResponse,
100+
FunctionResponseBlob,
101+
FunctionResponsePart,
100102
GoogleSearchRetrieval,
101103
GroundingPassage,
102104
GroundingPassages,
@@ -163,6 +165,7 @@
163165
GroundingChunk,
164166
GroundingMetadata,
165167
GroundingSupport,
168+
ImageConfig,
166169
LogprobsResult,
167170
MultiSpeakerVoiceConfig,
168171
PrebuiltVoiceConfig,
@@ -207,8 +210,8 @@
207210
UpdatePermissionRequest,
208211
)
209212
from google.ai.generativelanguage_v1beta.types.prediction_service import (
210-
GenerateVideoResponse,
211213
Media,
214+
PredictLongRunningGeneratedVideoResponse,
212215
PredictLongRunningMetadata,
213216
PredictLongRunningRequest,
214217
PredictLongRunningResponse,
@@ -326,6 +329,8 @@
326329
"FunctionCallingConfig",
327330
"FunctionDeclaration",
328331
"FunctionResponse",
332+
"FunctionResponseBlob",
333+
"FunctionResponsePart",
329334
"GoogleSearchRetrieval",
330335
"GroundingPassage",
331336
"GroundingPassages",
@@ -387,6 +392,7 @@
387392
"GroundingChunk",
388393
"GroundingMetadata",
389394
"GroundingSupport",
395+
"ImageConfig",
390396
"LogprobsResult",
391397
"MultiSpeakerVoiceConfig",
392398
"PrebuiltVoiceConfig",
@@ -425,8 +431,8 @@
425431
"TransferOwnershipRequest",
426432
"TransferOwnershipResponse",
427433
"UpdatePermissionRequest",
428-
"GenerateVideoResponse",
429434
"Media",
435+
"PredictLongRunningGeneratedVideoResponse",
430436
"PredictLongRunningMetadata",
431437
"PredictLongRunningRequest",
432438
"PredictLongRunningResponse",

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.
352+
the model. NEXT ID: 18
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.
496+
the model. NEXT ID: 18
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
@@ -765,7 +765,7 @@ def sample_generate_content():
765765
Args:
766766
request (Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]):
767767
The request object. Request to generate a completion from
768-
the model.
768+
the model. NEXT ID: 18
769769
model (str):
770770
Required. The name of the ``Model`` to use for
771771
generating the completion.
@@ -906,7 +906,7 @@ def sample_stream_generate_content():
906906
Args:
907907
request (Union[google.ai.generativelanguage_v1.types.GenerateContentRequest, dict]):
908908
The request object. Request to generate a completion from
909-
the model.
909+
the model. NEXT ID: 18
910910
model (str):
911911
Required. The name of the ``Model`` to use for
912912
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.
1074+
the model. NEXT ID: 18
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.
1247+
the model. NEXT ID: 18
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/services/generative_service/transports/rest_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,14 @@ def _get_http_options():
484484
"method": "get",
485485
"uri": "/v1/{name=corpora/*/operations/*}",
486486
},
487+
{
488+
"method": "get",
489+
"uri": "/v1/{name=ragStores/*/operations/*}",
490+
},
491+
{
492+
"method": "get",
493+
"uri": "/v1/{name=ragStores/*/upload/operations/*}",
494+
},
487495
]
488496
return http_options
489497

packages/google-ai-generativelanguage/google/ai/generativelanguage_v1/services/model_service/transports/rest_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ def _get_http_options():
258258
"method": "get",
259259
"uri": "/v1/{name=corpora/*/operations/*}",
260260
},
261+
{
262+
"method": "get",
263+
"uri": "/v1/{name=ragStores/*/operations/*}",
264+
},
265+
{
266+
"method": "get",
267+
"uri": "/v1/{name=ragStores/*/upload/operations/*}",
268+
},
261269
]
262270
return http_options
263271

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from typing import MutableMapping, MutableSequence
1919

20+
from google.protobuf import struct_pb2 # type: ignore
2021
import proto # type: ignore
2122

2223
from google.ai.generativelanguage_v1.types import citation
@@ -96,6 +97,8 @@ class TaskType(proto.Enum):
9697

9798
class GenerateContentRequest(proto.Message):
9899
r"""Request to generate a completion from the model.
100+
NEXT ID: 18
101+
99102
100103
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
101104
@@ -170,6 +173,7 @@ class GenerateContentRequest(proto.Message):
170173
class GenerationConfig(proto.Message):
171174
r"""Configuration options for model generation and outputs. Not
172175
all parameters are configurable for every model.
176+
Next ID: 29
173177
174178
175179
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
@@ -246,6 +250,9 @@ class GenerationConfig(proto.Message):
246250
the request uses a randomly generated seed.
247251
248252
This field is a member of `oneof`_ ``_seed``.
253+
response_json_schema_ordered (google.protobuf.struct_pb2.Value):
254+
Optional. An internal detail. Use ``responseJsonSchema``
255+
rather than this field.
249256
presence_penalty (float):
250257
Optional. Presence penalty applied to the next token's
251258
logprobs if the token has already been seen in the response.
@@ -296,6 +303,7 @@ class GenerationConfig(proto.Message):
296303
This sets the number of top logprobs to return at each
297304
decoding step in the
298305
[Candidate.logprobs_result][google.ai.generativelanguage.v1.Candidate.logprobs_result].
306+
The number must be in the range of [0, 20].
299307
300308
This field is a member of `oneof`_ ``_logprobs``.
301309
enable_enhanced_civic_answers (bool):
@@ -339,6 +347,11 @@ class GenerationConfig(proto.Message):
339347
number=8,
340348
optional=True,
341349
)
350+
response_json_schema_ordered: struct_pb2.Value = proto.Field(
351+
proto.MESSAGE,
352+
number=28,
353+
message=struct_pb2.Value,
354+
)
342355
presence_penalty: float = proto.Field(
343356
proto.FLOAT,
344357
number=15,
@@ -576,6 +589,12 @@ class Candidate(proto.Message):
576589
model stopped generating tokens.
577590
If empty, the model has not stopped generating
578591
tokens.
592+
finish_message (str):
593+
Optional. Output only. Details the reason why the model
594+
stopped generating tokens. This is populated only when
595+
``finish_reason`` is set.
596+
597+
This field is a member of `oneof`_ ``_finish_message``.
579598
safety_ratings (MutableSequence[google.ai.generativelanguage_v1.types.SafetyRating]):
580599
List of ratings for the safety of a response
581600
candidate.
@@ -644,9 +663,21 @@ class FinishReason(proto.Enum):
644663
IMAGE_SAFETY (11):
645664
Token generation stopped because generated
646665
images contain safety violations.
666+
IMAGE_PROHIBITED_CONTENT (14):
667+
Image generation stopped because generated
668+
images has other prohibited content.
669+
IMAGE_OTHER (15):
670+
Image generation stopped because of other
671+
miscellaneous issue.
672+
NO_IMAGE (16):
673+
The model was expected to generate an image,
674+
but none was generated.
647675
UNEXPECTED_TOOL_CALL (12):
648676
Model generated a tool call but no tools were
649677
enabled in the request.
678+
TOO_MANY_TOOL_CALLS (13):
679+
Model called too many tools consecutively,
680+
thus the system exited execution.
650681
"""
651682
FINISH_REASON_UNSPECIFIED = 0
652683
STOP = 1
@@ -660,7 +691,11 @@ class FinishReason(proto.Enum):
660691
SPII = 9
661692
MALFORMED_FUNCTION_CALL = 10
662693
IMAGE_SAFETY = 11
694+
IMAGE_PROHIBITED_CONTENT = 14
695+
IMAGE_OTHER = 15
696+
NO_IMAGE = 16
663697
UNEXPECTED_TOOL_CALL = 12
698+
TOO_MANY_TOOL_CALLS = 13
664699

665700
index: int = proto.Field(
666701
proto.INT32,
@@ -677,6 +712,11 @@ class FinishReason(proto.Enum):
677712
number=2,
678713
enum=FinishReason,
679714
)
715+
finish_message: str = proto.Field(
716+
proto.STRING,
717+
number=4,
718+
optional=True,
719+
)
680720
safety_ratings: MutableSequence[safety.SafetyRating] = proto.RepeatedField(
681721
proto.MESSAGE,
682722
number=5,
@@ -747,10 +787,18 @@ class UrlRetrievalStatus(proto.Enum):
747787
Url retrieval is successful.
748788
URL_RETRIEVAL_STATUS_ERROR (2):
749789
Url retrieval is failed due to error.
790+
URL_RETRIEVAL_STATUS_PAYWALL (3):
791+
Url retrieval is failed because the content
792+
is behind paywall.
793+
URL_RETRIEVAL_STATUS_UNSAFE (4):
794+
Url retrieval is failed because the content
795+
is unsafe.
750796
"""
751797
URL_RETRIEVAL_STATUS_UNSPECIFIED = 0
752798
URL_RETRIEVAL_STATUS_SUCCESS = 1
753799
URL_RETRIEVAL_STATUS_ERROR = 2
800+
URL_RETRIEVAL_STATUS_PAYWALL = 3
801+
URL_RETRIEVAL_STATUS_UNSAFE = 4
754802

755803
retrieved_url: str = proto.Field(
756804
proto.STRING,
@@ -766,7 +814,13 @@ class UrlRetrievalStatus(proto.Enum):
766814
class LogprobsResult(proto.Message):
767815
r"""Logprobs Result
768816
817+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
818+
769819
Attributes:
820+
log_probability_sum (float):
821+
Sum of log probabilities for all tokens.
822+
823+
This field is a member of `oneof`_ ``_log_probability_sum``.
770824
top_candidates (MutableSequence[google.ai.generativelanguage_v1.types.LogprobsResult.TopCandidates]):
771825
Length = total number of decoding steps.
772826
chosen_candidates (MutableSequence[google.ai.generativelanguage_v1.types.LogprobsResult.Candidate]):
@@ -825,6 +879,11 @@ class TopCandidates(proto.Message):
825879
message="LogprobsResult.Candidate",
826880
)
827881

882+
log_probability_sum: float = proto.Field(
883+
proto.FLOAT,
884+
number=3,
885+
optional=True,
886+
)
828887
top_candidates: MutableSequence[TopCandidates] = proto.RepeatedField(
829888
proto.MESSAGE,
830889
number=1,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ class HarmCategory(proto.Enum):
6464
**Gemini** - Dangerous content.
6565
HARM_CATEGORY_CIVIC_INTEGRITY (11):
6666
**Gemini** - Content that may be used to harm civic
67-
integrity.
67+
integrity. DEPRECATED: use enable_enhanced_civic_answers
68+
instead.
6869
"""
6970
HARM_CATEGORY_UNSPECIFIED = 0
7071
HARM_CATEGORY_DEROGATORY = 1

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
FunctionCallingConfig,
6262
FunctionDeclaration,
6363
FunctionResponse,
64+
FunctionResponseBlob,
65+
FunctionResponsePart,
6466
GoogleSearchRetrieval,
6567
GroundingPassage,
6668
GroundingPassages,
@@ -127,6 +129,7 @@
127129
GroundingChunk,
128130
GroundingMetadata,
129131
GroundingSupport,
132+
ImageConfig,
130133
LogprobsResult,
131134
MultiSpeakerVoiceConfig,
132135
PrebuiltVoiceConfig,
@@ -171,8 +174,8 @@
171174
UpdatePermissionRequest,
172175
)
173176
from .types.prediction_service import (
174-
GenerateVideoResponse,
175177
Media,
178+
PredictLongRunningGeneratedVideoResponse,
176179
PredictLongRunningMetadata,
177180
PredictLongRunningRequest,
178181
PredictLongRunningResponse,
@@ -342,6 +345,8 @@
342345
"FunctionCallingConfig",
343346
"FunctionDeclaration",
344347
"FunctionResponse",
348+
"FunctionResponseBlob",
349+
"FunctionResponsePart",
345350
"GenerateAnswerRequest",
346351
"GenerateAnswerResponse",
347352
"GenerateContentRequest",
@@ -350,7 +355,6 @@
350355
"GenerateMessageResponse",
351356
"GenerateTextRequest",
352357
"GenerateTextResponse",
353-
"GenerateVideoResponse",
354358
"GenerationConfig",
355359
"GenerativeServiceClient",
356360
"GetCachedContentRequest",
@@ -371,6 +375,7 @@
371375
"GroundingSupport",
372376
"HarmCategory",
373377
"Hyperparameters",
378+
"ImageConfig",
374379
"ListCachedContentsRequest",
375380
"ListCachedContentsResponse",
376381
"ListChunksRequest",
@@ -401,6 +406,7 @@
401406
"Permission",
402407
"PermissionServiceClient",
403408
"PrebuiltVoiceConfig",
409+
"PredictLongRunningGeneratedVideoResponse",
404410
"PredictLongRunningMetadata",
405411
"PredictLongRunningRequest",
406412
"PredictLongRunningResponse",

0 commit comments

Comments
 (0)