diff --git a/google-cloud-ces-v1/.owlbot-manifest.json b/google-cloud-ces-v1/.owlbot-manifest.json index b8a4e9969f3a..4bdcb5b88b80 100644 --- a/google-cloud-ces-v1/.owlbot-manifest.json +++ b/google-cloud-ces-v1/.owlbot-manifest.json @@ -15,6 +15,7 @@ "google-cloud-ces-v1.gemspec", "lib/google-cloud-ces-v1.rb", "lib/google/cloud/ces/v1.rb", + "lib/google/cloud/ces/v1/agent_card_pb.rb", "lib/google/cloud/ces/v1/agent_pb.rb", "lib/google/cloud/ces/v1/agent_service.rb", "lib/google/cloud/ces/v1/agent_service/client.rb", @@ -50,6 +51,7 @@ "lib/google/cloud/ces/v1/guardrail_pb.rb", "lib/google/cloud/ces/v1/mcp_tool_pb.rb", "lib/google/cloud/ces/v1/mcp_toolset_pb.rb", + "lib/google/cloud/ces/v1/mocks_pb.rb", "lib/google/cloud/ces/v1/omnichannel_pb.rb", "lib/google/cloud/ces/v1/omnichannel_service_pb.rb", "lib/google/cloud/ces/v1/open_api_tool_pb.rb", @@ -99,6 +101,7 @@ "proto_docs/google/api/resource.rb", "proto_docs/google/api/routing.rb", "proto_docs/google/cloud/ces/v1/agent.rb", + "proto_docs/google/cloud/ces/v1/agent_card.rb", "proto_docs/google/cloud/ces/v1/agent_service.rb", "proto_docs/google/cloud/ces/v1/agent_tool.rb", "proto_docs/google/cloud/ces/v1/agent_transfers.rb", @@ -122,6 +125,7 @@ "proto_docs/google/cloud/ces/v1/guardrail.rb", "proto_docs/google/cloud/ces/v1/mcp_tool.rb", "proto_docs/google/cloud/ces/v1/mcp_toolset.rb", + "proto_docs/google/cloud/ces/v1/mocks.rb", "proto_docs/google/cloud/ces/v1/omnichannel.rb", "proto_docs/google/cloud/ces/v1/omnichannel_service.rb", "proto_docs/google/cloud/ces/v1/open_api_tool.rb", diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/agent_card_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/agent_card_pb.rb new file mode 100644 index 000000000000..21571b03edbb --- /dev/null +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/agent_card_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/ces/v1/agent_card.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n$google/cloud/ces/v1/agent_card.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xcc\x01\n\tAgentCard\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x14supported_interfaces\x18\x03 \x03(\x0b\x32#.google.cloud.ces.v1.AgentInterfaceB\x03\xe0\x41\x02\x12\x14\n\x07version\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x06skills\x18\x06 \x03(\x0b\x32\x1f.google.cloud.ces.v1.AgentSkillB\x03\xe0\x41\x02\"p\n\x0e\x41gentInterface\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10protocol_binding\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06tenant\x18\x03 \x01(\t\x12\x1d\n\x10protocol_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\"\x9a\x01\n\nAgentSkill\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04tags\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12\x10\n\x08\x65xamples\x18\x05 \x03(\t\x12\x13\n\x0binput_modes\x18\x06 \x03(\t\x12\x14\n\x0coutput_modes\x18\x07 \x03(\t\"w\n\x0fRemoteAgentTool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\nagent_card\x18\x03 \x01(\x0b\x32\x1e.google.cloud.ces.v1.AgentCardB\x03\xe0\x41\x02\x42V\n\x17\x63om.google.cloud.ces.v1B\x0e\x41gentCardProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Ces + module V1 + AgentCard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.AgentCard").msgclass + AgentInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.AgentInterface").msgclass + AgentSkill = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.AgentSkill").msgclass + RemoteAgentTool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.RemoteAgentTool").msgclass + end + end + end +end diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/agent_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/agent_pb.rb index 248d72d887d9..036134e63679 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/agent_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/agent_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n\x1fgoogle/cloud/ces/v1/agent.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/ces/v1/agent_transfers.proto\x1a google/cloud/ces/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9c\x0f\n\x05\x41gent\x12=\n\tllm_agent\x18\x1a \x01(\x0b\x32#.google.cloud.ces.v1.Agent.LlmAgentB\x03\xe0\x41\x01H\x00\x12X\n\x17remote_dialogflow_agent\x18\x1b \x01(\x0b\x32\x30.google.cloud.ces.v1.Agent.RemoteDialogflowAgentB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12?\n\x0emodel_settings\x18\x04 \x01(\x0b\x32\".google.cloud.ces.v1.ModelSettingsB\x03\xe0\x41\x01\x12\x18\n\x0binstruction\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12.\n\x05tools\x18\x07 \x03(\tB\x1f\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x36\n\x0c\x63hild_agents\x18\x08 \x03(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x42\n\x16\x62\x65\x66ore_agent_callbacks\x18\x12 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x41\n\x15\x61\x66ter_agent_callbacks\x18\x13 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x42\n\x16\x62\x65\x66ore_model_callbacks\x18\x14 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x41\n\x15\x61\x66ter_model_callbacks\x18\x15 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x41\n\x15\x62\x65\x66ore_tool_callbacks\x18\x16 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12@\n\x14\x61\x66ter_tool_callbacks\x18\x17 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\nguardrails\x18\x11 \x03(\tB$\xe0\x41\x01\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12\x0c\n\x04\x65tag\x18\x18 \x01(\t\x12>\n\x08toolsets\x18\x1c \x03(\x0b\x32\'.google.cloud.ces.v1.Agent.AgentToolsetB\x03\xe0\x41\x01\x12\x1e\n\x11generated_summary\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12>\n\x0etransfer_rules\x18\x1e \x03(\x0b\x32!.google.cloud.ces.v1.TransferRuleB\x03\xe0\x41\x01\x1a\n\n\x08LlmAgent\x1a\xa0\x04\n\x15RemoteDialogflowAgent\x12@\n\x05\x61gent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dialogflow.googleapis.com/DialogflowAgent\x12\x14\n\x07\x66low_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65nvironment_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12o\n\x16input_variable_mapping\x18\x04 \x03(\x0b\x32J.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\x03\xe0\x41\x01\x12q\n\x17output_variable_mapping\x18\x05 \x03(\x0b\x32K.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\x03\xe0\x41\x01\x12\x33\n&respect_response_interruption_settings\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x1a;\n\x19InputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aOutputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aZ\n\x0c\x41gentToolset\x12\x33\n\x07toolset\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x15\n\x08tool_ids\x18\x04 \x03(\tB\x03\xe0\x41\x01:o\xea\x41l\n\x18\x63\x65s.googleapis.com/Agent\x12\x41projects/{project}/locations/{location}/apps/{app}/agents/{agent}*\x06\x61gents2\x05\x61gentB\x0c\n\nagent_typeB\xb8\x01\n\x17\x63om.google.cloud.ces.v1B\nAgentProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41\x63\n)dialogflow.googleapis.com/DialogflowAgent\x12\x36projects/{project}/locations/{location}/agents/{agent}b\x06proto3" +descriptor_data = "\n\x1fgoogle/cloud/ces/v1/agent.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/ces/v1/agent_transfers.proto\x1a google/cloud/ces/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe1\x0f\n\x05\x41gent\x12=\n\tllm_agent\x18\x1a \x01(\x0b\x32#.google.cloud.ces.v1.Agent.LlmAgentB\x03\xe0\x41\x01H\x00\x12X\n\x17remote_dialogflow_agent\x18\x1b \x01(\x0b\x32\x30.google.cloud.ces.v1.Agent.RemoteDialogflowAgentB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12?\n\x0emodel_settings\x18\x04 \x01(\x0b\x32\".google.cloud.ces.v1.ModelSettingsB\x03\xe0\x41\x01\x12\x18\n\x0binstruction\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12.\n\x05tools\x18\x07 \x03(\tB\x1f\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x36\n\x0c\x63hild_agents\x18\x08 \x03(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x42\n\x16\x62\x65\x66ore_agent_callbacks\x18\x12 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x41\n\x15\x61\x66ter_agent_callbacks\x18\x13 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x42\n\x16\x62\x65\x66ore_model_callbacks\x18\x14 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x41\n\x15\x61\x66ter_model_callbacks\x18\x15 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x41\n\x15\x62\x65\x66ore_tool_callbacks\x18\x16 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12@\n\x14\x61\x66ter_tool_callbacks\x18\x17 \x03(\x0b\x32\x1d.google.cloud.ces.v1.CallbackB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\nguardrails\x18\x11 \x03(\tB$\xe0\x41\x01\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12\x0c\n\x04\x65tag\x18\x18 \x01(\t\x12>\n\x08toolsets\x18\x1c \x03(\x0b\x32\'.google.cloud.ces.v1.Agent.AgentToolsetB\x03\xe0\x41\x01\x12\x1e\n\x11generated_summary\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12>\n\x0etransfer_rules\x18\x1e \x03(\x0b\x32!.google.cloud.ces.v1.TransferRuleB\x03\xe0\x41\x01\x12\x1e\n\x11validation_errors\x18 \x03(\tB\x03\xe0\x41\x03\x1a\n\n\x08LlmAgent\x1a\xc5\x04\n\x15RemoteDialogflowAgent\x12@\n\x05\x61gent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dialogflow.googleapis.com/DialogflowAgent\x12\x14\n\x07\x66low_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65nvironment_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12o\n\x16input_variable_mapping\x18\x04 \x03(\x0b\x32J.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\x03\xe0\x41\x01\x12q\n\x17output_variable_mapping\x18\x05 \x03(\x0b\x32K.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\x03\xe0\x41\x01\x12\x33\n&respect_response_interruption_settings\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x16language_code_variable\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a;\n\x19InputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aOutputVariableMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aZ\n\x0c\x41gentToolset\x12\x33\n\x07toolset\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x15\n\x08tool_ids\x18\x04 \x03(\tB\x03\xe0\x41\x01:o\xea\x41l\n\x18\x63\x65s.googleapis.com/Agent\x12\x41projects/{project}/locations/{location}/apps/{app}/agents/{agent}*\x06\x61gents2\x05\x61gentB\x0c\n\nagent_typeB\xb8\x01\n\x17\x63om.google.cloud.ces.v1B\nAgentProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41\x63\n)dialogflow.googleapis.com/DialogflowAgent\x12\x36projects/{project}/locations/{location}/agents/{agent}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/app_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/app_pb.rb index 5f40c5de0cd3..21bdc72dad7e 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/app_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/app_pb.rb @@ -13,7 +13,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n\x1dgoogle/cloud/ces/v1/app.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/ces/v1/bigquery_export.proto\x1a google/cloud/ces/v1/common.proto\x1a google/cloud/ces/v1/schema.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x0e\n\x03\x41pp\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06pinned\x18\x1f \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\nroot_agent\x18\x04 \x01(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x45\n\x11language_settings\x18\x12 \x01(\x0b\x32%.google.cloud.ces.v1.LanguageSettingsB\x03\xe0\x41\x01\x12\x46\n\x12time_zone_settings\x18\x1b \x01(\x0b\x32%.google.cloud.ces.v1.TimeZoneSettingsB\x03\xe0\x41\x01\x12P\n\x17\x61udio_processing_config\x18\x07 \x01(\x0b\x32*.google.cloud.ces.v1.AudioProcessingConfigB\x03\xe0\x41\x01\x12\x43\n\x10logging_settings\x18\x08 \x01(\x0b\x32$.google.cloud.ces.v1.LoggingSettingsB\x03\xe0\x41\x01\x12P\n\x17\x65rror_handling_settings\x18\" \x01(\x0b\x32*.google.cloud.ces.v1.ErrorHandlingSettingsB\x03\xe0\x41\x01\x12?\n\x0emodel_settings\x18\r \x01(\x0b\x32\".google.cloud.ces.v1.ModelSettingsB\x03\xe0\x41\x01\x12L\n\x13tool_execution_mode\x18 \x01(\x0e\x32*.google.cloud.ces.v1.App.ToolExecutionModeB\x03\xe0\x41\x01\x12\\\n\x1d\x65valuation_metrics_thresholds\x18\x18 \x01(\x0b\x32\x30.google.cloud.ces.v1.EvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12P\n\x15variable_declarations\x18\x0e \x03(\x0b\x32,.google.cloud.ces.v1.App.VariableDeclarationB\x03\xe0\x41\x01\x12[\n predefined_variable_declarations\x18\x1c \x03(\x0b\x32,.google.cloud.ces.v1.App.VariableDeclarationB\x03\xe0\x41\x03\x12\x1f\n\x12global_instruction\x18\x11 \x01(\tB\x03\xe0\x41\x01\x12\x38\n\nguardrails\x18\n \x03(\tB$\xe0\x41\x01\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12H\n\x13\x64\x61ta_store_settings\x18\x0f \x01(\x0b\x32&.google.cloud.ces.v1.DataStoreSettingsB\x03\xe0\x41\x01\x12I\n\x17\x64\x65\x66\x61ult_channel_profile\x18\x16 \x01(\x0b\x32#.google.cloud.ces.v1.ChannelProfileB\x03\xe0\x41\x01\x12=\n\x08metadata\x18\x0b \x03(\x0b\x32&.google.cloud.ces.v1.App.MetadataEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x64\x65ployment_count\x18\x17 \x01(\x05\x42\x03\xe0\x41\x03\x12X\n\x1b\x63lient_certificate_settings\x18\x19 \x01(\x0b\x32..google.cloud.ces.v1.ClientCertificateSettingsB\x03\xe0\x41\x01\x12\x13\n\x06locked\x18\x1d \x01(\x08\x42\x03\xe0\x41\x01\x1at\n\x13VariableDeclaration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x30\n\x06schema\x18\x03 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x02\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"V\n\x11ToolExecutionMode\x12#\n\x1fTOOL_EXECUTION_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08PARALLEL\x10\x01\x12\x0e\n\nSEQUENTIAL\x10\x02:Z\xea\x41W\n\x16\x63\x65s.googleapis.com/App\x12\x32projects/{project}/locations/{location}/apps/{app}*\x04\x61pps2\x03\x61pp\"*\n\x10TimeZoneSettings\x12\x16\n\ttime_zone\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xa7\x01\n\x10LanguageSettings\x12\"\n\x15\x64\x65\x66\x61ult_language_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18supported_language_codes\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12(\n\x1b\x65nable_multilingual_support\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x0f\x66\x61llback_action\x18\x04 \x01(\tB\x05\x18\x01\xe0\x41\x01\"\xbf\x03\n\x15\x41udioProcessingConfig\x12o\n\x19synthesize_speech_configs\x18\x01 \x03(\x0b\x32G.google.cloud.ces.v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\x03\xe0\x41\x01\x12@\n\x0f\x62\x61rge_in_config\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1.BargeInConfigB\x03\xe0\x41\x01\x12:\n\x12inactivity_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12J\n\x14\x61mbient_sound_config\x18\x05 \x01(\x0b\x32\'.google.cloud.ces.v1.AmbientSoundConfigB\x03\xe0\x41\x01\x1ak\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.ces.v1.SynthesizeSpeechConfig:\x02\x38\x01\"\xd5\x02\n\x12\x41mbientSoundConfig\x12\x65\n\x16prebuilt_ambient_noise\x18\x01 \x01(\x0e\x32<.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\x05\x18\x01\xe0\x41\x01H\x00\x12\x16\n\x07gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12%\n\x16prebuilt_ambient_sound\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1b\n\x0evolume_gain_db\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\"r\n\x14PrebuiltAmbientNoise\x12&\n\"PREBUILT_AMBIENT_NOISE_UNSPECIFIED\x10\x00\x12\x10\n\x0cRETAIL_STORE\x10\x01\x12\x13\n\x0f\x43ONVENTION_HALL\x10\x02\x12\x0b\n\x07OUTDOOR\x10\x03\x42\x08\n\x06source\"Q\n\rBargeInConfig\x12\x1f\n\x10\x64isable_barge_in\x18\x01 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x12\x1f\n\x12\x62\x61rge_in_awareness\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"H\n\x16SynthesizeSpeechConfig\x12\x12\n\x05voice\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rspeaking_rate\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\"<\n\x16MetricAnalysisSettings\x12\"\n\x15llm_metrics_opted_out\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"\xd7\x04\n\x0fLoggingSettings\x12\x43\n\x10redaction_config\x18\x01 \x01(\x0b\x32$.google.cloud.ces.v1.RedactionConfigB\x03\xe0\x41\x01\x12N\n\x16\x61udio_recording_config\x18\x02 \x01(\x0b\x32).google.cloud.ces.v1.AudioRecordingConfigB\x03\xe0\x41\x01\x12R\n\x18\x62igquery_export_settings\x18\x03 \x01(\x0b\x32+.google.cloud.ces.v1.BigQueryExportSettingsB\x03\xe0\x41\x01\x12N\n\x16\x63loud_logging_settings\x18\x04 \x01(\x0b\x32).google.cloud.ces.v1.CloudLoggingSettingsB\x03\xe0\x41\x01\x12\\\n\x1d\x63onversation_logging_settings\x18\x05 \x01(\x0b\x32\x30.google.cloud.ces.v1.ConversationLoggingSettingsB\x03\xe0\x41\x01\x12Y\n!evaluation_audio_recording_config\x18\x06 \x01(\x0b\x32).google.cloud.ces.v1.AudioRecordingConfigB\x03\xe0\x41\x01\x12R\n\x18metric_analysis_settings\x18\x07 \x01(\x0b\x32+.google.cloud.ces.v1.MetricAnalysisSettingsB\x03\xe0\x41\x01\"\xf3\x01\n\x15\x45rrorHandlingSettings\x12\x66\n\x17\x65rror_handling_strategy\x18\x01 \x01(\x0e\x32@.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategyB\x03\xe0\x41\x01\"r\n\x15\x45rrorHandlingStrategy\x12\'\n#ERROR_HANDLING_STRATEGY_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x15\n\x11\x46\x41LLBACK_RESPONSE\x10\x02\x12\x0f\n\x0b\x45ND_SESSION\x10\x03\"\x83\x10\n\x1b\x45valuationMetricsThresholds\x12\x85\x01\n$golden_evaluation_metrics_thresholds\x18\x01 \x01(\x0b\x32R.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12z\n\x1dhallucination_metric_behavior\x18\x03 \x01(\x0e\x32L.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x05\x18\x01\xe0\x41\x01\x12\x7f\n$golden_hallucination_metric_behavior\x18\x05 \x01(\x0e\x32L.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x12\x81\x01\n&scenario_hallucination_metric_behavior\x18\x04 \x01(\x0e\x32L.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x1a\xfb\x08\n!GoldenEvaluationMetricsThresholds\x12\x99\x01\n\x1dturn_level_metrics_thresholds\x18\x01 \x01(\x0b\x32m.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\x03\xe0\x41\x01\x12\xa7\x01\n$expectation_level_metrics_thresholds\x18\x02 \x01(\x0b\x32t.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\x03\xe0\x41\x01\x12j\n\x16tool_matching_settings\x18\x03 \x01(\x0b\x32\x45.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsB\x03\xe0\x41\x01\x1a\x86\x04\n\x1aTurnLevelMetricsThresholds\x12\x37\n%semantic_similarity_success_threshold\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12?\n-overall_tool_invocation_correctness_threshold\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\xb2\x01\n\x1bsemantic_similarity_channel\x18\x03 \x01(\x0e\x32\x87\x01.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\x03\xe0\x41\x01\"]\n\x19SemanticSimilarityChannel\x12+\n\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x42(\n&_semantic_similarity_success_thresholdB0\n._overall_tool_invocation_correctness_threshold\x1a\x9a\x01\n!ExpectationLevelMetricsThresholds\x12\x41\n/tool_invocation_parameter_correctness_threshold\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x32\n0_tool_invocation_parameter_correctness_threshold\x1a\xf3\x01\n\x14ToolMatchingSettings\x12\x82\x01\n\x18\x65xtra_tool_call_behavior\x18\x01 \x01(\x0e\x32[.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\x03\xe0\x41\x01\"V\n\x15\x45xtraToolCallBehavior\x12(\n$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46\x41IL\x10\x01\x12\t\n\x05\x41LLOW\x10\x02\"g\n\x1bHallucinationMetricBehavior\x12-\n)HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\"\x9b\x01\n\x19\x43lientCertificateSettings\x12\x1c\n\x0ftls_certificate\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\x0bprivate_key\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x17\n\npassphrase\x18\x03 \x01(\tB\x03\xe0\x41\x01\"H\n\x1b\x43onversationLoggingSettings\x12)\n\x1c\x64isable_conversation_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"9\n\x14\x43loudLoggingSettings\x12!\n\x14\x65nable_cloud_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"M\n\x14\x41udioRecordingConfig\x12\x17\n\ngcs_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcs_path_prefix\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xc2\x01\n\x0fRedactionConfig\x12\x1d\n\x10\x65nable_redaction\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x44\n\x10inspect_template\x18\x02 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\x12J\n\x13\x64\x65identify_template\x18\x03 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\"\xb3\x02\n\x11\x44\x61taStoreSettings\x12\x43\n\x07\x65ngines\x18\x03 \x03(\x0b\x32-.google.cloud.ces.v1.DataStoreSettings.EngineB\x03\xe0\x41\x03\x1a\xd8\x01\n\x06\x45ngine\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\x12\x45\n\x04type\x18\x02 \x01(\x0e\x32\x32.google.cloud.ces.v1.DataStoreSettings.Engine.TypeB\x03\xe0\x41\x03\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45NGINE_TYPE_SEARCH\x10\x01\x12\x14\n\x10\x45NGINE_TYPE_CHAT\x10\x02\x42\xf4\x04\n\x17\x63om.google.cloud.ces.v1B\x08\x41ppProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41\xc8\x01\n\"dlp.googleapis.com/InspectTemplate\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\xea\x41\xd7\x01\n%dlp.googleapis.com/DeidentifyTemplate\x12[organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}\x12Qprojects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\xea\x41z\n%discoveryengine.googleapis.com/Engine\x12Qprojects/{project}/locations/{location}/collections/{collection}/engines/{engine}b\x06proto3" +descriptor_data = "\n\x1dgoogle/cloud/ces/v1/app.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/ces/v1/bigquery_export.proto\x1a google/cloud/ces/v1/common.proto\x1a google/cloud/ces/v1/schema.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa5\x0f\n\x03\x41pp\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06pinned\x18\x1f \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\nroot_agent\x18\x04 \x01(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x45\n\x11language_settings\x18\x12 \x01(\x0b\x32%.google.cloud.ces.v1.LanguageSettingsB\x03\xe0\x41\x01\x12\x46\n\x12time_zone_settings\x18\x1b \x01(\x0b\x32%.google.cloud.ces.v1.TimeZoneSettingsB\x03\xe0\x41\x01\x12P\n\x17\x61udio_processing_config\x18\x07 \x01(\x0b\x32*.google.cloud.ces.v1.AudioProcessingConfigB\x03\xe0\x41\x01\x12\x43\n\x10logging_settings\x18\x08 \x01(\x0b\x32$.google.cloud.ces.v1.LoggingSettingsB\x03\xe0\x41\x01\x12P\n\x17\x65rror_handling_settings\x18\" \x01(\x0b\x32*.google.cloud.ces.v1.ErrorHandlingSettingsB\x03\xe0\x41\x01\x12?\n\x0emodel_settings\x18\r \x01(\x0b\x32\".google.cloud.ces.v1.ModelSettingsB\x03\xe0\x41\x01\x12L\n\x13tool_execution_mode\x18 \x01(\x0e\x32*.google.cloud.ces.v1.App.ToolExecutionModeB\x03\xe0\x41\x01\x12\\\n\x1d\x65valuation_metrics_thresholds\x18\x18 \x01(\x0b\x32\x30.google.cloud.ces.v1.EvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12P\n\x15variable_declarations\x18\x0e \x03(\x0b\x32,.google.cloud.ces.v1.App.VariableDeclarationB\x03\xe0\x41\x01\x12[\n predefined_variable_declarations\x18\x1c \x03(\x0b\x32,.google.cloud.ces.v1.App.VariableDeclarationB\x03\xe0\x41\x03\x12\x1f\n\x12global_instruction\x18\x11 \x01(\tB\x03\xe0\x41\x01\x12\x38\n\nguardrails\x18\n \x03(\tB$\xe0\x41\x01\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12H\n\x13\x64\x61ta_store_settings\x18\x0f \x01(\x0b\x32&.google.cloud.ces.v1.DataStoreSettingsB\x03\xe0\x41\x01\x12I\n\x17\x64\x65\x66\x61ult_channel_profile\x18\x16 \x01(\x0b\x32#.google.cloud.ces.v1.ChannelProfileB\x03\xe0\x41\x01\x12=\n\x08metadata\x18\x0b \x03(\x0b\x32&.google.cloud.ces.v1.App.MetadataEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x64\x65ployment_count\x18\x17 \x01(\x05\x42\x03\xe0\x41\x03\x12X\n\x1b\x63lient_certificate_settings\x18\x19 \x01(\x0b\x32..google.cloud.ces.v1.ClientCertificateSettingsB\x03\xe0\x41\x01\x12@\n\x0fvpc_sc_settings\x18\x1a \x01(\x0b\x32\".google.cloud.ces.v1.VpcScSettingsB\x03\xe0\x41\x01\x12\x13\n\x06locked\x18\x1d \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11validation_errors\x18\' \x03(\tB\x03\xe0\x41\x03\x1at\n\x13VariableDeclaration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x30\n\x06schema\x18\x03 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x02\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"V\n\x11ToolExecutionMode\x12#\n\x1fTOOL_EXECUTION_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08PARALLEL\x10\x01\x12\x0e\n\nSEQUENTIAL\x10\x02:Z\xea\x41W\n\x16\x63\x65s.googleapis.com/App\x12\x32projects/{project}/locations/{location}/apps/{app}*\x04\x61pps2\x03\x61pp\"*\n\x10TimeZoneSettings\x12\x16\n\ttime_zone\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xa7\x01\n\x10LanguageSettings\x12\"\n\x15\x64\x65\x66\x61ult_language_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18supported_language_codes\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12(\n\x1b\x65nable_multilingual_support\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x0f\x66\x61llback_action\x18\x04 \x01(\tB\x05\x18\x01\xe0\x41\x01\"\xbf\x03\n\x15\x41udioProcessingConfig\x12o\n\x19synthesize_speech_configs\x18\x01 \x03(\x0b\x32G.google.cloud.ces.v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\x03\xe0\x41\x01\x12@\n\x0f\x62\x61rge_in_config\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1.BargeInConfigB\x03\xe0\x41\x01\x12:\n\x12inactivity_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12J\n\x14\x61mbient_sound_config\x18\x05 \x01(\x0b\x32\'.google.cloud.ces.v1.AmbientSoundConfigB\x03\xe0\x41\x01\x1ak\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.ces.v1.SynthesizeSpeechConfig:\x02\x38\x01\"\xd5\x02\n\x12\x41mbientSoundConfig\x12\x65\n\x16prebuilt_ambient_noise\x18\x01 \x01(\x0e\x32<.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\x05\x18\x01\xe0\x41\x01H\x00\x12\x16\n\x07gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12%\n\x16prebuilt_ambient_sound\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1b\n\x0evolume_gain_db\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\"r\n\x14PrebuiltAmbientNoise\x12&\n\"PREBUILT_AMBIENT_NOISE_UNSPECIFIED\x10\x00\x12\x10\n\x0cRETAIL_STORE\x10\x01\x12\x13\n\x0f\x43ONVENTION_HALL\x10\x02\x12\x0b\n\x07OUTDOOR\x10\x03\x42\x08\n\x06source\"Q\n\rBargeInConfig\x12\x1f\n\x10\x64isable_barge_in\x18\x01 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x12\x1f\n\x12\x62\x61rge_in_awareness\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x99\x01\n\x16SynthesizeSpeechConfig\x12\x12\n\x05voice\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12!\n\x14voice_sample_gcs_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rspeaking_rate\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x05model\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0binstruction\x18\x05 \x01(\tB\x03\xe0\x41\x01\"<\n\x16MetricAnalysisSettings\x12\"\n\x15llm_metrics_opted_out\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"\x91\x06\n\x0fLoggingSettings\x12\x43\n\x10redaction_config\x18\x01 \x01(\x0b\x32$.google.cloud.ces.v1.RedactionConfigB\x03\xe0\x41\x01\x12N\n\x16\x61udio_recording_config\x18\x02 \x01(\x0b\x32).google.cloud.ces.v1.AudioRecordingConfigB\x03\xe0\x41\x01\x12Y\n!unredacted_audio_recording_config\x18\x08 \x01(\x0b\x32).google.cloud.ces.v1.AudioRecordingConfigB\x03\xe0\x41\x01\x12R\n\x18\x62igquery_export_settings\x18\x03 \x01(\x0b\x32+.google.cloud.ces.v1.BigQueryExportSettingsB\x03\xe0\x41\x01\x12]\n#unredacted_bigquery_export_settings\x18\t \x01(\x0b\x32+.google.cloud.ces.v1.BigQueryExportSettingsB\x03\xe0\x41\x01\x12N\n\x16\x63loud_logging_settings\x18\x04 \x01(\x0b\x32).google.cloud.ces.v1.CloudLoggingSettingsB\x03\xe0\x41\x01\x12\\\n\x1d\x63onversation_logging_settings\x18\x05 \x01(\x0b\x32\x30.google.cloud.ces.v1.ConversationLoggingSettingsB\x03\xe0\x41\x01\x12Y\n!evaluation_audio_recording_config\x18\x06 \x01(\x0b\x32).google.cloud.ces.v1.AudioRecordingConfigB\x03\xe0\x41\x01\x12R\n\x18metric_analysis_settings\x18\x07 \x01(\x0b\x32+.google.cloud.ces.v1.MetricAnalysisSettingsB\x03\xe0\x41\x01\"\x8d\x06\n\x15\x45rrorHandlingSettings\x12\x66\n\x17\x65rror_handling_strategy\x18\x01 \x01(\x0e\x32@.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategyB\x03\xe0\x41\x01\x12h\n\x18\x66\x61llback_response_config\x18\x02 \x01(\x0b\x32\x41.google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfigB\x03\xe0\x41\x01\x12\\\n\x12\x65nd_session_config\x18\x03 \x01(\x0b\x32;.google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfigB\x03\xe0\x41\x01\x1a\x82\x02\n\x16\x46\x61llbackResponseConfig\x12\x84\x01\n\x18\x63ustom_fallback_messages\x18\x01 \x03(\x0b\x32].google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig.CustomFallbackMessagesEntryB\x03\xe0\x41\x01\x12\"\n\x15max_fallback_attempts\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x1a=\n\x1b\x43ustomFallbackMessagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aK\n\x10\x45ndSessionConfig\x12\"\n\x10\x65scalate_session\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x13\n\x11_escalate_session\"r\n\x15\x45rrorHandlingStrategy\x12\'\n#ERROR_HANDLING_STRATEGY_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x15\n\x11\x46\x41LLBACK_RESPONSE\x10\x02\x12\x0f\n\x0b\x45ND_SESSION\x10\x03\"\x83\x10\n\x1b\x45valuationMetricsThresholds\x12\x85\x01\n$golden_evaluation_metrics_thresholds\x18\x01 \x01(\x0b\x32R.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12z\n\x1dhallucination_metric_behavior\x18\x03 \x01(\x0e\x32L.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x05\x18\x01\xe0\x41\x01\x12\x7f\n$golden_hallucination_metric_behavior\x18\x05 \x01(\x0e\x32L.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x12\x81\x01\n&scenario_hallucination_metric_behavior\x18\x04 \x01(\x0e\x32L.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x1a\xfb\x08\n!GoldenEvaluationMetricsThresholds\x12\x99\x01\n\x1dturn_level_metrics_thresholds\x18\x01 \x01(\x0b\x32m.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\x03\xe0\x41\x01\x12\xa7\x01\n$expectation_level_metrics_thresholds\x18\x02 \x01(\x0b\x32t.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\x03\xe0\x41\x01\x12j\n\x16tool_matching_settings\x18\x03 \x01(\x0b\x32\x45.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsB\x03\xe0\x41\x01\x1a\x86\x04\n\x1aTurnLevelMetricsThresholds\x12\x37\n%semantic_similarity_success_threshold\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12?\n-overall_tool_invocation_correctness_threshold\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\xb2\x01\n\x1bsemantic_similarity_channel\x18\x03 \x01(\x0e\x32\x87\x01.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\x03\xe0\x41\x01\"]\n\x19SemanticSimilarityChannel\x12+\n\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x42(\n&_semantic_similarity_success_thresholdB0\n._overall_tool_invocation_correctness_threshold\x1a\x9a\x01\n!ExpectationLevelMetricsThresholds\x12\x41\n/tool_invocation_parameter_correctness_threshold\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x32\n0_tool_invocation_parameter_correctness_threshold\x1a\xf3\x01\n\x14ToolMatchingSettings\x12\x82\x01\n\x18\x65xtra_tool_call_behavior\x18\x01 \x01(\x0e\x32[.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\x03\xe0\x41\x01\"V\n\x15\x45xtraToolCallBehavior\x12(\n$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46\x41IL\x10\x01\x12\t\n\x05\x41LLOW\x10\x02\"g\n\x1bHallucinationMetricBehavior\x12-\n)HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\"\x9b\x01\n\x19\x43lientCertificateSettings\x12\x1c\n\x0ftls_certificate\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\x0bprivate_key\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x17\n\npassphrase\x18\x03 \x01(\tB\x03\xe0\x41\x01\"-\n\rVpcScSettings\x12\x1c\n\x0f\x61llowed_origins\x18\x01 \x03(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1b\x43onversationLoggingSettings\x12)\n\x1c\x64isable_conversation_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x38\n\x10retention_window\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"9\n\x14\x43loudLoggingSettings\x12!\n\x14\x65nable_cloud_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"M\n\x14\x41udioRecordingConfig\x12\x17\n\ngcs_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcs_path_prefix\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xc2\x01\n\x0fRedactionConfig\x12\x1d\n\x10\x65nable_redaction\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x44\n\x10inspect_template\x18\x02 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\x12J\n\x13\x64\x65identify_template\x18\x03 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\"\xb3\x02\n\x11\x44\x61taStoreSettings\x12\x43\n\x07\x65ngines\x18\x03 \x03(\x0b\x32-.google.cloud.ces.v1.DataStoreSettings.EngineB\x03\xe0\x41\x03\x1a\xd8\x01\n\x06\x45ngine\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\x12\x45\n\x04type\x18\x02 \x01(\x0e\x32\x32.google.cloud.ces.v1.DataStoreSettings.Engine.TypeB\x03\xe0\x41\x03\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45NGINE_TYPE_SEARCH\x10\x01\x12\x14\n\x10\x45NGINE_TYPE_CHAT\x10\x02\x42\xf4\x04\n\x17\x63om.google.cloud.ces.v1B\x08\x41ppProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41\xc8\x01\n\"dlp.googleapis.com/InspectTemplate\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\xea\x41\xd7\x01\n%dlp.googleapis.com/DeidentifyTemplate\x12[organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}\x12Qprojects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\xea\x41z\n%discoveryengine.googleapis.com/Engine\x12Qprojects/{project}/locations/{location}/collections/{collection}/engines/{engine}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -35,6 +35,8 @@ module V1 MetricAnalysisSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.MetricAnalysisSettings").msgclass LoggingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.LoggingSettings").msgclass ErrorHandlingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ErrorHandlingSettings").msgclass + ErrorHandlingSettings::FallbackResponseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ErrorHandlingSettings.FallbackResponseConfig").msgclass + ErrorHandlingSettings::EndSessionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ErrorHandlingSettings.EndSessionConfig").msgclass ErrorHandlingSettings::ErrorHandlingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy").enummodule EvaluationMetricsThresholds = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.EvaluationMetricsThresholds").msgclass EvaluationMetricsThresholds::GoldenEvaluationMetricsThresholds = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds").msgclass @@ -45,6 +47,7 @@ module V1 EvaluationMetricsThresholds::ToolMatchingSettings::ExtraToolCallBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior").enummodule EvaluationMetricsThresholds::HallucinationMetricBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior").enummodule ClientCertificateSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ClientCertificateSettings").msgclass + VpcScSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.VpcScSettings").msgclass ConversationLoggingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ConversationLoggingSettings").msgclass CloudLoggingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.CloudLoggingSettings").msgclass AudioRecordingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.AudioRecordingConfig").msgclass diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/common_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/common_pb.rb index ead33bca5b36..ce1d33d74cd0 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/common_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/common_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n google/cloud/ces/v1/common.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x01\n\x08\x43\x61llback\x12\x1a\n\x0bpython_code\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x64isabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1bproactive_execution_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x42\n\n\x08\x63\x61llback\"R\n\rModelSettings\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x0btemperature\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_temperature\"\x98\x04\n\rTriggerAction\x12Y\n\x13respond_immediately\x18\x01 \x01(\x0b\x32\x35.google.cloud.ces.v1.TriggerAction.RespondImmediatelyB\x03\xe0\x41\x01H\x00\x12O\n\x0etransfer_agent\x18\x02 \x01(\x0b\x32\x30.google.cloud.ces.v1.TriggerAction.TransferAgentB\x03\xe0\x41\x01H\x00\x12U\n\x11generative_answer\x18\x03 \x01(\x0b\x32\x33.google.cloud.ces.v1.TriggerAction.GenerativeAnswerB\x03\xe0\x41\x01H\x00\x1a\x34\n\x08Response\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x64isabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1aY\n\x12RespondImmediately\x12\x43\n\tresponses\x18\x01 \x03(\x0b\x32+.google.cloud.ces.v1.TriggerAction.ResponseB\x03\xe0\x41\x02\x1a\'\n\x10GenerativeAnswer\x12\x13\n\x06prompt\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a@\n\rTransferAgent\x12/\n\x05\x61gent\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/AgentB\x08\n\x06\x61\x63tion\"\x81\x01\n\tTlsConfig\x12<\n\x08\x63\x61_certs\x18\x01 \x03(\x0b\x32%.google.cloud.ces.v1.TlsConfig.CaCertB\x03\xe0\x41\x02\x1a\x36\n\x06\x43\x61\x43\x65rt\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x63\x65rt\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"Z\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\xc3\n\n\x0e\x43hannelProfile\x12\x17\n\nprofile_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12J\n\x0c\x63hannel_type\x18\x03 \x01(\x0e\x32/.google.cloud.ces.v1.ChannelProfile.ChannelTypeB\x03\xe0\x41\x01\x12R\n\x10persona_property\x18\x02 \x01(\x0b\x32\x33.google.cloud.ces.v1.ChannelProfile.PersonaPropertyB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isable_dtmf\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18\x64isable_barge_in_control\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12S\n\x11web_widget_config\x18\x07 \x01(\x0b\x32\x33.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigB\x03\xe0\x41\x01\x12$\n\x17noise_suppression_level\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\x95\x01\n\x0fPersonaProperty\x12Q\n\x07persona\x18\x01 \x01(\x0e\x32;.google.cloud.ces.v1.ChannelProfile.PersonaProperty.PersonaB\x03\xe0\x41\x01\"/\n\x07Persona\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x43ONCISE\x10\x01\x12\n\n\x06\x43HATTY\x10\x02\x1a\xf9\x04\n\x0fWebWidgetConfig\x12S\n\x08modality\x18\x01 \x01(\x0e\x32<.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.ModalityB\x03\xe0\x41\x01\x12M\n\x05theme\x18\x02 \x01(\x0e\x32\x39.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.ThemeB\x03\xe0\x41\x01\x12\x1d\n\x10web_widget_title\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x64\n\x11security_settings\x18\x04 \x01(\x0b\x32\x44.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsB\x03\xe0\x41\x01\x1a\x94\x01\n\x10SecuritySettings\x12!\n\x14\x65nable_public_access\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13\x65nable_origin_check\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0f\x61llowed_origins\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x65nable_recaptcha\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"q\n\x08Modality\x12\x18\n\x14MODALITY_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43HAT_AND_VOICE\x10\x01\x12\x0e\n\nVOICE_ONLY\x10\x02\x12\r\n\tCHAT_ONLY\x10\x03\x12\x18\n\x14\x43HAT_VOICE_AND_VIDEO\x10\x04\"3\n\x05Theme\x12\x15\n\x11THEME_UNSPECIFIED\x10\x00\x12\t\n\x05LIGHT\x10\x01\x12\x08\n\x04\x44\x41RK\x10\x02\"\xa6\x01\n\x0b\x43hannelType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06WEB_UI\x10\x02\x12\x07\n\x03\x41PI\x10\x03\x12\n\n\x06TWILIO\x10\x04\x12\x1d\n\x19GOOGLE_TELEPHONY_PLATFORM\x10\x05\x12\x1f\n\x1b\x43ONTACT_CENTER_AS_A_SERVICE\x10\x06\x12\t\n\x05\x46IVE9\x10\x07\x12\x1e\n\x1a\x43ONTACT_CENTER_INTEGRATION\x10\x08\"\x9a\x02\n\x04Span\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x30\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x30\n\nattributes\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\x12\x33\n\x0b\x63hild_spans\x18\x05 \x03(\x0b\x32\x19.google.cloud.ces.v1.SpanB\x03\xe0\x41\x03*R\n\rExecutionType\x12\x1e\n\x1a\x45XECUTION_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSYNCHRONOUS\x10\x01\x12\x10\n\x0c\x41SYNCHRONOUS\x10\x02\x42\xd2\x01\n\x17\x63om.google.cloud.ces.v1B\x0b\x43ommonProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\x06proto3" +descriptor_data = "\n google/cloud/ces/v1/common.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x01\n\x08\x43\x61llback\x12\x1a\n\x0bpython_code\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x64isabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1bproactive_execution_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x42\n\n\x08\x63\x61llback\"R\n\rModelSettings\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x0btemperature\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_temperature\"\x98\x04\n\rTriggerAction\x12Y\n\x13respond_immediately\x18\x01 \x01(\x0b\x32\x35.google.cloud.ces.v1.TriggerAction.RespondImmediatelyB\x03\xe0\x41\x01H\x00\x12O\n\x0etransfer_agent\x18\x02 \x01(\x0b\x32\x30.google.cloud.ces.v1.TriggerAction.TransferAgentB\x03\xe0\x41\x01H\x00\x12U\n\x11generative_answer\x18\x03 \x01(\x0b\x32\x33.google.cloud.ces.v1.TriggerAction.GenerativeAnswerB\x03\xe0\x41\x01H\x00\x1a\x34\n\x08Response\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x64isabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1aY\n\x12RespondImmediately\x12\x43\n\tresponses\x18\x01 \x03(\x0b\x32+.google.cloud.ces.v1.TriggerAction.ResponseB\x03\xe0\x41\x02\x1a\'\n\x10GenerativeAnswer\x12\x13\n\x06prompt\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a@\n\rTransferAgent\x12/\n\x05\x61gent\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/AgentB\x08\n\x06\x61\x63tion\"\x81\x01\n\tTlsConfig\x12<\n\x08\x63\x61_certs\x18\x01 \x03(\x0b\x32%.google.cloud.ces.v1.TlsConfig.CaCertB\x03\xe0\x41\x02\x1a\x36\n\x06\x43\x61\x43\x65rt\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x63\x65rt\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"Z\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\xe7\x0e\n\x0e\x43hannelProfile\x12\x17\n\nprofile_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12J\n\x0c\x63hannel_type\x18\x03 \x01(\x0e\x32/.google.cloud.ces.v1.ChannelProfile.ChannelTypeB\x03\xe0\x41\x01\x12R\n\x10persona_property\x18\x02 \x01(\x0b\x32\x33.google.cloud.ces.v1.ChannelProfile.PersonaPropertyB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isable_dtmf\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18\x64isable_barge_in_control\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12S\n\x11web_widget_config\x18\x07 \x01(\x0b\x32\x33.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigB\x03\xe0\x41\x01\x12$\n\x17noise_suppression_level\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12P\n\x0fwhatsapp_config\x18\t \x01(\x0b\x32\x32.google.cloud.ces.v1.ChannelProfile.WhatsAppConfigB\x03\xe0\x41\x01\x12R\n\x10instagram_config\x18\n \x01(\x0b\x32\x33.google.cloud.ces.v1.ChannelProfile.InstagramConfigB\x03\xe0\x41\x01\x1a\x95\x01\n\x0fPersonaProperty\x12Q\n\x07persona\x18\x01 \x01(\x0e\x32;.google.cloud.ces.v1.ChannelProfile.PersonaProperty.PersonaB\x03\xe0\x41\x01\"/\n\x07Persona\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x43ONCISE\x10\x01\x12\n\n\x06\x43HATTY\x10\x02\x1a\xf9\x04\n\x0fWebWidgetConfig\x12S\n\x08modality\x18\x01 \x01(\x0e\x32<.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.ModalityB\x03\xe0\x41\x01\x12M\n\x05theme\x18\x02 \x01(\x0e\x32\x39.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.ThemeB\x03\xe0\x41\x01\x12\x1d\n\x10web_widget_title\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x64\n\x11security_settings\x18\x04 \x01(\x0b\x32\x44.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsB\x03\xe0\x41\x01\x1a\x94\x01\n\x10SecuritySettings\x12!\n\x14\x65nable_public_access\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13\x65nable_origin_check\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0f\x61llowed_origins\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x65nable_recaptcha\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"q\n\x08Modality\x12\x18\n\x14MODALITY_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43HAT_AND_VOICE\x10\x01\x12\x0e\n\nVOICE_ONLY\x10\x02\x12\r\n\tCHAT_ONLY\x10\x03\x12\x18\n\x14\x43HAT_VOICE_AND_VIDEO\x10\x04\"3\n\x05Theme\x12\x15\n\x11THEME_UNSPECIFIED\x10\x00\x12\t\n\x05LIGHT\x10\x01\x12\x08\n\x04\x44\x41RK\x10\x02\x1a\xb0\x01\n\x0eWhatsAppConfig\x12\x14\n\x07waba_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fphone_number_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rthumbnail_url\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x03\x1a\x85\x01\n\x0fInstagramConfig\x12!\n\x14instagram_account_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rthumbnail_url\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\xe9\x01\n\x0b\x43hannelType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06WEB_UI\x10\x02\x12\x07\n\x03\x41PI\x10\x03\x12\n\n\x06TWILIO\x10\x04\x12\x1d\n\x19GOOGLE_TELEPHONY_PLATFORM\x10\x05\x12\x1f\n\x1b\x43ONTACT_CENTER_AS_A_SERVICE\x10\x06\x12$\n CONTACT_CENTER_AS_A_SERVICE_CHAT\x10\x0b\x12\t\n\x05\x46IVE9\x10\x07\x12\x1e\n\x1a\x43ONTACT_CENTER_INTEGRATION\x10\x08\x12\x0c\n\x08WHATSAPP\x10\t\x12\r\n\tINSTAGRAM\x10\n\"\x9a\x02\n\x04Span\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x30\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x30\n\nattributes\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\x12\x33\n\x0b\x63hild_spans\x18\x05 \x03(\x0b\x32\x19.google.cloud.ces.v1.SpanB\x03\xe0\x41\x03*R\n\rExecutionType\x12\x1e\n\x1a\x45XECUTION_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSYNCHRONOUS\x10\x01\x12\x10\n\x0c\x41SYNCHRONOUS\x10\x02\x42\xd2\x01\n\x17\x63om.google.cloud.ces.v1B\x0b\x43ommonProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -37,6 +37,8 @@ module V1 ChannelProfile::WebWidgetConfig::SecuritySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings").msgclass ChannelProfile::WebWidgetConfig::Modality = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality").enummodule ChannelProfile::WebWidgetConfig::Theme = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme").enummodule + ChannelProfile::WhatsAppConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ChannelProfile.WhatsAppConfig").msgclass + ChannelProfile::InstagramConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ChannelProfile.InstagramConfig").msgclass ChannelProfile::ChannelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ChannelProfile.ChannelType").enummodule Span = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.Span").msgclass ExecutionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ExecutionType").enummodule diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/conversation_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/conversation_pb.rb index ec81f2ea0462..846128dcfd22 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/conversation_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/conversation_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n&google/cloud/ces/v1/conversation.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/common.proto\x1a!google/cloud/ces/v1/example.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\n\n\x0c\x43onversation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x05turns\x18\x06 \x03(\x0b\x32&.google.cloud.ces.v1.Conversation.TurnB\x03\xe0\x41\x02\x12\x17\n\nturn_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x03\x12G\n\x0c\x63hannel_type\x18\x08 \x01(\x0e\x32-.google.cloud.ces.v1.Conversation.ChannelTypeB\x02\x18\x01\x12=\n\x06source\x18\t \x01(\x0e\x32(.google.cloud.ces.v1.Conversation.SourceB\x03\xe0\x41\x03\x12\x45\n\x0binput_types\x18\n \x03(\x0e\x32+.google.cloud.ces.v1.Conversation.InputTypeB\x03\xe0\x41\x03\x12\x35\n\x0b\x65ntry_agent\x18\x0b \x01(\tB \xe0\x41\x03\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x39\n\ndeployment\x18\x0c \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Deployment\x12:\n\x0b\x61pp_version\x18\r \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12\x1a\n\rlanguage_code\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x32\n\x08messages\x18\x02 \x03(\x0b\x32\x1c.google.cloud.ces.v1.MessageB\x02\x18\x01\x1an\n\x04Turn\x12\x33\n\x08messages\x18\x01 \x03(\x0b\x32\x1c.google.cloud.ces.v1.MessageB\x03\xe0\x41\x01\x12\x31\n\troot_span\x18\x02 \x01(\x0b\x32\x19.google.cloud.ces.v1.SpanB\x03\xe0\x41\x01\"P\n\x0b\x43hannelType\x12\x1c\n\x18\x43HANNEL_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\x0e\n\nMULTIMODAL\x10\x03\"C\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x08\n\x04LIVE\x10\x01\x12\r\n\tSIMULATOR\x10\x02\x12\x08\n\x04\x45VAL\x10\x03\"\xb5\x01\n\tInputType\x12\x1a\n\x16INPUT_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fINPUT_TYPE_TEXT\x10\x01\x12\x14\n\x10INPUT_TYPE_AUDIO\x10\x02\x12\x14\n\x10INPUT_TYPE_IMAGE\x10\x03\x12\x13\n\x0fINPUT_TYPE_BLOB\x10\x04\x12\x1c\n\x18INPUT_TYPE_TOOL_RESPONSE\x10\x05\x12\x18\n\x14INPUT_TYPE_VARIABLES\x10\x06:\x93\x01\xea\x41\x8f\x01\n\x1f\x63\x65s.googleapis.com/Conversation\x12Oprojects/{project}/locations/{location}/apps/{app}/conversations/{conversation}*\rconversations2\x0c\x63onversationBY\n\x17\x63om.google.cloud.ces.v1B\x11\x43onversationProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n&google/cloud/ces/v1/conversation.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/common.proto\x1a!google/cloud/ces/v1/example.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\n\n\x0c\x43onversation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x05turns\x18\x06 \x03(\x0b\x32&.google.cloud.ces.v1.Conversation.TurnB\x03\xe0\x41\x02\x12\x17\n\nturn_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x03\x12G\n\x0c\x63hannel_type\x18\x08 \x01(\x0e\x32-.google.cloud.ces.v1.Conversation.ChannelTypeB\x02\x18\x01\x12=\n\x06source\x18\t \x01(\x0e\x32(.google.cloud.ces.v1.Conversation.SourceB\x03\xe0\x41\x03\x12\x45\n\x0binput_types\x18\n \x03(\x0e\x32+.google.cloud.ces.v1.Conversation.InputTypeB\x03\xe0\x41\x03\x12\x35\n\x0b\x65ntry_agent\x18\x0b \x01(\tB \xe0\x41\x03\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x39\n\ndeployment\x18\x0c \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Deployment\x12:\n\x0b\x61pp_version\x18\r \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12\x1a\n\rlanguage_code\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x32\n\x08messages\x18\x02 \x03(\x0b\x32\x1c.google.cloud.ces.v1.MessageB\x02\x18\x01\x1an\n\x04Turn\x12\x33\n\x08messages\x18\x01 \x03(\x0b\x32\x1c.google.cloud.ces.v1.MessageB\x03\xe0\x41\x01\x12\x31\n\troot_span\x18\x02 \x01(\x0b\x32\x19.google.cloud.ces.v1.SpanB\x03\xe0\x41\x01\"P\n\x0b\x43hannelType\x12\x1c\n\x18\x43HANNEL_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\x0e\n\nMULTIMODAL\x10\x03\"S\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x08\n\x04LIVE\x10\x01\x12\r\n\tSIMULATOR\x10\x02\x12\x08\n\x04\x45VAL\x10\x03\x12\x0e\n\nAGENT_TOOL\x10\x04\"\xcb\x01\n\tInputType\x12\x1a\n\x16INPUT_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fINPUT_TYPE_TEXT\x10\x01\x12\x14\n\x10INPUT_TYPE_EVENT\x10\x07\x12\x14\n\x10INPUT_TYPE_AUDIO\x10\x02\x12\x14\n\x10INPUT_TYPE_IMAGE\x10\x03\x12\x13\n\x0fINPUT_TYPE_BLOB\x10\x04\x12\x1c\n\x18INPUT_TYPE_TOOL_RESPONSE\x10\x05\x12\x18\n\x14INPUT_TYPE_VARIABLES\x10\x06:\x93\x01\xea\x41\x8f\x01\n\x1f\x63\x65s.googleapis.com/Conversation\x12Oprojects/{project}/locations/{location}/apps/{app}/conversations/{conversation}*\rconversations2\x0c\x63onversationBY\n\x17\x63om.google.cloud.ces.v1B\x11\x43onversationProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/deployment_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/deployment_pb.rb index 6c818eb305f7..e6763866c0f5 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/deployment_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/deployment_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n$google/cloud/ces/v1/deployment.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x03\n\nDeployment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12:\n\x0b\x61pp_version\x18\x02 \x01(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12\x41\n\x0f\x63hannel_profile\x18\x03 \x01(\x0b\x32#.google.cloud.ces.v1.ChannelProfileB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x07 \x01(\tB\x03\xe0\x41\x03:\x89\x01\xea\x41\x85\x01\n\x1d\x63\x65s.googleapis.com/Deployment\x12Kprojects/{project}/locations/{location}/apps/{app}/deployments/{deployment}*\x0b\x64\x65ployments2\ndeploymentB[\n\x17\x63om.google.cloud.ces.v1B\x13\x43hannelProfileProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n$google/cloud/ces/v1/deployment.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf9\x03\n\x10\x45xperimentConfig\x12R\n\x0fversion_release\x18\x01 \x01(\x0b\x32\x34.google.cloud.ces.v1.ExperimentConfig.VersionReleaseB\x03\xe0\x41\x01\x1a\xbf\x02\n\x0eVersionRelease\x12?\n\x05state\x18\x01 \x01(\x0e\x32+.google.cloud.ces.v1.ExperimentConfig.StateB\x03\xe0\x41\x01\x12h\n\x13traffic_allocations\x18\x02 \x03(\x0b\x32\x46.google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocationB\x03\xe0\x41\x01\x1a\x81\x01\n\x11TrafficAllocation\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12traffic_percentage\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12:\n\x0b\x61pp_version\x18\x03 \x01(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\"O\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\"\xad\x05\n\nDeployment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12:\n\x0b\x61pp_version\x18\x02 \x01(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12\x41\n\x0f\x63hannel_profile\x18\x03 \x01(\x0b\x32#.google.cloud.ces.v1.ChannelProfileB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x11\x65xperiment_config\x18\t \x01(\x0b\x32%.google.cloud.ces.v1.ExperimentConfigB\x03\xe0\x41\x01\x12N\n\x14whatsapp_credentials\x18\n \x01(\x0b\x32(.google.cloud.ces.v1.WhatsAppCredentialsB\x06\xe0\x41\x01\xe0\x41\x04\x12P\n\x15instagram_credentials\x18\x0b \x01(\x0b\x32).google.cloud.ces.v1.InstagramCredentialsB\x06\xe0\x41\x01\xe0\x41\x04:\x89\x01\xea\x41\x85\x01\n\x1d\x63\x65s.googleapis.com/Deployment\x12Kprojects/{project}/locations/{location}/apps/{app}/deployments/{deployment}*\x0b\x64\x65ployments2\ndeployment\"\xb8\x01\n\x13WhatsAppCredentials\x12\x16\n\tauth_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03pin\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0cphone_number\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x62usiness_account_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07waba_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12$\n\x17\x63onversation_profile_id\x18\x06 \x01(\tB\x03\xe0\x41\x02\"T\n\x14InstagramCredentials\x12\x16\n\tauth_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12$\n\x17\x63onversation_profile_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42[\n\x17\x63om.google.cloud.ces.v1B\x13\x43hannelProfileProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -19,7 +19,13 @@ module Google module Cloud module Ces module V1 + ExperimentConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ExperimentConfig").msgclass + ExperimentConfig::VersionRelease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ExperimentConfig.VersionRelease").msgclass + ExperimentConfig::VersionRelease::TrafficAllocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ExperimentConfig.VersionRelease.TrafficAllocation").msgclass + ExperimentConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.ExperimentConfig.State").enummodule Deployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.Deployment").msgclass + WhatsAppCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WhatsAppCredentials").msgclass + InstagramCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.InstagramCredentials").msgclass end end end diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_tool_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_tool_pb.rb index bbc37b8770e3..e1e2a6a86612 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_tool_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_tool_pb.rb @@ -10,7 +10,7 @@ require 'google/cloud/ces/v1/schema_pb' -descriptor_data = "\n\"google/cloud/ces/v1/mcp_tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/cloud/ces/v1/auth.proto\x1a google/cloud/ces/v1/common.proto\x1a google/cloud/ces/v1/schema.proto\"\x9e\x04\n\x07McpTool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\x0cinput_schema\x18\x03 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x01\x12\x37\n\routput_schema\x18\x04 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_address\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12G\n\x12\x61pi_authentication\x18\x06 \x01(\x0b\x32&.google.cloud.ces.v1.ApiAuthenticationB\x03\xe0\x41\x01\x12\x37\n\ntls_config\x18\x07 \x01(\x0b\x32\x1e.google.cloud.ces.v1.TlsConfigB\x03\xe0\x41\x01\x12R\n\x18service_directory_config\x18\x08 \x01(\x0b\x32+.google.cloud.ces.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12L\n\x0e\x63ustom_headers\x18\t \x03(\x0b\x32/.google.cloud.ces.v1.McpTool.CustomHeadersEntryB\x03\xe0\x41\x01\x1a\x34\n\x12\x43ustomHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42T\n\x17\x63om.google.cloud.ces.v1B\x0cMcpToolProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n\"google/cloud/ces/v1/mcp_tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/cloud/ces/v1/auth.proto\x1a google/cloud/ces/v1/common.proto\x1a google/cloud/ces/v1/schema.proto\"\xb7\x05\n\x07McpTool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rname_override\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\x0cinput_schema\x18\x03 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x01\x12\x37\n\routput_schema\x18\x04 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_address\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12G\n\x12\x61pi_authentication\x18\x06 \x01(\x0b\x32&.google.cloud.ces.v1.ApiAuthenticationB\x03\xe0\x41\x01\x12\x37\n\ntls_config\x18\x07 \x01(\x0b\x32\x1e.google.cloud.ces.v1.TlsConfigB\x03\xe0\x41\x01\x12R\n\x18service_directory_config\x18\x08 \x01(\x0b\x32+.google.cloud.ces.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12L\n\x0e\x63ustom_headers\x18\t \x03(\x0b\x32/.google.cloud.ces.v1.McpTool.CustomHeadersEntryB\x03\xe0\x41\x01\x12\x36\n\x05state\x18\x0c \x01(\x0e\x32\".google.cloud.ces.v1.McpTool.StateB\x03\xe0\x41\x03\x1a\x34\n\x12\x43ustomHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"C\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\t\n\x05STALE\x10\x03\x42T\n\x17\x63om.google.cloud.ces.v1B\x0cMcpToolProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -20,6 +20,7 @@ module Cloud module Ces module V1 McpTool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.McpTool").msgclass + McpTool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.McpTool.State").enummodule end end end diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_toolset_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_toolset_pb.rb index 177f908a5b66..10734d4216ef 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_toolset_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/mcp_toolset_pb.rb @@ -7,9 +7,10 @@ require 'google/api/field_behavior_pb' require 'google/cloud/ces/v1/auth_pb' require 'google/cloud/ces/v1/common_pb' +require 'google/cloud/ces/v1/schema_pb' -descriptor_data = "\n%google/cloud/ces/v1/mcp_toolset.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/cloud/ces/v1/auth.proto\x1a google/cloud/ces/v1/common.proto\"\x86\x03\n\nMcpToolset\x12\x1b\n\x0eserver_address\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\x12\x61pi_authentication\x18\x02 \x01(\x0b\x32&.google.cloud.ces.v1.ApiAuthenticationB\x03\xe0\x41\x01\x12R\n\x18service_directory_config\x18\x03 \x01(\x0b\x32+.google.cloud.ces.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x37\n\ntls_config\x18\x04 \x01(\x0b\x32\x1e.google.cloud.ces.v1.TlsConfigB\x03\xe0\x41\x01\x12O\n\x0e\x63ustom_headers\x18\x05 \x03(\x0b\x32\x32.google.cloud.ces.v1.McpToolset.CustomHeadersEntryB\x03\xe0\x41\x01\x1a\x34\n\x12\x43ustomHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42W\n\x17\x63om.google.cloud.ces.v1B\x0fMcpToolsetProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n%google/cloud/ces/v1/mcp_toolset.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/cloud/ces/v1/auth.proto\x1a google/cloud/ces/v1/common.proto\x1a google/cloud/ces/v1/schema.proto\"\xc9\x03\n\nMcpToolset\x12\x1b\n\x0eserver_address\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12G\n\x12\x61pi_authentication\x18\x02 \x01(\x0b\x32&.google.cloud.ces.v1.ApiAuthenticationB\x03\xe0\x41\x01\x12R\n\x18service_directory_config\x18\x03 \x01(\x0b\x32+.google.cloud.ces.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x37\n\ntls_config\x18\x04 \x01(\x0b\x32\x1e.google.cloud.ces.v1.TlsConfigB\x03\xe0\x41\x01\x12O\n\x0e\x63ustom_headers\x18\x05 \x03(\x0b\x32\x32.google.cloud.ces.v1.McpToolset.CustomHeadersEntryB\x03\xe0\x41\x01\x12\x41\n\x0etool_overrides\x18\x06 \x03(\x0b\x32$.google.cloud.ces.v1.McpToolOverrideB\x03\xe0\x41\x01\x1a\x34\n\x12\x43ustomHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa2\x01\n\x0fMcpToolOverride\x12\x11\n\x04tool\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rname_override\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12!\n\x14\x64\x65scription_override\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12=\n\x08snapshot\x18\x04 \x01(\x0b\x32&.google.cloud.ces.v1.McpToolDefinitionB\x03\xe0\x41\x03\"\x9e\x01\n\x11McpToolDefinition\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\x0cinput_schema\x18\x02 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x03\x12\x37\n\routput_schema\x18\x03 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x03\x42W\n\x17\x63om.google.cloud.ces.v1B\x0fMcpToolsetProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -19,6 +20,8 @@ module Cloud module Ces module V1 McpToolset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.McpToolset").msgclass + McpToolOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.McpToolOverride").msgclass + McpToolDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.McpToolDefinition").msgclass end end end diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/mocks_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/mocks_pb.rb new file mode 100644 index 000000000000..c1cba93e021c --- /dev/null +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/mocks_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/ces/v1/mocks.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/cloud/ces/v1/toolset_tool_pb' +require 'google/protobuf/struct_pb' + + +descriptor_data = "\n\x1fgoogle/cloud/ces/v1/mocks.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/ces/v1/toolset_tool.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xb4\x02\n\x0eMockedToolCall\x12\x32\n\x07tool_id\x18\x04 \x01(\tB\x1f\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12\x38\n\x07toolset\x18\x05 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolB\x03\xe0\x41\x01H\x00\x12/\n\x04tool\x18\x01 \x01(\tB!\x18\x01\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12;\n\x15\x65xpected_args_pattern\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x02\x12\x33\n\rmock_response\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x42\x11\n\x0ftool_identifierBR\n\x17\x63om.google.cloud.ces.v1B\nMocksProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Ces + module V1 + MockedToolCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.MockedToolCall").msgclass + end + end + end +end diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/python_function_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/python_function_pb.rb index 2cfefda7353c..f13b94594397 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/python_function_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/python_function_pb.rb @@ -5,9 +5,10 @@ require 'google/protobuf' require 'google/api/field_behavior_pb' +require 'google/cloud/ces/v1/common_pb' -descriptor_data = "\n)google/cloud/ces/v1/python_function.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\"W\n\x0ePythonFunction\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bpython_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42[\n\x17\x63om.google.cloud.ces.v1B\x13PythonFunctionProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n)google/cloud/ces/v1/python_function.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a google/cloud/ces/v1/common.proto\"\xab\x01\n\x0ePythonFunction\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bpython_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12R\n\x18service_directory_config\x18\x04 \x01(\x0b\x32+.google.cloud.ces.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x42[\n\x17\x63om.google.cloud.ces.v1B\x13PythonFunctionProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/session_service_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/session_service_pb.rb index 4f4de4eb6a2a..784e28f36432 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/session_service_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/session_service_pb.rb @@ -11,11 +11,13 @@ require 'google/api/routing_pb' require 'google/cloud/ces/v1/common_pb' require 'google/cloud/ces/v1/example_pb' +require 'google/cloud/ces/v1/mocks_pb' require 'google/cloud/ces/v1/search_suggestions_pb' +require 'google/protobuf/any_pb' require 'google/protobuf/struct_pb' -descriptor_data = "\n)google/cloud/ces/v1/session_service.proto\x12\x13google.cloud.ces.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a google/cloud/ces/v1/common.proto\x1a!google/cloud/ces/v1/example.proto\x1a,google/cloud/ces/v1/search_suggestions.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x99\x01\n\x10InputAudioConfig\x12?\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\".google.cloud.ces.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12$\n\x17noise_suppression_level\x18\x06 \x01(\tB\x03\xe0\x41\x01\"t\n\x11OutputAudioConfig\x12?\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\".google.cloud.ces.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xed\x06\n\rSessionConfig\x12\x33\n\x07session\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Session\x12\x46\n\x12input_audio_config\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1.InputAudioConfigB\x03\xe0\x41\x01\x12H\n\x13output_audio_config\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1.OutputAudioConfigB\x03\xe0\x41\x01\x12>\n\x13historical_contexts\x18\x05 \x03(\x0b\x32\x1c.google.cloud.ces.v1.MessageB\x03\xe0\x41\x01\x12\x35\n\x0b\x65ntry_agent\x18\x0c \x01(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x17\n\ndeployment\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0euse_tool_fakes\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12s\n\"remote_dialogflow_query_parameters\x18\x0f \x01(\x0b\x32\x42.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersB\x03\xe0\x41\x01\x12\"\n\x15\x65nable_text_streaming\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xb6\x02\n\x1fRemoteDialogflowQueryParameters\x12t\n\x0fwebhook_headers\x18\x01 \x03(\x0b\x32V.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.WebhookHeadersEntryB\x03\xe0\x41\x01\x12-\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x37\n\x11\x65nd_user_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"C\n\tToolCalls\x12\x36\n\ntool_calls\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ces.v1.ToolCallB\x03\xe0\x41\x01\"O\n\rToolResponses\x12>\n\x0etool_responses\x18\x01 \x03(\x0b\x32!.google.cloud.ces.v1.ToolResponseB\x03\xe0\x41\x01\"\x84\x01\n\tCitations\x12?\n\x0c\x63ited_chunks\x18\x01 \x03(\x0b\x32).google.cloud.ces.v1.Citations.CitedChunk\x1a\x36\n\nCitedChunk\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\"\x1b\n\x05\x45vent\x12\x12\n\x05\x65vent\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x82\x03\n\x0cSessionInput\x12\x13\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x13\n\x04\x64tmf\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x14\n\x05\x61udio\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x41\n\x0etool_responses\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1.ToolResponsesB\x03\xe0\x41\x01H\x00\x12\x30\n\x05image\x18\x04 \x01(\x0b\x32\x1a.google.cloud.ces.v1.ImageB\x03\xe0\x41\x01H\x00\x12.\n\x04\x62lob\x18\x07 \x01(\x0b\x32\x19.google.cloud.ces.v1.BlobB\x03\xe0\x41\x01H\x00\x12\x31\n\tvariables\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x00\x12\x30\n\x05\x65vent\x18\t \x01(\x0b\x32\x1a.google.cloud.ces.v1.EventB\x03\xe0\x41\x01H\x00\x12\x1a\n\rwill_continue\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\ninput_type\"\xce\x04\n\rSessionOutput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0f\n\x05\x61udio\x18\x02 \x01(\x0cH\x00\x12\x34\n\ntool_calls\x18\x03 \x01(\x0b\x32\x1e.google.cloud.ces.v1.ToolCallsH\x00\x12\x33\n\tcitations\x18\x08 \x01(\x0b\x32\x1e.google.cloud.ces.v1.CitationsH\x00\x12Q\n\x19google_search_suggestions\x18\n \x01(\x0b\x32,.google.cloud.ces.v1.GoogleSearchSuggestionsH\x00\x12\x36\n\x0b\x65nd_session\x18\t \x01(\x0b\x32\x1f.google.cloud.ces.v1.EndSessionH\x00\x12*\n\x07payload\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x12\n\nturn_index\x18\x06 \x01(\x05\x12\x16\n\x0eturn_completed\x18\x04 \x01(\x08\x12O\n\x0f\x64iagnostic_info\x18\x07 \x01(\x0b\x32\x31.google.cloud.ces.v1.SessionOutput.DiagnosticInfoB\x03\xe0\x41\x01\x1an\n\x0e\x44iagnosticInfo\x12.\n\x08messages\x18\x01 \x03(\x0b\x32\x1c.google.cloud.ces.v1.Message\x12,\n\troot_span\x18\x03 \x01(\x0b\x32\x19.google.cloud.ces.v1.SpanB\r\n\x0boutput_type\",\n\x11RecognitionResult\x12\x17\n\ntranscript\x18\x01 \x01(\tB\x03\xe0\x41\x01\"&\n\x12InterruptionSignal\x12\x10\n\x08\x62\x61rge_in\x18\x01 \x01(\x08\"<\n\nEndSession\x12.\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\x08\n\x06GoAway\"\x84\x01\n\x11RunSessionRequest\x12\x37\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1.SessionConfigB\x03\xe0\x41\x02\x12\x36\n\x06inputs\x18\x03 \x03(\x0b\x32!.google.cloud.ces.v1.SessionInputB\x03\xe0\x41\x02\"I\n\x12RunSessionResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.ces.v1.SessionOutput\"\xa7\x01\n\x18\x42idiSessionClientMessage\x12\x39\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1.SessionConfigB\x03\xe0\x41\x01H\x00\x12@\n\x0erealtime_input\x18\x02 \x01(\x0b\x32!.google.cloud.ces.v1.SessionInputB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type\"\xf7\x02\n\x18\x42idiSessionServerMessage\x12\x41\n\x0esession_output\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1.SessionOutputB\x03\xe0\x41\x01H\x00\x12I\n\x12recognition_result\x18\x02 \x01(\x0b\x32&.google.cloud.ces.v1.RecognitionResultB\x03\xe0\x41\x01H\x00\x12K\n\x13interruption_signal\x18\x03 \x01(\x0b\x32\'.google.cloud.ces.v1.InterruptionSignalB\x03\xe0\x41\x01H\x00\x12;\n\x0b\x65nd_session\x18\x05 \x01(\x0b\x32\x1f.google.cloud.ces.v1.EndSessionB\x03\xe0\x41\x01H\x00\x12\x33\n\x07go_away\x18\x06 \x01(\x0b\x32\x1b.google.cloud.ces.v1.GoAwayB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type*R\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\t\n\x05MULAW\x10\x02\x12\x08\n\x04\x41LAW\x10\x03\x32\xb7\x05\n\x0eSessionService\x12\xb2\x01\n\nRunSession\x12&.google.cloud.ces.v1.RunSessionRequest\x1a\'.google.cloud.ces.v1.RunSessionResponse\"S\x82\xd3\xe4\x93\x02M\"H/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\x01*\x12\xc0\x01\n\x10StreamRunSession\x12&.google.cloud.ces.v1.RunSessionRequest\x1a\'.google.cloud.ces.v1.RunSessionResponse\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\x01*0\x01\x12\xc0\x01\n\x0e\x42idiRunSession\x12-.google.cloud.ces.v1.BidiSessionClientMessage\x1a-.google.cloud.ces.v1.BidiSessionServerMessage\"L\x8a\xd3\xe4\x93\x02\x46\x12\x44\n\x0e\x63onfig.session\x12\x32{session=projects/*/locations/*/apps/*/sessions/*}(\x01\x30\x01\x1aj\xca\x41\x12\x63\x65s.googleapis.com\xd2\x41Rhttps://www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\xc1\x01\n\x17\x63om.google.cloud.ces.v1B\x13SessionServiceProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41\x63\n\x1a\x63\x65s.googleapis.com/Session\x12\x45projects/{project}/locations/{location}/apps/{app}/sessions/{session}b\x06proto3" +descriptor_data = "\n)google/cloud/ces/v1/session_service.proto\x12\x13google.cloud.ces.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a google/cloud/ces/v1/common.proto\x1a!google/cloud/ces/v1/example.proto\x1a\x1fgoogle/cloud/ces/v1/mocks.proto\x1a,google/cloud/ces/v1/search_suggestions.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x9e\x02\n\nMockConfig\x12\x43\n\x11mocked_tool_calls\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1.MockedToolCallB\x03\xe0\x41\x01\x12\x64\n\x1cunmatched_tool_call_behavior\x18\x02 \x01(\x0e\x32\x39.google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehaviorB\x03\xe0\x41\x02\"e\n\x19UnmatchedToolCallBehavior\x12,\n(UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46\x41IL\x10\x01\x12\x10\n\x0cPASS_THROUGH\x10\x02\"\x99\x01\n\x10InputAudioConfig\x12?\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\".google.cloud.ces.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12$\n\x17noise_suppression_level\x18\x06 \x01(\tB\x03\xe0\x41\x01\"t\n\x11OutputAudioConfig\x12?\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\".google.cloud.ces.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xed\x06\n\rSessionConfig\x12\x33\n\x07session\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Session\x12\x46\n\x12input_audio_config\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1.InputAudioConfigB\x03\xe0\x41\x01\x12H\n\x13output_audio_config\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1.OutputAudioConfigB\x03\xe0\x41\x01\x12>\n\x13historical_contexts\x18\x05 \x03(\x0b\x32\x1c.google.cloud.ces.v1.MessageB\x03\xe0\x41\x01\x12\x35\n\x0b\x65ntry_agent\x18\x0c \x01(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x17\n\ndeployment\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0euse_tool_fakes\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12s\n\"remote_dialogflow_query_parameters\x18\x0f \x01(\x0b\x32\x42.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersB\x03\xe0\x41\x01\x12\"\n\x15\x65nable_text_streaming\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xb6\x02\n\x1fRemoteDialogflowQueryParameters\x12t\n\x0fwebhook_headers\x18\x01 \x03(\x0b\x32V.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.WebhookHeadersEntryB\x03\xe0\x41\x01\x12-\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x37\n\x11\x65nd_user_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"C\n\tToolCalls\x12\x36\n\ntool_calls\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ces.v1.ToolCallB\x03\xe0\x41\x01\"O\n\rToolResponses\x12>\n\x0etool_responses\x18\x01 \x03(\x0b\x32!.google.cloud.ces.v1.ToolResponseB\x03\xe0\x41\x01\"\xa2\x01\n\tCitations\x12?\n\x0c\x63ited_chunks\x18\x01 \x03(\x0b\x32).google.cloud.ces.v1.Citations.CitedChunk\x1aT\n\nCitedChunk\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x1c\n\x14requires_attribution\x18\x04 \x01(\x08\"\x1b\n\x05\x45vent\x12\x12\n\x05\x65vent\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x82\x03\n\x0cSessionInput\x12\x13\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x13\n\x04\x64tmf\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x14\n\x05\x61udio\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x41\n\x0etool_responses\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1.ToolResponsesB\x03\xe0\x41\x01H\x00\x12\x30\n\x05image\x18\x04 \x01(\x0b\x32\x1a.google.cloud.ces.v1.ImageB\x03\xe0\x41\x01H\x00\x12.\n\x04\x62lob\x18\x07 \x01(\x0b\x32\x19.google.cloud.ces.v1.BlobB\x03\xe0\x41\x01H\x00\x12\x31\n\tvariables\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x00\x12\x30\n\x05\x65vent\x18\t \x01(\x0b\x32\x1a.google.cloud.ces.v1.EventB\x03\xe0\x41\x01H\x00\x12\x1a\n\rwill_continue\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\ninput_type\"\xf5\x04\n\rSessionOutput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0f\n\x05\x61udio\x18\x02 \x01(\x0cH\x00\x12\x34\n\ntool_calls\x18\x03 \x01(\x0b\x32\x1e.google.cloud.ces.v1.ToolCallsH\x00\x12\x33\n\tcitations\x18\x08 \x01(\x0b\x32\x1e.google.cloud.ces.v1.CitationsH\x00\x12Q\n\x19google_search_suggestions\x18\n \x01(\x0b\x32,.google.cloud.ces.v1.GoogleSearchSuggestionsH\x00\x12\x36\n\x0b\x65nd_session\x18\t \x01(\x0b\x32\x1f.google.cloud.ces.v1.EndSessionH\x00\x12*\n\x07payload\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x12\n\nturn_index\x18\x06 \x01(\x05\x12\x16\n\x0eturn_completed\x18\x04 \x01(\x08\x12O\n\x0f\x64iagnostic_info\x18\x07 \x01(\x0b\x32\x31.google.cloud.ces.v1.SessionOutput.DiagnosticInfoB\x03\xe0\x41\x01\x12%\n\x07\x63ontext\x18\x0c \x03(\x0b\x32\x14.google.protobuf.Any\x1an\n\x0e\x44iagnosticInfo\x12.\n\x08messages\x18\x01 \x03(\x0b\x32\x1c.google.cloud.ces.v1.Message\x12,\n\troot_span\x18\x03 \x01(\x0b\x32\x19.google.cloud.ces.v1.SpanB\r\n\x0boutput_type\",\n\x11RecognitionResult\x12\x17\n\ntranscript\x18\x01 \x01(\tB\x03\xe0\x41\x01\"&\n\x12InterruptionSignal\x12\x10\n\x08\x62\x61rge_in\x18\x01 \x01(\x08\"<\n\nEndSession\x12.\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\x08\n\x06GoAway\"\x84\x01\n\x11RunSessionRequest\x12\x37\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1.SessionConfigB\x03\xe0\x41\x02\x12\x36\n\x06inputs\x18\x03 \x03(\x0b\x32!.google.cloud.ces.v1.SessionInputB\x03\xe0\x41\x02\"I\n\x12RunSessionResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.ces.v1.SessionOutput\"\xa7\x01\n\x18\x42idiSessionClientMessage\x12\x39\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1.SessionConfigB\x03\xe0\x41\x01H\x00\x12@\n\x0erealtime_input\x18\x02 \x01(\x0b\x32!.google.cloud.ces.v1.SessionInputB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type\"\xf7\x02\n\x18\x42idiSessionServerMessage\x12\x41\n\x0esession_output\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1.SessionOutputB\x03\xe0\x41\x01H\x00\x12I\n\x12recognition_result\x18\x02 \x01(\x0b\x32&.google.cloud.ces.v1.RecognitionResultB\x03\xe0\x41\x01H\x00\x12K\n\x13interruption_signal\x18\x03 \x01(\x0b\x32\'.google.cloud.ces.v1.InterruptionSignalB\x03\xe0\x41\x01H\x00\x12;\n\x0b\x65nd_session\x18\x05 \x01(\x0b\x32\x1f.google.cloud.ces.v1.EndSessionB\x03\xe0\x41\x01H\x00\x12\x33\n\x07go_away\x18\x06 \x01(\x0b\x32\x1b.google.cloud.ces.v1.GoAwayB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type*R\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\t\n\x05MULAW\x10\x02\x12\x08\n\x04\x41LAW\x10\x03\x32\xb7\x05\n\x0eSessionService\x12\xb2\x01\n\nRunSession\x12&.google.cloud.ces.v1.RunSessionRequest\x1a\'.google.cloud.ces.v1.RunSessionResponse\"S\x82\xd3\xe4\x93\x02M\"H/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\x01*\x12\xc0\x01\n\x10StreamRunSession\x12&.google.cloud.ces.v1.RunSessionRequest\x1a\'.google.cloud.ces.v1.RunSessionResponse\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\x01*0\x01\x12\xc0\x01\n\x0e\x42idiRunSession\x12-.google.cloud.ces.v1.BidiSessionClientMessage\x1a-.google.cloud.ces.v1.BidiSessionServerMessage\"L\x8a\xd3\xe4\x93\x02\x46\x12\x44\n\x0e\x63onfig.session\x12\x32{session=projects/*/locations/*/apps/*/sessions/*}(\x01\x30\x01\x1aj\xca\x41\x12\x63\x65s.googleapis.com\xd2\x41Rhttps://www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\xc1\x01\n\x17\x63om.google.cloud.ces.v1B\x13SessionServiceProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespb\xea\x41\x63\n\x1a\x63\x65s.googleapis.com/Session\x12\x45projects/{project}/locations/{location}/apps/{app}/sessions/{session}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -24,6 +26,8 @@ module Google module Cloud module Ces module V1 + MockConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.MockConfig").msgclass + MockConfig::UnmatchedToolCallBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.MockConfig.UnmatchedToolCallBehavior").enummodule InputAudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.InputAudioConfig").msgclass OutputAudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.OutputAudioConfig").msgclass SessionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.SessionConfig").msgclass diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_pb.rb index fe3df6f3e55e..7b8c6478ac9f 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_pb.rb @@ -6,6 +6,7 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' +require 'google/cloud/ces/v1/agent_card_pb' require 'google/cloud/ces/v1/agent_tool_pb' require 'google/cloud/ces/v1/client_function_pb' require 'google/cloud/ces/v1/common_pb' @@ -19,10 +20,11 @@ require 'google/cloud/ces/v1/python_function_pb' require 'google/cloud/ces/v1/system_tool_pb' require 'google/cloud/ces/v1/widget_tool_pb' +require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -descriptor_data = "\n\x1egoogle/cloud/ces/v1/tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/ces/v1/agent_tool.proto\x1a)google/cloud/ces/v1/client_function.proto\x1a google/cloud/ces/v1/common.proto\x1a(google/cloud/ces/v1/connector_tool.proto\x1a)google/cloud/ces/v1/data_store_tool.proto\x1a\x1fgoogle/cloud/ces/v1/fakes.proto\x1a*google/cloud/ces/v1/file_search_tool.proto\x1a,google/cloud/ces/v1/google_search_tool.proto\x1a\"google/cloud/ces/v1/mcp_tool.proto\x1a\'google/cloud/ces/v1/open_api_tool.proto\x1a)google/cloud/ces/v1/python_function.proto\x1a%google/cloud/ces/v1/system_tool.proto\x1a%google/cloud/ces/v1/widget_tool.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x99\t\n\x04Tool\x12\x43\n\x0f\x63lient_function\x18\x02 \x01(\x0b\x32#.google.cloud.ces.v1.ClientFunctionB\x03\xe0\x41\x01H\x00\x12>\n\ropen_api_tool\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1.OpenApiToolB\x03\xe0\x41\x01H\x00\x12H\n\x12google_search_tool\x18\x05 \x01(\x0b\x32%.google.cloud.ces.v1.GoogleSearchToolB\x03\xe0\x41\x01H\x00\x12\x41\n\x0e\x63onnector_tool\x18\x08 \x01(\x0b\x32\".google.cloud.ces.v1.ConnectorToolB\x03\xe0\x41\x01H\x00\x12\x42\n\x0f\x64\x61ta_store_tool\x18\n \x01(\x0b\x32\".google.cloud.ces.v1.DataStoreToolB\x03\xe0\x41\x01H\x00\x12\x43\n\x0fpython_function\x18\x0b \x01(\x0b\x32#.google.cloud.ces.v1.PythonFunctionB\x03\xe0\x41\x01H\x00\x12\x35\n\x08mcp_tool\x18\x10 \x01(\x0b\x32\x1c.google.cloud.ces.v1.McpToolB\x03\xe0\x41\x01H\x00\x12\x44\n\x10\x66ile_search_tool\x18\x11 \x01(\x0b\x32#.google.cloud.ces.v1.FileSearchToolB\x03\xe0\x41\x01H\x00\x12;\n\x0bsystem_tool\x18\x12 \x01(\x0b\x32\x1f.google.cloud.ces.v1.SystemToolB\x03\xe0\x41\x01H\x00\x12\x39\n\nagent_tool\x18\x17 \x01(\x0b\x32\x1e.google.cloud.ces.v1.AgentToolB\x03\xe0\x41\x01H\x00\x12;\n\x0bwidget_tool\x18\x18 \x01(\x0b\x32\x1f.google.cloud.ces.v1.WidgetToolB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12?\n\x0e\x65xecution_type\x18\x0c \x01(\x0e\x32\".google.cloud.ces.v1.ExecutionTypeB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12\x1e\n\x11generated_summary\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x10tool_fake_config\x18\x14 \x01(\x0b\x32#.google.cloud.ces.v1.ToolFakeConfigB\x03\xe0\x41\x01:j\xea\x41g\n\x17\x63\x65s.googleapis.com/Tool\x12?projects/{project}/locations/{location}/apps/{app}/tools/{tool}*\x05tools2\x04toolB\x0b\n\ttool_typeBQ\n\x17\x63om.google.cloud.ces.v1B\tToolProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n\x1egoogle/cloud/ces/v1/tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/ces/v1/agent_card.proto\x1a$google/cloud/ces/v1/agent_tool.proto\x1a)google/cloud/ces/v1/client_function.proto\x1a google/cloud/ces/v1/common.proto\x1a(google/cloud/ces/v1/connector_tool.proto\x1a)google/cloud/ces/v1/data_store_tool.proto\x1a\x1fgoogle/cloud/ces/v1/fakes.proto\x1a*google/cloud/ces/v1/file_search_tool.proto\x1a,google/cloud/ces/v1/google_search_tool.proto\x1a\"google/cloud/ces/v1/mcp_tool.proto\x1a\'google/cloud/ces/v1/open_api_tool.proto\x1a)google/cloud/ces/v1/python_function.proto\x1a%google/cloud/ces/v1/system_tool.proto\x1a%google/cloud/ces/v1/widget_tool.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x92\n\n\x04Tool\x12\x43\n\x0f\x63lient_function\x18\x02 \x01(\x0b\x32#.google.cloud.ces.v1.ClientFunctionB\x03\xe0\x41\x01H\x00\x12>\n\ropen_api_tool\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1.OpenApiToolB\x03\xe0\x41\x01H\x00\x12H\n\x12google_search_tool\x18\x05 \x01(\x0b\x32%.google.cloud.ces.v1.GoogleSearchToolB\x03\xe0\x41\x01H\x00\x12\x41\n\x0e\x63onnector_tool\x18\x08 \x01(\x0b\x32\".google.cloud.ces.v1.ConnectorToolB\x03\xe0\x41\x01H\x00\x12\x42\n\x0f\x64\x61ta_store_tool\x18\n \x01(\x0b\x32\".google.cloud.ces.v1.DataStoreToolB\x03\xe0\x41\x01H\x00\x12\x43\n\x0fpython_function\x18\x0b \x01(\x0b\x32#.google.cloud.ces.v1.PythonFunctionB\x03\xe0\x41\x01H\x00\x12\x35\n\x08mcp_tool\x18\x10 \x01(\x0b\x32\x1c.google.cloud.ces.v1.McpToolB\x03\xe0\x41\x01H\x00\x12\x44\n\x10\x66ile_search_tool\x18\x11 \x01(\x0b\x32#.google.cloud.ces.v1.FileSearchToolB\x03\xe0\x41\x01H\x00\x12;\n\x0bsystem_tool\x18\x12 \x01(\x0b\x32\x1f.google.cloud.ces.v1.SystemToolB\x03\xe0\x41\x01H\x00\x12\x39\n\nagent_tool\x18\x17 \x01(\x0b\x32\x1e.google.cloud.ces.v1.AgentToolB\x03\xe0\x41\x01H\x00\x12;\n\x0bwidget_tool\x18\x18 \x01(\x0b\x32\x1f.google.cloud.ces.v1.WidgetToolB\x03\xe0\x41\x01H\x00\x12\x46\n\x11remote_agent_tool\x18\x19 \x01(\x0b\x32$.google.cloud.ces.v1.RemoteAgentToolB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12?\n\x0e\x65xecution_type\x18\x0c \x01(\x0e\x32\".google.cloud.ces.v1.ExecutionTypeB\x03\xe0\x41\x01\x12/\n\x07timeout\x18\x16 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12\x1e\n\x11generated_summary\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x10tool_fake_config\x18\x14 \x01(\x0b\x32#.google.cloud.ces.v1.ToolFakeConfigB\x03\xe0\x41\x01:j\xea\x41g\n\x17\x63\x65s.googleapis.com/Tool\x12?projects/{project}/locations/{location}/apps/{app}/tools/{tool}*\x05tools2\x04toolB\x0b\n\ttool_typeBQ\n\x17\x63om.google.cloud.ces.v1B\tToolProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/client.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/client.rb index 0d05b43f4acc..26045f834d33 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/client.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/client.rb @@ -217,7 +217,7 @@ def logger # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload execute_tool(tool: nil, toolset_tool: nil, variables: nil, context: nil, parent: nil, args: nil) + # @overload execute_tool(tool: nil, toolset_tool: nil, variables: nil, context: nil, parent: nil, args: nil, mock_config: nil) # Pass arguments to `execute_tool` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -249,6 +249,10 @@ def logger # @param args [::Google::Protobuf::Struct, ::Hash] # Optional. The input parameters and values for the tool in JSON object # format. + # @param mock_config [::Google::Cloud::Ces::V1::MockConfig, ::Hash] + # Optional. Mock configuration for the tool execution. + # If this field is set, tools that call other tools will be + # mocked based on the provided patterns and responses. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Cloud::Ces::V1::ExecuteToolResponse] @@ -426,7 +430,7 @@ def retrieve_tool_schema request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload retrieve_tools(toolset: nil, tool_ids: nil) + # @overload retrieve_tools(toolset: nil, tool_ids: nil, bypass_persistence_config: nil) # Pass arguments to `retrieve_tools` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -438,6 +442,10 @@ def retrieve_tool_schema request, options = nil # @param tool_ids [::Array<::String>] # Optional. The identifiers of the tools to retrieve from the toolset. # If empty, all tools in the toolset will be returned. + # @param bypass_persistence_config [::Boolean] + # Optional. If true, the returned tools will contain raw descriptions and + # schemas directly from the server, bypassing any stored persistence + # configurations (overrides/snapshots). # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Cloud::Ces::V1::RetrieveToolsResponse] diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/rest/client.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/rest/client.rb index e267dae2290e..e7107ff68b4e 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/rest/client.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service/rest/client.rb @@ -211,7 +211,7 @@ def logger # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload execute_tool(tool: nil, toolset_tool: nil, variables: nil, context: nil, parent: nil, args: nil) + # @overload execute_tool(tool: nil, toolset_tool: nil, variables: nil, context: nil, parent: nil, args: nil, mock_config: nil) # Pass arguments to `execute_tool` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -243,6 +243,10 @@ def logger # @param args [::Google::Protobuf::Struct, ::Hash] # Optional. The input parameters and values for the tool in JSON object # format. + # @param mock_config [::Google::Cloud::Ces::V1::MockConfig, ::Hash] + # Optional. Mock configuration for the tool execution. + # If this field is set, tools that call other tools will be + # mocked based on the provided patterns and responses. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Cloud::Ces::V1::ExecuteToolResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] @@ -406,7 +410,7 @@ def retrieve_tool_schema request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload retrieve_tools(toolset: nil, tool_ids: nil) + # @overload retrieve_tools(toolset: nil, tool_ids: nil, bypass_persistence_config: nil) # Pass arguments to `retrieve_tools` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -418,6 +422,10 @@ def retrieve_tool_schema request, options = nil # @param tool_ids [::Array<::String>] # Optional. The identifiers of the tools to retrieve from the toolset. # If empty, all tools in the toolset will be returned. + # @param bypass_persistence_config [::Boolean] + # Optional. If true, the returned tools will contain raw descriptions and + # schemas directly from the server, bypassing any stored persistence + # configurations (overrides/snapshots). # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Cloud::Ces::V1::RetrieveToolsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service_pb.rb index 445ad84f7bc8..572b49a1ece1 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/tool_service_pb.rb @@ -9,12 +9,14 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/ces/v1/schema_pb' +require 'google/cloud/ces/v1/search_suggestions_pb' +require 'google/cloud/ces/v1/session_service_pb' require 'google/cloud/ces/v1/tool_pb' require 'google/cloud/ces/v1/toolset_tool_pb' require 'google/protobuf/struct_pb' -descriptor_data = "\n&google/cloud/ces/v1/tool_service.proto\x12\x13google.cloud.ces.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/schema.proto\x1a\x1egoogle/cloud/ces/v1/tool.proto\x1a&google/cloud/ces/v1/toolset_tool.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf1\x02\n\x12\x45xecuteToolRequest\x12/\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12=\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolB\x03\xe0\x41\x01H\x00\x12\x31\n\tvariables\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x01\x12/\n\x07\x63ontext\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x01\x12.\n\x06parent\x18\x04 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12*\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x42\x11\n\x0ftool_identifierB\x18\n\x16tool_execution_context\"\xe7\x01\n\x13\x45xecuteToolResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12\x38\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolH\x00\x12)\n\x08response\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12*\n\tvariables\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x11\n\x0ftool_identifier\"\xce\x01\n\x19RetrieveToolSchemaRequest\x12/\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12=\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolB\x03\xe0\x41\x01H\x00\x12.\n\x06parent\x18\x03 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/AppB\x11\n\x0ftool_identifier\"\xfe\x01\n\x1aRetrieveToolSchemaResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12\x38\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolH\x00\x12\x31\n\x0cinput_schema\x18\x03 \x01(\x0b\x32\x1b.google.cloud.ces.v1.Schema\x12\x32\n\routput_schema\x18\x04 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x11\n\x0ftool_identifier\"b\n\x14RetrieveToolsRequest\x12\x33\n\x07toolset\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x15\n\x08tool_ids\x18\x03 \x03(\tB\x03\xe0\x41\x01\"A\n\x15RetrieveToolsResponse\x12(\n\x05tools\x18\x01 \x03(\x0b\x32\x19.google.cloud.ces.v1.Tool2\x9b\x05\n\x0bToolService\x12\xa3\x01\n\x0b\x45xecuteTool\x12\'.google.cloud.ces.v1.ExecuteToolRequest\x1a(.google.cloud.ces.v1.ExecuteToolResponse\"A\x82\xd3\xe4\x93\x02;\"6/v1/{parent=projects/*/locations/*/apps/*}:executeTool:\x01*\x12\xbf\x01\n\x12RetrieveToolSchema\x12..google.cloud.ces.v1.RetrieveToolSchemaRequest\x1a/.google.cloud.ces.v1.RetrieveToolSchemaResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=projects/*/locations/*/apps/*}:retrieveToolSchema:\x01*\x12\xb7\x01\n\rRetrieveTools\x12).google.cloud.ces.v1.RetrieveToolsRequest\x1a*.google.cloud.ces.v1.RetrieveToolsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{toolset=projects/*/locations/*/apps/*/toolsets/*}:retrieveTools:\x01*\x1aj\xca\x41\x12\x63\x65s.googleapis.com\xd2\x41Rhttps://www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformBX\n\x17\x63om.google.cloud.ces.v1B\x10ToolServiceProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n&google/cloud/ces/v1/tool_service.proto\x12\x13google.cloud.ces.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/schema.proto\x1a,google/cloud/ces/v1/search_suggestions.proto\x1a)google/cloud/ces/v1/session_service.proto\x1a\x1egoogle/cloud/ces/v1/tool.proto\x1a&google/cloud/ces/v1/toolset_tool.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xac\x03\n\x12\x45xecuteToolRequest\x12/\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12=\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolB\x03\xe0\x41\x01H\x00\x12\x31\n\tvariables\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x01\x12/\n\x07\x63ontext\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x01\x12.\n\x06parent\x18\x04 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12*\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x39\n\x0bmock_config\x18\x07 \x01(\x0b\x32\x1f.google.cloud.ces.v1.MockConfigB\x03\xe0\x41\x01\x42\x11\n\x0ftool_identifierB\x18\n\x16tool_execution_context\"\xeb\x02\n\x13\x45xecuteToolResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12\x38\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolH\x00\x12)\n\x08response\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12*\n\tvariables\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x31\n\tcitations\x18\x05 \x01(\x0b\x32\x1e.google.cloud.ces.v1.Citations\x12O\n\x19google_search_suggestions\x18\x06 \x01(\x0b\x32,.google.cloud.ces.v1.GoogleSearchSuggestionsB\x11\n\x0ftool_identifier\"\xce\x01\n\x19RetrieveToolSchemaRequest\x12/\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x01\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12=\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolB\x03\xe0\x41\x01H\x00\x12.\n\x06parent\x18\x03 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/AppB\x11\n\x0ftool_identifier\"\xfe\x01\n\x1aRetrieveToolSchemaResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12\x38\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32 .google.cloud.ces.v1.ToolsetToolH\x00\x12\x31\n\x0cinput_schema\x18\x03 \x01(\x0b\x32\x1b.google.cloud.ces.v1.Schema\x12\x32\n\routput_schema\x18\x04 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x11\n\x0ftool_identifier\"\x8a\x01\n\x14RetrieveToolsRequest\x12\x33\n\x07toolset\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x15\n\x08tool_ids\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12&\n\x19\x62ypass_persistence_config\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"A\n\x15RetrieveToolsResponse\x12(\n\x05tools\x18\x01 \x03(\x0b\x32\x19.google.cloud.ces.v1.Tool2\x9b\x05\n\x0bToolService\x12\xa3\x01\n\x0b\x45xecuteTool\x12\'.google.cloud.ces.v1.ExecuteToolRequest\x1a(.google.cloud.ces.v1.ExecuteToolResponse\"A\x82\xd3\xe4\x93\x02;\"6/v1/{parent=projects/*/locations/*/apps/*}:executeTool:\x01*\x12\xbf\x01\n\x12RetrieveToolSchema\x12..google.cloud.ces.v1.RetrieveToolSchemaRequest\x1a/.google.cloud.ces.v1.RetrieveToolSchemaResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{parent=projects/*/locations/*/apps/*}:retrieveToolSchema:\x01*\x12\xb7\x01\n\rRetrieveTools\x12).google.cloud.ces.v1.RetrieveToolsRequest\x1a*.google.cloud.ces.v1.RetrieveToolsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{toolset=projects/*/locations/*/apps/*/toolsets/*}:retrieveTools:\x01*\x1aj\xca\x41\x12\x63\x65s.googleapis.com\xd2\x41Rhttps://www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformBX\n\x17\x63om.google.cloud.ces.v1B\x10ToolServiceProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/toolset_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/toolset_pb.rb index c68063f84e22..5db6e763601b 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/toolset_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/toolset_pb.rb @@ -11,10 +11,11 @@ require 'google/cloud/ces/v1/fakes_pb' require 'google/cloud/ces/v1/mcp_toolset_pb' require 'google/cloud/ces/v1/open_api_toolset_pb' +require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' -descriptor_data = "\n!google/cloud/ces/v1/toolset.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/common.proto\x1a+google/cloud/ces/v1/connector_toolset.proto\x1a\x1fgoogle/cloud/ces/v1/fakes.proto\x1a%google/cloud/ces/v1/mcp_toolset.proto\x1a*google/cloud/ces/v1/open_api_toolset.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x05\n\x07Toolset\x12;\n\x0bmcp_toolset\x18\x06 \x01(\x0b\x32\x1f.google.cloud.ces.v1.McpToolsetB\x03\xe0\x41\x01H\x00\x12\x44\n\x10open_api_toolset\x18\x07 \x01(\x0b\x32#.google.cloud.ces.v1.OpenApiToolsetB\x03\xe0\x41\x01H\x00\x12G\n\x11\x63onnector_toolset\x18\x08 \x01(\x0b\x32%.google.cloud.ces.v1.ConnectorToolsetB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x05 \x01(\t\x12?\n\x0e\x65xecution_type\x18\t \x01(\x0e\x32\".google.cloud.ces.v1.ExecutionTypeB\x03\xe0\x41\x01\x12\x42\n\x10tool_fake_config\x18\x0b \x01(\x0b\x32#.google.cloud.ces.v1.ToolFakeConfigB\x03\xe0\x41\x01:y\xea\x41v\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x45projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}*\x08toolsets2\x07toolsetB\x0e\n\x0ctoolset_typeBT\n\x17\x63om.google.cloud.ces.v1B\x0cToolsetProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n!google/cloud/ces/v1/toolset.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/cloud/ces/v1/common.proto\x1a+google/cloud/ces/v1/connector_toolset.proto\x1a\x1fgoogle/cloud/ces/v1/fakes.proto\x1a%google/cloud/ces/v1/mcp_toolset.proto\x1a*google/cloud/ces/v1/open_api_toolset.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd8\x05\n\x07Toolset\x12;\n\x0bmcp_toolset\x18\x06 \x01(\x0b\x32\x1f.google.cloud.ces.v1.McpToolsetB\x03\xe0\x41\x01H\x00\x12\x44\n\x10open_api_toolset\x18\x07 \x01(\x0b\x32#.google.cloud.ces.v1.OpenApiToolsetB\x03\xe0\x41\x01H\x00\x12G\n\x11\x63onnector_toolset\x18\x08 \x01(\x0b\x32%.google.cloud.ces.v1.ConnectorToolsetB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\n \x01(\tB\x03\xe0\x41\x01\x12/\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x05 \x01(\t\x12?\n\x0e\x65xecution_type\x18\t \x01(\x0e\x32\".google.cloud.ces.v1.ExecutionTypeB\x03\xe0\x41\x01\x12\x42\n\x10tool_fake_config\x18\x0b \x01(\x0b\x32#.google.cloud.ces.v1.ToolFakeConfigB\x03\xe0\x41\x01:y\xea\x41v\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x45projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}*\x08toolsets2\x07toolsetB\x0e\n\x0ctoolset_typeBT\n\x17\x63om.google.cloud.ces.v1B\x0cToolsetProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1/lib/google/cloud/ces/v1/widget_tool_pb.rb b/google-cloud-ces-v1/lib/google/cloud/ces/v1/widget_tool_pb.rb index a66fa79a577b..7e67661e8a79 100644 --- a/google-cloud-ces-v1/lib/google/cloud/ces/v1/widget_tool_pb.rb +++ b/google-cloud-ces-v1/lib/google/cloud/ces/v1/widget_tool_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/struct_pb' -descriptor_data = "\n%google/cloud/ces/v1/widget_tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/ces/v1/python_function.proto\x1a google/cloud/ces/v1/schema.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x91\x08\n\nWidgetTool\x12\x36\n\nparameters\x18\x04 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x0bwidget_type\x18\x03 \x01(\x0e\x32*.google.cloud.ces.v1.WidgetTool.WidgetTypeB\x03\xe0\x41\x01\x12/\n\tui_config\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x46\n\x0c\x64\x61ta_mapping\x18\x06 \x01(\x0b\x32+.google.cloud.ces.v1.WidgetTool.DataMappingB\x03\xe0\x41\x01\x1a\xa6\x03\n\x0b\x44\x61taMapping\x12\x1d\n\x10source_tool_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12[\n\x0e\x66ield_mappings\x18\x02 \x03(\x0b\x32>.google.cloud.ces.v1.WidgetTool.DataMapping.FieldMappingsEntryB\x03\xe0\x41\x01\x12\x41\n\x0fpython_function\x18\x05 \x01(\x0b\x32#.google.cloud.ces.v1.PythonFunctionB\x03\xe0\x41\x01\x12\x43\n\x04mode\x18\x04 \x01(\x0e\x32\x30.google.cloud.ces.v1.WidgetTool.DataMapping.ModeB\x03\xe0\x41\x01\x12\x19\n\rpython_script\x18\x03 \x01(\tB\x02\x18\x01\x1a\x34\n\x12\x46ieldMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rFIELD_MAPPING\x10\x01\x12\x11\n\rPYTHON_SCRIPT\x10\x02\"\xac\x02\n\nWidgetType\x12\x1b\n\x17WIDGET_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43USTOM\x10\x01\x12\x14\n\x10PRODUCT_CAROUSEL\x10\x02\x12\x13\n\x0fPRODUCT_DETAILS\x10\x03\x12\x11\n\rQUICK_ACTIONS\x10\x04\x12\x16\n\x12PRODUCT_COMPARISON\x10\x05\x12\x1c\n\x18\x41\x44VANCED_PRODUCT_DETAILS\x10\x06\x12\x0e\n\nSHORT_FORM\x10\x07\x12\x18\n\x14OVERALL_SATISFACTION\x10\x08\x12\x11\n\rORDER_SUMMARY\x10\t\x12\x17\n\x13\x41PPOINTMENT_DETAILS\x10\n\x12\x19\n\x15\x41PPOINTMENT_SCHEDULER\x10\x0b\x12\x10\n\x0c\x43ONTACT_FORM\x10\x0c\x42\x07\n\x05inputBW\n\x17\x63om.google.cloud.ces.v1B\x0fWidgetToolProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" +descriptor_data = "\n%google/cloud/ces/v1/widget_tool.proto\x12\x13google.cloud.ces.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/ces/v1/python_function.proto\x1a google/cloud/ces/v1/schema.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd4\n\n\nWidgetTool\x12\x36\n\nparameters\x18\x04 \x01(\x0b\x32\x1b.google.cloud.ces.v1.SchemaB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x0bwidget_type\x18\x03 \x01(\x0e\x32*.google.cloud.ces.v1.WidgetTool.WidgetTypeB\x03\xe0\x41\x01\x12/\n\tui_config\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x46\n\x0c\x64\x61ta_mapping\x18\x06 \x01(\x0b\x32+.google.cloud.ces.v1.WidgetTool.DataMappingB\x03\xe0\x41\x01\x12U\n\x14text_response_config\x18\x07 \x01(\x0b\x32\x32.google.cloud.ces.v1.WidgetTool.TextResponseConfigB\x03\xe0\x41\x01\x1a\xe9\x01\n\x12TextResponseConfig\x12J\n\x04type\x18\x01 \x01(\x0e\x32\x37.google.cloud.ces.v1.WidgetTool.TextResponseConfig.TypeB\x03\xe0\x41\x01\x12\x18\n\x0bstatic_text\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12&\n\x19text_response_instruction\x18\x03 \x01(\tB\x03\xe0\x41\x01\"E\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x11\n\rLLM_GENERATED\x10\x02\x12\n\n\x06STATIC\x10\x03\x1a\xa6\x03\n\x0b\x44\x61taMapping\x12\x1d\n\x10source_tool_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12[\n\x0e\x66ield_mappings\x18\x02 \x03(\x0b\x32>.google.cloud.ces.v1.WidgetTool.DataMapping.FieldMappingsEntryB\x03\xe0\x41\x01\x12\x41\n\x0fpython_function\x18\x05 \x01(\x0b\x32#.google.cloud.ces.v1.PythonFunctionB\x03\xe0\x41\x01\x12\x43\n\x04mode\x18\x04 \x01(\x0e\x32\x30.google.cloud.ces.v1.WidgetTool.DataMapping.ModeB\x03\xe0\x41\x01\x12\x19\n\rpython_script\x18\x03 \x01(\tB\x02\x18\x01\x1a\x34\n\x12\x46ieldMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rFIELD_MAPPING\x10\x01\x12\x11\n\rPYTHON_SCRIPT\x10\x02\"\xac\x02\n\nWidgetType\x12\x1b\n\x17WIDGET_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43USTOM\x10\x01\x12\x14\n\x10PRODUCT_CAROUSEL\x10\x02\x12\x13\n\x0fPRODUCT_DETAILS\x10\x03\x12\x11\n\rQUICK_ACTIONS\x10\x04\x12\x16\n\x12PRODUCT_COMPARISON\x10\x05\x12\x1c\n\x18\x41\x44VANCED_PRODUCT_DETAILS\x10\x06\x12\x0e\n\nSHORT_FORM\x10\x07\x12\x18\n\x14OVERALL_SATISFACTION\x10\x08\x12\x11\n\rORDER_SUMMARY\x10\t\x12\x17\n\x13\x41PPOINTMENT_DETAILS\x10\n\x12\x19\n\x15\x41PPOINTMENT_SCHEDULER\x10\x0b\x12\x10\n\x0c\x43ONTACT_FORM\x10\x0c\x42\x07\n\x05inputBW\n\x17\x63om.google.cloud.ces.v1B\x0fWidgetToolProtoP\x01Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -20,6 +20,8 @@ module Cloud module Ces module V1 WidgetTool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool").msgclass + WidgetTool::TextResponseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.TextResponseConfig").msgclass + WidgetTool::TextResponseConfig::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.TextResponseConfig.Type").enummodule WidgetTool::DataMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.DataMapping").msgclass WidgetTool::DataMapping::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.DataMapping.Mode").enummodule WidgetTool::WidgetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1.WidgetTool.WidgetType").enummodule diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/agent.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/agent.rb index 4cb4e8515324..4b38f07e6e78 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/agent.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/agent.rb @@ -131,6 +131,10 @@ module V1 # @return [::Array<::Google::Cloud::Ces::V1::TransferRule>] # Optional. Agent transfer rules. # If multiple rules match, the first one in the list will be used. + # @!attribute [r] validation_errors + # @return [::Array<::String>] + # Output only. Misconfigurations or errors in the agent that may affect agent + # quality. class Agent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -181,6 +185,11 @@ class LlmAgent # [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) # set to true will be interruptable, all other messages follow the # app-level barge-in settings. + # @!attribute [rw] language_code_variable + # @return [::String] + # Optional. The name of the variable that contains the language code to be + # used for the Dialogflow session. If unspecified, the default language + # code of the Dialogflow agent will be used. class RemoteDialogflowAgent include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/agent_card.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/agent_card.rb new file mode 100644 index 000000000000..5f652c5c3153 --- /dev/null +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/agent_card.rb @@ -0,0 +1,122 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Ces + module V1 + # AgentCard conveys key information about a remote agent. + # It is a trimmed version of the AgentCard defined in the A2A protocol + # https://a2a-protocol.org/dev/specification/#441-agentcard + # @!attribute [rw] name + # @return [::String] + # Required. A human-readable name for the agent. + # @!attribute [rw] description + # @return [::String] + # Required. A description of the agent's domain of action/solution space. + # @!attribute [rw] supported_interfaces + # @return [::Array<::Google::Cloud::Ces::V1::AgentInterface>] + # Required. Ordered list of supported interfaces. The first entry is + # preferred. + # @!attribute [rw] version + # @return [::String] + # Required. The version of the agent. + # @!attribute [rw] skills + # @return [::Array<::Google::Cloud::Ces::V1::AgentSkill>] + # Required. Skills represent a unit of ability an agent can perform. This may + # somewhat abstract but represents a more focused set of actions that the + # agent is highly likely to succeed at. + class AgentCard + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Declares a combination of a target URL, transport and protocol version for + # interacting with the agent. This allows agents to expose the same + # functionality over multiple protocol binding mechanisms. + # @!attribute [rw] url + # @return [::String] + # Required. The URL where this interface is available. Must be a valid + # absolute HTTPS URL in production. Example: + # "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a" + # @!attribute [rw] protocol_binding + # @return [::String] + # Required. The protocol binding supported at this URL. This is an open form + # string, to be easily extended for other protocol bindings. The core ones + # officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`. + # @!attribute [rw] tenant + # @return [::String] + # Tenant ID to be used in the request when calling the agent. + # @!attribute [rw] protocol_version + # @return [::String] + # Required. The version of the A2A protocol this interface exposes. + # Use the latest supported minor version per major version. + # Examples: "0.3", "1.0" + class AgentInterface + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a distinct capability or function that an agent can perform. + # @!attribute [rw] id + # @return [::String] + # Required. A unique identifier for the agent's skill. + # @!attribute [rw] name + # @return [::String] + # Required. A human-readable name for the skill. + # @!attribute [rw] description + # @return [::String] + # Required. A detailed description of the skill. + # @!attribute [rw] tags + # @return [::Array<::String>] + # Required. A set of keywords describing the skill's capabilities. + # @!attribute [rw] examples + # @return [::Array<::String>] + # Example prompts or scenarios that this skill can handle. + # @!attribute [rw] input_modes + # @return [::Array<::String>] + # The set of supported input media types for this skill, overriding the + # agent's defaults. + # @!attribute [rw] output_modes + # @return [::Array<::String>] + # The set of supported output media types for this skill, overriding the + # agent's defaults. + class AgentSkill + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a tool that allows the agent to call another remote agent. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the tool. + # @!attribute [rw] description + # @return [::String] + # Required. The description of the tool. + # @!attribute [rw] agent_card + # @return [::Google::Cloud::Ces::V1::AgentCard] + # Required. The agent card of the remote agent that this tool invokes. + class RemoteAgentTool + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/app.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/app.rb index f4d9a35e41f7..1ec9153be53e 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/app.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/app.rb @@ -112,10 +112,16 @@ module V1 # @!attribute [rw] client_certificate_settings # @return [::Google::Cloud::Ces::V1::ClientCertificateSettings] # Optional. The default client certificate settings for the app. + # @!attribute [rw] vpc_sc_settings + # @return [::Google::Cloud::Ces::V1::VpcScSettings] + # Optional. VPC-SC settings for the app. # @!attribute [rw] locked # @return [::Boolean] # Optional. Indicates whether the app is locked for changes. If the app is # locked, modifications to the app resources will be rejected. + # @!attribute [r] validation_errors + # @return [::Array<::String>] + # Output only. Misconfigurations or warnings in the app. class App include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -321,12 +327,12 @@ module PrebuiltAmbientNoise # @!attribute [rw] disable_barge_in # @deprecated This field is deprecated and may be removed in the next major version update. # @return [::Boolean] - # Optional. Disables user barge-in while the agent is speaking. If true, user - # input during agent response playback will be ignored. - # - # Deprecated: `disable_barge_in` is deprecated in favor of + # Optional. Deprecated: `disable_barge_in` is deprecated in favor of # {::Google::Cloud::Ces::V1::ChannelProfile#disable_barge_in_control `disable_barge_in_control`} # in ChannelProfile. + # + # Disables user barge-in while the agent is speaking. If true, user input + # during agent response playback will be ignored. # @!attribute [rw] barge_in_awareness # @return [::Boolean] # Optional. If enabled, the agent will adapt its next response based on the @@ -347,12 +353,30 @@ class BargeInConfig # For the list of available voices, please refer to [Supported voices and # languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud # Text-to-Speech. + # @!attribute [rw] voice_sample_gcs_uri + # @return [::String] + # Optional. The Cloud Storage URI to the audio sample for voice cloning. The + # audio sample should be a mono-channel, 24kHz WAV file. + # + # Note: Please make sure the CES service agent + # `service-@gcp-sa-ces.iam.gserviceaccount.com` has + # `storage.objects.get` permission to the Cloud Storage object. # @!attribute [rw] speaking_rate # @return [::Float] # Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the # normal native speed supported by the specific voice. 2.0 is twice as fast, # and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will # return an error. + # @!attribute [rw] model + # @return [::String] + # Optional. The model used to synthesize audio. + # Currently supported values: + # - "gemini-3.1-flash-tts-preview" + # If empty, Chirp3-HD is used. + # @!attribute [rw] instruction + # @return [::String] + # Optional. The instruction used to synthesize speech when using a generative + # model. class SynthesizeSpeechConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -376,11 +400,25 @@ class MetricAnalysisSettings # Optional. Configuration for how sensitive data should be redacted. # @!attribute [rw] audio_recording_config # @return [::Google::Cloud::Ces::V1::AudioRecordingConfig] - # Optional. Configuration for how audio interactions should be recorded. + # Optional. Configuration for how audio interactions should be recorded. The + # audio is subject to redaction as configured in + # {::Google::Cloud::Ces::V1::LoggingSettings#redaction_config RedactionConfig}. + # @!attribute [rw] unredacted_audio_recording_config + # @return [::Google::Cloud::Ces::V1::AudioRecordingConfig] + # Optional. Configures an additional recording of unredacted audio. This can + # be used to maintain a raw audio copy when audio redaction is + # {::Google::Cloud::Ces::V1::RedactionConfig#enable_redaction enabled}, typically + # for auditing or monitoring purposes. # @!attribute [rw] bigquery_export_settings # @return [::Google::Cloud::Ces::V1::BigQueryExportSettings] - # Optional. Settings to describe the BigQuery export behaviors for the app. - # The conversation data will be exported to BigQuery tables if it is enabled. + # Optional. Configures the BigQuery export behaviors for the app. The + # conversation data is subject to redaction as configured in + # {::Google::Cloud::Ces::V1::LoggingSettings#redaction_config RedactionConfig}. + # @!attribute [rw] unredacted_bigquery_export_settings + # @return [::Google::Cloud::Ces::V1::BigQueryExportSettings] + # Optional. Configures the BigQuery export behaviors for the app. + # The unredacted conversation data will be exported to BigQuery tables if it + # is enabled. # @!attribute [rw] cloud_logging_settings # @return [::Google::Cloud::Ces::V1::CloudLoggingSettings] # Optional. Settings to describe the Cloud Logging behaviors for the app. @@ -406,10 +444,56 @@ class LoggingSettings # @!attribute [rw] error_handling_strategy # @return [::Google::Cloud::Ces::V1::ErrorHandlingSettings::ErrorHandlingStrategy] # Optional. The strategy to use for error handling. + # @!attribute [rw] fallback_response_config + # @return [::Google::Cloud::Ces::V1::ErrorHandlingSettings::FallbackResponseConfig] + # Optional. Configuration for handling fallback responses. + # @!attribute [rw] end_session_config + # @return [::Google::Cloud::Ces::V1::ErrorHandlingSettings::EndSessionConfig] + # Optional. Configuration for ending the session in case of system errors + # (e.g. LLM errors). class ErrorHandlingSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + # Configuration for handling fallback responses. + # @!attribute [rw] custom_fallback_messages + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The fallback messages in case of system errors (e.g. LLM + # errors), mapped by [supported language + # code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language). + # @!attribute [rw] max_fallback_attempts + # @return [::Integer] + # Optional. The maximum number of fallback attempts to make before the + # agent emitting {::Google::Cloud::Ces::V1::EndSession EndSession} Signal. + class FallbackResponseConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class CustomFallbackMessagesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configuration for ending the session in case of system errors (e.g. LLM + # errors). + # @!attribute [rw] escalate_session + # @return [::Boolean] + # Optional. Whether to escalate the session in + # {::Google::Cloud::Ces::V1::EndSession EndSession}. If session is escalated, + # {::Google::Cloud::Ces::V1::EndSession#metadata metadata in EndSession} will + # contain `session_escalated = true`. See + # https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent + # for details. + class EndSessionConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Defines the strategy for handling errors. module ErrorHandlingStrategy # Unspecified error handling strategy. @@ -563,10 +647,27 @@ class ClientCertificateSettings extend ::Google::Protobuf::MessageExts::ClassMethods end + # VPC-SC settings for the app. + # @!attribute [rw] allowed_origins + # @return [::Array<::String>] + # Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are + # able to directly call when VPC Service Controls are enabled. These strings + # must match the origin exactly, including the port if specified. For + # example, "https://example.com" or "https://example.com:443". This list does + # not yet apply to Python tools that may make direct HTTP calls. + class VpcScSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Settings to describe the conversation logging behaviors for the app. # @!attribute [rw] disable_conversation_logging # @return [::Boolean] # Optional. Whether to disable conversation logging for the sessions. + # @!attribute [rw] retention_window + # @return [::Google::Protobuf::Duration] + # Optional. Controls the retention window for the conversation. + # If not set, the conversation will be retained for 365 days. class ConversationLoggingSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/common.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/common.rb index ce67859b53e4..500484de26fe 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/common.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/common.rb @@ -202,6 +202,12 @@ class ServiceDirectoryConfig # @return [::String] # Optional. The noise suppression level of the channel profile. # Available values are "low", "moderate", "high", "very_high". + # @!attribute [rw] whatsapp_config + # @return [::Google::Cloud::Ces::V1::ChannelProfile::WhatsAppConfig] + # Optional. Configuration specific to WhatsApp deployments. + # @!attribute [rw] instagram_config + # @return [::Google::Cloud::Ces::V1::ChannelProfile::InstagramConfig] + # Optional. Configuration specific to Instagram deployments. class ChannelProfile include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -303,6 +309,48 @@ module Theme end end + # Configuration specific to WhatsApp deployments. + # @!attribute [rw] waba_id + # @return [::String] + # Required. The WhatsApp Business Account ID. + # @!attribute [rw] phone_number_id + # @return [::String] + # Required. The Meta phone number ID. + # @!attribute [rw] phone_number + # @return [::String] + # Optional. The phone number in E.164 format. + # @!attribute [r] display_name + # @return [::String] + # Output only. The fetched Meta business page name. + # @!attribute [r] thumbnail_url + # @return [::String] + # Output only. The fetched Meta business profile thumbnail URL. + # @!attribute [r] description + # @return [::String] + # Output only. The description of the Meta business page or profile. + class WhatsAppConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration specific to Instagram deployments. + # @!attribute [rw] instagram_account_id + # @return [::String] + # Required. The Instagram Account ID. + # @!attribute [r] display_name + # @return [::String] + # Output only. The fetched Meta business page name. + # @!attribute [r] thumbnail_url + # @return [::String] + # Output only. The fetched Meta business profile thumbnail URL. + # @!attribute [r] description + # @return [::String] + # Output only. The description of the Meta business page or profile. + class InstagramConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The type of the channel profile. module ChannelType # Unknown channel type. @@ -323,11 +371,20 @@ module ChannelType # Contact Center as a Service (CCaaS) channel. CONTACT_CENTER_AS_A_SERVICE = 6 + # Contact Center as a Service (CCaaS Chat) channel. + CONTACT_CENTER_AS_A_SERVICE_CHAT = 11 + # Five9 channel. FIVE9 = 7 # Third party contact center integration channel. CONTACT_CENTER_INTEGRATION = 8 + + # WhatsApp channel. + WHATSAPP = 9 + + # Instagram channel. + INSTAGRAM = 10 end end diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/conversation.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/conversation.rb index 173fe2b31cca..5a000e3b5036 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/conversation.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/conversation.rb @@ -120,6 +120,10 @@ module Source # The conversation is from the evaluation. EVAL = 3 + + # The conversation is from an agent tool. Agent tool runs the agent in a + # separate session, which is persisted for testing and debugging purposes. + AGENT_TOOL = 4 end # Type of the input message. @@ -127,22 +131,25 @@ module InputType # Unspecified input type. INPUT_TYPE_UNSPECIFIED = 0 - # The input message is text. + # Text input. INPUT_TYPE_TEXT = 1 - # The input message is audio. + # Event input. + INPUT_TYPE_EVENT = 7 + + # Audio input. INPUT_TYPE_AUDIO = 2 - # The input message is image. + # Image input. INPUT_TYPE_IMAGE = 3 - # The input message is blob file. + # Blob input. INPUT_TYPE_BLOB = 4 - # The input message is client function tool response. + # Client function tool response input. INPUT_TYPE_TOOL_RESPONSE = 5 - # The input message are variables. + # Variables input. INPUT_TYPE_VARIABLES = 6 end end diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/deployment.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/deployment.rb index 59059f37cd4d..2a6b131e065a 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/deployment.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/deployment.rb @@ -21,6 +21,64 @@ module Google module Cloud module Ces module V1 + # Experiment for the deployment. + # @!attribute [rw] version_release + # @return [::Google::Cloud::Ces::V1::ExperimentConfig::VersionRelease] + # Optional. Version release for the experiment. + class ExperimentConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Version release for the experiment. + # @!attribute [rw] state + # @return [::Google::Cloud::Ces::V1::ExperimentConfig::State] + # Optional. State of the version release. + # @!attribute [rw] traffic_allocations + # @return [::Array<::Google::Cloud::Ces::V1::ExperimentConfig::VersionRelease::TrafficAllocation>] + # Optional. Traffic allocations for the version release. + class VersionRelease + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Traffic allocation for the version release. + # @!attribute [rw] id + # @return [::String] + # Optional. Id of the traffic allocation. + # Free format string, up to 128 characters. + # @!attribute [rw] traffic_percentage + # @return [::Integer] + # Optional. Traffic percentage of the traffic allocation. + # Must be between 0 and 100. + # @!attribute [rw] app_version + # @return [::String] + # Optional. App version of the traffic allocation. + # Format: + # `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + class TrafficAllocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # State of the experiment. + module State + # Unspecified state. + STATE_UNSPECIFIED = 0 + + # Deprecated: This state is no longer used. + PENDING = 1 + + # Running state. Experiment is running and valid. + RUNNING = 2 + + # Deprecated: This state is no longer used. + DONE = 3 + + # Deprecated: This state is no longer used. + EXPIRED = 4 + end + end + # A deployment represents an immutable, queryable version of the app. # It is used to deploy an app version with a specific channel profile. # @!attribute [rw] name @@ -52,10 +110,57 @@ module V1 # Output only. Etag used to ensure the object hasn't changed during a # read-modify-write operation. If the etag is empty, the update will # overwrite any concurrent changes. + # @!attribute [rw] experiment_config + # @return [::Google::Cloud::Ces::V1::ExperimentConfig] + # Optional. Experiment configuration for the deployment. + # @!attribute [rw] whatsapp_credentials + # @return [::Google::Cloud::Ces::V1::WhatsAppCredentials] + # Optional. Input only. Ephemeral WhatsApp credentials required when + # configuring a WhatsApp channel profile. + # @!attribute [rw] instagram_credentials + # @return [::Google::Cloud::Ces::V1::InstagramCredentials] + # Optional. Input only. Ephemeral Instagram credentials required when + # configuring a Instagram channel profile. class Deployment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # Ephemeral Meta credentials for WhatsApp native integration. + # @!attribute [rw] auth_code + # @return [::String] + # Required. The Meta auth code provided by the embedded signup flow. + # @!attribute [rw] pin + # @return [::String] + # Required. The 6-digit PIN created by the user for two-step verification. + # @!attribute [rw] phone_number + # @return [::String] + # Required. The phone number to register with WhatsApp. + # @!attribute [rw] business_account_id + # @return [::String] + # Required. The Business Account ID to use for the phone number. + # @!attribute [rw] waba_id + # @return [::String] + # Required. The WhatsApp Business Account ID. + # @!attribute [rw] conversation_profile_id + # @return [::String] + # Required. The Conversation Profile ID to use for the deployment. + class WhatsAppCredentials + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Ephemeral Meta credentials for Instagram native integration. + # @!attribute [rw] auth_code + # @return [::String] + # Required. The Meta auth code provided by the embedded signup flow. + # @!attribute [rw] conversation_profile_id + # @return [::String] + # Required. The Conversation Profile ID to use for the deployment. + class InstagramCredentials + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end end end diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_tool.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_tool.rb index 390222e0d7db..8482eb670bda 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_tool.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_tool.rb @@ -27,6 +27,10 @@ module V1 # @!attribute [rw] name # @return [::String] # Required. The name of the MCP tool. + # @!attribute [rw] name_override + # @return [::String] + # Optional. The name override of the MCP tool. + # This is populated if the name was overridden by a Toolset override. # @!attribute [rw] description # @return [::String] # Optional. The description of the MCP tool. @@ -66,6 +70,10 @@ module V1 # can be set in the session variables. See # https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection # for more details. + # @!attribute [r] state + # @return [::Google::Cloud::Ces::V1::McpTool::State] + # Output only. The dynamic availability state of the tool on the external + # server. class McpTool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -78,6 +86,23 @@ class CustomHeadersEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # Represents the dynamic availability state of the tool. + module State + # Default state. + STATE_UNSPECIFIED = 0 + + # The tool is available and actively offered by the server. + ACTIVE = 1 + + # The tool is configured or pinned, but currently not offered by the + # server. + INACTIVE = 2 + + # The tool exists on the server, but does not match the version on the + # server. + STALE = 3 + end end end end diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_toolset.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_toolset.rb index 844d4028f320..40a683905278 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_toolset.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mcp_toolset.rb @@ -52,6 +52,11 @@ module V1 # can be set in the session variables. See # https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection # for more details. + # @!attribute [rw] tool_overrides + # @return [::Array<::Google::Cloud::Ces::V1::McpToolOverride>] + # Optional. Overrides for individual tools within this toolset. + # This allows overriding specific details like descriptions, names, + # or pinning the tools' states so they aren't fully dynamic. class McpToolset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -65,6 +70,48 @@ class CustomHeadersEntry extend ::Google::Protobuf::MessageExts::ClassMethods end end + + # Overrides associated with a given tool in a Toolset. + # This enables "pinning" or "overriding" of tool definitions from the external + # dynamic server. + # @!attribute [rw] tool + # @return [::String] + # Required. The original name of the tool as it is emitted by the MCP server. + # @!attribute [rw] name_override + # @return [::String] + # Optional. If present, this tool uses this name in the Agent instead of the + # original name. This is primarily used as an alias if the MCP server offers + # poorly named tools. + # @!attribute [rw] description_override + # @return [::String] + # Optional. If present, this tool uses this description instead of the + # original description from the server. + # @!attribute [r] snapshot + # @return [::Google::Cloud::Ces::V1::McpToolDefinition] + # Output only. If present, this tool is "Pinned" and uses the snapshot values + # as fallbacks if the server becomes temporarily unavailable or if no + # Override is present. + class McpToolOverride + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Container for a tool's core definition elements that are snapshot. + # Schemas in the snapshot are used as-is and cannot be overridden. + # @!attribute [r] description + # @return [::String] + # Output only. The description of the MCP tool. This can be overridden + # by `description_override` in `McpToolOverride`. + # @!attribute [r] input_schema + # @return [::Google::Cloud::Ces::V1::Schema] + # Output only. The schema of the input arguments of the MCP tool. + # @!attribute [r] output_schema + # @return [::Google::Cloud::Ces::V1::Schema] + # Output only. The schema of the output arguments of the MCP tool. + class McpToolDefinition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end end end diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mocks.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mocks.rb new file mode 100644 index 000000000000..2145baca875f --- /dev/null +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/mocks.rb @@ -0,0 +1,60 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Ces + module V1 + # A mocked tool call. + # + # Expresses the target tool + a pattern to match against that tool's + # args / inputs. If the pattern matches, then the mock response will be + # returned. + # @!attribute [rw] tool_id + # @return [::String] + # Optional. The name of the tool to mock. + # Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + # + # Note: The following fields are mutually exclusive: `tool_id`, `toolset`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] toolset + # @return [::Google::Cloud::Ces::V1::ToolsetTool] + # Optional. The toolset to mock. + # + # Note: The following fields are mutually exclusive: `toolset`, `tool_id`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] tool + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Optional. Deprecated. Use tool_identifier instead. + # @!attribute [rw] expected_args_pattern + # @return [::Google::Protobuf::Struct] + # Required. A pattern to match against the args / inputs of all dispatched + # tool calls. If the tool call inputs match this pattern, then mock output + # will be returned. + # @!attribute [rw] mock_response + # @return [::Google::Protobuf::Struct] + # Optional. The mock response / output to return if the tool call args / + # inputs match the pattern. + class MockedToolCall + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/python_function.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/python_function.rb index 6abe0ff545ce..0b49f2c5c8be 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/python_function.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/python_function.rb @@ -34,6 +34,9 @@ module V1 # @return [::String] # Output only. The description of the Python function, parsed from the python # code's docstring. + # @!attribute [rw] service_directory_config + # @return [::Google::Cloud::Ces::V1::ServiceDirectoryConfig] + # Optional. Service Directory configuration for the tool. class PythonFunction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/session_service.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/session_service.rb index b0708d300906..64eb45377996 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/session_service.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/session_service.rb @@ -21,6 +21,32 @@ module Google module Cloud module Ces module V1 + # Mock tool calls configuration for the session. + # @!attribute [rw] mocked_tool_calls + # @return [::Array<::Google::Cloud::Ces::V1::MockedToolCall>] + # Optional. All tool calls to mock for the duration of the session. + # @!attribute [rw] unmatched_tool_call_behavior + # @return [::Google::Cloud::Ces::V1::MockConfig::UnmatchedToolCallBehavior] + # Required. Beavhior for tool calls that don't match any args patterns in + # mocked_tool_calls. + class MockConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # What to do when a tool call doesn't match any mocked tool calls. + module UnmatchedToolCallBehavior + # Default value. This value is unused. + UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0 + + # Throw an error for any tool calls that don't match a mock expected input + # pattern. + FAIL = 1 + + # For unmatched tool calls, pass the tool call through to real tool. + PASS_THROUGH = 2 + end + end + # InputAudioConfig configures how the CES agent should interpret the incoming # audio data. # @!attribute [rw] audio_encoding @@ -181,6 +207,9 @@ class Citations # @!attribute [rw] text # @return [::String] # Text used for citation. + # @!attribute [rw] requires_attribution + # @return [::Boolean] + # Whether this citation requires attribution to be shown to the end users. class CitedChunk include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -308,6 +337,9 @@ class SessionInput # Optional. Diagnostic information contains execution details during the # processing of the input. Only populated in the last SessionOutput (with # `turn_completed=true`) for each turn. + # @!attribute [rw] context + # @return [::Array<::Google::Protobuf::Any>] + # Context messages for external supervision guardrails. class SessionOutput include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool.rb index 9fbfabba3823..7990b70afb94 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool.rb @@ -27,58 +27,63 @@ module V1 # @return [::Google::Cloud::Ces::V1::ClientFunction] # Optional. The client function. # - # Note: The following fields are mutually exclusive: `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] open_api_tool # @return [::Google::Cloud::Ces::V1::OpenApiTool] # Optional. The open API tool. # - # Note: The following fields are mutually exclusive: `open_api_tool`, `client_function`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `open_api_tool`, `client_function`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] google_search_tool # @return [::Google::Cloud::Ces::V1::GoogleSearchTool] # Optional. The google search tool. # - # Note: The following fields are mutually exclusive: `google_search_tool`, `client_function`, `open_api_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `google_search_tool`, `client_function`, `open_api_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] connector_tool # @return [::Google::Cloud::Ces::V1::ConnectorTool] # Optional. The Integration Connector tool. # - # Note: The following fields are mutually exclusive: `connector_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `connector_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] data_store_tool # @return [::Google::Cloud::Ces::V1::DataStoreTool] # Optional. The data store tool. # - # Note: The following fields are mutually exclusive: `data_store_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `data_store_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] python_function # @return [::Google::Cloud::Ces::V1::PythonFunction] # Optional. The python function tool. # - # Note: The following fields are mutually exclusive: `python_function`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `python_function`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] mcp_tool # @return [::Google::Cloud::Ces::V1::McpTool] # Optional. The MCP tool. An MCP tool cannot be created or updated directly # and is managed by the MCP toolset. # - # Note: The following fields are mutually exclusive: `mcp_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `mcp_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] file_search_tool # @return [::Google::Cloud::Ces::V1::FileSearchTool] # Optional. The file search tool. # - # Note: The following fields are mutually exclusive: `file_search_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `file_search_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `system_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] system_tool # @return [::Google::Cloud::Ces::V1::SystemTool] # Optional. The system tool. # - # Note: The following fields are mutually exclusive: `system_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `system_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `agent_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] agent_tool # @return [::Google::Cloud::Ces::V1::AgentTool] # Optional. The agent tool. # - # Note: The following fields are mutually exclusive: `agent_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `agent_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `widget_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] widget_tool # @return [::Google::Cloud::Ces::V1::WidgetTool] # Optional. The widget tool. # - # Note: The following fields are mutually exclusive: `widget_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `widget_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `remote_agent_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] remote_agent_tool + # @return [::Google::Cloud::Ces::V1::RemoteAgentTool] + # Optional. The remote agent tool. + # + # Note: The following fields are mutually exclusive: `remote_agent_tool`, `client_function`, `open_api_tool`, `google_search_tool`, `connector_tool`, `data_store_tool`, `python_function`, `mcp_tool`, `file_search_tool`, `system_tool`, `agent_tool`, `widget_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] name # @return [::String] # Identifier. The resource name of the tool. Format: @@ -98,6 +103,11 @@ module V1 # @!attribute [rw] execution_type # @return [::Google::Cloud::Ces::V1::ExecutionType] # Optional. The execution type of the tool. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # Optional. The timeout for the tool execution. If not set, the default + # timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for + # `ASYNCHRONOUS` tools. # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] # Output only. Timestamp when the tool was created. diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool_service.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool_service.rb index 94fd876c5e52..7d7df61103a0 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool_service.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/tool_service.rb @@ -56,6 +56,11 @@ module V1 # @return [::Google::Protobuf::Struct] # Optional. The input parameters and values for the tool in JSON object # format. + # @!attribute [rw] mock_config + # @return [::Google::Cloud::Ces::V1::MockConfig] + # Optional. Mock configuration for the tool execution. + # If this field is set, tools that call other tools will be + # mocked based on the provided patterns and responses. class ExecuteToolRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -83,6 +88,13 @@ class ExecuteToolRequest # @!attribute [rw] variables # @return [::Google::Protobuf::Struct] # The variable values at the end of the tool execution. + # @!attribute [rw] citations + # @return [::Google::Cloud::Ces::V1::Citations] + # Citations that provide the source information for the tool's execution. + # @!attribute [rw] google_search_suggestions + # @return [::Google::Cloud::Ces::V1::GoogleSearchSuggestions] + # The suggestions returned from Google Search as a result of invoking the + # Google Search Tool during the tool execution. class ExecuteToolResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -148,6 +160,11 @@ class RetrieveToolSchemaResponse # @return [::Array<::String>] # Optional. The identifiers of the tools to retrieve from the toolset. # If empty, all tools in the toolset will be returned. + # @!attribute [rw] bypass_persistence_config + # @return [::Boolean] + # Optional. If true, the returned tools will contain raw descriptions and + # schemas directly from the server, bypassing any stored persistence + # configurations (overrides/snapshots). class RetrieveToolsRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/toolset.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/toolset.rb index 29641b52fe7c..1c92dbad8dbf 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/toolset.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/toolset.rb @@ -53,6 +53,11 @@ module V1 # @!attribute [rw] description # @return [::String] # Optional. The description of the toolset. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # Optional. The timeout for the toolset execution. If not set, the default + # timeout is 30 seconds for `SYNCHRONOUS` toolsets and 60 seconds for + # `ASYNCHRONOUS` toolsets. # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] # Output only. Timestamp when the toolset was created. diff --git a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/widget_tool.rb b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/widget_tool.rb index 5493fc791e31..8aaab288ec5a 100644 --- a/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/widget_tool.rb +++ b/google-cloud-ces-v1/proto_docs/google/cloud/ces/v1/widget_tool.rb @@ -45,10 +45,46 @@ module V1 # @return [::Google::Cloud::Ces::V1::WidgetTool::DataMapping] # Optional. The mapping that defines how data from a source tool is mapped to # the widget's input parameters. + # @!attribute [rw] text_response_config + # @return [::Google::Cloud::Ces::V1::WidgetTool::TextResponseConfig] + # Optional. Configuration for always-included text responses. class WidgetTool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + # Configuration for the text response returned with the widget. + # @!attribute [rw] type + # @return [::Google::Cloud::Ces::V1::WidgetTool::TextResponseConfig::Type] + # Optional. The strategy for providing the text response. + # @!attribute [rw] static_text + # @return [::String] + # Optional. The static text response to return when type is STATIC. + # @!attribute [rw] text_response_instruction + # @return [::String] + # Optional. Instruction for the LLM on how to generate the text response. + # Used as the description for the text response parameter if type is + # LLM_GENERATED. + class TextResponseConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Defines how the text response is produced. + module Type + # Unspecified type. + TYPE_UNSPECIFIED = 0 + + # The LLM dynamically decides whether to generate a text response + # alongside the widget based on the conversation context. + NONE = 1 + + # The LLM is explicitly required to generate a text response. + LLM_GENERATED = 2 + + # A pre-defined static text response is always used. + STATIC = 3 + end + end + # Configuration for mapping data from a source tool to the widget's input # parameters. # @!attribute [rw] source_tool_name diff --git a/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_rest_test.rb b/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_rest_test.rb index 142dcef6f4e1..73f6bcbe4854 100644 --- a/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_rest_test.rb +++ b/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_rest_test.rb @@ -90,6 +90,7 @@ def test_execute_tool variables = {} parent = "hello world" args = {} + mock_config = {} execute_tool_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| assert options.metadata.key? :"x-goog-api-client" @@ -105,27 +106,27 @@ def test_execute_tool end # Use hash object - c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args }) do |_result, response| + c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - c.execute_tool tool: tool, variables: variables, parent: parent, args: args do |_result, response| + c.execute_tool tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - c.execute_tool ::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args) do |_result, response| + c.execute_tool ::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args }, call_options) do |_result, response| + c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - c.execute_tool(::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args), call_options) do |_result, response| + c.execute_tool(::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config), call_options) do |_result, response| assert_equal http_response, response.underlying_op end @@ -200,6 +201,7 @@ def test_retrieve_tools # Create request parameters for a unary method. toolset = "hello world" tool_ids = ["hello world"] + bypass_persistence_config = true retrieve_tools_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| assert options.metadata.key? :"x-goog-api-client" @@ -215,27 +217,27 @@ def test_retrieve_tools end # Use hash object - c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }) do |_result, response| + c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - c.retrieve_tools toolset: toolset, tool_ids: tool_ids do |_result, response| + c.retrieve_tools toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - c.retrieve_tools ::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids) do |_result, response| + c.retrieve_tools ::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }, call_options) do |_result, response| + c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - c.retrieve_tools(::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids), call_options) do |_result, response| + c.retrieve_tools(::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config), call_options) do |_result, response| assert_equal http_response, response.underlying_op end diff --git a/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_test.rb b/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_test.rb index c70ea7b0f2fa..b0a8c016adc3 100644 --- a/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_test.rb +++ b/google-cloud-ces-v1/test/google/cloud/ces/v1/tool_service_test.rb @@ -75,6 +75,7 @@ def test_execute_tool variables = {} parent = "hello world" args = {} + mock_config = {} execute_tool_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| assert_equal :execute_tool, name @@ -85,6 +86,7 @@ def test_execute_tool assert_equal :variables, request.tool_execution_context assert_equal "hello world", request["parent"] assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Struct), request["args"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Ces::V1::MockConfig), request["mock_config"] refute_nil options end @@ -95,31 +97,31 @@ def test_execute_tool end # Use hash object - c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args }) do |response, operation| + c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config }) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use named arguments - c.execute_tool tool: tool, variables: variables, parent: parent, args: args do |response, operation| + c.execute_tool tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object - c.execute_tool ::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args) do |response, operation| + c.execute_tool ::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use hash object with options - c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args }, grpc_options) do |response, operation| + c.execute_tool({ tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config }, grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object with options - c.execute_tool(::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args), grpc_options) do |response, operation| + c.execute_tool(::Google::Cloud::Ces::V1::ExecuteToolRequest.new(tool: tool, variables: variables, parent: parent, args: args, mock_config: mock_config), grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end @@ -200,12 +202,14 @@ def test_retrieve_tools # Create request parameters for a unary method. toolset = "hello world" tool_ids = ["hello world"] + bypass_persistence_config = true retrieve_tools_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| assert_equal :retrieve_tools, name assert_kind_of ::Google::Cloud::Ces::V1::RetrieveToolsRequest, request assert_equal "hello world", request["toolset"] assert_equal ["hello world"], request["tool_ids"] + assert_equal true, request["bypass_persistence_config"] refute_nil options end @@ -216,31 +220,31 @@ def test_retrieve_tools end # Use hash object - c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }) do |response, operation| + c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config }) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use named arguments - c.retrieve_tools toolset: toolset, tool_ids: tool_ids do |response, operation| + c.retrieve_tools toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object - c.retrieve_tools ::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids) do |response, operation| + c.retrieve_tools ::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use hash object with options - c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }, grpc_options) do |response, operation| + c.retrieve_tools({ toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config }, grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object with options - c.retrieve_tools(::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids), grpc_options) do |response, operation| + c.retrieve_tools(::Google::Cloud::Ces::V1::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids, bypass_persistence_config: bypass_persistence_config), grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end