Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ libraries:
apis:
- path: google/cloud/ces/v1
- path: google/cloud/ces/v1beta
skip_generate: true
python:
default_version: v1
- name: google-cloud-channel
Expand Down
34 changes: 32 additions & 2 deletions packages/google-cloud-ces/google/cloud/ces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
)
from google.cloud.ces_v1.services.widget_service.client import WidgetServiceClient
from google.cloud.ces_v1.types.agent import Agent
from google.cloud.ces_v1.types.agent_card import (
AgentCard,
AgentInterface,
AgentSkill,
RemoteAgentTool,
)
from google.cloud.ces_v1.types.agent_service import (
BatchDeleteConversationsRequest,
BatchDeleteConversationsResponse,
Expand Down Expand Up @@ -124,6 +130,7 @@
RedactionConfig,
SynthesizeSpeechConfig,
TimeZoneSettings,
VpcScSettings,
)
from google.cloud.ces_v1.types.app_version import AppSnapshot, AppVersion
from google.cloud.ces_v1.types.auth import (
Expand Down Expand Up @@ -153,7 +160,12 @@
from google.cloud.ces_v1.types.conversation import Conversation
from google.cloud.ces_v1.types.data_store import DataStore
from google.cloud.ces_v1.types.data_store_tool import DataStoreTool
from google.cloud.ces_v1.types.deployment import Deployment
from google.cloud.ces_v1.types.deployment import (
Deployment,
ExperimentConfig,
InstagramCredentials,
WhatsAppCredentials,
)
from google.cloud.ces_v1.types.example import (
AgentTransfer,
Blob,
Expand All @@ -169,7 +181,12 @@
from google.cloud.ces_v1.types.google_search_tool import GoogleSearchTool
from google.cloud.ces_v1.types.guardrail import Guardrail
from google.cloud.ces_v1.types.mcp_tool import McpTool
from google.cloud.ces_v1.types.mcp_toolset import McpToolset
from google.cloud.ces_v1.types.mcp_toolset import (
McpToolDefinition,
McpToolOverride,
McpToolset,
)
from google.cloud.ces_v1.types.mocks import MockedToolCall
from google.cloud.ces_v1.types.omnichannel import (
Omnichannel,
OmnichannelIntegrationConfig,
Expand Down Expand Up @@ -197,6 +214,7 @@
GoAway,
InputAudioConfig,
InterruptionSignal,
MockConfig,
OutputAudioConfig,
RecognitionResult,
RunSessionRequest,
Expand Down Expand Up @@ -235,6 +253,10 @@
"WidgetServiceClient",
"WidgetServiceAsyncClient",
"Agent",
"AgentCard",
"AgentInterface",
"AgentSkill",
"RemoteAgentTool",
"BatchDeleteConversationsRequest",
"BatchDeleteConversationsResponse",
"CreateAgentRequest",
Expand Down Expand Up @@ -319,6 +341,7 @@
"RedactionConfig",
"SynthesizeSpeechConfig",
"TimeZoneSettings",
"VpcScSettings",
"AppSnapshot",
"AppVersion",
"ApiAuthentication",
Expand Down Expand Up @@ -346,6 +369,9 @@
"DataStore",
"DataStoreTool",
"Deployment",
"ExperimentConfig",
"InstagramCredentials",
"WhatsAppCredentials",
"AgentTransfer",
"Blob",
"Chunk",
Expand All @@ -360,7 +386,10 @@
"GoogleSearchTool",
"Guardrail",
"McpTool",
"McpToolDefinition",
"McpToolOverride",
"McpToolset",
"MockedToolCall",
"Omnichannel",
"OmnichannelIntegrationConfig",
"OmnichannelOperationMetadata",
Expand All @@ -380,6 +409,7 @@
"GoAway",
"InputAudioConfig",
"InterruptionSignal",
"MockConfig",
"OutputAudioConfig",
"RecognitionResult",
"RunSessionRequest",
Expand Down
81 changes: 79 additions & 2 deletions packages/google-cloud-ces/google/cloud/ces_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,68 @@

from importlib import metadata

# PEP 0810: Explicit Lazy Imports
# Python 3.15+ natively intercepts and defers these imports.
# Developers can disable this behavior and force eager imports.
# For more information, see:
# https://docs.python.org/3.15/library/sys.html#sys.set_lazy_imports_filter
# Older Python versions safely ignore this variable.
__lazy_modules__ = {
"google.cloud.ces_v1.services.agent_service",
"google.cloud.ces_v1.services.session_service",
"google.cloud.ces_v1.services.tool_service",
"google.cloud.ces_v1.services.widget_service",
"google.cloud.ces_v1.types.agent",
"google.cloud.ces_v1.types.agent_card",
"google.cloud.ces_v1.types.agent_service",
"google.cloud.ces_v1.types.agent_tool",
"google.cloud.ces_v1.types.agent_transfers",
"google.cloud.ces_v1.types.app",
"google.cloud.ces_v1.types.app_version",
"google.cloud.ces_v1.types.auth",
"google.cloud.ces_v1.types.bigquery_export",
"google.cloud.ces_v1.types.changelog",
"google.cloud.ces_v1.types.client_function",
"google.cloud.ces_v1.types.common",
"google.cloud.ces_v1.types.connector_tool",
"google.cloud.ces_v1.types.connector_toolset",
"google.cloud.ces_v1.types.conversation",
"google.cloud.ces_v1.types.data_store",
"google.cloud.ces_v1.types.data_store_tool",
"google.cloud.ces_v1.types.deployment",
"google.cloud.ces_v1.types.example",
"google.cloud.ces_v1.types.fakes",
"google.cloud.ces_v1.types.file_search_tool",
"google.cloud.ces_v1.types.google_search_tool",
"google.cloud.ces_v1.types.guardrail",
"google.cloud.ces_v1.types.mcp_tool",
"google.cloud.ces_v1.types.mcp_toolset",
"google.cloud.ces_v1.types.mocks",
"google.cloud.ces_v1.types.omnichannel",
"google.cloud.ces_v1.types.omnichannel_service",
"google.cloud.ces_v1.types.open_api_tool",
"google.cloud.ces_v1.types.open_api_toolset",
"google.cloud.ces_v1.types.python_function",
"google.cloud.ces_v1.types.schema",
"google.cloud.ces_v1.types.search_suggestions",
"google.cloud.ces_v1.types.security_settings",
"google.cloud.ces_v1.types.session_service",
"google.cloud.ces_v1.types.system_tool",
"google.cloud.ces_v1.types.tool",
"google.cloud.ces_v1.types.tool_service",
"google.cloud.ces_v1.types.toolset",
"google.cloud.ces_v1.types.toolset_tool",
"google.cloud.ces_v1.types.widget_service",
"google.cloud.ces_v1.types.widget_tool",
}


from .services.agent_service import AgentServiceAsyncClient, AgentServiceClient
from .services.session_service import SessionServiceAsyncClient, SessionServiceClient
from .services.tool_service import ToolServiceAsyncClient, ToolServiceClient
from .services.widget_service import WidgetServiceAsyncClient, WidgetServiceClient
from .types.agent import Agent
from .types.agent_card import AgentCard, AgentInterface, AgentSkill, RemoteAgentTool
from .types.agent_service import (
BatchDeleteConversationsRequest,
BatchDeleteConversationsResponse,
Expand Down Expand Up @@ -117,6 +174,7 @@
RedactionConfig,
SynthesizeSpeechConfig,
TimeZoneSettings,
VpcScSettings,
)
from .types.app_version import AppSnapshot, AppVersion
from .types.auth import (
Expand Down Expand Up @@ -146,7 +204,12 @@
from .types.conversation import Conversation
from .types.data_store import DataStore
from .types.data_store_tool import DataStoreTool
from .types.deployment import Deployment
from .types.deployment import (
Deployment,
ExperimentConfig,
InstagramCredentials,
WhatsAppCredentials,
)
from .types.example import (
AgentTransfer,
Blob,
Expand All @@ -162,7 +225,8 @@
from .types.google_search_tool import GoogleSearchTool
from .types.guardrail import Guardrail
from .types.mcp_tool import McpTool
from .types.mcp_toolset import McpToolset
from .types.mcp_toolset import McpToolDefinition, McpToolOverride, McpToolset
from .types.mocks import MockedToolCall
from .types.omnichannel import Omnichannel, OmnichannelIntegrationConfig
from .types.omnichannel_service import OmnichannelOperationMetadata
from .types.open_api_tool import OpenApiTool
Expand All @@ -181,6 +245,7 @@
GoAway,
InputAudioConfig,
InterruptionSignal,
MockConfig,
OutputAudioConfig,
RecognitionResult,
RunSessionRequest,
Expand Down Expand Up @@ -296,7 +361,10 @@ def _get_version(dependency_name):
"WidgetServiceAsyncClient",
"Action",
"Agent",
"AgentCard",
"AgentInterface",
"AgentServiceClient",
"AgentSkill",
"AgentTool",
"AgentTransfer",
"AmbientSoundConfig",
Expand Down Expand Up @@ -360,6 +428,7 @@ def _get_version(dependency_name):
"ExecuteToolRequest",
"ExecuteToolResponse",
"ExecutionType",
"ExperimentConfig",
"ExportAppRequest",
"ExportAppResponse",
"ExpressionCondition",
Expand All @@ -384,6 +453,7 @@ def _get_version(dependency_name):
"ImportAppRequest",
"ImportAppResponse",
"InputAudioConfig",
"InstagramCredentials",
"InterruptionSignal",
"LanguageSettings",
"ListAgentsRequest",
Expand All @@ -408,9 +478,13 @@ def _get_version(dependency_name):
"ListToolsetsResponse",
"LoggingSettings",
"McpTool",
"McpToolDefinition",
"McpToolOverride",
"McpToolset",
"Message",
"MetricAnalysisSettings",
"MockConfig",
"MockedToolCall",
"ModelSettings",
"OAuthConfig",
"Omnichannel",
Expand All @@ -424,6 +498,7 @@ def _get_version(dependency_name):
"PythonFunction",
"RecognitionResult",
"RedactionConfig",
"RemoteAgentTool",
"RestoreAppVersionRequest",
"RestoreAppVersionResponse",
"RetrieveToolSchemaRequest",
Expand Down Expand Up @@ -464,7 +539,9 @@ def _get_version(dependency_name):
"UpdateGuardrailRequest",
"UpdateToolRequest",
"UpdateToolsetRequest",
"VpcScSettings",
"WebSearchQuery",
"WhatsAppCredentials",
"WidgetServiceClient",
"WidgetTool",
)
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

import google.api_core.operation as operation # type: ignore
import google.api_core.operation_async as operation_async # type: ignore
import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
import google.protobuf.empty_pb2 as empty_pb2 # type: ignore
import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
Expand All @@ -56,6 +57,7 @@
from google.cloud.ces_v1.services.agent_service import pagers
from google.cloud.ces_v1.types import (
agent,
agent_card,
agent_service,
agent_tool,
agent_transfers,
Expand Down Expand Up @@ -6602,9 +6604,7 @@ async def __aexit__(self, exc_type, exc, tb):
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=package_version.__version__
)

if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__


__all__ = ("AgentServiceAsyncClient",)
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

import google.api_core.operation as operation # type: ignore
import google.api_core.operation_async as operation_async # type: ignore
import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
import google.protobuf.empty_pb2 as empty_pb2 # type: ignore
import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
Expand All @@ -73,6 +74,7 @@
from google.cloud.ces_v1.services.agent_service import pagers
from google.cloud.ces_v1.types import (
agent,
agent_card,
agent_service,
agent_tool,
agent_transfers,
Expand Down Expand Up @@ -7238,8 +7240,6 @@ def list_locations(
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=package_version.__version__
)

if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__

__all__ = ("AgentServiceClient",)
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=package_version.__version__
)

if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__


class AgentServiceTransport(abc.ABC):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
rest_version=f"requests@{requests_version}",
)

if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__


class AgentServiceRestInterceptor:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,13 @@ def request_generator():
self._client._transport.bidi_run_session
]

header_params = {}

if header_params:
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata(header_params),
)

# Validate the universe domain.
self._client._validate_universe_domain()

Expand Down Expand Up @@ -1025,9 +1032,7 @@ async def __aexit__(self, exc_type, exc, tb):
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=package_version.__version__
)

if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__


__all__ = ("SessionServiceAsyncClient",)
Loading
Loading