Skip to content

Commit 0b3155a

Browse files
committed
regenerate locally with legacylibrarian
1 parent f51a5f0 commit 0b3155a

File tree

79 files changed

+4545
-125
lines changed

Some content is hidden

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

79 files changed

+4545
-125
lines changed

.librarian/state.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ libraries:
999999
tag_format: '{id}-v{version}'
10001000
- id: google-cloud-ces
10011001
version: 0.2.0
1002-
last_generated_commit: 6df3ecf4fd43b64826de6a477d1a535ec18b0d7c
1002+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
10031003
apis:
10041004
- path: google/cloud/ces/v1
10051005
service_config: ces_v1.yaml
@@ -1280,7 +1280,7 @@ libraries:
12801280
tag_format: '{id}-v{version}'
12811281
- id: google-cloud-databasecenter
12821282
version: 0.6.0
1283-
last_generated_commit: 6df3ecf4fd43b64826de6a477d1a535ec18b0d7c
1283+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
12841284
apis:
12851285
- path: google/cloud/databasecenter/v1beta
12861286
service_config: databasecenter_v1beta.yaml
@@ -1551,7 +1551,7 @@ libraries:
15511551
tag_format: '{id}-v{version}'
15521552
- id: google-cloud-dialogflow-cx
15531553
version: 2.4.0
1554-
last_generated_commit: 256b575f6915282b20795c13414b21f2c0af65db
1554+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
15551555
apis:
15561556
- path: google/cloud/dialogflow/cx/v3
15571557
service_config: dialogflow_v3.yaml
@@ -1567,7 +1567,7 @@ libraries:
15671567
tag_format: '{id}-v{version}'
15681568
- id: google-cloud-discoveryengine
15691569
version: 0.17.0
1570-
last_generated_commit: 256b575f6915282b20795c13414b21f2c0af65db
1570+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
15711571
apis:
15721572
- path: google/cloud/discoveryengine/v1
15731573
service_config: discoveryengine_v1.yaml
@@ -1585,7 +1585,7 @@ libraries:
15851585
tag_format: '{id}-v{version}'
15861586
- id: google-cloud-dlp
15871587
version: 3.34.0
1588-
last_generated_commit: 9a477cd3c26a704130e2a2fb44a40281d9312e4c
1588+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
15891589
apis:
15901590
- path: google/privacy/dlp/v2
15911591
service_config: dlp_v2.yaml
@@ -1697,7 +1697,7 @@ libraries:
16971697
tag_format: '{id}-v{version}'
16981698
- id: google-cloud-error-reporting
16991699
version: 1.14.0
1700-
last_generated_commit: ebfdba37e54d9cd3e78380d226c2c4ab5a5f7fd4
1700+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
17011701
apis:
17021702
- path: google/devtools/clouderrorreporting/v1beta1
17031703
service_config: clouderrorreporting_v1beta1.yaml
@@ -1804,7 +1804,7 @@ libraries:
18041804
tag_format: '{id}-v{version}'
18051805
- id: google-cloud-firestore
18061806
version: 2.25.0
1807-
last_generated_commit: 6df3ecf4fd43b64826de6a477d1a535ec18b0d7c
1807+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
18081808
apis:
18091809
- path: google/firestore/admin/v1
18101810
service_config: firestore_v1.yaml
@@ -2179,7 +2179,7 @@ libraries:
21792179
tag_format: '{id}-v{version}'
21802180
- id: google-cloud-logging
21812181
version: 3.14.0
2182-
last_generated_commit: 69bf99a9d0910fa86c3c5867ea357aa004dfcc55
2182+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
21832183
apis:
21842184
- path: google/logging/v2
21852185
service_config: logging_v2.yaml
@@ -2926,7 +2926,7 @@ libraries:
29262926
tag_format: '{id}-v{version}'
29272927
- id: google-cloud-run
29282928
version: 0.15.0
2929-
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
2929+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
29302930
apis:
29312931
- path: google/cloud/run/v2
29322932
service_config: run_v2.yaml
@@ -3355,7 +3355,7 @@ libraries:
33553355
tag_format: '{id}-v{version}'
33563356
- id: google-cloud-trace
33573357
version: 1.18.0
3358-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
3358+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
33593359
apis:
33603360
- path: google/devtools/cloudtrace/v2
33613361
service_config: cloudtrace_v2.yaml
@@ -3499,7 +3499,7 @@ libraries:
34993499
tag_format: '{id}-v{version}'
35003500
- id: google-cloud-visionai
35013501
version: 0.4.0
3502-
last_generated_commit: 9eea40c74d97622bb0aa406dd313409a376cc73b
3502+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
35033503
apis:
35043504
- path: google/cloud/visionai/v1alpha1
35053505
service_config: visionai_v1alpha1.yaml
@@ -3748,7 +3748,7 @@ libraries:
37483748
tag_format: '{id}-v{version}'
37493749
- id: google-maps-places
37503750
version: 0.7.0
3751-
last_generated_commit: 6df3ecf4fd43b64826de6a477d1a535ec18b0d7c
3751+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
37523752
apis:
37533753
- path: google/maps/places/v1
37543754
service_config: places_v1.yaml
@@ -3827,7 +3827,7 @@ libraries:
38273827
tag_format: '{id}-v{version}'
38283828
- id: google-shopping-merchant-accounts
38293829
version: 1.3.0
3830-
last_generated_commit: 256b575f6915282b20795c13414b21f2c0af65db
3830+
last_generated_commit: 28d90ca63e8c8bf06278afab07c5890aabe20ad3
38313831
apis:
38323832
- path: google/shopping/merchant/accounts/v1
38333833
service_config: merchantapi_v1.yaml

packages/google-cloud-ces/google/cloud/ces_v1beta/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
ListToolsRequest,
9696
ListToolsResponse,
9797
OperationMetadata,
98+
QualityReport,
9899
RestoreAppVersionRequest,
99100
RestoreAppVersionResponse,
100101
UpdateAgentRequest,
@@ -563,6 +564,7 @@ def _get_version(dependency_name):
563564
"PersonaRunConfig",
564565
"PythonCodeCondition",
565566
"PythonFunction",
567+
"QualityReport",
566568
"RecognitionResult",
567569
"RedactionConfig",
568570
"RestoreAppVersionRequest",

packages/google-cloud-ces/google/cloud/ces_v1beta/gapic_metadata.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,11 @@
12721272
"methods": [
12731273
"run_session"
12741274
]
1275+
},
1276+
"StreamRunSession": {
1277+
"methods": [
1278+
"stream_run_session"
1279+
]
12751280
}
12761281
}
12771282
},
@@ -1287,6 +1292,11 @@
12871292
"methods": [
12881293
"run_session"
12891294
]
1295+
},
1296+
"StreamRunSession": {
1297+
"methods": [
1298+
"stream_run_session"
1299+
]
12901300
}
12911301
}
12921302
},
@@ -1302,6 +1312,11 @@
13021312
"methods": [
13031313
"run_session"
13041314
]
1315+
},
1316+
"StreamRunSession": {
1317+
"methods": [
1318+
"stream_run_session"
1319+
]
13051320
}
13061321
}
13071322
}

packages/google-cloud-ces/google/cloud/ces_v1beta/services/session_service/async_client.py

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ async def run_session(
314314
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
315315
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
316316
) -> session_service.RunSessionResponse:
317-
r"""Initiates a single turn interaction with the CES
317+
r"""Initiates a single-turn interaction with the CES
318318
agent within a session.
319319
320320
.. code-block:: python
@@ -402,6 +402,111 @@ async def sample_run_session():
402402
# Done; return the response.
403403
return response
404404

405+
def stream_run_session(
406+
self,
407+
request: Optional[Union[session_service.RunSessionRequest, dict]] = None,
408+
*,
409+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
410+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
411+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
412+
) -> Awaitable[AsyncIterable[session_service.RunSessionResponse]]:
413+
r"""Initiates a single-turn interaction with the CES agent. Uses
414+
server-side streaming to deliver incremental results and partial
415+
responses as they are generated.
416+
417+
By default, complete responses (e.g., messages from callbacks or
418+
full LLM responses) are sent to the client as soon as they are
419+
available. To enable streaming individual text chunks directly
420+
from the model, set
421+
[enable_text_streaming][google.cloud.ces.v1beta.SessionConfig.enable_text_streaming]
422+
to true.
423+
424+
.. code-block:: python
425+
426+
# This snippet has been automatically generated and should be regarded as a
427+
# code template only.
428+
# It will require modifications to work:
429+
# - It may require correct/in-range values for request initialization.
430+
# - It may require specifying regional endpoints when creating the service
431+
# client as shown in:
432+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
433+
from google.cloud import ces_v1beta
434+
435+
async def sample_stream_run_session():
436+
# Create a client
437+
client = ces_v1beta.SessionServiceAsyncClient()
438+
439+
# Initialize request argument(s)
440+
config = ces_v1beta.SessionConfig()
441+
config.session = "session_value"
442+
443+
inputs = ces_v1beta.SessionInput()
444+
inputs.text = "text_value"
445+
446+
request = ces_v1beta.RunSessionRequest(
447+
config=config,
448+
inputs=inputs,
449+
)
450+
451+
# Make the request
452+
stream = await client.stream_run_session(request=request)
453+
454+
# Handle the response
455+
async for response in stream:
456+
print(response)
457+
458+
Args:
459+
request (Optional[Union[google.cloud.ces_v1beta.types.RunSessionRequest, dict]]):
460+
The request object. Request message for
461+
[SessionService.RunSession][google.cloud.ces.v1beta.SessionService.RunSession].
462+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
463+
should be retried.
464+
timeout (float): The timeout for this request.
465+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
466+
sent along with the request as metadata. Normally, each value must be of type `str`,
467+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
468+
be of type `bytes`.
469+
470+
Returns:
471+
AsyncIterable[google.cloud.ces_v1beta.types.RunSessionResponse]:
472+
Response message for
473+
[SessionService.RunSession][google.cloud.ces.v1beta.SessionService.RunSession].
474+
475+
"""
476+
# Create or coerce a protobuf request object.
477+
# - Use the request object if provided (there's no risk of modifying the input as
478+
# there are no flattened fields), or create one.
479+
if not isinstance(request, session_service.RunSessionRequest):
480+
request = session_service.RunSessionRequest(request)
481+
482+
# Wrap the RPC method; this adds retry and timeout information,
483+
# and friendly error handling.
484+
rpc = self._client._transport._wrapped_methods[
485+
self._client._transport.stream_run_session
486+
]
487+
488+
# Certain fields should be provided within the metadata header;
489+
# add these here.
490+
metadata = tuple(metadata) + (
491+
gapic_v1.routing_header.to_grpc_metadata(
492+
(("config.session", request.config.session),)
493+
),
494+
)
495+
496+
# Validate the universe domain.
497+
self._client._validate_universe_domain()
498+
499+
# Send the request.
500+
response = rpc(
501+
request,
502+
retry=retry,
503+
timeout=timeout,
504+
metadata=metadata,
505+
)
506+
507+
# Done; return the response.
508+
return response
509+
405510
def bidi_run_session(
406511
self,
407512
requests: Optional[

0 commit comments

Comments
 (0)