diff --git a/google-cloud-ces-v1beta/.owlbot-manifest.json b/google-cloud-ces-v1beta/.owlbot-manifest.json index 07c0bed45cd6..84ebf08e9ed6 100644 --- a/google-cloud-ces-v1beta/.owlbot-manifest.json +++ b/google-cloud-ces-v1beta/.owlbot-manifest.json @@ -15,6 +15,7 @@ "google-cloud-ces-v1beta.gemspec", "lib/google-cloud-ces-v1beta.rb", "lib/google/cloud/ces/v1beta.rb", + "lib/google/cloud/ces/v1beta/agent_card_pb.rb", "lib/google/cloud/ces/v1beta/agent_pb.rb", "lib/google/cloud/ces/v1beta/agent_service.rb", "lib/google/cloud/ces/v1beta/agent_service/client.rb", @@ -43,6 +44,7 @@ "lib/google/cloud/ces/v1beta/data_store_pb.rb", "lib/google/cloud/ces/v1beta/data_store_tool_pb.rb", "lib/google/cloud/ces/v1beta/deployment_pb.rb", + "lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb", "lib/google/cloud/ces/v1beta/evaluation_pb.rb", "lib/google/cloud/ces/v1beta/evaluation_service.rb", "lib/google/cloud/ces/v1beta/evaluation_service/client.rb", @@ -113,6 +115,7 @@ "proto_docs/google/api/launch_stage.rb", "proto_docs/google/api/resource.rb", "proto_docs/google/cloud/ces/v1beta/agent.rb", + "proto_docs/google/cloud/ces/v1beta/agent_card.rb", "proto_docs/google/cloud/ces/v1beta/agent_service.rb", "proto_docs/google/cloud/ces/v1beta/agent_tool.rb", "proto_docs/google/cloud/ces/v1beta/agent_transfers.rb", @@ -130,6 +133,7 @@ "proto_docs/google/cloud/ces/v1beta/data_store_tool.rb", "proto_docs/google/cloud/ces/v1beta/deployment.rb", "proto_docs/google/cloud/ces/v1beta/evaluation.rb", + "proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb", "proto_docs/google/cloud/ces/v1beta/evaluation_service.rb", "proto_docs/google/cloud/ces/v1beta/example.rb", "proto_docs/google/cloud/ces/v1beta/fakes.rb", @@ -227,6 +231,8 @@ "snippets/evaluation_service/delete_evaluation_result.rb", "snippets/evaluation_service/delete_evaluation_run.rb", "snippets/evaluation_service/delete_scheduled_evaluation_run.rb", + "snippets/evaluation_service/export_evaluation_results.rb", + "snippets/evaluation_service/export_evaluation_runs.rb", "snippets/evaluation_service/export_evaluations.rb", "snippets/evaluation_service/generate_evaluation.rb", "snippets/evaluation_service/get_evaluation.rb", @@ -243,6 +249,7 @@ "snippets/evaluation_service/list_evaluations.rb", "snippets/evaluation_service/list_scheduled_evaluation_runs.rb", "snippets/evaluation_service/run_evaluation.rb", + "snippets/evaluation_service/run_evaluation_result_metrics.rb", "snippets/evaluation_service/test_persona_voice.rb", "snippets/evaluation_service/update_evaluation.rb", "snippets/evaluation_service/update_evaluation_dataset.rb", diff --git a/google-cloud-ces-v1beta/gapic_metadata.json b/google-cloud-ces-v1beta/gapic_metadata.json index d3f9e64411df..09270bb1a53c 100644 --- a/google-cloud-ces-v1beta/gapic_metadata.json +++ b/google-cloud-ces-v1beta/gapic_metadata.json @@ -457,6 +457,21 @@ "methods": [ "export_evaluations" ] + }, + "ExportEvaluationRuns": { + "methods": [ + "export_evaluation_runs" + ] + }, + "ExportEvaluationResults": { + "methods": [ + "export_evaluation_results" + ] + }, + "RunEvaluationResultMetrics": { + "methods": [ + "run_evaluation_result_metrics" + ] } } } diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_card_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_card_pb.rb new file mode 100644 index 000000000000..18d3af1a348d --- /dev/null +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/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/v1beta/agent_card.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n(google/cloud/ces/v1beta/agent_card.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xd4\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\x12J\n\x14supported_interfaces\x18\x03 \x03(\x0b\x32\'.google.cloud.ces.v1beta.AgentInterfaceB\x03\xe0\x41\x02\x12\x14\n\x07version\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x06skills\x18\x06 \x03(\x0b\x32#.google.cloud.ces.v1beta.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\"{\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;\n\nagent_card\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1beta.AgentCardB\x03\xe0\x41\x02\x42^\n\x1b\x63om.google.cloud.ces.v1betaB\x0e\x41gentCardProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Ces + module V1beta + AgentCard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.AgentCard").msgclass + AgentInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.AgentInterface").msgclass + AgentSkill = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.AgentSkill").msgclass + RemoteAgentTool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.RemoteAgentTool").msgclass + end + end + end +end diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_pb.rb index 6211cddc91a0..1577f20427a2 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n#google/cloud/ces/v1beta/agent.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/ces/v1beta/agent_transfers.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x0f\n\x05\x41gent\x12\x41\n\tllm_agent\x18\x1a \x01(\x0b\x32\'.google.cloud.ces.v1beta.Agent.LlmAgentB\x03\xe0\x41\x01H\x00\x12\\\n\x17remote_dialogflow_agent\x18\x1b \x01(\x0b\x32\x34.google.cloud.ces.v1beta.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\x43\n\x0emodel_settings\x18\x04 \x01(\x0b\x32&.google.cloud.ces.v1beta.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\x46\n\x16\x62\x65\x66ore_agent_callbacks\x18\x12 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x45\n\x15\x61\x66ter_agent_callbacks\x18\x13 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x46\n\x16\x62\x65\x66ore_model_callbacks\x18\x14 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x45\n\x15\x61\x66ter_model_callbacks\x18\x15 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x45\n\x15\x62\x65\x66ore_tool_callbacks\x18\x16 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x44\n\x14\x61\x66ter_tool_callbacks\x18\x17 \x03(\x0b\x32!.google.cloud.ces.v1beta.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\x42\n\x08toolsets\x18\x1c \x03(\x0b\x32+.google.cloud.ces.v1beta.Agent.AgentToolsetB\x03\xe0\x41\x01\x12\x1e\n\x11generated_summary\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x0etransfer_rules\x18\x1e \x03(\x0b\x32%.google.cloud.ces.v1beta.TransferRuleB\x03\xe0\x41\x01\x1a\n\n\x08LlmAgent\x1a\xa8\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\x12s\n\x16input_variable_mapping\x18\x04 \x03(\x0b\x32N.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\x03\xe0\x41\x01\x12u\n\x17output_variable_mapping\x18\x05 \x03(\x0b\x32O.google.cloud.ces.v1beta.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\xc0\x01\n\x1b\x63om.google.cloud.ces.v1betaB\nAgentProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\xea\x41\x63\n)dialogflow.googleapis.com/DialogflowAgent\x12\x36projects/{project}/locations/{location}/agents/{agent}b\x06proto3" +descriptor_data = "\n#google/cloud/ces/v1beta/agent.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/ces/v1beta/agent_transfers.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x95\x10\n\x05\x41gent\x12\x41\n\tllm_agent\x18\x1a \x01(\x0b\x32\'.google.cloud.ces.v1beta.Agent.LlmAgentB\x03\xe0\x41\x01H\x00\x12\\\n\x17remote_dialogflow_agent\x18\x1b \x01(\x0b\x32\x34.google.cloud.ces.v1beta.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\x43\n\x0emodel_settings\x18\x04 \x01(\x0b\x32&.google.cloud.ces.v1beta.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\x46\n\x16\x62\x65\x66ore_agent_callbacks\x18\x12 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x45\n\x15\x61\x66ter_agent_callbacks\x18\x13 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x46\n\x16\x62\x65\x66ore_model_callbacks\x18\x14 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x45\n\x15\x61\x66ter_model_callbacks\x18\x15 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x45\n\x15\x62\x65\x66ore_tool_callbacks\x18\x16 \x03(\x0b\x32!.google.cloud.ces.v1beta.CallbackB\x03\xe0\x41\x01\x12\x44\n\x14\x61\x66ter_tool_callbacks\x18\x17 \x03(\x0b\x32!.google.cloud.ces.v1beta.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\x42\n\x08toolsets\x18\x1c \x03(\x0b\x32+.google.cloud.ces.v1beta.Agent.AgentToolsetB\x03\xe0\x41\x01\x12\x1e\n\x11generated_summary\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x0etransfer_rules\x18\x1e \x03(\x0b\x32%.google.cloud.ces.v1beta.TransferRuleB\x03\xe0\x41\x01\x12\x1e\n\x11validation_errors\x18 \x03(\tB\x03\xe0\x41\x03\x1a\n\n\x08LlmAgent\x1a\xcd\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\x12s\n\x16input_variable_mapping\x18\x04 \x03(\x0b\x32N.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\x03\xe0\x41\x01\x12u\n\x17output_variable_mapping\x18\x05 \x03(\x0b\x32O.google.cloud.ces.v1beta.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\xc0\x01\n\x1b\x63om.google.cloud.ces.v1betaB\nAgentProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/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-v1beta/lib/google/cloud/ces/v1beta/agent_service/client.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service/client.rb index 4b95054eb343..3e47dd6aa565 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service/client.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service/client.rb @@ -4764,7 +4764,7 @@ def restore_app_version request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload generate_app_resource(agent: nil, tool: nil, toolset: nil, parent: nil, refine_instructions: nil, tool_generation_config: nil, app_generation_config: nil, evaluation_generation_config: nil, evaluation_personas_generation_config: nil, quality_report_generation_config: nil, hill_climbing_fix_config: nil) + # @overload generate_app_resource(agent: nil, tool: nil, toolset: nil, app_version_context: nil, parent: nil, refine_instructions: nil, tool_generation_config: nil, app_generation_config: nil, evaluation_generation_config: nil, evaluation_personas_generation_config: nil, quality_report_generation_config: nil, hill_climbing_fix_config: nil) # Pass arguments to `generate_app_resource` 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). @@ -4773,17 +4773,21 @@ def restore_app_version request, options = nil # The agent resource to be used by the LLM assistant, can be empty for # generating a new agent. # - # Note: The following parameters are mutually exclusive: `agent`, `tool`, `toolset`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # Note: The following parameters are mutually exclusive: `agent`, `tool`, `toolset`, `app_version_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. # @param tool [::Google::Cloud::Ces::V1beta::Tool, ::Hash] # The tool resource to be used by the LLM assistant, can be empty for # generating a new tool. # - # Note: The following parameters are mutually exclusive: `tool`, `agent`, `toolset`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # Note: The following parameters are mutually exclusive: `tool`, `agent`, `toolset`, `app_version_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. # @param toolset [::Google::Cloud::Ces::V1beta::Toolset, ::Hash] # The toolset resource to be used by the LLM assistant, can be empty for # generating a new toolset. # - # Note: The following parameters are mutually exclusive: `toolset`, `agent`, `tool`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # Note: The following parameters are mutually exclusive: `toolset`, `agent`, `tool`, `app_version_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param app_version_context [::Google::Cloud::Ces::V1beta::GenerateAppResourceRequest::AppVersionContext, ::Hash] + # The app version context specifying the base snapshot and target agent. + # + # Note: The following parameters are mutually exclusive: `app_version_context`, `agent`, `tool`, `toolset`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. # @param parent [::String] # Required. The resource name of the app to generate the resource for. # @param refine_instructions [::Array<::Google::Cloud::Ces::V1beta::GenerateAppResourceRequest::RefineInstructions, ::Hash>] diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb index 4c6b392cc263..34a69c01ab45 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb @@ -4422,7 +4422,7 @@ def restore_app_version request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload generate_app_resource(agent: nil, tool: nil, toolset: nil, parent: nil, refine_instructions: nil, tool_generation_config: nil, app_generation_config: nil, evaluation_generation_config: nil, evaluation_personas_generation_config: nil, quality_report_generation_config: nil, hill_climbing_fix_config: nil) + # @overload generate_app_resource(agent: nil, tool: nil, toolset: nil, app_version_context: nil, parent: nil, refine_instructions: nil, tool_generation_config: nil, app_generation_config: nil, evaluation_generation_config: nil, evaluation_personas_generation_config: nil, quality_report_generation_config: nil, hill_climbing_fix_config: nil) # Pass arguments to `generate_app_resource` 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). @@ -4431,17 +4431,21 @@ def restore_app_version request, options = nil # The agent resource to be used by the LLM assistant, can be empty for # generating a new agent. # - # Note: The following parameters are mutually exclusive: `agent`, `tool`, `toolset`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # Note: The following parameters are mutually exclusive: `agent`, `tool`, `toolset`, `app_version_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. # @param tool [::Google::Cloud::Ces::V1beta::Tool, ::Hash] # The tool resource to be used by the LLM assistant, can be empty for # generating a new tool. # - # Note: The following parameters are mutually exclusive: `tool`, `agent`, `toolset`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # Note: The following parameters are mutually exclusive: `tool`, `agent`, `toolset`, `app_version_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. # @param toolset [::Google::Cloud::Ces::V1beta::Toolset, ::Hash] # The toolset resource to be used by the LLM assistant, can be empty for # generating a new toolset. # - # Note: The following parameters are mutually exclusive: `toolset`, `agent`, `tool`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # Note: The following parameters are mutually exclusive: `toolset`, `agent`, `tool`, `app_version_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param app_version_context [::Google::Cloud::Ces::V1beta::GenerateAppResourceRequest::AppVersionContext, ::Hash] + # The app version context specifying the base snapshot and target agent. + # + # Note: The following parameters are mutually exclusive: `app_version_context`, `agent`, `tool`, `toolset`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. # @param parent [::String] # Required. The resource name of the app to generate the resource for. # @param refine_instructions [::Array<::Google::Cloud::Ces::V1beta::GenerateAppResourceRequest::RefineInstructions, ::Hash>] diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service_pb.rb index bff16ac8ef5c..ac4a09622c00 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/agent_service_pb.rb @@ -28,7 +28,7 @@ require 'google/rpc/status_pb' -descriptor_data = "\n+google/cloud/ces/v1beta/agent_service.proto\x12\x17google.cloud.ces.v1beta\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/v1beta/agent.proto\x1a!google/cloud/ces/v1beta/app.proto\x1a)google/cloud/ces/v1beta/app_version.proto\x1a\'google/cloud/ces/v1beta/changelog.proto\x1a*google/cloud/ces/v1beta/conversation.proto\x1a(google/cloud/ces/v1beta/deployment.proto\x1a(google/cloud/ces/v1beta/evaluation.proto\x1a%google/cloud/ces/v1beta/example.proto\x1a*google/cloud/ces/v1beta/file_context.proto\x1a\'google/cloud/ces/v1beta/guardrail.proto\x1a/google/cloud/ces/v1beta/security_settings.proto\x1a\"google/cloud/ces/v1beta/tool.proto\x1a%google/cloud/ces/v1beta/toolset.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9e\x01\n\x0fListAppsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16\x63\x65s.googleapis.com/App\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"q\n\x10ListAppsResponse\x12*\n\x04\x61pps\x18\x01 \x03(\x0b\x32\x1c.google.cloud.ces.v1beta.App\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"=\n\rGetAppRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\"\x87\x01\n\x10\x43reateAppRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16\x63\x65s.googleapis.com/App\x12\x13\n\x06\x61pp_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12.\n\x03\x61pp\x18\x03 \x01(\x0b\x32\x1c.google.cloud.ces.v1beta.AppB\x03\xe0\x41\x02\"x\n\x10UpdateAppRequest\x12.\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x1c.google.cloud.ces.v1beta.AppB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"S\n\x10\x44\x65leteAppRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa9\x02\n\x10\x45xportAppRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12R\n\rexport_format\x18\x02 \x01(\x0e\x32\x36.google.cloud.ces.v1beta.ExportAppRequest.ExportFormatB\x03\xe0\x41\x02\x12\x14\n\x07gcs_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12:\n\x0b\x61pp_version\x18\x04 \x01(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\"A\n\x0c\x45xportFormat\x12\x1d\n\x19\x45XPORT_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04JSON\x10\x01\x12\x08\n\x04YAML\x10\x02\"D\n\x11\x45xportAppResponse\x12\x15\n\x0b\x61pp_content\x18\x01 \x01(\x0cH\x00\x12\x11\n\x07\x61pp_uri\x18\x02 \x01(\tH\x00\x42\x05\n\x03\x61pp\"\x90\x04\n\x10ImportAppRequest\x12\x11\n\x07gcs_uri\x18\x04 \x01(\tH\x00\x12\x15\n\x0b\x61pp_content\x18\x05 \x01(\x0cH\x00\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16\x63\x65s.googleapis.com/App\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x61pp_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12T\n\x0eimport_options\x18\x06 \x01(\x0b\x32\x37.google.cloud.ces.v1beta.ImportAppRequest.ImportOptionsB\x03\xe0\x41\x01\x12\x1c\n\x0fignore_app_lock\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xf6\x01\n\rImportOptions\x12}\n\x1c\x63onflict_resolution_strategy\x18\x01 \x01(\x0e\x32R.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions.ConflictResolutionStrategyB\x03\xe0\x41\x01\"f\n\x1a\x43onflictResolutionStrategy\x12,\n(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\x10\x00\x12\x0b\n\x07REPLACE\x10\x01\x12\r\n\tOVERWRITE\x10\x02\x42\x05\n\x03\x61pp\"P\n\x11ImportAppResponse\x12)\n\x04name\x18\x01 \x01(\tB\x1b\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\x10\n\x08warnings\x18\x02 \x03(\t\"\xa2\x01\n\x11ListAgentsRequest\x12\x30\n\x06parent\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\x12\x18\x63\x65s.googleapis.com/Agent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"]\n\x12ListAgentsResponse\x12.\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x1e.google.cloud.ces.v1beta.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"A\n\x0fGetAgentRequest\x12.\n\x04name\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\"\x91\x01\n\x12\x43reateAgentRequest\x12\x30\n\x06parent\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\x12\x18\x63\x65s.googleapis.com/Agent\x12\x15\n\x08\x61gent_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\x05\x61gent\x18\x03 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.AgentB\x03\xe0\x41\x02\"~\n\x12UpdateAgentRequest\x12\x32\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.AgentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"k\n\x12\x44\x65leteAgentRequest\x12.\n\x04name\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xbe\x01\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\"\xa6\x01\n\x13ListExamplesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x63\x65s.googleapis.com/Example\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"c\n\x14ListExamplesResponse\x12\x32\n\x08\x65xamples\x18\x01 \x03(\x0b\x32 .google.cloud.ces.v1beta.Example\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x11GetExampleRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Example\"\x9b\x01\n\x14\x43reateExampleRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x63\x65s.googleapis.com/Example\x12\x17\n\nexample_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\x07\x65xample\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1beta.ExampleB\x03\xe0\x41\x02\"\x84\x01\n\x14UpdateExampleRequest\x12\x36\n\x07\x65xample\x18\x01 \x01(\x0b\x32 .google.cloud.ces.v1beta.ExampleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"[\n\x14\x44\x65leteExampleRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Example\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n\x10ListToolsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17\x63\x65s.googleapis.com/Tool\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"Z\n\x11ListToolsResponse\x12,\n\x05tools\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ces.v1beta.Tool\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"?\n\x0eGetToolRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\"\x8c\x01\n\x11\x43reateToolRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17\x63\x65s.googleapis.com/Tool\x12\x14\n\x07tool_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x30\n\x04tool\x18\x03 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.ToolB\x03\xe0\x41\x02\"{\n\x11UpdateToolRequest\x12\x30\n\x04tool\x18\x01 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.ToolB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"i\n\x11\x44\x65leteToolRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x02\n\x18ListConversationsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63\x65s.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x06source\x18\x05 \x01(\x0e\x32,.google.cloud.ces.v1beta.Conversation.SourceB\x03\xe0\x41\x01\x12\x42\n\x07sources\x18\x06 \x03(\x0e\x32,.google.cloud.ces.v1beta.Conversation.SourceB\x03\xe0\x41\x01\"r\n\x19ListConversationsResponse\x12<\n\rconversations\x18\x01 \x03(\x0b\x32%.google.cloud.ces.v1beta.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x94\x01\n\x16GetConversationRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\x12\x43\n\x06source\x18\x02 \x01(\x0e\x32,.google.cloud.ces.v1beta.Conversation.SourceB\x05\x18\x01\xe0\x41\x01\"\x97\x01\n\x19\x44\x65leteConversationRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\x12\x43\n\x06source\x18\x02 \x01(\x0e\x32,.google.cloud.ces.v1beta.Conversation.SourceB\x05\x18\x01\xe0\x41\x01\"\x9a\x01\n\x1f\x42\x61tchDeleteConversationsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63\x65s.googleapis.com/Conversation\x12>\n\rconversations\x18\x02 \x03(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\"|\n BatchDeleteConversationsResponse\x12\x1d\n\x15\x64\x65leted_conversations\x18\x01 \x03(\t\x12\x1c\n\x14\x66\x61iled_conversations\x18\x02 \x03(\t\x12\x1b\n\x0e\x65rror_messages\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\xaa\x01\n\x15ListGuardrailsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63\x65s.googleapis.com/Guardrail\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"i\n\x16ListGuardrailsResponse\x12\x36\n\nguardrails\x18\x01 \x03(\x0b\x32\".google.cloud.ces.v1beta.Guardrail\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x13GetGuardrailRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\"\xa5\x01\n\x16\x43reateGuardrailRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63\x65s.googleapis.com/Guardrail\x12\x19\n\x0cguardrail_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12:\n\tguardrail\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1beta.GuardrailB\x03\xe0\x41\x02\"\x8a\x01\n\x16UpdateGuardrailRequest\x12:\n\tguardrail\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1beta.GuardrailB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n\x16\x44\x65leteGuardrailRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n\x16ListDeploymentsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/Deployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\"l\n\x17ListDeploymentsResponse\x12\x38\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x14GetDeploymentRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Deployment\"\xaa\x01\n\x17\x43reateDeploymentRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/Deployment\x12\x1a\n\rdeployment_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12<\n\ndeployment\x18\x02 \x01(\x0b\x32#.google.cloud.ces.v1beta.DeploymentB\x03\xe0\x41\x02\"\x8d\x01\n\x17UpdateDeploymentRequest\x12<\n\ndeployment\x18\x01 \x01(\x0b\x32#.google.cloud.ces.v1beta.DeploymentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"a\n\x17\x44\x65leteDeploymentRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Deployment\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa6\x01\n\x13ListToolsetsRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x63\x65s.googleapis.com/Toolset\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"c\n\x14ListToolsetsResponse\x12\x32\n\x08toolsets\x18\x01 \x03(\x0b\x32 .google.cloud.ces.v1beta.Toolset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x11GetToolsetRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\"\x9b\x01\n\x14\x43reateToolsetRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x63\x65s.googleapis.com/Toolset\x12\x17\n\ntoolset_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\x07toolset\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetB\x03\xe0\x41\x02\"\x84\x01\n\x14UpdateToolsetRequest\x12\x36\n\x07toolset\x18\x01 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"o\n\x14\x44\x65leteToolsetRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n\x16ListAppVersionsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/AppVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"m\n\x17ListAppVersionsResponse\x12\x39\n\x0c\x61pp_versions\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.AppVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x14GetAppVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\"a\n\x17\x44\x65leteAppVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n\x17\x43reateAppVersionRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/AppVersion\x12\x1b\n\x0e\x61pp_version_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12=\n\x0b\x61pp_version\x18\x03 \x01(\x0b\x32#.google.cloud.ces.v1beta.AppVersionB\x03\xe0\x41\x02\"O\n\x18RestoreAppVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\"\x1b\n\x19RestoreAppVersionResponse\"\xfd\x12\n\x1aGenerateAppResourceRequest\x12/\n\x05\x61gent\x18\x02 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.AgentH\x00\x12-\n\x04tool\x18\x04 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.ToolH\x00\x12\x33\n\x07toolset\x18\x06 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetH\x00\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12h\n\x13refine_instructions\x18\x03 \x03(\x0b\x32\x46.google.cloud.ces.v1beta.GenerateAppResourceRequest.RefineInstructionsB\x03\xe0\x41\x01\x12m\n\x16tool_generation_config\x18\x05 \x01(\x0b\x32H.google.cloud.ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfigB\x03\xe0\x41\x01\x12k\n\x15\x61pp_generation_config\x18\x07 \x01(\x0b\x32G.google.cloud.ces.v1beta.GenerateAppResourceRequest.AppGenerationConfigB\x03\xe0\x41\x01\x12y\n\x1c\x65valuation_generation_config\x18\x08 \x01(\x0b\x32N.google.cloud.ces.v1beta.GenerateAppResourceRequest.EvaluationGenerationConfigB\x03\xe0\x41\x01\x12\x8a\x01\n%evaluation_personas_generation_config\x18\t \x01(\x0b\x32V.google.cloud.ces.v1beta.GenerateAppResourceRequest.EvaluationPersonasGenerationConfigB\x03\xe0\x41\x01\x12\x80\x01\n quality_report_generation_config\x18\n \x01(\x0b\x32Q.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfigB\x03\xe0\x41\x01\x12p\n\x18hill_climbing_fix_config\x18\x0b \x01(\x0b\x32I.google.cloud.ces.v1beta.GenerateAppResourceRequest.HillClimbingFixConfigB\x03\xe0\x41\x01\x1a\x96\x01\n\x12RefineInstructions\x12\x18\n\x0bstart_index\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x16\n\tend_index\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12\x33\n\nfield_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x19\n\x0cinstructions\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a\xea\x04\n\x14ToolGenerationConfig\x12\x14\n\x07\x63ontext\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12@\n\rfile_contexts\x18\x03 \x03(\x0b\x32$.google.cloud.ces.v1beta.FileContextB\x03\xe0\x41\x01\x12\x98\x01\n\"open_api_toolset_generation_config\x18\x02 \x01(\x0b\x32g.google.cloud.ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenerationConfigB\x03\xe0\x41\x01\x1a\xde\x02\n\x1eOpenApiToolsetGenerationConfig\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\xad\x01\n\x1coperation_generation_configs\x18\x02 \x03(\x0b\x32\x81\x01.google.cloud.ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenerationConfig.OperationGenerationConfigB\x03\xe0\x41\x02\x1az\n\x19OperationGenerationConfig\x12\x13\n\x06method\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0crequest_json\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rresponse_json\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a\xf5\x01\n\x13\x41ppGenerationConfig\x12\x14\n\x07\x63ontext\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12@\n\rfile_contexts\x18\x02 \x03(\x0b\x32$.google.cloud.ces.v1beta.FileContextB\x03\xe0\x41\x01\x12H\n\ndataset_id\x18\x03 \x01(\tB4\xe0\x41\x01\xfa\x41.\n,contactcenterinsights.googleapis.com/Dataset\x12!\n\x14generate_evaluations\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0cgcs_location\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\x66\n\x1a\x45valuationGenerationConfig\x12H\n\ndataset_id\x18\x01 \x01(\tB4\xe0\x41\x01\xfa\x41.\n,contactcenterinsights.googleapis.com/Dataset\x1a$\n\"EvaluationPersonasGenerationConfig\x1a\x61\n\x1dQualityReportGenerationConfig\x12@\n\x0e\x65valuation_run\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x1a\\\n\x15HillClimbingFixConfig\x12\x43\n\x0equality_report\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.QualityReportB\x03\xe0\x41\x02\x42\n\n\x08resource\"\xb4\x07\n\x1bGenerateAppResourceResponse\x12/\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.AgentH\x00\x12\x33\n\x07toolset\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetH\x00\x12<\n\x0c\x61pp_snapshot\x18\x04 \x01(\x0b\x32$.google.cloud.ces.v1beta.AppSnapshotH\x00\x12K\n\x05tools\x18\x05 \x01(\x0b\x32:.google.cloud.ces.v1beta.GenerateAppResourceResponse.ToolsH\x00\x12W\n\x0b\x65valuations\x18\x06 \x01(\x0b\x32@.google.cloud.ces.v1beta.GenerateAppResourceResponse.EvaluationsH\x00\x12Z\n\rapp_resources\x18\x07 \x01(\x0b\x32\x41.google.cloud.ces.v1beta.GenerateAppResourceResponse.AppResourcesH\x00\x12@\n\x0equality_report\x18\x08 \x01(\x0b\x32&.google.cloud.ces.v1beta.QualityReportH\x00\x12\x65\n\x14generate_result_info\x18\x02 \x01(\x0b\x32G.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo\x1aG\n\x0b\x45valuations\x12\x38\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.Evaluation\x1a\x35\n\x05Tools\x12,\n\x05tools\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ces.v1beta.Tool\x1a\x84\x01\n\x0c\x41ppResources\x12:\n\x0c\x61pp_snapshot\x18\x01 \x01(\x0b\x32$.google.cloud.ces.v1beta.AppSnapshot\x12\x38\n\x0b\x65valuations\x18\x02 \x03(\x0b\x32#.google.cloud.ces.v1beta.Evaluation\x1a)\n\x12GenerateResultInfo\x12\x13\n\x0b\x65xplanation\x18\x01 \x01(\tB\x14\n\x12generated_resource\"\x89\x03\n\rQualityReport\x12G\n\x06issues\x18\x01 \x03(\x0b\x32\x32.google.cloud.ces.v1beta.QualityReport.AgentIssuesB\x03\xe0\x41\x01\x12\x1c\n\x0f\x65valuation_runs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12I\n\x0egeneral_issues\x18\x03 \x03(\x0b\x32,.google.cloud.ces.v1beta.QualityReport.IssueB\x03\xe0\x41\x01\x1a`\n\x05Issue\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10occurrence_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11proposed_solution\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\x64\n\x0b\x41gentIssues\x12\x12\n\x05\x61gent\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x06issues\x18\x02 \x03(\x0b\x32,.google.cloud.ces.v1beta.QualityReport.IssueB\x03\xe0\x41\x01\"\xeb\x04\n$GenerateAppResourceOperationMetadata\x12j\n\x0fgeneration_type\x18\x01 \x01(\x0e\x32L.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata.GenerationTypeB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_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\x13\n\x06target\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12/\n\x0epartial_errors\x18\x06 \x03(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\"\x91\x02\n\x0eGenerationType\x12\x1f\n\x1bGENERATION_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41GENT_RESTRUCTURE\x10\x01\x12\x10\n\x0c\x41GENT_REFINE\x10\x02\x12\x10\n\x0c\x41GENT_CREATE\x10\x03\x12\x0f\n\x0bTOOL_CREATE\x10\x04\x12\x13\n\x0fSCENARIO_CREATE\x10\x05\x12$\n SCENARIO_CREATE_FROM_TRANSCRIPTS\x10\x07\x12\x1d\n\x19\x45VALUATION_PERSONA_CREATE\x10\x06\x12\x19\n\x15QUALITY_REPORT_CREATE\x10\x08\x12\x1d\n\x19INSTRUCTION_FOLLOWING_FIX\x10\t\"\xaa\x01\n\x15ListChangelogsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63\x65s.googleapis.com/Changelog\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"i\n\x16ListChangelogsResponse\x12\x36\n\nchangelogs\x18\x01 \x03(\x0b\x32\".google.cloud.ces.v1beta.Changelog\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x13GetChangelogRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Changelog\"W\n\x1aGetSecuritySettingsRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#ces.googleapis.com/SecuritySettings\"\xa0\x01\n\x1dUpdateSecuritySettingsRequest\x12I\n\x11security_settings\x18\x01 \x01(\x0b\x32).google.cloud.ces.v1beta.SecuritySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x32\xd6M\n\x0c\x41gentService\x12\x9e\x01\n\x08ListApps\x12(.google.cloud.ces.v1beta.ListAppsRequest\x1a).google.cloud.ces.v1beta.ListAppsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1beta/{parent=projects/*/locations/*}/apps\x12\x8b\x01\n\x06GetApp\x12&.google.cloud.ces.v1beta.GetAppRequest\x1a\x1c.google.cloud.ces.v1beta.App\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1beta/{name=projects/*/locations/*/apps/*}\x12\xcc\x01\n\tCreateApp\x12).google.cloud.ces.v1beta.CreateAppRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x18\n\x03\x41pp\x12\x11OperationMetadata\xda\x41\x11parent,app,app_id\xda\x41\nparent,app\x82\xd3\xe4\x93\x02\x33\",/v1beta/{parent=projects/*/locations/*}/apps:\x03\x61pp\x12\xa5\x01\n\tUpdateApp\x12).google.cloud.ces.v1beta.UpdateAppRequest\x1a\x1c.google.cloud.ces.v1beta.App\"O\xda\x41\x0f\x61pp,update_mask\x82\xd3\xe4\x93\x02\x37\x32\x30/v1beta/{app.name=projects/*/locations/*/apps/*}:\x03\x61pp\x12\xbf\x01\n\tDeleteApp\x12).google.cloud.ces.v1beta.DeleteAppRequest\x1a\x1d.google.longrunning.Operation\"h\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1beta/{name=projects/*/locations/*/apps/*}\x12\xc8\x01\n\tExportApp\x12).google.cloud.ces.v1beta.ExportAppRequest\x1a\x1d.google.longrunning.Operation\"q\xca\x41&\n\x11\x45xportAppResponse\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;\"6/v1beta/{name=projects/*/locations/*/apps/*}:exportApp:\x01*\x12\xdf\x01\n\tImportApp\x12).google.cloud.ces.v1beta.ImportAppRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41&\n\x11ImportAppResponse\x12\x11OperationMetadata\xda\x41\x1aparent,display_name,app_id\x82\xd3\xe4\x93\x02;\"6/v1beta/{parent=projects/*/locations/*}/apps:importApp:\x01*\x12\xbc\x01\n\x13GetSecuritySettings\x12\x33.google.cloud.ces.v1beta.GetSecuritySettingsRequest\x1a).google.cloud.ces.v1beta.SecuritySettings\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta/{name=projects/*/locations/*/securitySettings}\x12\x81\x02\n\x16UpdateSecuritySettings\x12\x36.google.cloud.ces.v1beta.UpdateSecuritySettingsRequest\x1a).google.cloud.ces.v1beta.SecuritySettings\"\x83\x01\xda\x41\x1dsecurity_settings,update_mask\x82\xd3\xe4\x93\x02]2H/v1beta/{security_settings.name=projects/*/locations/*/securitySettings}:\x11security_settings\x12\xad\x01\n\nListAgents\x12*.google.cloud.ces.v1beta.ListAgentsRequest\x1a+.google.cloud.ces.v1beta.ListAgentsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{parent=projects/*/locations/*/apps/*}/agents\x12\x9a\x01\n\x08GetAgent\x12(.google.cloud.ces.v1beta.GetAgentRequest\x1a\x1e.google.cloud.ces.v1beta.Agent\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{name=projects/*/locations/*/apps/*/agents/*}\x12\xc7\x01\n\x0b\x43reateAgent\x12+.google.cloud.ces.v1beta.CreateAgentRequest\x1a\x1e.google.cloud.ces.v1beta.Agent\"k\xda\x41\x15parent,agent,agent_id\xda\x41\x0cparent,agent\x82\xd3\xe4\x93\x02>\"5/v1beta/{parent=projects/*/locations/*/apps/*}/agents:\x05\x61gent\x12\xba\x01\n\x0bUpdateAgent\x12+.google.cloud.ces.v1beta.UpdateAgentRequest\x1a\x1e.google.cloud.ces.v1beta.Agent\"^\xda\x41\x11\x61gent,update_mask\x82\xd3\xe4\x93\x02\x44\x32;/v1beta/{agent.name=projects/*/locations/*/apps/*/agents/*}:\x05\x61gent\x12\x98\x01\n\x0b\x44\x65leteAgent\x12+.google.cloud.ces.v1beta.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1beta/{name=projects/*/locations/*/apps/*/agents/*}\x12\xb5\x01\n\x0cListExamples\x12,.google.cloud.ces.v1beta.ListExamplesRequest\x1a-.google.cloud.ces.v1beta.ListExamplesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta/{parent=projects/*/locations/*/apps/*}/examples\x12\xa2\x01\n\nGetExample\x12*.google.cloud.ces.v1beta.GetExampleRequest\x1a .google.cloud.ces.v1beta.Example\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta/{name=projects/*/locations/*/apps/*/examples/*}\x12\xd7\x01\n\rCreateExample\x12-.google.cloud.ces.v1beta.CreateExampleRequest\x1a .google.cloud.ces.v1beta.Example\"u\xda\x41\x19parent,example,example_id\xda\x41\x0eparent,example\x82\xd3\xe4\x93\x02\x42\"7/v1beta/{parent=projects/*/locations/*/apps/*}/examples:\x07\x65xample\x12\xc8\x01\n\rUpdateExample\x12-.google.cloud.ces.v1beta.UpdateExampleRequest\x1a .google.cloud.ces.v1beta.Example\"f\xda\x41\x13\x65xample,update_mask\x82\xd3\xe4\x93\x02J2?/v1beta/{example.name=projects/*/locations/*/apps/*/examples/*}:\x07\x65xample\x12\x9e\x01\n\rDeleteExample\x12-.google.cloud.ces.v1beta.DeleteExampleRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1beta/{name=projects/*/locations/*/apps/*/examples/*}\x12\xa9\x01\n\tListTools\x12).google.cloud.ces.v1beta.ListToolsRequest\x1a*.google.cloud.ces.v1beta.ListToolsResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta/{parent=projects/*/locations/*/apps/*}/tools\x12\x96\x01\n\x07GetTool\x12\'.google.cloud.ces.v1beta.GetToolRequest\x1a\x1d.google.cloud.ces.v1beta.Tool\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta/{name=projects/*/locations/*/apps/*/tools/*}\x12\xc9\x01\n\x11ListConversations\x12\x31.google.cloud.ces.v1beta.ListConversationsRequest\x1a\x32.google.cloud.ces.v1beta.ListConversationsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12\x12*\n\rconversations\x18\x02 \x03(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\"|\n BatchDeleteConversationsResponse\x12\x1d\n\x15\x64\x65leted_conversations\x18\x01 \x03(\t\x12\x1c\n\x14\x66\x61iled_conversations\x18\x02 \x03(\t\x12\x1b\n\x0e\x65rror_messages\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\xaa\x01\n\x15ListGuardrailsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63\x65s.googleapis.com/Guardrail\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"i\n\x16ListGuardrailsResponse\x12\x36\n\nguardrails\x18\x01 \x03(\x0b\x32\".google.cloud.ces.v1beta.Guardrail\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x13GetGuardrailRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\"\xa5\x01\n\x16\x43reateGuardrailRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63\x65s.googleapis.com/Guardrail\x12\x19\n\x0cguardrail_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12:\n\tguardrail\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1beta.GuardrailB\x03\xe0\x41\x02\"\x8a\x01\n\x16UpdateGuardrailRequest\x12:\n\tguardrail\x18\x01 \x01(\x0b\x32\".google.cloud.ces.v1beta.GuardrailB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n\x16\x44\x65leteGuardrailRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n\x16ListDeploymentsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/Deployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\"l\n\x17ListDeploymentsResponse\x12\x38\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x14GetDeploymentRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Deployment\"\xaa\x01\n\x17\x43reateDeploymentRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/Deployment\x12\x1a\n\rdeployment_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12<\n\ndeployment\x18\x02 \x01(\x0b\x32#.google.cloud.ces.v1beta.DeploymentB\x03\xe0\x41\x02\"\x8d\x01\n\x17UpdateDeploymentRequest\x12<\n\ndeployment\x18\x01 \x01(\x0b\x32#.google.cloud.ces.v1beta.DeploymentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"a\n\x17\x44\x65leteDeploymentRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Deployment\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa6\x01\n\x13ListToolsetsRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x63\x65s.googleapis.com/Toolset\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"c\n\x14ListToolsetsResponse\x12\x32\n\x08toolsets\x18\x01 \x03(\x0b\x32 .google.cloud.ces.v1beta.Toolset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x11GetToolsetRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\"\x9b\x01\n\x14\x43reateToolsetRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x63\x65s.googleapis.com/Toolset\x12\x17\n\ntoolset_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\x07toolset\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetB\x03\xe0\x41\x02\"\x84\x01\n\x14UpdateToolsetRequest\x12\x36\n\x07toolset\x18\x01 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"o\n\x14\x44\x65leteToolsetRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Toolset\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n\x16ListAppVersionsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/AppVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"m\n\x17ListAppVersionsResponse\x12\x39\n\x0c\x61pp_versions\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.AppVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x14GetAppVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\"a\n\x17\x44\x65leteAppVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n\x17\x43reateAppVersionRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/AppVersion\x12\x1b\n\x0e\x61pp_version_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12=\n\x0b\x61pp_version\x18\x03 \x01(\x0b\x32#.google.cloud.ces.v1beta.AppVersionB\x03\xe0\x41\x02\"O\n\x18RestoreAppVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\"\x1b\n\x19RestoreAppVersionResponse\"\xee\x14\n\x1aGenerateAppResourceRequest\x12/\n\x05\x61gent\x18\x02 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.AgentH\x00\x12-\n\x04tool\x18\x04 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.ToolH\x00\x12\x33\n\x07toolset\x18\x06 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetH\x00\x12\x64\n\x13\x61pp_version_context\x18\x0c \x01(\x0b\x32\x45.google.cloud.ces.v1beta.GenerateAppResourceRequest.AppVersionContextH\x00\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12h\n\x13refine_instructions\x18\x03 \x03(\x0b\x32\x46.google.cloud.ces.v1beta.GenerateAppResourceRequest.RefineInstructionsB\x03\xe0\x41\x01\x12m\n\x16tool_generation_config\x18\x05 \x01(\x0b\x32H.google.cloud.ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfigB\x03\xe0\x41\x01\x12k\n\x15\x61pp_generation_config\x18\x07 \x01(\x0b\x32G.google.cloud.ces.v1beta.GenerateAppResourceRequest.AppGenerationConfigB\x03\xe0\x41\x01\x12y\n\x1c\x65valuation_generation_config\x18\x08 \x01(\x0b\x32N.google.cloud.ces.v1beta.GenerateAppResourceRequest.EvaluationGenerationConfigB\x03\xe0\x41\x01\x12\x8a\x01\n%evaluation_personas_generation_config\x18\t \x01(\x0b\x32V.google.cloud.ces.v1beta.GenerateAppResourceRequest.EvaluationPersonasGenerationConfigB\x03\xe0\x41\x01\x12\x80\x01\n quality_report_generation_config\x18\n \x01(\x0b\x32Q.google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfigB\x03\xe0\x41\x01\x12p\n\x18hill_climbing_fix_config\x18\x0b \x01(\x0b\x32I.google.cloud.ces.v1beta.GenerateAppResourceRequest.HillClimbingFixConfigB\x03\xe0\x41\x01\x1a\x88\x01\n\x11\x41ppVersionContext\x12\x37\n\x0b\x61pp_version\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12:\n\x13\x61gent_resource_name\x18\x02 \x01(\tB\x1d\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x1a\x96\x01\n\x12RefineInstructions\x12\x18\n\x0bstart_index\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x16\n\tend_index\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12\x33\n\nfield_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x19\n\x0cinstructions\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a\xea\x04\n\x14ToolGenerationConfig\x12\x14\n\x07\x63ontext\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12@\n\rfile_contexts\x18\x03 \x03(\x0b\x32$.google.cloud.ces.v1beta.FileContextB\x03\xe0\x41\x01\x12\x98\x01\n\"open_api_toolset_generation_config\x18\x02 \x01(\x0b\x32g.google.cloud.ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenerationConfigB\x03\xe0\x41\x01\x1a\xde\x02\n\x1eOpenApiToolsetGenerationConfig\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\xad\x01\n\x1coperation_generation_configs\x18\x02 \x03(\x0b\x32\x81\x01.google.cloud.ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenerationConfig.OperationGenerationConfigB\x03\xe0\x41\x02\x1az\n\x19OperationGenerationConfig\x12\x13\n\x06method\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0crequest_json\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rresponse_json\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a\xf5\x01\n\x13\x41ppGenerationConfig\x12\x14\n\x07\x63ontext\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12@\n\rfile_contexts\x18\x02 \x03(\x0b\x32$.google.cloud.ces.v1beta.FileContextB\x03\xe0\x41\x01\x12H\n\ndataset_id\x18\x03 \x01(\tB4\xe0\x41\x01\xfa\x41.\n,contactcenterinsights.googleapis.com/Dataset\x12!\n\x14generate_evaluations\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0cgcs_location\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\x66\n\x1a\x45valuationGenerationConfig\x12H\n\ndataset_id\x18\x01 \x01(\tB4\xe0\x41\x01\xfa\x41.\n,contactcenterinsights.googleapis.com/Dataset\x1a$\n\"EvaluationPersonasGenerationConfig\x1a\x61\n\x1dQualityReportGenerationConfig\x12@\n\x0e\x65valuation_run\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x1a\\\n\x15HillClimbingFixConfig\x12\x43\n\x0equality_report\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.QualityReportB\x03\xe0\x41\x02\x42\n\n\x08resource\"\xb4\x07\n\x1bGenerateAppResourceResponse\x12/\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.AgentH\x00\x12\x33\n\x07toolset\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1beta.ToolsetH\x00\x12<\n\x0c\x61pp_snapshot\x18\x04 \x01(\x0b\x32$.google.cloud.ces.v1beta.AppSnapshotH\x00\x12K\n\x05tools\x18\x05 \x01(\x0b\x32:.google.cloud.ces.v1beta.GenerateAppResourceResponse.ToolsH\x00\x12W\n\x0b\x65valuations\x18\x06 \x01(\x0b\x32@.google.cloud.ces.v1beta.GenerateAppResourceResponse.EvaluationsH\x00\x12Z\n\rapp_resources\x18\x07 \x01(\x0b\x32\x41.google.cloud.ces.v1beta.GenerateAppResourceResponse.AppResourcesH\x00\x12@\n\x0equality_report\x18\x08 \x01(\x0b\x32&.google.cloud.ces.v1beta.QualityReportH\x00\x12\x65\n\x14generate_result_info\x18\x02 \x01(\x0b\x32G.google.cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo\x1aG\n\x0b\x45valuations\x12\x38\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.Evaluation\x1a\x35\n\x05Tools\x12,\n\x05tools\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ces.v1beta.Tool\x1a\x84\x01\n\x0c\x41ppResources\x12:\n\x0c\x61pp_snapshot\x18\x01 \x01(\x0b\x32$.google.cloud.ces.v1beta.AppSnapshot\x12\x38\n\x0b\x65valuations\x18\x02 \x03(\x0b\x32#.google.cloud.ces.v1beta.Evaluation\x1a)\n\x12GenerateResultInfo\x12\x13\n\x0b\x65xplanation\x18\x01 \x01(\tB\x14\n\x12generated_resource\"\x89\x03\n\rQualityReport\x12G\n\x06issues\x18\x01 \x03(\x0b\x32\x32.google.cloud.ces.v1beta.QualityReport.AgentIssuesB\x03\xe0\x41\x01\x12\x1c\n\x0f\x65valuation_runs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12I\n\x0egeneral_issues\x18\x03 \x03(\x0b\x32,.google.cloud.ces.v1beta.QualityReport.IssueB\x03\xe0\x41\x01\x1a`\n\x05Issue\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10occurrence_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11proposed_solution\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\x64\n\x0b\x41gentIssues\x12\x12\n\x05\x61gent\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x41\n\x06issues\x18\x02 \x03(\x0b\x32,.google.cloud.ces.v1beta.QualityReport.IssueB\x03\xe0\x41\x01\"\xeb\x04\n$GenerateAppResourceOperationMetadata\x12j\n\x0fgeneration_type\x18\x01 \x01(\x0e\x32L.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata.GenerationTypeB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_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\x13\n\x06target\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12/\n\x0epartial_errors\x18\x06 \x03(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\"\x91\x02\n\x0eGenerationType\x12\x1f\n\x1bGENERATION_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41GENT_RESTRUCTURE\x10\x01\x12\x10\n\x0c\x41GENT_REFINE\x10\x02\x12\x10\n\x0c\x41GENT_CREATE\x10\x03\x12\x0f\n\x0bTOOL_CREATE\x10\x04\x12\x13\n\x0fSCENARIO_CREATE\x10\x05\x12$\n SCENARIO_CREATE_FROM_TRANSCRIPTS\x10\x07\x12\x1d\n\x19\x45VALUATION_PERSONA_CREATE\x10\x06\x12\x19\n\x15QUALITY_REPORT_CREATE\x10\x08\x12\x1d\n\x19INSTRUCTION_FOLLOWING_FIX\x10\t\"\xaa\x01\n\x15ListChangelogsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1c\x63\x65s.googleapis.com/Changelog\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"i\n\x16ListChangelogsResponse\x12\x36\n\nchangelogs\x18\x01 \x03(\x0b\x32\".google.cloud.ces.v1beta.Changelog\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x13GetChangelogRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Changelog\"W\n\x1aGetSecuritySettingsRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#ces.googleapis.com/SecuritySettings\"\xa0\x01\n\x1dUpdateSecuritySettingsRequest\x12I\n\x11security_settings\x18\x01 \x01(\x0b\x32).google.cloud.ces.v1beta.SecuritySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x32\xd6M\n\x0c\x41gentService\x12\x9e\x01\n\x08ListApps\x12(.google.cloud.ces.v1beta.ListAppsRequest\x1a).google.cloud.ces.v1beta.ListAppsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1beta/{parent=projects/*/locations/*}/apps\x12\x8b\x01\n\x06GetApp\x12&.google.cloud.ces.v1beta.GetAppRequest\x1a\x1c.google.cloud.ces.v1beta.App\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1beta/{name=projects/*/locations/*/apps/*}\x12\xcc\x01\n\tCreateApp\x12).google.cloud.ces.v1beta.CreateAppRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x18\n\x03\x41pp\x12\x11OperationMetadata\xda\x41\x11parent,app,app_id\xda\x41\nparent,app\x82\xd3\xe4\x93\x02\x33\",/v1beta/{parent=projects/*/locations/*}/apps:\x03\x61pp\x12\xa5\x01\n\tUpdateApp\x12).google.cloud.ces.v1beta.UpdateAppRequest\x1a\x1c.google.cloud.ces.v1beta.App\"O\xda\x41\x0f\x61pp,update_mask\x82\xd3\xe4\x93\x02\x37\x32\x30/v1beta/{app.name=projects/*/locations/*/apps/*}:\x03\x61pp\x12\xbf\x01\n\tDeleteApp\x12).google.cloud.ces.v1beta.DeleteAppRequest\x1a\x1d.google.longrunning.Operation\"h\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1beta/{name=projects/*/locations/*/apps/*}\x12\xc8\x01\n\tExportApp\x12).google.cloud.ces.v1beta.ExportAppRequest\x1a\x1d.google.longrunning.Operation\"q\xca\x41&\n\x11\x45xportAppResponse\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;\"6/v1beta/{name=projects/*/locations/*/apps/*}:exportApp:\x01*\x12\xdf\x01\n\tImportApp\x12).google.cloud.ces.v1beta.ImportAppRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41&\n\x11ImportAppResponse\x12\x11OperationMetadata\xda\x41\x1aparent,display_name,app_id\x82\xd3\xe4\x93\x02;\"6/v1beta/{parent=projects/*/locations/*}/apps:importApp:\x01*\x12\xbc\x01\n\x13GetSecuritySettings\x12\x33.google.cloud.ces.v1beta.GetSecuritySettingsRequest\x1a).google.cloud.ces.v1beta.SecuritySettings\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1beta/{name=projects/*/locations/*/securitySettings}\x12\x81\x02\n\x16UpdateSecuritySettings\x12\x36.google.cloud.ces.v1beta.UpdateSecuritySettingsRequest\x1a).google.cloud.ces.v1beta.SecuritySettings\"\x83\x01\xda\x41\x1dsecurity_settings,update_mask\x82\xd3\xe4\x93\x02]2H/v1beta/{security_settings.name=projects/*/locations/*/securitySettings}:\x11security_settings\x12\xad\x01\n\nListAgents\x12*.google.cloud.ces.v1beta.ListAgentsRequest\x1a+.google.cloud.ces.v1beta.ListAgentsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{parent=projects/*/locations/*/apps/*}/agents\x12\x9a\x01\n\x08GetAgent\x12(.google.cloud.ces.v1beta.GetAgentRequest\x1a\x1e.google.cloud.ces.v1beta.Agent\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{name=projects/*/locations/*/apps/*/agents/*}\x12\xc7\x01\n\x0b\x43reateAgent\x12+.google.cloud.ces.v1beta.CreateAgentRequest\x1a\x1e.google.cloud.ces.v1beta.Agent\"k\xda\x41\x15parent,agent,agent_id\xda\x41\x0cparent,agent\x82\xd3\xe4\x93\x02>\"5/v1beta/{parent=projects/*/locations/*/apps/*}/agents:\x05\x61gent\x12\xba\x01\n\x0bUpdateAgent\x12+.google.cloud.ces.v1beta.UpdateAgentRequest\x1a\x1e.google.cloud.ces.v1beta.Agent\"^\xda\x41\x11\x61gent,update_mask\x82\xd3\xe4\x93\x02\x44\x32;/v1beta/{agent.name=projects/*/locations/*/apps/*/agents/*}:\x05\x61gent\x12\x98\x01\n\x0b\x44\x65leteAgent\x12+.google.cloud.ces.v1beta.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1beta/{name=projects/*/locations/*/apps/*/agents/*}\x12\xb5\x01\n\x0cListExamples\x12,.google.cloud.ces.v1beta.ListExamplesRequest\x1a-.google.cloud.ces.v1beta.ListExamplesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta/{parent=projects/*/locations/*/apps/*}/examples\x12\xa2\x01\n\nGetExample\x12*.google.cloud.ces.v1beta.GetExampleRequest\x1a .google.cloud.ces.v1beta.Example\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1beta/{name=projects/*/locations/*/apps/*/examples/*}\x12\xd7\x01\n\rCreateExample\x12-.google.cloud.ces.v1beta.CreateExampleRequest\x1a .google.cloud.ces.v1beta.Example\"u\xda\x41\x19parent,example,example_id\xda\x41\x0eparent,example\x82\xd3\xe4\x93\x02\x42\"7/v1beta/{parent=projects/*/locations/*/apps/*}/examples:\x07\x65xample\x12\xc8\x01\n\rUpdateExample\x12-.google.cloud.ces.v1beta.UpdateExampleRequest\x1a .google.cloud.ces.v1beta.Example\"f\xda\x41\x13\x65xample,update_mask\x82\xd3\xe4\x93\x02J2?/v1beta/{example.name=projects/*/locations/*/apps/*/examples/*}:\x07\x65xample\x12\x9e\x01\n\rDeleteExample\x12-.google.cloud.ces.v1beta.DeleteExampleRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1beta/{name=projects/*/locations/*/apps/*/examples/*}\x12\xa9\x01\n\tListTools\x12).google.cloud.ces.v1beta.ListToolsRequest\x1a*.google.cloud.ces.v1beta.ListToolsResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta/{parent=projects/*/locations/*/apps/*}/tools\x12\x96\x01\n\x07GetTool\x12\'.google.cloud.ces.v1beta.GetToolRequest\x1a\x1d.google.cloud.ces.v1beta.Tool\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta/{name=projects/*/locations/*/apps/*/tools/*}\x12\xc9\x01\n\x11ListConversations\x12\x31.google.cloud.ces.v1beta.ListConversationsRequest\x1a\x32.google.cloud.ces.v1beta.ListConversationsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12\x12*\n\x05value\x18\x02 \x01(\x0b\x32/.google.cloud.ces.v1beta.SynthesizeSpeechConfig:\x02\x38\x01\"\xd9\x02\n\x12\x41mbientSoundConfig\x12i\n\x16prebuilt_ambient_noise\x18\x01 \x01(\x0e\x32@.google.cloud.ces.v1beta.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\"\xf3\x04\n\x0fLoggingSettings\x12G\n\x10redaction_config\x18\x01 \x01(\x0b\x32(.google.cloud.ces.v1beta.RedactionConfigB\x03\xe0\x41\x01\x12R\n\x16\x61udio_recording_config\x18\x02 \x01(\x0b\x32-.google.cloud.ces.v1beta.AudioRecordingConfigB\x03\xe0\x41\x01\x12V\n\x18\x62igquery_export_settings\x18\x03 \x01(\x0b\x32/.google.cloud.ces.v1beta.BigQueryExportSettingsB\x03\xe0\x41\x01\x12R\n\x16\x63loud_logging_settings\x18\x04 \x01(\x0b\x32-.google.cloud.ces.v1beta.CloudLoggingSettingsB\x03\xe0\x41\x01\x12`\n\x1d\x63onversation_logging_settings\x18\x05 \x01(\x0b\x32\x34.google.cloud.ces.v1beta.ConversationLoggingSettingsB\x03\xe0\x41\x01\x12]\n!evaluation_audio_recording_config\x18\x06 \x01(\x0b\x32-.google.cloud.ces.v1beta.AudioRecordingConfigB\x03\xe0\x41\x01\x12V\n\x18metric_analysis_settings\x18\x07 \x01(\x0b\x32/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\x03\xe0\x41\x01\"\x9d\x06\n\x15\x45rrorHandlingSettings\x12j\n\x17\x65rror_handling_strategy\x18\x01 \x01(\x0e\x32\x44.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\x03\xe0\x41\x01\x12l\n\x18\x66\x61llback_response_config\x18\x02 \x01(\x0b\x32\x45.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigB\x03\xe0\x41\x01\x12`\n\x12\x65nd_session_config\x18\x03 \x01(\x0b\x32?.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigB\x03\xe0\x41\x01\x1a\x86\x02\n\x16\x46\x61llbackResponseConfig\x12\x88\x01\n\x18\x63ustom_fallback_messages\x18\x01 \x03(\x0b\x32\x61.google.cloud.ces.v1beta.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\"\xa8\x10\n\x1b\x45valuationMetricsThresholds\x12\x89\x01\n$golden_evaluation_metrics_thresholds\x18\x01 \x01(\x0b\x32V.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12~\n\x1dhallucination_metric_behavior\x18\x03 \x01(\x0e\x32P.google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x05\x18\x01\xe0\x41\x01\x12\x83\x01\n$golden_hallucination_metric_behavior\x18\x05 \x01(\x0e\x32P.google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x12\x85\x01\n&scenario_hallucination_metric_behavior\x18\x04 \x01(\x0e\x32P.google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x1a\x8b\t\n!GoldenEvaluationMetricsThresholds\x12\x9d\x01\n\x1dturn_level_metrics_thresholds\x18\x01 \x01(\x0b\x32q.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\x03\xe0\x41\x01\x12\xab\x01\n$expectation_level_metrics_thresholds\x18\x02 \x01(\x0b\x32x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\x03\xe0\x41\x01\x12n\n\x16tool_matching_settings\x18\x03 \x01(\x0b\x32I.google.cloud.ces.v1beta.EvaluationMetricsThresholds.ToolMatchingSettingsB\x03\xe0\x41\x01\x1a\x8a\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\xb6\x01\n\x1bsemantic_similarity_channel\x18\x03 \x01(\x0e\x32\x8b\x01.google.cloud.ces.v1beta.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\xf7\x01\n\x14ToolMatchingSettings\x12\x86\x01\n\x18\x65xtra_tool_call_behavior\x18\x01 \x01(\x0e\x32_.google.cloud.ces.v1beta.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\"\x94\x04\n\x12\x45valuationSettings\x12w\n\x1fscenario_conversation_initiator\x18\x01 \x01(\x0e\x32I.google.cloud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiatorB\x03\xe0\x41\x01\x12H\n\x11golden_run_method\x18\x04 \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x01\x12h\n%golden_evaluation_tool_call_behaviour\x18\x02 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\x03\xe0\x41\x01\x12j\n\'scenario_evaluation_tool_call_behaviour\x18\x03 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\x03\xe0\x41\x01\"e\n\x1dScenarioConversationInitiator\x12/\n+SCENARIO_CONVERSATION_INITIATOR_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\t\n\x05\x41GENT\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\"\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\"\xbb\x02\n\x11\x44\x61taStoreSettings\x12G\n\x07\x65ngines\x18\x03 \x03(\x0b\x32\x31.google.cloud.ces.v1beta.DataStoreSettings.EngineB\x03\xe0\x41\x03\x1a\xdc\x01\n\x06\x45ngine\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\x12I\n\x04type\x18\x02 \x01(\x0e\x32\x36.google.cloud.ces.v1beta.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\"\xf0\x03\n\x11\x45valuationPersona\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\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0bpersonality\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12S\n\rspeech_config\x18\x05 \x01(\x0b\x32\x37.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfigB\x03\xe0\x41\x01\x1a\xa3\x02\n\x0cSpeechConfig\x12\x1a\n\rspeaking_rate\x18\x01 \x01(\x01\x42\x03\xe0\x41\x01\x12g\n\x0b\x65nvironment\x18\x02 \x01(\x0e\x32M.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\x03\xe0\x41\x01\x12\x15\n\x08voice_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"w\n\x15\x42\x61\x63kgroundEnvironment\x12&\n\"BACKGROUND_ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x43\x41LL_CENTER\x10\x03\x12\x0b\n\x07TRAFFIC\x10\x04\x12\x0e\n\nKIDS_NOISE\x10\x05\x12\x08\n\x04\x43\x41\x46\x45\x10\x06\x42\xfc\x04\n\x1b\x63om.google.cloud.ces.v1betaB\x08\x41ppProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/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!google/cloud/ces/v1beta/app.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/ces/v1beta/bigquery_export.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x37google/cloud/ces/v1beta/evaluation_metrics_config.proto\x1a#google/cloud/ces/v1beta/fakes.proto\x1a(google/cloud/ces/v1beta/golden_run.proto\x1a$google/cloud/ces/v1beta/schema.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x82\x11\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\x12I\n\x11language_settings\x18\x12 \x01(\x0b\x32).google.cloud.ces.v1beta.LanguageSettingsB\x03\xe0\x41\x01\x12J\n\x12time_zone_settings\x18\x1b \x01(\x0b\x32).google.cloud.ces.v1beta.TimeZoneSettingsB\x03\xe0\x41\x01\x12T\n\x17\x61udio_processing_config\x18\x07 \x01(\x0b\x32..google.cloud.ces.v1beta.AudioProcessingConfigB\x03\xe0\x41\x01\x12G\n\x10logging_settings\x18\x08 \x01(\x0b\x32(.google.cloud.ces.v1beta.LoggingSettingsB\x03\xe0\x41\x01\x12T\n\x17\x65rror_handling_settings\x18\" \x01(\x0b\x32..google.cloud.ces.v1beta.ErrorHandlingSettingsB\x03\xe0\x41\x01\x12\x43\n\x0emodel_settings\x18\r \x01(\x0b\x32&.google.cloud.ces.v1beta.ModelSettingsB\x03\xe0\x41\x01\x12P\n\x13tool_execution_mode\x18 \x01(\x0e\x32..google.cloud.ces.v1beta.App.ToolExecutionModeB\x03\xe0\x41\x01\x12`\n\x1d\x65valuation_metrics_thresholds\x18\x18 \x01(\x0b\x32\x34.google.cloud.ces.v1beta.EvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12T\n\x15variable_declarations\x18\x0e \x03(\x0b\x32\x30.google.cloud.ces.v1beta.App.VariableDeclarationB\x03\xe0\x41\x01\x12_\n predefined_variable_declarations\x18\x1c \x03(\x0b\x32\x30.google.cloud.ces.v1beta.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\x12L\n\x13\x64\x61ta_store_settings\x18\x0f \x01(\x0b\x32*.google.cloud.ces.v1beta.DataStoreSettingsB\x03\xe0\x41\x01\x12M\n\x17\x64\x65\x66\x61ult_channel_profile\x18\x16 \x01(\x0b\x32\'.google.cloud.ces.v1beta.ChannelProfileB\x03\xe0\x41\x01\x12\x41\n\x08metadata\x18\x0b \x03(\x0b\x32*.google.cloud.ces.v1beta.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\x12\\\n\x1b\x63lient_certificate_settings\x18\x19 \x01(\x0b\x32\x32.google.cloud.ces.v1beta.ClientCertificateSettingsB\x03\xe0\x41\x01\x12\x44\n\x0fvpc_sc_settings\x18\x1a \x01(\x0b\x32&.google.cloud.ces.v1beta.VpcScSettingsB\x03\xe0\x41\x01\x12\x13\n\x06locked\x18\x1d \x01(\x08\x42\x03\xe0\x41\x01\x12L\n\x13\x65valuation_personas\x18\x1e \x03(\x0b\x32*.google.cloud.ces.v1beta.EvaluationPersonaB\x03\xe0\x41\x01\x12M\n\x13\x65valuation_settings\x18! \x01(\x0b\x32+.google.cloud.ces.v1beta.EvaluationSettingsB\x03\xe0\x41\x01\x12\x1e\n\x11validation_errors\x18\' \x03(\tB\x03\xe0\x41\x03\x1ax\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\x34\n\x06schema\x18\x03 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.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\"\xcf\x03\n\x15\x41udioProcessingConfig\x12s\n\x19synthesize_speech_configs\x18\x01 \x03(\x0b\x32K.google.cloud.ces.v1beta.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\x03\xe0\x41\x01\x12\x44\n\x0f\x62\x61rge_in_config\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1beta.BargeInConfigB\x03\xe0\x41\x01\x12:\n\x12inactivity_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12N\n\x14\x61mbient_sound_config\x18\x05 \x01(\x0b\x32+.google.cloud.ces.v1beta.AmbientSoundConfigB\x03\xe0\x41\x01\x1ao\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.google.cloud.ces.v1beta.SynthesizeSpeechConfig:\x02\x38\x01\"\xd9\x02\n\x12\x41mbientSoundConfig\x12i\n\x16prebuilt_ambient_noise\x18\x01 \x01(\x0e\x32@.google.cloud.ces.v1beta.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\"\xd2\x05\n\x0fLoggingSettings\x12G\n\x10redaction_config\x18\x01 \x01(\x0b\x32(.google.cloud.ces.v1beta.RedactionConfigB\x03\xe0\x41\x01\x12R\n\x16\x61udio_recording_config\x18\x02 \x01(\x0b\x32-.google.cloud.ces.v1beta.AudioRecordingConfigB\x03\xe0\x41\x01\x12]\n!unredacted_audio_recording_config\x18\x08 \x01(\x0b\x32-.google.cloud.ces.v1beta.AudioRecordingConfigB\x03\xe0\x41\x01\x12V\n\x18\x62igquery_export_settings\x18\x03 \x01(\x0b\x32/.google.cloud.ces.v1beta.BigQueryExportSettingsB\x03\xe0\x41\x01\x12R\n\x16\x63loud_logging_settings\x18\x04 \x01(\x0b\x32-.google.cloud.ces.v1beta.CloudLoggingSettingsB\x03\xe0\x41\x01\x12`\n\x1d\x63onversation_logging_settings\x18\x05 \x01(\x0b\x32\x34.google.cloud.ces.v1beta.ConversationLoggingSettingsB\x03\xe0\x41\x01\x12]\n!evaluation_audio_recording_config\x18\x06 \x01(\x0b\x32-.google.cloud.ces.v1beta.AudioRecordingConfigB\x03\xe0\x41\x01\x12V\n\x18metric_analysis_settings\x18\x07 \x01(\x0b\x32/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\x03\xe0\x41\x01\"\x9d\x06\n\x15\x45rrorHandlingSettings\x12j\n\x17\x65rror_handling_strategy\x18\x01 \x01(\x0e\x32\x44.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\x03\xe0\x41\x01\x12l\n\x18\x66\x61llback_response_config\x18\x02 \x01(\x0b\x32\x45.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigB\x03\xe0\x41\x01\x12`\n\x12\x65nd_session_config\x18\x03 \x01(\x0b\x32?.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigB\x03\xe0\x41\x01\x1a\x86\x02\n\x16\x46\x61llbackResponseConfig\x12\x88\x01\n\x18\x63ustom_fallback_messages\x18\x01 \x03(\x0b\x32\x61.google.cloud.ces.v1beta.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\"\xa8\x10\n\x1b\x45valuationMetricsThresholds\x12\x89\x01\n$golden_evaluation_metrics_thresholds\x18\x01 \x01(\x0b\x32V.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12~\n\x1dhallucination_metric_behavior\x18\x03 \x01(\x0e\x32P.google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x05\x18\x01\xe0\x41\x01\x12\x83\x01\n$golden_hallucination_metric_behavior\x18\x05 \x01(\x0e\x32P.google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x12\x85\x01\n&scenario_hallucination_metric_behavior\x18\x04 \x01(\x0e\x32P.google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x1a\x8b\t\n!GoldenEvaluationMetricsThresholds\x12\x9d\x01\n\x1dturn_level_metrics_thresholds\x18\x01 \x01(\x0b\x32q.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\x03\xe0\x41\x01\x12\xab\x01\n$expectation_level_metrics_thresholds\x18\x02 \x01(\x0b\x32x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\x03\xe0\x41\x01\x12n\n\x16tool_matching_settings\x18\x03 \x01(\x0b\x32I.google.cloud.ces.v1beta.EvaluationMetricsThresholds.ToolMatchingSettingsB\x03\xe0\x41\x01\x1a\x8a\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\xb6\x01\n\x1bsemantic_similarity_channel\x18\x03 \x01(\x0e\x32\x8b\x01.google.cloud.ces.v1beta.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\xf7\x01\n\x14ToolMatchingSettings\x12\x86\x01\n\x18\x65xtra_tool_call_behavior\x18\x01 \x01(\x0e\x32_.google.cloud.ces.v1beta.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\"\xba\x06\n\x12\x45valuationSettings\x12w\n\x1fscenario_conversation_initiator\x18\x01 \x01(\x0e\x32I.google.cloud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiatorB\x03\xe0\x41\x01\x12H\n\x11golden_run_method\x18\x04 \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x01\x12h\n%golden_evaluation_tool_call_behaviour\x18\x02 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\x03\xe0\x41\x01\x12j\n\'scenario_evaluation_tool_call_behaviour\x18\x03 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\x03\xe0\x41\x01\x12M\n\x0emetrics_config\x18\x05 \x01(\x0b\x32\x30.google.cloud.ces.v1beta.EvaluationMetricsConfigB\x03\xe0\x41\x01\x12g\n\x17scenario_execution_mode\x18\x06 \x01(\x0e\x32\x41.google.cloud.ces.v1beta.EvaluationSettings.ScenarioExecutionModeB\x03\xe0\x41\x01\"e\n\x1dScenarioConversationInitiator\x12/\n+SCENARIO_CONVERSATION_INITIATOR_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\t\n\x05\x41GENT\x10\x02\"l\n\x15ScenarioExecutionMode\x12\'\n#SCENARIO_EXECUTION_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11QUALITY_OPTIMIZED\x10\x01\x12\x13\n\x0fSPEED_OPTIMIZED\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\"\xbb\x02\n\x11\x44\x61taStoreSettings\x12G\n\x07\x65ngines\x18\x03 \x03(\x0b\x32\x31.google.cloud.ces.v1beta.DataStoreSettings.EngineB\x03\xe0\x41\x03\x1a\xdc\x01\n\x06\x45ngine\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\x12I\n\x04type\x18\x02 \x01(\x0e\x32\x36.google.cloud.ces.v1beta.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\"\xf0\x03\n\x11\x45valuationPersona\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\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0bpersonality\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12S\n\rspeech_config\x18\x05 \x01(\x0b\x32\x37.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfigB\x03\xe0\x41\x01\x1a\xa3\x02\n\x0cSpeechConfig\x12\x1a\n\rspeaking_rate\x18\x01 \x01(\x01\x42\x03\xe0\x41\x01\x12g\n\x0b\x65nvironment\x18\x02 \x01(\x0e\x32M.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\x03\xe0\x41\x01\x12\x15\n\x08voice_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"w\n\x15\x42\x61\x63kgroundEnvironment\x12&\n\"BACKGROUND_ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x43\x41LL_CENTER\x10\x03\x12\x0b\n\x07TRAFFIC\x10\x04\x12\x0e\n\nKIDS_NOISE\x10\x05\x12\x08\n\x04\x43\x41\x46\x45\x10\x06\x42\xfc\x04\n\x1b\x63om.google.cloud.ces.v1betaB\x08\x41ppProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/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) @@ -50,7 +51,9 @@ module V1beta EvaluationMetricsThresholds::HallucinationMetricBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehavior").enummodule EvaluationSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationSettings").msgclass EvaluationSettings::ScenarioConversationInitiator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiator").enummodule + EvaluationSettings::ScenarioExecutionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationSettings.ScenarioExecutionMode").enummodule ClientCertificateSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.ClientCertificateSettings").msgclass + VpcScSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.VpcScSettings").msgclass ConversationLoggingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.ConversationLoggingSettings").msgclass CloudLoggingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.CloudLoggingSettings").msgclass AudioRecordingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.AudioRecordingConfig").msgclass diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/conversation_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/conversation_pb.rb index 9555a7352887..9baba3305e94 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/conversation_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/conversation_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n*google/cloud/ces/v1beta/conversation.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a%google/cloud/ces/v1beta/example.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\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.v1beta.Conversation.TurnB\x03\xe0\x41\x02\x12\x17\n\nturn_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x03\x12K\n\x0c\x63hannel_type\x18\x08 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.Conversation.ChannelTypeB\x02\x18\x01\x12\x41\n\x06source\x18\t \x01(\x0e\x32,.google.cloud.ces.v1beta.Conversation.SourceB\x03\xe0\x41\x03\x12I\n\x0binput_types\x18\n \x03(\x0e\x32/.google.cloud.ces.v1beta.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\x36\n\x08messages\x18\x02 \x03(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x02\x18\x01\x1av\n\x04Turn\x12\x37\n\x08messages\x18\x01 \x03(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01\x12\x35\n\troot_span\x18\x02 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.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\"\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\x63onversationBa\n\x1b\x63om.google.cloud.ces.v1betaB\x11\x43onversationProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" +descriptor_data = "\n*google/cloud/ces/v1beta/conversation.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a%google/cloud/ces/v1beta/example.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc2\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.v1beta.Conversation.TurnB\x03\xe0\x41\x02\x12\x17\n\nturn_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x03\x12K\n\x0c\x63hannel_type\x18\x08 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.Conversation.ChannelTypeB\x02\x18\x01\x12\x41\n\x06source\x18\t \x01(\x0e\x32,.google.cloud.ces.v1beta.Conversation.SourceB\x03\xe0\x41\x03\x12I\n\x0binput_types\x18\n \x03(\x0e\x32/.google.cloud.ces.v1beta.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\x36\n\x08messages\x18\x02 \x03(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x02\x18\x01\x1av\n\x04Turn\x12\x37\n\x08messages\x18\x01 \x03(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01\x12\x35\n\troot_span\x18\x02 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.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\x63onversationBa\n\x1b\x63om.google.cloud.ces.v1betaB\x11\x43onversationProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/deployment_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/deployment_pb.rb index db361b72fdf5..f9361d4e170c 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/deployment_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/deployment_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n(google/cloud/ces/v1beta/deployment.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\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\x45\n\x0f\x63hannel_profile\x18\x03 \x01(\x0b\x32\'.google.cloud.ces.v1beta.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\ndeploymentBc\n\x1b\x63om.google.cloud.ces.v1betaB\x13\x43hannelProfileProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" +descriptor_data = "\n(google/cloud/ces/v1beta/deployment.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x85\x04\n\x10\x45xperimentConfig\x12V\n\x0fversion_release\x18\x01 \x01(\x0b\x32\x38.google.cloud.ces.v1beta.ExperimentConfig.VersionReleaseB\x03\xe0\x41\x01\x1a\xc7\x02\n\x0eVersionRelease\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.ces.v1beta.ExperimentConfig.StateB\x03\xe0\x41\x01\x12l\n\x13traffic_allocations\x18\x02 \x03(\x0b\x32J.google.cloud.ces.v1beta.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\"\x93\x04\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\x45\n\x0f\x63hannel_profile\x18\x03 \x01(\x0b\x32\'.google.cloud.ces.v1beta.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\x12I\n\x11\x65xperiment_config\x18\t \x01(\x0b\x32).google.cloud.ces.v1beta.ExperimentConfigB\x03\xe0\x41\x01:\x89\x01\xea\x41\x85\x01\n\x1d\x63\x65s.googleapis.com/Deployment\x12Kprojects/{project}/locations/{location}/apps/{app}/deployments/{deployment}*\x0b\x64\x65ployments2\ndeploymentBc\n\x1b\x63om.google.cloud.ces.v1betaB\x13\x43hannelProfileProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -19,6 +19,10 @@ module Google module Cloud module Ces module V1beta + ExperimentConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.ExperimentConfig").msgclass + ExperimentConfig::VersionRelease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.ExperimentConfig.VersionRelease").msgclass + ExperimentConfig::VersionRelease::TrafficAllocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation").msgclass + ExperimentConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.ExperimentConfig.State").enummodule Deployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.Deployment").msgclass end end diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb new file mode 100644 index 000000000000..84993a2aeb31 --- /dev/null +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/ces/v1beta/evaluation_metrics_config.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n7google/cloud/ces/v1beta/evaluation_metrics_config.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\x80\x0b\n\x17\x45valuationMetricsConfig\x12h\n\x15golden_metrics_config\x18\x01 \x01(\x0b\x32\x44.google.cloud.ces.v1beta.EvaluationMetricsConfig.GoldenMetricsConfigB\x03\xe0\x41\x01\x12l\n\x17scenario_metrics_config\x18\x02 \x01(\x0b\x32\x46.google.cloud.ces.v1beta.EvaluationMetricsConfig.ScenarioMetricsConfigB\x03\xe0\x41\x01\x1aR\n\x1fSemanticSimilarityMetricsConfig\x12/\n\"enable_semantic_similarity_metrics\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x1aL\n\x1cToolCorrectnessMetricsConfig\x12,\n\x1f\x65nable_tool_correctness_metrics\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x1aG\n\x1aHallucinationMetricsConfig\x12)\n\x1c\x65nable_hallucination_metrics\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x45\n\x18UserGoalMetMetricsConfig\x12)\n\x1c\x65nable_user_goal_met_metrics\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x1aL\n\x1c\x45xpectationsMetMetricsConfig\x12,\n\x1f\x65nable_expectations_met_metrics\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x99\x03\n\x13GoldenMetricsConfig\x12\x81\x01\n\"semantic_similarity_metrics_config\x18\x01 \x01(\x0b\x32P.google.cloud.ces.v1beta.EvaluationMetricsConfig.SemanticSimilarityMetricsConfigB\x03\xe0\x41\x01\x12{\n\x1ftool_correctness_metrics_config\x18\x02 \x01(\x0b\x32M.google.cloud.ces.v1beta.EvaluationMetricsConfig.ToolCorrectnessMetricsConfigB\x03\xe0\x41\x01\x12\x80\x01\n$step_tool_correctness_metrics_config\x18\x06 \x01(\x0b\x32M.google.cloud.ces.v1beta.EvaluationMetricsConfig.ToolCorrectnessMetricsConfigB\x03\xe0\x41\x01\x1a\x8a\x02\n\x15ScenarioMetricsConfig\x12t\n\x1cuser_goal_met_metrics_config\x18\x02 \x01(\x0b\x32I.google.cloud.ces.v1beta.EvaluationMetricsConfig.UserGoalMetMetricsConfigB\x03\xe0\x41\x01\x12{\n\x1f\x65xpectations_met_metrics_config\x18\x03 \x01(\x0b\x32M.google.cloud.ces.v1beta.EvaluationMetricsConfig.ExpectationsMetMetricsConfigB\x03\xe0\x41\x01\"d\n\x0e\x43omparisonType\x12\x1f\n\x1b\x43OMPARISON_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x45QUALS\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\x12\x17\n\x13SEMANTIC_SIMILARITY\x10\x03\x42l\n\x1b\x63om.google.cloud.ces.v1betaB\x1c\x45valuationMetricsConfigProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Ces + module V1beta + EvaluationMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig").msgclass + EvaluationMetricsConfig::SemanticSimilarityMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.SemanticSimilarityMetricsConfig").msgclass + EvaluationMetricsConfig::ToolCorrectnessMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.ToolCorrectnessMetricsConfig").msgclass + EvaluationMetricsConfig::HallucinationMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.HallucinationMetricsConfig").msgclass + EvaluationMetricsConfig::UserGoalMetMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.UserGoalMetMetricsConfig").msgclass + EvaluationMetricsConfig::ExpectationsMetMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.ExpectationsMetMetricsConfig").msgclass + EvaluationMetricsConfig::GoldenMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.GoldenMetricsConfig").msgclass + EvaluationMetricsConfig::ScenarioMetricsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.ScenarioMetricsConfig").msgclass + EvaluationMetricsConfig::ComparisonType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.EvaluationMetricsConfig.ComparisonType").enummodule + end + end + end +end diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_pb.rb index b403f1b51691..f8ffef53ac55 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_pb.rb @@ -8,6 +8,7 @@ require 'google/api/resource_pb' require 'google/cloud/ces/v1beta/app_pb' require 'google/cloud/ces/v1beta/common_pb' +require 'google/cloud/ces/v1beta/evaluation_metrics_config_pb' require 'google/cloud/ces/v1beta/example_pb' require 'google/cloud/ces/v1beta/fakes_pb' require 'google/cloud/ces/v1beta/golden_run_pb' @@ -19,7 +20,7 @@ require 'google/rpc/status_pb' -descriptor_data = "\n(google/cloud/ces/v1beta/evaluation.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/cloud/ces/v1beta/app.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a%google/cloud/ces/v1beta/example.proto\x1a#google/cloud/ces/v1beta/fakes.proto\x1a(google/cloud/ces/v1beta/golden_run.proto\x1a-google/cloud/ces/v1beta/session_service.proto\x1a*google/cloud/ces/v1beta/toolset_tool.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xeb\r\n\x11\x41ggregatedMetrics\x12\x63\n\x16metrics_by_app_version\x18\x03 \x03(\x0b\x32>.google.cloud.ces.v1beta.AggregatedMetrics.MetricsByAppVersionB\x03\xe0\x41\x03\x1an\n\x0bToolMetrics\x12-\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x17\n\npass_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nfail_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x1aM\n\x12TurnLatencyMetrics\x12\x37\n\x0f\x61verage_latency\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x1a\x80\x01\n\x16ToolCallLatencyMetrics\x12-\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x37\n\x0f\x61verage_latency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x1a/\n\x19SemanticSimilarityMetrics\x12\x12\n\x05score\x18\x01 \x01(\x02\x42\x03\xe0\x41\x03\x1a*\n\x14HallucinationMetrics\x12\x12\n\x05score\x18\x01 \x01(\x02\x42\x03\xe0\x41\x03\x1a\xb1\x05\n\x13MetricsByAppVersion\x12\x1b\n\x0e\x61pp_version_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12Q\n\x0ctool_metrics\x18\x02 \x03(\x0b\x32\x36.google.cloud.ces.v1beta.AggregatedMetrics.ToolMetricsB\x03\xe0\x41\x03\x12n\n\x1bsemantic_similarity_metrics\x18\x03 \x03(\x0b\x32\x44.google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetricsB\x03\xe0\x41\x03\x12\x63\n\x15hallucination_metrics\x18\x05 \x03(\x0b\x32?.google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetricsB\x03\xe0\x41\x03\x12i\n\x19tool_call_latency_metrics\x18\x06 \x03(\x0b\x32\x41.google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetricsB\x03\xe0\x41\x03\x12`\n\x14turn_latency_metrics\x18\x07 \x03(\x0b\x32=.google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetricsB\x03\xe0\x41\x03\x12\x17\n\npass_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nfail_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12V\n\x0fmetrics_by_turn\x18\x04 \x03(\x0b\x32\x38.google.cloud.ces.v1beta.AggregatedMetrics.MetricsByTurnB\x03\xe0\x41\x03\x1a\x9d\x04\n\rMetricsByTurn\x12\x17\n\nturn_index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12Q\n\x0ctool_metrics\x18\x02 \x03(\x0b\x32\x36.google.cloud.ces.v1beta.AggregatedMetrics.ToolMetricsB\x03\xe0\x41\x03\x12n\n\x1bsemantic_similarity_metrics\x18\x03 \x03(\x0b\x32\x44.google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetricsB\x03\xe0\x41\x03\x12\x63\n\x15hallucination_metrics\x18\x04 \x03(\x0b\x32?.google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetricsB\x03\xe0\x41\x03\x12i\n\x19tool_call_latency_metrics\x18\x05 \x03(\x0b\x32\x41.google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetricsB\x03\xe0\x41\x03\x12`\n\x14turn_latency_metrics\x18\x06 \x03(\x0b\x32=.google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetricsB\x03\xe0\x41\x03\"\x85\x19\n\nEvaluation\x12\x41\n\x06golden\x18\x0b \x01(\x0b\x32*.google.cloud.ces.v1beta.Evaluation.GoldenB\x03\xe0\x41\x01H\x00\x12\x45\n\x08scenario\x18\x0c \x01(\x0b\x32,.google.cloud.ces.v1beta.Evaluation.ScenarioB\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\x11\n\x04tags\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12I\n\x13\x65valuation_datasets\x18\x05 \x03(\tB,\xe0\x41\x03\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\ncreated_by\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0flast_updated_by\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x0f\x65valuation_runs\x18\x0f \x03(\tB(\xe0\x41\x03\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12\x11\n\x04\x65tag\x18\n \x01(\tB\x03\xe0\x41\x03\x12K\n\x12\x61ggregated_metrics\x18\x10 \x01(\x0b\x32*.google.cloud.ces.v1beta.AggregatedMetricsB\x03\xe0\x41\x03\x12M\n\x15last_completed_result\x18\x11 \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationResultB\x03\xe0\x41\x03\x12\x14\n\x07invalid\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12H\n\x10last_ten_results\x18\x13 \x03(\x0b\x32).google.cloud.ces.v1beta.EvaluationResultB\x03\xe0\x41\x03\x1a\xc2\x03\n\x11GoldenExpectation\x12;\n\ttool_call\x18\x02 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x01H\x00\x12\x43\n\rtool_response\x18\x03 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x01H\x00\x12?\n\x0e\x61gent_response\x18\x04 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01H\x00\x12\x45\n\x0e\x61gent_transfer\x18\x05 \x01(\x0b\x32&.google.cloud.ces.v1beta.AgentTransferB\x03\xe0\x41\x01H\x00\x12\x39\n\x11updated_variables\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x00\x12H\n\x12mock_tool_response\x18\x07 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x01H\x00\x12\x11\n\x04note\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x0b\n\tcondition\x1a\xea\x01\n\x04Step\x12@\n\nuser_input\x18\x01 \x01(\x0b\x32%.google.cloud.ces.v1beta.SessionInputB\x03\xe0\x41\x01H\x00\x12\x45\n\x0e\x61gent_transfer\x18\x02 \x01(\x0b\x32&.google.cloud.ces.v1beta.AgentTransferB\x03\xe0\x41\x01H\x00\x12Q\n\x0b\x65xpectation\x18\x03 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.GoldenExpectationB\x03\xe0\x41\x01H\x00\x42\x06\n\x04step\x1a\x81\x01\n\nGoldenTurn\x12<\n\x05steps\x18\x01 \x03(\x0b\x32(.google.cloud.ces.v1beta.Evaluation.StepB\x03\xe0\x41\x02\x12\x35\n\troot_span\x18\x02 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.SpanB\x03\xe0\x41\x01\x1a\x9f\x01\n\x06Golden\x12\x42\n\x05turns\x18\x02 \x03(\x0b\x32..google.cloud.ces.v1beta.Evaluation.GoldenTurnB\x03\xe0\x41\x02\x12Q\n\x17\x65valuation_expectations\x18\x03 \x03(\tB0\xe0\x41\x01\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x1a\xef\x02\n\x13ScenarioExpectation\x12h\n\x10tool_expectation\x18\x01 \x01(\x0b\x32G.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectationB\x03\xe0\x41\x01H\x00\x12?\n\x0e\x61gent_response\x18\x02 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01H\x00\x1a\x9d\x01\n\x0fToolExpectation\x12\x42\n\x12\x65xpected_tool_call\x18\x01 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x02\x12\x46\n\x12mock_tool_response\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x02\x42\r\n\x0b\x65xpectation\x1a\xf1\x06\n\x08Scenario\x12\x11\n\x04task\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\nuser_facts\x18\x04 \x03(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.Scenario.UserFactB\x03\xe0\x41\x01\x12\x16\n\tmax_turns\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07rubrics\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12[\n\x15scenario_expectations\x18\x03 \x03(\x0b\x32\x37.google.cloud.ces.v1beta.Evaluation.ScenarioExpectationB\x03\xe0\x41\x02\x12\x38\n\x12variable_overrides\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12l\n\x18task_completion_behavior\x18\x07 \x01(\x0e\x32\x43.google.cloud.ces.v1beta.Evaluation.Scenario.TaskCompletionBehaviorB\x05\x18\x01\xe0\x41\x01\x12^\n\x12user_goal_behavior\x18\x08 \x01(\x0e\x32=.google.cloud.ces.v1beta.Evaluation.Scenario.UserGoalBehaviorB\x03\xe0\x41\x01\x12Q\n\x17\x65valuation_expectations\x18\n \x03(\tB0\xe0\x41\x01\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x1a\x31\n\x08UserFact\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\"i\n\x16TaskCompletionBehavior\x12(\n$TASK_COMPLETION_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x12\n\x0eTASK_SATISFIED\x10\x01\x12\x11\n\rTASK_REJECTED\x10\x02\"~\n\x10UserGoalBehavior\x12\"\n\x1eUSER_GOAL_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x17\n\x13USER_GOAL_SATISFIED\x10\x01\x12\x16\n\x12USER_GOAL_REJECTED\x10\x02\x12\x15\n\x11USER_GOAL_IGNORED\x10\x03:\x89\x01\xea\x41\x85\x01\n\x1d\x63\x65s.googleapis.com/Evaluation\x12Kprojects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}*\x0b\x65valuations2\nevaluationB\x08\n\x06inputs\"\xb0\x04\n\x11\x45valuationDataset\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:\n\x0b\x65valuations\x18\x03 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\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\x06 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ncreated_by\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0flast_updated_by\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12K\n\x12\x61ggregated_metrics\x18\t \x01(\x0b\x32*.google.cloud.ces.v1beta.AggregatedMetricsB\x03\xe0\x41\x03:\xad\x01\xea\x41\xa9\x01\n$ces.googleapis.com/EvaluationDataset\x12Zprojects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluation_dataset}*\x12\x65valuationDatasets2\x11\x65valuationDataset\"\xc0\x37\n\x10\x45valuationResult\x12T\n\rgolden_result\x18\x07 \x01(\x0b\x32\x36.google.cloud.ces.v1beta.EvaluationResult.GoldenResultB\x03\xe0\x41\x03H\x00\x12X\n\x0fscenario_result\x18\x08 \x01(\x0b\x32\x38.google.cloud.ces.v1beta.EvaluationResult.ScenarioResultB\x03\xe0\x41\x03H\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\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x11\x65valuation_status\x18\x04 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12@\n\x0e\x65valuation_run\x18\x06 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12@\n\x07persona\x18\x11 \x01(\x0b\x32*.google.cloud.ces.v1beta.EvaluationPersonaB\x03\xe0\x41\x03\x12\x45\n\nerror_info\x18\x0f \x01(\x0b\x32,.google.cloud.ces.v1beta.EvaluationErrorInfoB\x03\xe0\x41\x03\x12(\n\x05\x65rror\x18\x0e \x01(\x0b\x32\x12.google.rpc.StatusB\x05\x18\x01\xe0\x41\x03\x12\x19\n\x0cinitiated_by\x18\t \x01(\tB\x03\xe0\x41\x03\x12:\n\x0b\x61pp_version\x18\n \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12%\n\x18\x61pp_version_display_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x37\n\tchangelog\x18\x15 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Changelog\x12>\n\x15\x63hangelog_create_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x0f\x65xecution_state\x18\x0b \x01(\x0e\x32\x38.google.cloud.ces.v1beta.EvaluationResult.ExecutionStateB\x03\xe0\x41\x03\x12`\n\x1d\x65valuation_metrics_thresholds\x18\x0c \x01(\x0b\x32\x34.google.cloud.ces.v1beta.EvaluationMetricsThresholdsB\x03\xe0\x41\x03\x12>\n\x06\x63onfig\x18\x12 \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationConfigB\x03\xe0\x41\x03\x12H\n\x11golden_run_method\x18\x13 \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x03\x1a\xa4\x07\n\x18GoldenExpectationOutcome\x12\x44\n\x12observed_tool_call\x18\x02 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x03H\x00\x12L\n\x16observed_tool_response\x18\x03 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x03H\x00\x12H\n\x17observed_agent_response\x18\x04 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x03H\x00\x12N\n\x17observed_agent_transfer\x18\x05 \x01(\x0b\x32&.google.cloud.ces.v1beta.AgentTransferB\x03\xe0\x41\x03H\x00\x12O\n\x0b\x65xpectation\x18\x01 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.GoldenExpectationB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x06 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12m\n\x1asemantic_similarity_result\x18\x07 \x01(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\x05\x18\x01\xe0\x41\x03\x12|\n\x16tool_invocation_result\x18\x08 \x01(\x0b\x32W.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome.ToolInvocationResultB\x03\xe0\x41\x03\x1a\xc8\x01\n\x14ToolInvocationResult\x12-\n\x1bparameter_correctness_score\x18\x01 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12G\n\x07outcome\x18\x02 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x1e\n\x1c_parameter_correctness_scoreB\x08\n\x06result\x1a\xe7\x01\n\x1b\x45valuationExpectationResult\x12P\n\x16\x65valuation_expectation\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x12\x13\n\x06prompt\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x03 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x91\t\n\x0cGoldenResult\x12i\n\x13turn_replay_results\x18\x01 \x03(\x0b\x32G.google.cloud.ces.v1beta.EvaluationResult.GoldenResult.TurnReplayResultB\x03\xe0\x41\x03\x12r\n\x1e\x65valuation_expectation_results\x18\x02 \x03(\x0b\x32\x45.google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResultB\x03\xe0\x41\x03\x1a\xa1\x07\n\x10TurnReplayResult\x12=\n\x0c\x63onversation\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\x12\x64\n\x13\x65xpectation_outcome\x18\x02 \x03(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcomeB\x03\xe0\x41\x03\x12`\n\x14hallucination_result\x18\x03 \x01(\x0b\x32=.google.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\x03\xe0\x41\x03\x12$\n\x15tool_invocation_score\x18\x04 \x01(\x02\x42\x05\x18\x01\xe0\x41\x03\x12/\n\x1dtool_ordered_invocation_score\x18\x05 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x34\n\x0cturn_latency\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12[\n\x13tool_call_latencies\x18\x07 \x03(\x0b\x32\x39.google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\x03\xe0\x41\x03\x12k\n\x1asemantic_similarity_result\x18\x08 \x01(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\x03\xe0\x41\x03\x12r\n\x1eoverall_tool_invocation_result\x18\t \x01(\x0b\x32\x45.google.cloud.ces.v1beta.EvaluationResult.OverallToolInvocationResultB\x03\xe0\x41\x03\x12\x45\n\nerror_info\x18\n \x01(\x0b\x32,.google.cloud.ces.v1beta.EvaluationErrorInfoB\x03\xe0\x41\x03\x12R\n\x0espan_latencies\x18\x0b \x03(\x0b\x32\x35.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\x03\xe0\x41\x03\x42 \n\x1e_tool_ordered_invocation_score\x1ao\n\x15ScenarioRubricOutcome\x12\x13\n\x06rubric\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\x05score\x18\x02 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x11score_explanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1a\x99\x04\n\x1aScenarioExpectationOutcome\x12x\n\x12observed_tool_call\x18\x02 \x01(\x0b\x32U.google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome.ObservedToolCallB\x03\xe0\x41\x03H\x00\x12H\n\x17observed_agent_response\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x03H\x00\x12Q\n\x0b\x65xpectation\x18\x01 \x01(\x0b\x32\x37.google.cloud.ces.v1beta.Evaluation.ScenarioExpectationB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x04 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x1a\x90\x01\n\x10ObservedToolCall\x12\x39\n\ttool_call\x18\x01 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x03\x12\x41\n\rtool_response\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x03\x42\x08\n\x06result\x1a\xdc\x08\n\x0eScenarioResult\x12=\n\x0c\x63onversation\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\x12\x11\n\x04task\x18\n \x01(\tB\x03\xe0\x41\x03\x12N\n\nuser_facts\x18\x0b \x03(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.Scenario.UserFactB\x03\xe0\x41\x03\x12g\n\x14\x65xpectation_outcomes\x18\x02 \x03(\x0b\x32\x44.google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcomeB\x03\xe0\x41\x03\x12]\n\x0frubric_outcomes\x18\x03 \x03(\x0b\x32?.google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcomeB\x03\xe0\x41\x03\x12`\n\x14hallucination_result\x18\x04 \x03(\x0b\x32=.google.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\x03\xe0\x41\x03\x12\x65\n\x16task_completion_result\x18\x05 \x01(\x0b\x32>.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResultB\x05\x18\x01\xe0\x41\x03\x12[\n\x13tool_call_latencies\x18\x06 \x03(\x0b\x32\x39.google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\x03\xe0\x41\x03\x12p\n\x1duser_goal_satisfaction_result\x18\x07 \x01(\x0b\x32\x44.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResultB\x03\xe0\x41\x03\x12,\n\x1a\x61ll_expectations_satisfied\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12 \n\x0etask_completed\x18\t \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12R\n\x0espan_latencies\x18\x0c \x03(\x0b\x32\x35.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\x03\xe0\x41\x03\x12r\n\x1e\x65valuation_expectation_results\x18\r \x03(\x0b\x32\x45.google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResultB\x03\xe0\x41\x03\x42\x1d\n\x1b_all_expectations_satisfiedB\x11\n\x0f_task_completed\x1a\x81\x04\n\x0bSpanLatency\x12\x17\n\x08resource\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12<\n\x07toolset\x18\x03 \x01(\x0b\x32$.google.cloud.ces.v1beta.ToolsetToolB\x03\xe0\x41\x03H\x00\x12\x14\n\x05model\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x12\x17\n\x08\x63\x61llback\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.TypeB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x11\x65xecution_latency\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\"Q\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04TOOL\x10\x01\x12\x11\n\rUSER_CALLBACK\x10\x02\x12\r\n\tGUARDRAIL\x10\x03\x12\x07\n\x03LLM\x10\x04\x42\x0c\n\nidentifier\x1a\xfe\x01\n\x0fToolCallLatency\x12-\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\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\x39\n\x11\x65xecution_latency\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x1a\x66\n\x13HallucinationResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1am\n\x1aUserGoalSatisfactionResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1a\xb4\x01\n\x18SemanticSimilarityResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x04 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1a\xa4\x01\n\x1bOverallToolInvocationResult\x12\"\n\x15tool_invocation_score\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12G\n\x07outcome\x18\x02 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x42\x18\n\x16_tool_invocation_score\x1ag\n\x14TaskCompletionResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\"C\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x08\n\x04PASS\x10\x01\x12\x08\n\x04\x46\x41IL\x10\x02\x12\x0b\n\x07SKIPPED\x10\x03\"X\n\x0e\x45xecutionState\x12\x1f\n\x1b\x45XECUTION_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\t\n\x05\x45RROR\x10\x03:\xb7\x01\xea\x41\xb3\x01\n#ces.googleapis.com/EvaluationResult\x12gprojects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result}*\x11\x65valuationResults2\x10\x65valuationResultB\x08\n\x06result\"\xa9\x11\n\rEvaluationRun\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\x12G\n\x12\x65valuation_results\x18\x03 \x03(\tB+\xe0\x41\x03\xfa\x41%\n#ces.googleapis.com/EvaluationResult\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0cinitiated_by\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12:\n\x0b\x61pp_version\x18\x06 \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12%\n\x18\x61pp_version_display_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x37\n\tchangelog\x18\x16 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Changelog\x12>\n\x15\x63hangelog_create_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x0b\x65valuations\x18\x07 \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12H\n\x12\x65valuation_dataset\x18\x08 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\x12S\n\x0f\x65valuation_type\x18\t \x01(\x0e\x32\x35.google.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\x03\xe0\x41\x03\x12M\n\x05state\x18\n \x01(\x0e\x32\x39.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\x03\xe0\x41\x03\x12\x46\n\x08progress\x18\x0b \x01(\x0b\x32/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\x03\xe0\x41\x03\x12>\n\x06\x63onfig\x18\x0c \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationConfigB\x03\xe0\x41\x03\x12(\n\x05\x65rror\x18\x0e \x01(\x0b\x32\x12.google.rpc.StatusB\x05\x18\x01\xe0\x41\x03\x12\x45\n\nerror_info\x18\x11 \x01(\x0b\x32,.google.cloud.ces.v1beta.EvaluationErrorInfoB\x03\xe0\x41\x03\x12i\n\x18\x65valuation_run_summaries\x18\x0f \x03(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\x03\xe0\x41\x03\x12\x43\n\x0elatency_report\x18\x19 \x01(\x0b\x32&.google.cloud.ces.v1beta.LatencyReportB\x03\xe0\x41\x03\x12\x16\n\trun_count\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12K\n\x13persona_run_configs\x18\x12 \x03(\x0b\x32).google.cloud.ces.v1beta.PersonaRunConfigB\x03\xe0\x41\x03\x12M\n\x13optimization_config\x18\x13 \x01(\x0b\x32+.google.cloud.ces.v1beta.OptimizationConfigB\x03\xe0\x41\x01\x12S\n\x18scheduled_evaluation_run\x18\x14 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)ces.googleapis.com/ScheduledEvaluationRun\x12H\n\x11golden_run_method\x18\x15 \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x03\x1a\x92\x01\n\x08Progress\x12\x18\n\x0btotal_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x65rror_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x63ompleted_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0cpassed_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x1a\x66\n\x14\x45valuationRunSummary\x12\x19\n\x0cpassed_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x65rror_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x1az\n\x1b\x45valuationRunSummariesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12J\n\x05value\x18\x02 \x01(\x0b\x32;.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummary:\x02\x38\x01\"V\n\x0e\x45valuationType\x12\x1f\n\x1b\x45VALUATION_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06GOLDEN\x10\x01\x12\x0c\n\x08SCENARIO\x10\x02\x12\t\n\x05MIXED\x10\x03\"a\n\x12\x45valuationRunState\x12$\n EVALUATION_RUN_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\t\n\x05\x45RROR\x10\x03:\x99\x01\xea\x41\x95\x01\n ces.googleapis.com/EvaluationRun\x12Rprojects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluation_run}*\x0e\x65valuationRuns2\revaluationRun\"\xaa\n\n\rLatencyReport\x12R\n\x0etool_latencies\x18\x01 \x03(\x0b\x32\x32.google.cloud.ces.v1beta.LatencyReport.ToolLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12Z\n\x12\x63\x61llback_latencies\x18\x02 \x03(\x0b\x32\x36.google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12\\\n\x13guardrail_latencies\x18\x03 \x03(\x0b\x32\x37.google.cloud.ces.v1beta.LatencyReport.GuardrailLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12Y\n\x12llm_call_latencies\x18\x04 \x03(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12\x1a\n\rsession_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x1a\xc8\x01\n\x0eLatencyMetrics\x12\x33\n\x0bp50_latency\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x33\n\x0bp90_latency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x33\n\x0bp99_latency\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x17\n\ncall_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x1a\x89\x02\n\x0bToolLatency\x12/\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12\x41\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32$.google.cloud.ces.v1beta.ToolsetToolB\x03\xe0\x41\x03H\x00\x12\x1e\n\x11tool_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x04 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\x42\x11\n\x0ftool_identifier\x1az\n\x0f\x43\x61llbackLatency\x12\x12\n\x05stage\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x02 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\x1a\xc5\x01\n\x10GuardrailLatency\x12\x37\n\tguardrail\x18\x01 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12#\n\x16guardrail_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x03 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\x1ay\n\x0eLlmCallLatency\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x02 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\"\xa4\x04\n\x15\x45valuationExpectation\x12W\n\x0cllm_criteria\x18\x03 \x01(\x0b\x32:.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\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\x11\n\x04tags\x18\x08 \x03(\tB\x03\xe0\x41\x01\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\x06 \x01(\tB\x03\xe0\x41\x03\x1a\"\n\x0bLlmCriteria\x12\x13\n\x06prompt\x18\x01 \x01(\tB\x03\xe0\x41\x02:\xc1\x01\xea\x41\xbd\x01\n(ces.googleapis.com/EvaluationExpectation\x12\x62projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}*\x16\x65valuationExpectations2\x15\x65valuationExpectationB\n\n\x08\x63riteria\"\xb4\x03\n\x10\x45valuationConfig\x12L\n\x12input_audio_config\x18\x01 \x01(\x0b\x32).google.cloud.ces.v1beta.InputAudioConfigB\x05\x18\x01\xe0\x41\x01\x12N\n\x13output_audio_config\x18\x02 \x01(\x0b\x32*.google.cloud.ces.v1beta.OutputAudioConfigB\x05\x18\x01\xe0\x41\x01\x12\\\n\x12\x65valuation_channel\x18\x03 \x01(\x0e\x32;.google.cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\x03\xe0\x41\x01\x12V\n\x13tool_call_behaviour\x18\x04 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\x03\xe0\x41\x01\"L\n\x11\x45valuationChannel\x12\"\n\x1e\x45VALUATION_CHANNEL_UNSPECIFIED\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\"\xef\x02\n\x13\x45valuationErrorInfo\x12O\n\nerror_type\x18\x01 \x01(\x0e\x32\x36.google.cloud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\x03\xe0\x41\x03\x12\x1a\n\rerror_message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xd1\x01\n\tErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fRUNTIME_FAILURE\x10\x01\x12\"\n\x1e\x43ONVERSATION_RETRIEVAL_FAILURE\x10\x02\x12\x1e\n\x1aMETRIC_CALCULATION_FAILURE\x10\x03\x12\x1d\n\x19\x45VALUATION_UPDATE_FAILURE\x10\x04\x12\x13\n\x0fQUOTA_EXHAUSTED\x10\x05\x12\x1b\n\x17USER_SIMULATION_FAILURE\x10\x06\"\xec\x05\n\x14RunEvaluationRequest\x12+\n\x03\x61pp\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12:\n\x0b\x65valuations\x18\x02 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12H\n\x12\x65valuation_dataset\x18\x03 \x01(\tB,\xe0\x41\x01\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12:\n\x0b\x61pp_version\x18\x06 \x01(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12>\n\x06\x63onfig\x18\x08 \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationConfigB\x03\xe0\x41\x01\x12\x1b\n\trun_count\x18\t \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12K\n\x13persona_run_configs\x18\n \x03(\x0b\x32).google.cloud.ces.v1beta.PersonaRunConfigB\x03\xe0\x41\x01\x12M\n\x13optimization_config\x18\x0b \x01(\x0b\x32+.google.cloud.ces.v1beta.OptimizationConfigB\x03\xe0\x41\x01\x12S\n\x18scheduled_evaluation_run\x18\x0c \x01(\tB1\xe0\x41\x01\xfa\x41+\n)ces.googleapis.com/ScheduledEvaluationRun\x12H\n\x11golden_run_method\x18\r \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x01\x12$\n\x17generate_latency_report\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\n_run_count\"\xe9\x08\n\x16ScheduledEvaluationRun\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\x43\n\x07request\x18\x03 \x01(\x0b\x32-.google.cloud.ces.v1beta.RunEvaluationRequestB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12`\n\x11scheduling_config\x18\x05 \x01(\x0b\x32@.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfigB\x03\xe0\x41\x02\x12\x13\n\x06\x61\x63tive\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x44\n\x12last_completed_run\x18\x07 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12\x1d\n\x10total_executions\x18\x08 \x01(\x05\x42\x03\xe0\x41\x03\x12\x46\n\x1dnext_scheduled_execution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\ncreated_by\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0flast_updated_by\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0e \x01(\tB\x03\xe0\x41\x03\x1a\x9d\x02\n\x10SchedulingConfig\x12\x62\n\tfrequency\x18\x01 \x01(\x0e\x32J.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x19\n\x0c\x64\x61ys_of_week\x18\x03 \x03(\x05\x42\x03\xe0\x41\x01\"U\n\tFrequency\x12\x19\n\x15\x46REQUENCY_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\n\n\x06WEEKLY\x10\x03\x12\x0c\n\x08\x42IWEEKLY\x10\x04:\xc7\x01\xea\x41\xc3\x01\n)ces.googleapis.com/ScheduledEvaluationRun\x12\x65projects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}*\x17scheduledEvaluationRuns2\x16scheduledEvaluationRun\"A\n\x10PersonaRunConfig\x12\x14\n\x07persona\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ntask_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"\x9b\x03\n\x12OptimizationConfig\x12!\n\x14generate_loss_report\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11\x61ssistant_session\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0ereport_summary\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12should_suggest_fix\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12S\n\x06status\x18\x04 \x01(\x0e\x32>.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\x03\xe0\x41\x03\x12\x1a\n\rerror_message\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x31\n\x0bloss_report\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\"`\n\x12OptimizationStatus\x12#\n\x1fOPTIMIZATION_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x42_\n\x1b\x63om.google.cloud.ces.v1betaB\x0f\x45valuationProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" +descriptor_data = "\n(google/cloud/ces/v1beta/evaluation.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/cloud/ces/v1beta/app.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a\x37google/cloud/ces/v1beta/evaluation_metrics_config.proto\x1a%google/cloud/ces/v1beta/example.proto\x1a#google/cloud/ces/v1beta/fakes.proto\x1a(google/cloud/ces/v1beta/golden_run.proto\x1a-google/cloud/ces/v1beta/session_service.proto\x1a*google/cloud/ces/v1beta/toolset_tool.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xeb\r\n\x11\x41ggregatedMetrics\x12\x63\n\x16metrics_by_app_version\x18\x03 \x03(\x0b\x32>.google.cloud.ces.v1beta.AggregatedMetrics.MetricsByAppVersionB\x03\xe0\x41\x03\x1an\n\x0bToolMetrics\x12-\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x17\n\npass_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nfail_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x1aM\n\x12TurnLatencyMetrics\x12\x37\n\x0f\x61verage_latency\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x1a\x80\x01\n\x16ToolCallLatencyMetrics\x12-\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x37\n\x0f\x61verage_latency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x1a/\n\x19SemanticSimilarityMetrics\x12\x12\n\x05score\x18\x01 \x01(\x02\x42\x03\xe0\x41\x03\x1a*\n\x14HallucinationMetrics\x12\x12\n\x05score\x18\x01 \x01(\x02\x42\x03\xe0\x41\x03\x1a\xb1\x05\n\x13MetricsByAppVersion\x12\x1b\n\x0e\x61pp_version_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12Q\n\x0ctool_metrics\x18\x02 \x03(\x0b\x32\x36.google.cloud.ces.v1beta.AggregatedMetrics.ToolMetricsB\x03\xe0\x41\x03\x12n\n\x1bsemantic_similarity_metrics\x18\x03 \x03(\x0b\x32\x44.google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetricsB\x03\xe0\x41\x03\x12\x63\n\x15hallucination_metrics\x18\x05 \x03(\x0b\x32?.google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetricsB\x03\xe0\x41\x03\x12i\n\x19tool_call_latency_metrics\x18\x06 \x03(\x0b\x32\x41.google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetricsB\x03\xe0\x41\x03\x12`\n\x14turn_latency_metrics\x18\x07 \x03(\x0b\x32=.google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetricsB\x03\xe0\x41\x03\x12\x17\n\npass_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nfail_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12V\n\x0fmetrics_by_turn\x18\x04 \x03(\x0b\x32\x38.google.cloud.ces.v1beta.AggregatedMetrics.MetricsByTurnB\x03\xe0\x41\x03\x1a\x9d\x04\n\rMetricsByTurn\x12\x17\n\nturn_index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12Q\n\x0ctool_metrics\x18\x02 \x03(\x0b\x32\x36.google.cloud.ces.v1beta.AggregatedMetrics.ToolMetricsB\x03\xe0\x41\x03\x12n\n\x1bsemantic_similarity_metrics\x18\x03 \x03(\x0b\x32\x44.google.cloud.ces.v1beta.AggregatedMetrics.SemanticSimilarityMetricsB\x03\xe0\x41\x03\x12\x63\n\x15hallucination_metrics\x18\x04 \x03(\x0b\x32?.google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetricsB\x03\xe0\x41\x03\x12i\n\x19tool_call_latency_metrics\x18\x05 \x03(\x0b\x32\x41.google.cloud.ces.v1beta.AggregatedMetrics.ToolCallLatencyMetricsB\x03\xe0\x41\x03\x12`\n\x14turn_latency_metrics\x18\x06 \x03(\x0b\x32=.google.cloud.ces.v1beta.AggregatedMetrics.TurnLatencyMetricsB\x03\xe0\x41\x03\"\xeb\"\n\nEvaluation\x12\x41\n\x06golden\x18\x0b \x01(\x0b\x32*.google.cloud.ces.v1beta.Evaluation.GoldenB\x03\xe0\x41\x01H\x00\x12\x45\n\x08scenario\x18\x0c \x01(\x0b\x32,.google.cloud.ces.v1beta.Evaluation.ScenarioB\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\x11\n\x04tags\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12I\n\x13\x65valuation_datasets\x18\x05 \x03(\tB,\xe0\x41\x03\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\ncreated_by\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0flast_updated_by\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x0f\x65valuation_runs\x18\x0f \x03(\tB(\xe0\x41\x03\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12\x11\n\x04\x65tag\x18\n \x01(\tB\x03\xe0\x41\x03\x12K\n\x12\x61ggregated_metrics\x18\x10 \x01(\x0b\x32*.google.cloud.ces.v1beta.AggregatedMetricsB\x03\xe0\x41\x03\x12M\n\x15last_completed_result\x18\x11 \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationResultB\x03\xe0\x41\x03\x12\x14\n\x07invalid\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12H\n\x10last_ten_results\x18\x13 \x03(\x0b\x32).google.cloud.ces.v1beta.EvaluationResultB\x03\xe0\x41\x03\x12h\n%evaluation_metrics_threshold_override\x18\x14 \x01(\x0b\x32\x34.google.cloud.ces.v1beta.EvaluationMetricsThresholdsB\x03\xe0\x41\x01\x12\x61\n\"evaluation_metrics_config_override\x18\x15 \x01(\x0b\x32\x30.google.cloud.ces.v1beta.EvaluationMetricsConfigB\x03\xe0\x41\x01\x1a\xc1\x08\n\x11GoldenExpectation\x12;\n\ttool_call\x18\x02 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x01H\x00\x12\x43\n\rtool_response\x18\x03 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x01H\x00\x12?\n\x0e\x61gent_response\x18\x04 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01H\x00\x12\x45\n\x0e\x61gent_transfer\x18\x05 \x01(\x0b\x32&.google.cloud.ces.v1beta.AgentTransferB\x03\xe0\x41\x01H\x00\x12\x39\n\x11updated_variables\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x00\x12H\n\x12mock_tool_response\x18\x07 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x01H\x00\x12\x1c\n\rno_tool_calls\x18\r \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12\x11\n\x04note\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fskip_evaluation\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\xb4\x01\n-expectation_level_metrics_thresholds_override\x18\t \x01(\x0b\x32x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\x03\xe0\x41\x01\x12\x99\x01\n:agent_response_semantic_similarity_metrics_config_override\x18\n \x01(\x0b\x32P.google.cloud.ces.v1beta.EvaluationMetricsConfig.SemanticSimilarityMetricsConfigB\x03\xe0\x41\x01\x12\x8e\x01\n4agent_response_hallucination_metrics_config_override\x18\x0b \x01(\x0b\x32K.google.cloud.ces.v1beta.EvaluationMetricsConfig.HallucinationMetricsConfigB\x03\xe0\x41\x01\x12]\n\x0f\x63omparison_type\x18\x0c \x01(\x0e\x32?.google.cloud.ces.v1beta.EvaluationMetricsConfig.ComparisonTypeB\x03\xe0\x41\x01\x42\x0b\n\tcondition\x1a\xea\x01\n\x04Step\x12@\n\nuser_input\x18\x01 \x01(\x0b\x32%.google.cloud.ces.v1beta.SessionInputB\x03\xe0\x41\x01H\x00\x12\x45\n\x0e\x61gent_transfer\x18\x02 \x01(\x0b\x32&.google.cloud.ces.v1beta.AgentTransferB\x03\xe0\x41\x01H\x00\x12Q\n\x0b\x65xpectation\x18\x03 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.GoldenExpectationB\x03\xe0\x41\x01H\x00\x42\x06\n\x04step\x1a\xb2\x03\n\nGoldenTurn\x12<\n\x05steps\x18\x01 \x03(\x0b\x32(.google.cloud.ces.v1beta.Evaluation.StepB\x03\xe0\x41\x02\x12\x35\n\troot_span\x18\x02 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.SpanB\x03\xe0\x41\x01\x12\xa6\x01\n&turn_level_metrics_thresholds_override\x18\x03 \x01(\x0b\x32q.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\x03\xe0\x41\x01\x12\x85\x01\n&hallucination_metric_behavior_override\x18\x04 \x01(\x0e\x32P.google.cloud.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\x03\xe0\x41\x01\x1a\x9f\x01\n\x06Golden\x12\x42\n\x05turns\x18\x02 \x03(\x0b\x32..google.cloud.ces.v1beta.Evaluation.GoldenTurnB\x03\xe0\x41\x02\x12Q\n\x17\x65valuation_expectations\x18\x03 \x03(\tB0\xe0\x41\x01\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x1a\xef\x02\n\x13ScenarioExpectation\x12h\n\x10tool_expectation\x18\x01 \x01(\x0b\x32G.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectationB\x03\xe0\x41\x01H\x00\x12?\n\x0e\x61gent_response\x18\x02 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01H\x00\x1a\x9d\x01\n\x0fToolExpectation\x12\x42\n\x12\x65xpected_tool_call\x18\x01 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x02\x12\x46\n\x12mock_tool_response\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x02\x42\r\n\x0b\x65xpectation\x1a\xda\x07\n\x08Scenario\x12\x11\n\x04task\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12N\n\nuser_facts\x18\x04 \x03(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.Scenario.UserFactB\x03\xe0\x41\x01\x12\x16\n\tmax_turns\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07rubrics\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12[\n\x15scenario_expectations\x18\x03 \x03(\x0b\x32\x37.google.cloud.ces.v1beta.Evaluation.ScenarioExpectationB\x03\xe0\x41\x02\x12\x38\n\x12variable_overrides\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12l\n\x18task_completion_behavior\x18\x07 \x01(\x0e\x32\x43.google.cloud.ces.v1beta.Evaluation.Scenario.TaskCompletionBehaviorB\x05\x18\x01\xe0\x41\x01\x12^\n\x12user_goal_behavior\x18\x08 \x01(\x0e\x32=.google.cloud.ces.v1beta.Evaluation.Scenario.UserGoalBehaviorB\x03\xe0\x41\x01\x12Q\n\x17\x65valuation_expectations\x18\n \x03(\tB0\xe0\x41\x01\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x12g\n\x17scenario_execution_mode\x18\x0c \x01(\x0e\x32\x41.google.cloud.ces.v1beta.EvaluationSettings.ScenarioExecutionModeB\x03\xe0\x41\x01\x1a\x31\n\x08UserFact\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\"i\n\x16TaskCompletionBehavior\x12(\n$TASK_COMPLETION_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x12\n\x0eTASK_SATISFIED\x10\x01\x12\x11\n\rTASK_REJECTED\x10\x02\"~\n\x10UserGoalBehavior\x12\"\n\x1eUSER_GOAL_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x17\n\x13USER_GOAL_SATISFIED\x10\x01\x12\x16\n\x12USER_GOAL_REJECTED\x10\x02\x12\x15\n\x11USER_GOAL_IGNORED\x10\x03:\x89\x01\xea\x41\x85\x01\n\x1d\x63\x65s.googleapis.com/Evaluation\x12Kprojects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}*\x0b\x65valuations2\nevaluationB\x08\n\x06inputs\"\xb0\x04\n\x11\x45valuationDataset\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:\n\x0b\x65valuations\x18\x03 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\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\x06 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ncreated_by\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0flast_updated_by\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12K\n\x12\x61ggregated_metrics\x18\t \x01(\x0b\x32*.google.cloud.ces.v1beta.AggregatedMetricsB\x03\xe0\x41\x03:\xad\x01\xea\x41\xa9\x01\n$ces.googleapis.com/EvaluationDataset\x12Zprojects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluation_dataset}*\x12\x65valuationDatasets2\x11\x65valuationDataset\"\x95\x38\n\x10\x45valuationResult\x12T\n\rgolden_result\x18\x07 \x01(\x0b\x32\x36.google.cloud.ces.v1beta.EvaluationResult.GoldenResultB\x03\xe0\x41\x03H\x00\x12X\n\x0fscenario_result\x18\x08 \x01(\x0b\x32\x38.google.cloud.ces.v1beta.EvaluationResult.ScenarioResultB\x03\xe0\x41\x03H\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\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x11\x65valuation_status\x18\x04 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12@\n\x0e\x65valuation_run\x18\x06 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12@\n\x07persona\x18\x11 \x01(\x0b\x32*.google.cloud.ces.v1beta.EvaluationPersonaB\x03\xe0\x41\x03\x12\x45\n\nerror_info\x18\x0f \x01(\x0b\x32,.google.cloud.ces.v1beta.EvaluationErrorInfoB\x03\xe0\x41\x03\x12(\n\x05\x65rror\x18\x0e \x01(\x0b\x32\x12.google.rpc.StatusB\x05\x18\x01\xe0\x41\x03\x12\x19\n\x0cinitiated_by\x18\t \x01(\tB\x03\xe0\x41\x03\x12:\n\x0b\x61pp_version\x18\n \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12%\n\x18\x61pp_version_display_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x37\n\tchangelog\x18\x15 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Changelog\x12>\n\x15\x63hangelog_create_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x0f\x65xecution_state\x18\x0b \x01(\x0e\x32\x38.google.cloud.ces.v1beta.EvaluationResult.ExecutionStateB\x03\xe0\x41\x03\x12`\n\x1d\x65valuation_metrics_thresholds\x18\x0c \x01(\x0b\x32\x34.google.cloud.ces.v1beta.EvaluationMetricsThresholdsB\x03\xe0\x41\x03\x12>\n\x06\x63onfig\x18\x12 \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationConfigB\x03\xe0\x41\x03\x12H\n\x11golden_run_method\x18\x13 \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x03\x1a\xde\x07\n\x18GoldenExpectationOutcome\x12\x44\n\x12observed_tool_call\x18\x02 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x03H\x00\x12L\n\x16observed_tool_response\x18\x03 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x03H\x00\x12H\n\x17observed_agent_response\x18\x04 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x03H\x00\x12N\n\x17observed_agent_transfer\x18\x05 \x01(\x0b\x32&.google.cloud.ces.v1beta.AgentTransferB\x03\xe0\x41\x03H\x00\x12\x38\n\x10observed_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03H\x00\x12O\n\x0b\x65xpectation\x18\x01 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.GoldenExpectationB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x06 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12m\n\x1asemantic_similarity_result\x18\x07 \x01(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\x05\x18\x01\xe0\x41\x03\x12|\n\x16tool_invocation_result\x18\x08 \x01(\x0b\x32W.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome.ToolInvocationResultB\x03\xe0\x41\x03\x1a\xc8\x01\n\x14ToolInvocationResult\x12-\n\x1bparameter_correctness_score\x18\x01 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12G\n\x07outcome\x18\x02 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x1e\n\x1c_parameter_correctness_scoreB\x08\n\x06result\x1a\xe7\x01\n\x1b\x45valuationExpectationResult\x12P\n\x16\x65valuation_expectation\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x12\x13\n\x06prompt\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x03 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x91\t\n\x0cGoldenResult\x12i\n\x13turn_replay_results\x18\x01 \x03(\x0b\x32G.google.cloud.ces.v1beta.EvaluationResult.GoldenResult.TurnReplayResultB\x03\xe0\x41\x03\x12r\n\x1e\x65valuation_expectation_results\x18\x02 \x03(\x0b\x32\x45.google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResultB\x03\xe0\x41\x03\x1a\xa1\x07\n\x10TurnReplayResult\x12=\n\x0c\x63onversation\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\x12\x64\n\x13\x65xpectation_outcome\x18\x02 \x03(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcomeB\x03\xe0\x41\x03\x12`\n\x14hallucination_result\x18\x03 \x01(\x0b\x32=.google.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\x03\xe0\x41\x03\x12$\n\x15tool_invocation_score\x18\x04 \x01(\x02\x42\x05\x18\x01\xe0\x41\x03\x12/\n\x1dtool_ordered_invocation_score\x18\x05 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x34\n\x0cturn_latency\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12[\n\x13tool_call_latencies\x18\x07 \x03(\x0b\x32\x39.google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\x03\xe0\x41\x03\x12k\n\x1asemantic_similarity_result\x18\x08 \x01(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\x03\xe0\x41\x03\x12r\n\x1eoverall_tool_invocation_result\x18\t \x01(\x0b\x32\x45.google.cloud.ces.v1beta.EvaluationResult.OverallToolInvocationResultB\x03\xe0\x41\x03\x12\x45\n\nerror_info\x18\n \x01(\x0b\x32,.google.cloud.ces.v1beta.EvaluationErrorInfoB\x03\xe0\x41\x03\x12R\n\x0espan_latencies\x18\x0b \x03(\x0b\x32\x35.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\x03\xe0\x41\x03\x42 \n\x1e_tool_ordered_invocation_score\x1ao\n\x15ScenarioRubricOutcome\x12\x13\n\x06rubric\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\x05score\x18\x02 \x01(\x02\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x11score_explanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1a\x99\x04\n\x1aScenarioExpectationOutcome\x12x\n\x12observed_tool_call\x18\x02 \x01(\x0b\x32U.google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome.ObservedToolCallB\x03\xe0\x41\x03H\x00\x12H\n\x17observed_agent_response\x18\x03 \x01(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x03H\x00\x12Q\n\x0b\x65xpectation\x18\x01 \x01(\x0b\x32\x37.google.cloud.ces.v1beta.Evaluation.ScenarioExpectationB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x04 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x1a\x90\x01\n\x10ObservedToolCall\x12\x39\n\ttool_call\x18\x01 \x01(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x03\x12\x41\n\rtool_response\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x03\x42\x08\n\x06result\x1a\xdc\x08\n\x0eScenarioResult\x12=\n\x0c\x63onversation\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\x12\x11\n\x04task\x18\n \x01(\tB\x03\xe0\x41\x03\x12N\n\nuser_facts\x18\x0b \x03(\x0b\x32\x35.google.cloud.ces.v1beta.Evaluation.Scenario.UserFactB\x03\xe0\x41\x03\x12g\n\x14\x65xpectation_outcomes\x18\x02 \x03(\x0b\x32\x44.google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcomeB\x03\xe0\x41\x03\x12]\n\x0frubric_outcomes\x18\x03 \x03(\x0b\x32?.google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcomeB\x03\xe0\x41\x03\x12`\n\x14hallucination_result\x18\x04 \x03(\x0b\x32=.google.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\x03\xe0\x41\x03\x12\x65\n\x16task_completion_result\x18\x05 \x01(\x0b\x32>.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResultB\x05\x18\x01\xe0\x41\x03\x12[\n\x13tool_call_latencies\x18\x06 \x03(\x0b\x32\x39.google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\x03\xe0\x41\x03\x12p\n\x1duser_goal_satisfaction_result\x18\x07 \x01(\x0b\x32\x44.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResultB\x03\xe0\x41\x03\x12,\n\x1a\x61ll_expectations_satisfied\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12 \n\x0etask_completed\x18\t \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12R\n\x0espan_latencies\x18\x0c \x03(\x0b\x32\x35.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\x03\xe0\x41\x03\x12r\n\x1e\x65valuation_expectation_results\x18\r \x03(\x0b\x32\x45.google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResultB\x03\xe0\x41\x03\x42\x1d\n\x1b_all_expectations_satisfiedB\x11\n\x0f_task_completed\x1a\x81\x04\n\x0bSpanLatency\x12\x17\n\x08resource\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12<\n\x07toolset\x18\x03 \x01(\x0b\x32$.google.cloud.ces.v1beta.ToolsetToolB\x03\xe0\x41\x03H\x00\x12\x14\n\x05model\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x12\x17\n\x08\x63\x61llback\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.TypeB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x11\x65xecution_latency\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\"Q\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04TOOL\x10\x01\x12\x11\n\rUSER_CALLBACK\x10\x02\x12\r\n\tGUARDRAIL\x10\x03\x12\x07\n\x03LLM\x10\x04\x42\x0c\n\nidentifier\x1a\xfe\x01\n\x0fToolCallLatency\x12-\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/Tool\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\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\x39\n\x11\x65xecution_latency\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x1a\x66\n\x13HallucinationResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1am\n\x1aUserGoalSatisfactionResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1a\xb4\x01\n\x18SemanticSimilarityResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12G\n\x07outcome\x18\x04 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x42\x08\n\x06_score\x1a\xa4\x01\n\x1bOverallToolInvocationResult\x12\"\n\x15tool_invocation_score\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12G\n\x07outcome\x18\x02 \x01(\x0e\x32\x31.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\x03\xe0\x41\x03\x42\x18\n\x16_tool_invocation_score\x1ag\n\x14TaskCompletionResult\x12\x17\n\x05score\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xplanation\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06_score\"C\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x08\n\x04PASS\x10\x01\x12\x08\n\x04\x46\x41IL\x10\x02\x12\x0b\n\x07SKIPPED\x10\x03\"s\n\x0e\x45xecutionState\x12\x1f\n\x1b\x45XECUTION_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x05\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\r\n\tCANCELLED\x10\x04:\xb7\x01\xea\x41\xb3\x01\n#ces.googleapis.com/EvaluationResult\x12gprojects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result}*\x11\x65valuationResults2\x10\x65valuationResultB\x08\n\x06result\"\xfa\x11\n\rEvaluationRun\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\x12G\n\x12\x65valuation_results\x18\x03 \x03(\tB+\xe0\x41\x03\xfa\x41%\n#ces.googleapis.com/EvaluationResult\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0cinitiated_by\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12:\n\x0b\x61pp_version\x18\x06 \x01(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12%\n\x18\x61pp_version_display_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x37\n\tchangelog\x18\x16 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Changelog\x12>\n\x15\x63hangelog_create_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x0b\x65valuations\x18\x07 \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12H\n\x12\x65valuation_dataset\x18\x08 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\x12S\n\x0f\x65valuation_type\x18\t \x01(\x0e\x32\x35.google.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\x03\xe0\x41\x03\x12M\n\x05state\x18\n \x01(\x0e\x32\x39.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\x03\xe0\x41\x03\x12\x46\n\x08progress\x18\x0b \x01(\x0b\x32/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\x03\xe0\x41\x03\x12>\n\x06\x63onfig\x18\x0c \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationConfigB\x03\xe0\x41\x03\x12(\n\x05\x65rror\x18\x0e \x01(\x0b\x32\x12.google.rpc.StatusB\x05\x18\x01\xe0\x41\x03\x12\x45\n\nerror_info\x18\x11 \x01(\x0b\x32,.google.cloud.ces.v1beta.EvaluationErrorInfoB\x03\xe0\x41\x03\x12i\n\x18\x65valuation_run_summaries\x18\x0f \x03(\x0b\x32\x42.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\x03\xe0\x41\x03\x12\x43\n\x0elatency_report\x18\x19 \x01(\x0b\x32&.google.cloud.ces.v1beta.LatencyReportB\x03\xe0\x41\x03\x12\x16\n\trun_count\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12K\n\x13persona_run_configs\x18\x12 \x03(\x0b\x32).google.cloud.ces.v1beta.PersonaRunConfigB\x03\xe0\x41\x03\x12M\n\x13optimization_config\x18\x13 \x01(\x0b\x32+.google.cloud.ces.v1beta.OptimizationConfigB\x03\xe0\x41\x01\x12S\n\x18scheduled_evaluation_run\x18\x14 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)ces.googleapis.com/ScheduledEvaluationRun\x12H\n\x11golden_run_method\x18\x15 \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x03\x12\x16\n\toperation\x18\x1a \x01(\tB\x03\xe0\x41\x03\x1a\xb0\x01\n\x08Progress\x12\x18\n\x0btotal_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x65rror_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x63ompleted_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0cpassed_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x63\x61ncelled_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x03\x1a\x66\n\x14\x45valuationRunSummary\x12\x19\n\x0cpassed_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x65rror_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x1az\n\x1b\x45valuationRunSummariesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12J\n\x05value\x18\x02 \x01(\x0b\x32;.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummary:\x02\x38\x01\"V\n\x0e\x45valuationType\x12\x1f\n\x1b\x45VALUATION_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06GOLDEN\x10\x01\x12\x0c\n\x08SCENARIO\x10\x02\x12\t\n\x05MIXED\x10\x03\"|\n\x12\x45valuationRunState\x12$\n EVALUATION_RUN_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x05\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\r\n\tCANCELLED\x10\x04:\x99\x01\xea\x41\x95\x01\n ces.googleapis.com/EvaluationRun\x12Rprojects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluation_run}*\x0e\x65valuationRuns2\revaluationRun\"\xaa\n\n\rLatencyReport\x12R\n\x0etool_latencies\x18\x01 \x03(\x0b\x32\x32.google.cloud.ces.v1beta.LatencyReport.ToolLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12Z\n\x12\x63\x61llback_latencies\x18\x02 \x03(\x0b\x32\x36.google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12\\\n\x13guardrail_latencies\x18\x03 \x03(\x0b\x32\x37.google.cloud.ces.v1beta.LatencyReport.GuardrailLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12Y\n\x12llm_call_latencies\x18\x04 \x03(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\x06\xe0\x41\x03\xe0\x41\x06\x12\x1a\n\rsession_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x1a\xc8\x01\n\x0eLatencyMetrics\x12\x33\n\x0bp50_latency\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x33\n\x0bp90_latency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x33\n\x0bp99_latency\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x17\n\ncall_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x1a\x89\x02\n\x0bToolLatency\x12/\n\x04tool\x18\x01 \x01(\tB\x1f\xe0\x41\x03\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12\x41\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32$.google.cloud.ces.v1beta.ToolsetToolB\x03\xe0\x41\x03H\x00\x12\x1e\n\x11tool_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x04 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\x42\x11\n\x0ftool_identifier\x1az\n\x0f\x43\x61llbackLatency\x12\x12\n\x05stage\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x02 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\x1a\xc5\x01\n\x10GuardrailLatency\x12\x37\n\tguardrail\x18\x01 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1c\x63\x65s.googleapis.com/Guardrail\x12#\n\x16guardrail_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x03 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\x1ay\n\x0eLlmCallLatency\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12S\n\x0flatency_metrics\x18\x02 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\x03\xe0\x41\x03\"\xa4\x04\n\x15\x45valuationExpectation\x12W\n\x0cllm_criteria\x18\x03 \x01(\x0b\x32:.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\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\x11\n\x04tags\x18\x08 \x03(\tB\x03\xe0\x41\x01\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\x06 \x01(\tB\x03\xe0\x41\x03\x1a\"\n\x0bLlmCriteria\x12\x13\n\x06prompt\x18\x01 \x01(\tB\x03\xe0\x41\x02:\xc1\x01\xea\x41\xbd\x01\n(ces.googleapis.com/EvaluationExpectation\x12\x62projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}*\x16\x65valuationExpectations2\x15\x65valuationExpectationB\n\n\x08\x63riteria\"\xb4\x03\n\x10\x45valuationConfig\x12L\n\x12input_audio_config\x18\x01 \x01(\x0b\x32).google.cloud.ces.v1beta.InputAudioConfigB\x05\x18\x01\xe0\x41\x01\x12N\n\x13output_audio_config\x18\x02 \x01(\x0b\x32*.google.cloud.ces.v1beta.OutputAudioConfigB\x05\x18\x01\xe0\x41\x01\x12\\\n\x12\x65valuation_channel\x18\x03 \x01(\x0e\x32;.google.cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\x03\xe0\x41\x01\x12V\n\x13tool_call_behaviour\x18\x04 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\x03\xe0\x41\x01\"L\n\x11\x45valuationChannel\x12\"\n\x1e\x45VALUATION_CHANNEL_UNSPECIFIED\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\"\x97\x03\n\x13\x45valuationErrorInfo\x12O\n\nerror_type\x18\x01 \x01(\x0e\x32\x36.google.cloud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\x03\xe0\x41\x03\x12\x1a\n\rerror_message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12&\n\x19user_facing_error_message\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\xd1\x01\n\tErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fRUNTIME_FAILURE\x10\x01\x12\"\n\x1e\x43ONVERSATION_RETRIEVAL_FAILURE\x10\x02\x12\x1e\n\x1aMETRIC_CALCULATION_FAILURE\x10\x03\x12\x1d\n\x19\x45VALUATION_UPDATE_FAILURE\x10\x04\x12\x13\n\x0fQUOTA_EXHAUSTED\x10\x05\x12\x1b\n\x17USER_SIMULATION_FAILURE\x10\x06\"\xec\x05\n\x14RunEvaluationRequest\x12+\n\x03\x61pp\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12:\n\x0b\x65valuations\x18\x02 \x03(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12H\n\x12\x65valuation_dataset\x18\x03 \x01(\tB,\xe0\x41\x01\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12:\n\x0b\x61pp_version\x18\x06 \x01(\tB%\xe0\x41\x01\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/AppVersion\x12>\n\x06\x63onfig\x18\x08 \x01(\x0b\x32).google.cloud.ces.v1beta.EvaluationConfigB\x03\xe0\x41\x01\x12\x1b\n\trun_count\x18\t \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12K\n\x13persona_run_configs\x18\n \x03(\x0b\x32).google.cloud.ces.v1beta.PersonaRunConfigB\x03\xe0\x41\x01\x12M\n\x13optimization_config\x18\x0b \x01(\x0b\x32+.google.cloud.ces.v1beta.OptimizationConfigB\x03\xe0\x41\x01\x12S\n\x18scheduled_evaluation_run\x18\x0c \x01(\tB1\xe0\x41\x01\xfa\x41+\n)ces.googleapis.com/ScheduledEvaluationRun\x12H\n\x11golden_run_method\x18\r \x01(\x0e\x32(.google.cloud.ces.v1beta.GoldenRunMethodB\x03\xe0\x41\x01\x12$\n\x17generate_latency_report\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\n_run_count\"\xe9\x08\n\x16ScheduledEvaluationRun\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\x43\n\x07request\x18\x03 \x01(\x0b\x32-.google.cloud.ces.v1beta.RunEvaluationRequestB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12`\n\x11scheduling_config\x18\x05 \x01(\x0b\x32@.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfigB\x03\xe0\x41\x02\x12\x13\n\x06\x61\x63tive\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x44\n\x12last_completed_run\x18\x07 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12\x1d\n\x10total_executions\x18\x08 \x01(\x05\x42\x03\xe0\x41\x03\x12\x46\n\x1dnext_scheduled_execution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\ncreated_by\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0flast_updated_by\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0e \x01(\tB\x03\xe0\x41\x03\x1a\x9d\x02\n\x10SchedulingConfig\x12\x62\n\tfrequency\x18\x01 \x01(\x0e\x32J.google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x19\n\x0c\x64\x61ys_of_week\x18\x03 \x03(\x05\x42\x03\xe0\x41\x01\"U\n\tFrequency\x12\x19\n\x15\x46REQUENCY_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\n\n\x06WEEKLY\x10\x03\x12\x0c\n\x08\x42IWEEKLY\x10\x04:\xc7\x01\xea\x41\xc3\x01\n)ces.googleapis.com/ScheduledEvaluationRun\x12\x65projects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}*\x17scheduledEvaluationRuns2\x16scheduledEvaluationRun\"A\n\x10PersonaRunConfig\x12\x14\n\x07persona\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ntask_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"\x9b\x03\n\x12OptimizationConfig\x12!\n\x14generate_loss_report\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11\x61ssistant_session\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0ereport_summary\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12should_suggest_fix\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12S\n\x06status\x18\x04 \x01(\x0e\x32>.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\x03\xe0\x41\x03\x12\x1a\n\rerror_message\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x31\n\x0bloss_report\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\"`\n\x12OptimizationStatus\x12#\n\x1fOPTIMIZATION_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x42_\n\x1b\x63om.google.cloud.ces.v1betaB\x0f\x45valuationProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/client.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/client.rb index 953c15ad3acb..e11d4a03ed5d 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/client.rb @@ -3309,6 +3309,301 @@ def export_evaluations request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Exports evaluations runs. + # + # @overload export_evaluation_runs(request, options = nil) + # Pass arguments to `export_evaluation_runs` via a request object, either of type + # {::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload export_evaluation_runs(parent: nil, names: nil, export_options: nil) + # Pass arguments to `export_evaluation_runs` 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). + # + # @param parent [::String] + # Required. The resource name of the app to export evaluation runs from. + # Format: `projects/{project}/locations/{location}/apps/{app}` + # @param names [::Array<::String>] + # Required. The resource names of the evaluation runs to export. + # @param export_options [::Google::Cloud::Ces::V1beta::ExportOptions, ::Hash] + # Optional. The export options for the evaluation runs. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/ces/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Ces::V1beta::EvaluationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest.new + # + # # Call the export_evaluation_runs method. + # result = client.export_evaluation_runs request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def export_evaluation_runs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.export_evaluation_runs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Ces::V1beta::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.export_evaluation_runs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.export_evaluation_runs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @evaluation_service_stub.call_rpc :export_evaluation_runs, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Exports evaluations results. + # + # @overload export_evaluation_results(request, options = nil) + # Pass arguments to `export_evaluation_results` via a request object, either of type + # {::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload export_evaluation_results(parent: nil, names: nil, export_options: nil) + # Pass arguments to `export_evaluation_results` 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). + # + # @param parent [::String] + # Required. The resource name of the evaluation to export evaluation results + # from. Format: + # `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + # @param names [::Array<::String>] + # Required. The resource names of the evaluation results to export. + # @param export_options [::Google::Cloud::Ces::V1beta::ExportOptions, ::Hash] + # Optional. The export options for the evaluation results. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/ces/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Ces::V1beta::EvaluationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest.new + # + # # Call the export_evaluation_results method. + # result = client.export_evaluation_results request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def export_evaluation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.export_evaluation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Ces::V1beta::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.export_evaluation_results.timeout, + metadata: metadata, + retry_policy: @config.rpcs.export_evaluation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @evaluation_service_stub.call_rpc :export_evaluation_results, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Runs metrics on an existing evaluation result. + # + # @overload run_evaluation_result_metrics(request, options = nil) + # Pass arguments to `run_evaluation_result_metrics` via a request object, either of type + # {::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload run_evaluation_result_metrics(evaluation_result_id: nil) + # Pass arguments to `run_evaluation_result_metrics` 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). + # + # @param evaluation_result_id [::String] + # Required. The evaluation result to run metrics for. + # Format: + # `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result_id}` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/ces/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Ces::V1beta::EvaluationService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest.new + # + # # Call the run_evaluation_result_metrics method. + # result = client.run_evaluation_result_metrics request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def run_evaluation_result_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.run_evaluation_result_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Ces::V1beta::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.evaluation_result_id + header_params["evaluation_result_id"] = request.evaluation_result_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.run_evaluation_result_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.run_evaluation_result_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @evaluation_service_stub.call_rpc :run_evaluation_result_metrics, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the EvaluationService API. # @@ -3652,6 +3947,21 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :export_evaluations + ## + # RPC-specific configuration for `export_evaluation_runs` + # @return [::Gapic::Config::Method] + # + attr_reader :export_evaluation_runs + ## + # RPC-specific configuration for `export_evaluation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :export_evaluation_results + ## + # RPC-specific configuration for `run_evaluation_result_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :run_evaluation_result_metrics # @private def initialize parent_rpcs = nil @@ -3719,6 +4029,12 @@ def initialize parent_rpcs = nil @test_persona_voice = ::Gapic::Config::Method.new test_persona_voice_config export_evaluations_config = parent_rpcs.export_evaluations if parent_rpcs.respond_to? :export_evaluations @export_evaluations = ::Gapic::Config::Method.new export_evaluations_config + export_evaluation_runs_config = parent_rpcs.export_evaluation_runs if parent_rpcs.respond_to? :export_evaluation_runs + @export_evaluation_runs = ::Gapic::Config::Method.new export_evaluation_runs_config + export_evaluation_results_config = parent_rpcs.export_evaluation_results if parent_rpcs.respond_to? :export_evaluation_results + @export_evaluation_results = ::Gapic::Config::Method.new export_evaluation_results_config + run_evaluation_result_metrics_config = parent_rpcs.run_evaluation_result_metrics if parent_rpcs.respond_to? :run_evaluation_result_metrics + @run_evaluation_result_metrics = ::Gapic::Config::Method.new run_evaluation_result_metrics_config yield self if block_given? end diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb index f08f9fecb680..55a5efdb1de4 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb @@ -3079,6 +3079,280 @@ def export_evaluations request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Exports evaluations runs. + # + # @overload export_evaluation_runs(request, options = nil) + # Pass arguments to `export_evaluation_runs` via a request object, either of type + # {::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload export_evaluation_runs(parent: nil, names: nil, export_options: nil) + # Pass arguments to `export_evaluation_runs` 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). + # + # @param parent [::String] + # Required. The resource name of the app to export evaluation runs from. + # Format: `projects/{project}/locations/{location}/apps/{app}` + # @param names [::Array<::String>] + # Required. The resource names of the evaluation runs to export. + # @param export_options [::Google::Cloud::Ces::V1beta::ExportOptions, ::Hash] + # Optional. The export options for the evaluation runs. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/ces/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Ces::V1beta::EvaluationService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest.new + # + # # Call the export_evaluation_runs method. + # result = client.export_evaluation_runs request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def export_evaluation_runs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.export_evaluation_runs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Ces::V1beta::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.export_evaluation_runs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.export_evaluation_runs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @evaluation_service_stub.export_evaluation_runs request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Exports evaluations results. + # + # @overload export_evaluation_results(request, options = nil) + # Pass arguments to `export_evaluation_results` via a request object, either of type + # {::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload export_evaluation_results(parent: nil, names: nil, export_options: nil) + # Pass arguments to `export_evaluation_results` 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). + # + # @param parent [::String] + # Required. The resource name of the evaluation to export evaluation results + # from. Format: + # `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + # @param names [::Array<::String>] + # Required. The resource names of the evaluation results to export. + # @param export_options [::Google::Cloud::Ces::V1beta::ExportOptions, ::Hash] + # Optional. The export options for the evaluation results. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/ces/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Ces::V1beta::EvaluationService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest.new + # + # # Call the export_evaluation_results method. + # result = client.export_evaluation_results request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def export_evaluation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.export_evaluation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Ces::V1beta::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.export_evaluation_results.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.export_evaluation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @evaluation_service_stub.export_evaluation_results request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Runs metrics on an existing evaluation result. + # + # @overload run_evaluation_result_metrics(request, options = nil) + # Pass arguments to `run_evaluation_result_metrics` via a request object, either of type + # {::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload run_evaluation_result_metrics(evaluation_result_id: nil) + # Pass arguments to `run_evaluation_result_metrics` 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). + # + # @param evaluation_result_id [::String] + # Required. The evaluation result to run metrics for. + # Format: + # `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result_id}` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/ces/v1beta" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Ces::V1beta::EvaluationService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest.new + # + # # Call the run_evaluation_result_metrics method. + # result = client.run_evaluation_result_metrics request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def run_evaluation_result_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.run_evaluation_result_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Ces::V1beta::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.run_evaluation_result_metrics.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.run_evaluation_result_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @evaluation_service_stub.run_evaluation_result_metrics request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the EvaluationService REST API. # @@ -3392,6 +3666,21 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :export_evaluations + ## + # RPC-specific configuration for `export_evaluation_runs` + # @return [::Gapic::Config::Method] + # + attr_reader :export_evaluation_runs + ## + # RPC-specific configuration for `export_evaluation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :export_evaluation_results + ## + # RPC-specific configuration for `run_evaluation_result_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :run_evaluation_result_metrics # @private def initialize parent_rpcs = nil @@ -3459,6 +3748,12 @@ def initialize parent_rpcs = nil @test_persona_voice = ::Gapic::Config::Method.new test_persona_voice_config export_evaluations_config = parent_rpcs.export_evaluations if parent_rpcs.respond_to? :export_evaluations @export_evaluations = ::Gapic::Config::Method.new export_evaluations_config + export_evaluation_runs_config = parent_rpcs.export_evaluation_runs if parent_rpcs.respond_to? :export_evaluation_runs + @export_evaluation_runs = ::Gapic::Config::Method.new export_evaluation_runs_config + export_evaluation_results_config = parent_rpcs.export_evaluation_results if parent_rpcs.respond_to? :export_evaluation_results + @export_evaluation_results = ::Gapic::Config::Method.new export_evaluation_results_config + run_evaluation_result_metrics_config = parent_rpcs.run_evaluation_result_metrics if parent_rpcs.respond_to? :run_evaluation_result_metrics + @run_evaluation_result_metrics = ::Gapic::Config::Method.new run_evaluation_result_metrics_config yield self if block_given? end diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb index 935c22584dff..b0a19ecc1815 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb @@ -1353,6 +1353,126 @@ def export_evaluations request_pb, options = nil end end + ## + # Baseline implementation for the export_evaluation_runs REST call + # + # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def export_evaluation_runs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_export_evaluation_runs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "export_evaluation_runs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the export_evaluation_results REST call + # + # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def export_evaluation_results request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_export_evaluation_results_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "export_evaluation_results", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the run_evaluation_result_metrics REST call + # + # @param request_pb [::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def run_evaluation_result_metrics request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_run_evaluation_result_metrics_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "run_evaluation_result_metrics", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # @private # @@ -2038,6 +2158,72 @@ def self.transcode_export_evaluations_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the export_evaluation_runs REST call + # + # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_export_evaluation_runs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta/{parent}/evaluationRuns:export", + body: "*", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the export_evaluation_results REST call + # + # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_export_evaluation_results_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta/{parent}/results:export", + body: "*", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the run_evaluation_result_metrics REST call + # + # @param request_pb [::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_run_evaluation_result_metrics_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta/{evaluation_result_id}:runEvaluationResultMetrics", + body: "*", + matches: [ + ["evaluation_result_id", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb index 4b3be822cb73..de69e9e840e7 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb @@ -18,7 +18,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n0google/cloud/ces/v1beta/evaluation_service.proto\x12\x17google.cloud.ces.v1beta\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/v1beta/agent_service.proto\x1a*google/cloud/ces/v1beta/conversation.proto\x1a(google/cloud/ces/v1beta/evaluation.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"V\n\x15RunEvaluationResponse\x12=\n\x0e\x65valuation_run\x18\x01 \x01(\tB%\xfa\x41\"\n ces.googleapis.com/EvaluationRun\"\xb9\x02\n\x1eRunEvaluationOperationMetadata\x12:\n\x0b\x65valuations\x18\x01 \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12@\n\x0e\x65valuation_run\x18\x02 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12\x34\n\x0b\x63reate_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\x11\n\x04verb\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\"%\n#GenerateEvaluationOperationMetadata\"&\n$DeleteEvaluationRunOperationMetadata\"\xa3\x01\n\x17\x43reateEvaluationRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\x1a\n\revaluation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12<\n\nevaluation\x18\x03 \x01(\x0b\x32#.google.cloud.ces.v1beta.EvaluationB\x03\xe0\x41\x02\"\x9f\x01\n\x19GenerateEvaluationRequest\x12=\n\x0c\x63onversation\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63\x65s.googleapis.com/Conversation\x12\x43\n\x06source\x18\x02 \x01(\x0e\x32,.google.cloud.ces.v1beta.Conversation.SourceB\x05\x18\x01\xe0\x41\x01\"\xfb\x04\n\x18ImportEvaluationsRequest\x12_\n\x11\x63onversation_list\x18\x02 \x01(\x0b\x32\x42.google.cloud.ces.v1beta.ImportEvaluationsRequest.ConversationListH\x00\x12\x11\n\x07gcs_uri\x18\x03 \x01(\tH\x00\x12\x15\n\x0b\x63sv_content\x18\x04 \x01(\x0cH\x00\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\\\n\x0eimport_options\x18\x05 \x01(\x0b\x32?.google.cloud.ces.v1beta.ImportEvaluationsRequest.ImportOptionsB\x03\xe0\x41\x01\x1a.\n\x10\x43onversationList\x12\x1a\n\rconversations\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a\x8b\x02\n\rImportOptions\x12\x85\x01\n\x1c\x63onflict_resolution_strategy\x18\x01 \x01(\x0e\x32Z.google.cloud.ces.v1beta.ImportEvaluationsRequest.ImportOptions.ConflictResolutionStrategyB\x03\xe0\x41\x01\"r\n\x1a\x43onflictResolutionStrategy\x12,\n(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\x10\x00\x12\r\n\tOVERWRITE\x10\x01\x12\x08\n\x04SKIP\x10\x02\x12\r\n\tDUPLICATE\x10\x03\x42\x08\n\x06source\"\xf5\x02\n\x19ImportEvaluationsResponse\x12\x38\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.Evaluation\x12\x45\n\x12\x65valuation_results\x18\x04 \x03(\x0b\x32).google.cloud.ces.v1beta.EvaluationResult\x12?\n\x0f\x65valuation_runs\x18\x05 \x03(\x0b\x32&.google.cloud.ces.v1beta.EvaluationRun\x12\x1b\n\x0e\x65rror_messages\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1c\n\x14import_failure_count\x18\x03 \x01(\x05\x12.\n&evaluation_result_import_failure_count\x18\x06 \x01(\x05\x12+\n#evaluation_run_import_failure_count\x18\x07 \x01(\x05\"\xaa\x01\n\"ImportEvaluationsOperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xc1\x01\n\x1e\x43reateEvaluationDatasetRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\"\n\x15\x65valuation_dataset_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\x12\x65valuation_dataset\x18\x03 \x01(\x0b\x32*.google.cloud.ces.v1beta.EvaluationDatasetB\x03\xe0\x41\x02\"\x8d\x01\n\x17UpdateEvaluationRequest\x12<\n\nevaluation\x18\x01 \x01(\x0b\x32#.google.cloud.ces.v1beta.EvaluationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xa3\x01\n\x1eUpdateEvaluationDatasetRequest\x12K\n\x12\x65valuation_dataset\x18\x01 \x01(\x0b\x32*.google.cloud.ces.v1beta.EvaluationDatasetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"u\n\x17\x44\x65leteEvaluationRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"Z\n\x1d\x44\x65leteEvaluationResultRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#ces.googleapis.com/EvaluationResult\"o\n\x1e\x44\x65leteEvaluationDatasetRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"T\n\x1a\x44\x65leteEvaluationRunRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n ces.googleapis.com/EvaluationRun\"K\n\x14GetEvaluationRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\"W\n\x1aGetEvaluationResultRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#ces.googleapis.com/EvaluationResult\"Y\n\x1bGetEvaluationDatasetRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$ces.googleapis.com/EvaluationDataset\"Q\n\x17GetEvaluationRunRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n ces.googleapis.com/EvaluationRun\"\x91\x02\n\x16ListEvaluationsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63\x65s.googleapis.com/Evaluation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x06\x66ilter\x18\x04 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x1e\n\x11\x65valuation_filter\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\"\n\x15\x65valuation_run_filter\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10last_ten_results\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\xb8\x01\n\x1cListEvaluationResultsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#ces.googleapis.com/EvaluationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x1dListEvaluationDatasetsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$ces.googleapis.com/EvaluationDataset\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb2\x01\n\x19ListEvaluationRunsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 ces.googleapis.com/EvaluationRun\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"l\n\x17ListEvaluationsResponse\x12\x38\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32#.google.cloud.ces.v1beta.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x7f\n\x1dListEvaluationResultsResponse\x12\x45\n\x12\x65valuation_results\x18\x01 \x03(\x0b\x32).google.cloud.ces.v1beta.EvaluationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n\x1eListEvaluationDatasetsResponse\x12G\n\x13\x65valuation_datasets\x18\x01 \x03(\x0b\x32*.google.cloud.ces.v1beta.EvaluationDataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"v\n\x1aListEvaluationRunsResponse\x12?\n\x0f\x65valuation_runs\x18\x01 \x03(\x0b\x32&.google.cloud.ces.v1beta.EvaluationRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xd7\x01\n#CreateScheduledEvaluationRunRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12(\n\x1bscheduled_evaluation_run_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12V\n\x18scheduled_evaluation_run\x18\x03 \x01(\x0b\x32/.google.cloud.ces.v1beta.ScheduledEvaluationRunB\x03\xe0\x41\x02\"c\n GetScheduledEvaluationRunRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)ces.googleapis.com/ScheduledEvaluationRun\"\xc4\x01\n\"ListScheduledEvaluationRunsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)ces.googleapis.com/ScheduledEvaluationRun\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x92\x01\n#ListScheduledEvaluationRunsResponse\x12R\n\x19scheduled_evaluation_runs\x18\x01 \x03(\x0b\x32/.google.cloud.ces.v1beta.ScheduledEvaluationRun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb3\x01\n#UpdateScheduledEvaluationRunRequest\x12V\n\x18scheduled_evaluation_run\x18\x01 \x01(\x0b\x32/.google.cloud.ces.v1beta.ScheduledEvaluationRunB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"y\n#DeleteScheduledEvaluationRunRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)ces.googleapis.com/ScheduledEvaluationRun\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"r\n\x17TestPersonaVoiceRequest\x12+\n\x03\x61pp\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\x17\n\npersona_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04text\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x94\x01\n\x1cUploadEvaluationAudioRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12\x1a\n\raudio_content\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x12#\n\x16previous_audio_gcs_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\"w\n\x1dUploadEvaluationAudioResponse\x12\x15\n\raudio_gcs_uri\x18\x01 \x01(\t\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12+\n\x08\x64uration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\")\n\x18TestPersonaVoiceResponse\x12\r\n\x05\x61udio\x18\x01 \x01(\x0c\"\xd1\x01\n\"CreateEvaluationExpectationRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12&\n\x19\x65valuation_expectation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12S\n\x16\x65valuation_expectation\x18\x03 \x01(\x0b\x32..google.cloud.ces.v1beta.EvaluationExpectationB\x03\xe0\x41\x02\"\xaf\x01\n\"UpdateEvaluationExpectationRequest\x12S\n\x16\x65valuation_expectation\x18\x01 \x01(\x0b\x32..google.cloud.ces.v1beta.EvaluationExpectationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"w\n\"DeleteEvaluationExpectationRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"a\n\x1fGetEvaluationExpectationRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\"\xc2\x01\n!ListEvaluationExpectationsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(ces.googleapis.com/EvaluationExpectation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8e\x01\n\"ListEvaluationExpectationsResponse\x12O\n\x17\x65valuation_expectations\x18\x01 \x03(\x0b\x32..google.cloud.ces.v1beta.EvaluationExpectation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\rExportOptions\x12O\n\rexport_format\x18\x01 \x01(\x0e\x32\x33.google.cloud.ces.v1beta.ExportOptions.ExportFormatB\x03\xe0\x41\x01\x12\x14\n\x07gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\"A\n\x0c\x45xportFormat\x12\x1d\n\x19\x45XPORT_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04JSON\x10\x01\x12\x08\n\x04YAML\x10\x02\"\x90\x02\n\x18\x45xportEvaluationsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\x34\n\x05names\x18\x02 \x03(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12\x43\n\x0e\x65xport_options\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1beta.ExportOptionsB\x03\xe0\x41\x01\x12\'\n\x1ainclude_evaluation_results\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13include_evaluations\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x8a\x02\n\x19\x45xportEvaluationsResponse\x12\x1d\n\x13\x65valuations_content\x18\x01 \x01(\x0cH\x00\x12\x19\n\x0f\x65valuations_uri\x18\x02 \x01(\tH\x00\x12j\n\x12\x66\x61iled_evaluations\x18\x03 \x03(\x0b\x32I.google.cloud.ces.v1beta.ExportEvaluationsResponse.FailedEvaluationsEntryB\x03\xe0\x41\x03\x1a\x38\n\x16\x46\x61iledEvaluationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\r\n\x0b\x65valuations\"\x7f\n\x1f\x45xportEvaluationResultsResponse\x12$\n\x1a\x65valuation_results_content\x18\x01 \x01(\x0cH\x00\x12 \n\x16\x65valuation_results_uri\x18\x02 \x01(\tH\x00\x42\x14\n\x12\x65valuation_results\"s\n\x1c\x45xportEvaluationRunsResponse\x12!\n\x17\x65valuation_runs_content\x18\x01 \x01(\x0cH\x00\x12\x1d\n\x13\x65valuation_runs_uri\x18\x02 \x01(\tH\x00\x42\x11\n\x0f\x65valuation_runs2\x96<\n\x11\x45valuationService\x12\xe4\x01\n\rRunEvaluation\x12-.google.cloud.ces.v1beta.RunEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\x37\n\x15RunEvaluationResponse\x12\x1eRunEvaluationOperationMetadata\xda\x41\x03\x61pp\x82\xd3\xe4\x93\x02>\"9/v1beta/{app=projects/*/locations/*/apps/*}:runEvaluation:\x01*\x12\xf8\x01\n\x15UploadEvaluationAudio\x12\x35.google.cloud.ces.v1beta.UploadEvaluationAudioRequest\x1a\x36.google.cloud.ces.v1beta.UploadEvaluationAudioResponse\"p\xda\x41\x12name,audio_content\x82\xd3\xe4\x93\x02U\"P/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}:uploadEvaluationAudio:\x01*\x12\xf0\x01\n\x10\x43reateEvaluation\x12\x30.google.cloud.ces.v1beta.CreateEvaluationRequest\x1a#.google.cloud.ces.v1beta.Evaluation\"\x84\x01\xda\x41\x1fparent,evaluation,evaluation_id\xda\x41\x11parent,evaluation\x82\xd3\xe4\x93\x02H\":/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations:\nevaluation\x12\x8f\x02\n\x12GenerateEvaluation\x12\x32.google.cloud.ces.v1beta.GenerateEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\xca\x41\x31\n\nEvaluation\x12#GenerateEvaluationOperationMetadata\xda\x41\x0c\x63onversation\x82\xd3\xe4\x93\x02\\\"W/v1beta/{conversation=projects/*/locations/*/apps/*/conversations/*}:generateEvaluation:\x01*\x12\xfe\x01\n\x11ImportEvaluations\x12\x31.google.cloud.ces.v1beta.ImportEvaluationsRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\xca\x41?\n\x19ImportEvaluationsResponse\x12\"ImportEvaluationsOperationMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\"@/v1beta/{parent=projects/*/locations/*/apps/*}:importEvaluations:\x01*\x12\xac\x02\n\x17\x43reateEvaluationDataset\x12\x37.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest\x1a*.google.cloud.ces.v1beta.EvaluationDataset\"\xab\x01\xda\x41/parent,evaluation_dataset,evaluation_dataset_id\xda\x41\x19parent,evaluation_dataset\x82\xd3\xe4\x93\x02W\"A/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationDatasets:\x12\x65valuation_dataset\x12\xdd\x01\n\x10UpdateEvaluation\x12\x30.google.cloud.ces.v1beta.UpdateEvaluationRequest\x1a#.google.cloud.ces.v1beta.Evaluation\"r\xda\x41\x16\x65valuation,update_mask\x82\xd3\xe4\x93\x02S2E/v1beta/{evaluation.name=projects/*/locations/*/apps/*/evaluations/*}:\nevaluation\x12\x92\x02\n\x17UpdateEvaluationDataset\x12\x37.google.cloud.ces.v1beta.UpdateEvaluationDatasetRequest\x1a*.google.cloud.ces.v1beta.EvaluationDataset\"\x91\x01\xda\x41\x1e\x65valuation_dataset,update_mask\x82\xd3\xe4\x93\x02j2T/v1beta/{evaluation_dataset.name=projects/*/locations/*/apps/*/evaluationDatasets/*}:\x12\x65valuation_dataset\x12\xa7\x01\n\x10\x44\x65leteEvaluation\x12\x30.google.cloud.ces.v1beta.DeleteEvaluationRequest\x1a\x16.google.protobuf.Empty\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<*:/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}\x12\xbd\x01\n\x16\x44\x65leteEvaluationResult\x12\x36.google.cloud.ces.v1beta.DeleteEvaluationResultRequest\x1a\x16.google.protobuf.Empty\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46*D/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*/results/*}\x12\xbc\x01\n\x17\x44\x65leteEvaluationDataset\x12\x37.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1beta/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\x12\xf8\x01\n\x13\x44\x65leteEvaluationRun\x12\x33.google.cloud.ces.v1beta.DeleteEvaluationRunRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\xca\x41=\n\x15google.protobuf.Empty\x12$DeleteEvaluationRunOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1beta/{name=projects/*/locations/*/apps/*/evaluationRuns/*}\x12\xae\x01\n\rGetEvaluation\x12-.google.cloud.ces.v1beta.GetEvaluationRequest\x1a#.google.cloud.ces.v1beta.Evaluation\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}\x12\xca\x01\n\x13GetEvaluationResult\x12\x33.google.cloud.ces.v1beta.GetEvaluationResultRequest\x1a).google.cloud.ces.v1beta.EvaluationResult\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*/results/*}\x12\xca\x01\n\x14GetEvaluationDataset\x12\x34.google.cloud.ces.v1beta.GetEvaluationDatasetRequest\x1a*.google.cloud.ces.v1beta.EvaluationDataset\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1beta/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\x12\xba\x01\n\x10GetEvaluationRun\x12\x30.google.cloud.ces.v1beta.GetEvaluationRunRequest\x1a&.google.cloud.ces.v1beta.EvaluationRun\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1beta/{name=projects/*/locations/*/apps/*/evaluationRuns/*}\x12\xc1\x01\n\x0fListEvaluations\x12/.google.cloud.ces.v1beta.ListEvaluationsRequest\x1a\x30.google.cloud.ces.v1beta.ListEvaluationsResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations\x12\xdd\x01\n\x15ListEvaluationResults\x12\x35.google.cloud.ces.v1beta.ListEvaluationResultsRequest\x1a\x36.google.cloud.ces.v1beta.ListEvaluationResultsResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta/{parent=projects/*/locations/*/apps/*/evaluations/*}/results\x12\xdd\x01\n\x16ListEvaluationDatasets\x12\x36.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest\x1a\x37.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationDatasets\x12\xcd\x01\n\x12ListEvaluationRuns\x12\x32.google.cloud.ces.v1beta.ListEvaluationRunsRequest\x1a\x33.google.cloud.ces.v1beta.ListEvaluationRunsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationRuns\x12\xed\x01\n\x1aListEvaluationExpectations\x12:.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest\x1a;.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationExpectations\x12\xda\x01\n\x18GetEvaluationExpectation\x12\x38.google.cloud.ces.v1beta.GetEvaluationExpectationRequest\x1a..google.cloud.ces.v1beta.EvaluationExpectation\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1beta/{name=projects/*/locations/*/apps/*/evaluationExpectations/*}\x12\xcc\x02\n\x1b\x43reateEvaluationExpectation\x12;.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest\x1a..google.cloud.ces.v1beta.EvaluationExpectation\"\xbf\x01\xda\x41\x37parent,evaluation_expectation,evaluation_expectation_id\xda\x41\x1dparent,evaluation_expectation\x82\xd3\xe4\x93\x02_\"E/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationExpectations:\x16\x65valuation_expectation\x12\xae\x02\n\x1bUpdateEvaluationExpectation\x12;.google.cloud.ces.v1beta.UpdateEvaluationExpectationRequest\x1a..google.cloud.ces.v1beta.EvaluationExpectation\"\xa1\x01\xda\x41\"evaluation_expectation,update_mask\x82\xd3\xe4\x93\x02v2\\/v1beta/{evaluation_expectation.name=projects/*/locations/*/apps/*/evaluationExpectations/*}:\x16\x65valuation_expectation\x12\xc8\x01\n\x1b\x44\x65leteEvaluationExpectation\x12;.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G*E/v1beta/{name=projects/*/locations/*/apps/*/evaluationExpectations/*}\x12\xd8\x02\n\x1c\x43reateScheduledEvaluationRun\x12<.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest\x1a/.google.cloud.ces.v1beta.ScheduledEvaluationRun\"\xc8\x01\xda\x41;parent,scheduled_evaluation_run,scheduled_evaluation_run_id\xda\x41\x1fparent,scheduled_evaluation_run\x82\xd3\xe4\x93\x02\x62\"F/v1beta/{parent=projects/*/locations/*/apps/*}/scheduledEvaluationRuns:\x18scheduled_evaluation_run\x12\xde\x01\n\x19GetScheduledEvaluationRun\x12\x39.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest\x1a/.google.cloud.ces.v1beta.ScheduledEvaluationRun\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\x12\xf1\x01\n\x1bListScheduledEvaluationRuns\x12;.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest\x1a<.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{parent=projects/*/locations/*/apps/*}/scheduledEvaluationRuns\x12\xb8\x02\n\x1cUpdateScheduledEvaluationRun\x12<.google.cloud.ces.v1beta.UpdateScheduledEvaluationRunRequest\x1a/.google.cloud.ces.v1beta.ScheduledEvaluationRun\"\xa8\x01\xda\x41$scheduled_evaluation_run,update_mask\x82\xd3\xe4\x93\x02{2_/v1beta/{scheduled_evaluation_run.name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}:\x18scheduled_evaluation_run\x12\xcb\x01\n\x1c\x44\x65leteScheduledEvaluationRun\x12<.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1beta/{name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\x12\xc6\x01\n\x10TestPersonaVoice\x12\x30.google.cloud.ces.v1beta.TestPersonaVoiceRequest\x1a\x31.google.cloud.ces.v1beta.TestPersonaVoiceResponse\"M\xda\x41\x03\x61pp\x82\xd3\xe4\x93\x02\x41\"\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"a\n\x1fGetEvaluationExpectationRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(ces.googleapis.com/EvaluationExpectation\"\xc2\x01\n!ListEvaluationExpectationsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(ces.googleapis.com/EvaluationExpectation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8e\x01\n\"ListEvaluationExpectationsResponse\x12O\n\x17\x65valuation_expectations\x18\x01 \x03(\x0b\x32..google.cloud.ces.v1beta.EvaluationExpectation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n\rExportOptions\x12O\n\rexport_format\x18\x01 \x01(\x0e\x32\x33.google.cloud.ces.v1beta.ExportOptions.ExportFormatB\x03\xe0\x41\x01\x12\x14\n\x07gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\"A\n\x0c\x45xportFormat\x12\x1d\n\x19\x45XPORT_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04JSON\x10\x01\x12\x08\n\x04YAML\x10\x02\"\x90\x02\n\x18\x45xportEvaluationsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\x34\n\x05names\x18\x02 \x03(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12\x43\n\x0e\x65xport_options\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1beta.ExportOptionsB\x03\xe0\x41\x01\x12\'\n\x1ainclude_evaluation_results\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13include_evaluations\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x8a\x02\n\x19\x45xportEvaluationsResponse\x12\x1d\n\x13\x65valuations_content\x18\x01 \x01(\x0cH\x00\x12\x19\n\x0f\x65valuations_uri\x18\x02 \x01(\tH\x00\x12j\n\x12\x66\x61iled_evaluations\x18\x03 \x03(\x0b\x32I.google.cloud.ces.v1beta.ExportEvaluationsResponse.FailedEvaluationsEntryB\x03\xe0\x41\x03\x1a\x38\n\x16\x46\x61iledEvaluationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\r\n\x0b\x65valuations\"\xd8\x01\n\x1e\x45xportEvaluationResultsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63\x65s.googleapis.com/Evaluation\x12:\n\x05names\x18\x02 \x03(\tB+\xe0\x41\x02\xfa\x41%\n#ces.googleapis.com/EvaluationResult\x12\x43\n\x0e\x65xport_options\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1beta.ExportOptionsB\x03\xe0\x41\x01\"\x7f\n\x1f\x45xportEvaluationResultsResponse\x12$\n\x1a\x65valuation_results_content\x18\x01 \x01(\x0cH\x00\x12 \n\x16\x65valuation_results_uri\x18\x02 \x01(\tH\x00\x42\x14\n\x12\x65valuation_results\"\xcb\x01\n\x1b\x45xportEvaluationRunsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16\x63\x65s.googleapis.com/App\x12\x37\n\x05names\x18\x02 \x03(\tB(\xe0\x41\x02\xfa\x41\"\n ces.googleapis.com/EvaluationRun\x12\x43\n\x0e\x65xport_options\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1beta.ExportOptionsB\x03\xe0\x41\x01\"s\n\x1c\x45xportEvaluationRunsResponse\x12!\n\x17\x65valuation_runs_content\x18\x01 \x01(\x0cH\x00\x12\x1d\n\x13\x65valuation_runs_uri\x18\x02 \x01(\tH\x00\x42\x11\n\x0f\x65valuation_runs\"\'\n%ExportEvaluationRunsOperationMetadata\"*\n(ExportEvaluationResultsOperationMetadata\"-\n+RunEvaluationResultMetricsOperationMetadata2\xb9\x43\n\x11\x45valuationService\x12\xe4\x01\n\rRunEvaluation\x12-.google.cloud.ces.v1beta.RunEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\x37\n\x15RunEvaluationResponse\x12\x1eRunEvaluationOperationMetadata\xda\x41\x03\x61pp\x82\xd3\xe4\x93\x02>\"9/v1beta/{app=projects/*/locations/*/apps/*}:runEvaluation:\x01*\x12\xf8\x01\n\x15UploadEvaluationAudio\x12\x35.google.cloud.ces.v1beta.UploadEvaluationAudioRequest\x1a\x36.google.cloud.ces.v1beta.UploadEvaluationAudioResponse\"p\xda\x41\x12name,audio_content\x82\xd3\xe4\x93\x02U\"P/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}:uploadEvaluationAudio:\x01*\x12\xf0\x01\n\x10\x43reateEvaluation\x12\x30.google.cloud.ces.v1beta.CreateEvaluationRequest\x1a#.google.cloud.ces.v1beta.Evaluation\"\x84\x01\xda\x41\x1fparent,evaluation,evaluation_id\xda\x41\x11parent,evaluation\x82\xd3\xe4\x93\x02H\":/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations:\nevaluation\x12\x8f\x02\n\x12GenerateEvaluation\x12\x32.google.cloud.ces.v1beta.GenerateEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\xca\x41\x31\n\nEvaluation\x12#GenerateEvaluationOperationMetadata\xda\x41\x0c\x63onversation\x82\xd3\xe4\x93\x02\\\"W/v1beta/{conversation=projects/*/locations/*/apps/*/conversations/*}:generateEvaluation:\x01*\x12\xfe\x01\n\x11ImportEvaluations\x12\x31.google.cloud.ces.v1beta.ImportEvaluationsRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\xca\x41?\n\x19ImportEvaluationsResponse\x12\"ImportEvaluationsOperationMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\"@/v1beta/{parent=projects/*/locations/*/apps/*}:importEvaluations:\x01*\x12\xac\x02\n\x17\x43reateEvaluationDataset\x12\x37.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest\x1a*.google.cloud.ces.v1beta.EvaluationDataset\"\xab\x01\xda\x41/parent,evaluation_dataset,evaluation_dataset_id\xda\x41\x19parent,evaluation_dataset\x82\xd3\xe4\x93\x02W\"A/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationDatasets:\x12\x65valuation_dataset\x12\xdd\x01\n\x10UpdateEvaluation\x12\x30.google.cloud.ces.v1beta.UpdateEvaluationRequest\x1a#.google.cloud.ces.v1beta.Evaluation\"r\xda\x41\x16\x65valuation,update_mask\x82\xd3\xe4\x93\x02S2E/v1beta/{evaluation.name=projects/*/locations/*/apps/*/evaluations/*}:\nevaluation\x12\x92\x02\n\x17UpdateEvaluationDataset\x12\x37.google.cloud.ces.v1beta.UpdateEvaluationDatasetRequest\x1a*.google.cloud.ces.v1beta.EvaluationDataset\"\x91\x01\xda\x41\x1e\x65valuation_dataset,update_mask\x82\xd3\xe4\x93\x02j2T/v1beta/{evaluation_dataset.name=projects/*/locations/*/apps/*/evaluationDatasets/*}:\x12\x65valuation_dataset\x12\xa7\x01\n\x10\x44\x65leteEvaluation\x12\x30.google.cloud.ces.v1beta.DeleteEvaluationRequest\x1a\x16.google.protobuf.Empty\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<*:/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}\x12\xbd\x01\n\x16\x44\x65leteEvaluationResult\x12\x36.google.cloud.ces.v1beta.DeleteEvaluationResultRequest\x1a\x16.google.protobuf.Empty\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46*D/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*/results/*}\x12\xbc\x01\n\x17\x44\x65leteEvaluationDataset\x12\x37.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1beta/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\x12\xf8\x01\n\x13\x44\x65leteEvaluationRun\x12\x33.google.cloud.ces.v1beta.DeleteEvaluationRunRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\xca\x41=\n\x15google.protobuf.Empty\x12$DeleteEvaluationRunOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1beta/{name=projects/*/locations/*/apps/*/evaluationRuns/*}\x12\xae\x01\n\rGetEvaluation\x12-.google.cloud.ces.v1beta.GetEvaluationRequest\x1a#.google.cloud.ces.v1beta.Evaluation\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}\x12\xca\x01\n\x13GetEvaluationResult\x12\x33.google.cloud.ces.v1beta.GetEvaluationResultRequest\x1a).google.cloud.ces.v1beta.EvaluationResult\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*/results/*}\x12\xca\x01\n\x14GetEvaluationDataset\x12\x34.google.cloud.ces.v1beta.GetEvaluationDatasetRequest\x1a*.google.cloud.ces.v1beta.EvaluationDataset\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1beta/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\x12\xba\x01\n\x10GetEvaluationRun\x12\x30.google.cloud.ces.v1beta.GetEvaluationRunRequest\x1a&.google.cloud.ces.v1beta.EvaluationRun\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1beta/{name=projects/*/locations/*/apps/*/evaluationRuns/*}\x12\xc1\x01\n\x0fListEvaluations\x12/.google.cloud.ces.v1beta.ListEvaluationsRequest\x1a\x30.google.cloud.ces.v1beta.ListEvaluationsResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations\x12\xdd\x01\n\x15ListEvaluationResults\x12\x35.google.cloud.ces.v1beta.ListEvaluationResultsRequest\x1a\x36.google.cloud.ces.v1beta.ListEvaluationResultsResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta/{parent=projects/*/locations/*/apps/*/evaluations/*}/results\x12\xdd\x01\n\x16ListEvaluationDatasets\x12\x36.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest\x1a\x37.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationDatasets\x12\xcd\x01\n\x12ListEvaluationRuns\x12\x32.google.cloud.ces.v1beta.ListEvaluationRunsRequest\x1a\x33.google.cloud.ces.v1beta.ListEvaluationRunsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationRuns\x12\xed\x01\n\x1aListEvaluationExpectations\x12:.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest\x1a;.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationExpectations\x12\xda\x01\n\x18GetEvaluationExpectation\x12\x38.google.cloud.ces.v1beta.GetEvaluationExpectationRequest\x1a..google.cloud.ces.v1beta.EvaluationExpectation\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1beta/{name=projects/*/locations/*/apps/*/evaluationExpectations/*}\x12\xcc\x02\n\x1b\x43reateEvaluationExpectation\x12;.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest\x1a..google.cloud.ces.v1beta.EvaluationExpectation\"\xbf\x01\xda\x41\x37parent,evaluation_expectation,evaluation_expectation_id\xda\x41\x1dparent,evaluation_expectation\x82\xd3\xe4\x93\x02_\"E/v1beta/{parent=projects/*/locations/*/apps/*}/evaluationExpectations:\x16\x65valuation_expectation\x12\xae\x02\n\x1bUpdateEvaluationExpectation\x12;.google.cloud.ces.v1beta.UpdateEvaluationExpectationRequest\x1a..google.cloud.ces.v1beta.EvaluationExpectation\"\xa1\x01\xda\x41\"evaluation_expectation,update_mask\x82\xd3\xe4\x93\x02v2\\/v1beta/{evaluation_expectation.name=projects/*/locations/*/apps/*/evaluationExpectations/*}:\x16\x65valuation_expectation\x12\xc8\x01\n\x1b\x44\x65leteEvaluationExpectation\x12;.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G*E/v1beta/{name=projects/*/locations/*/apps/*/evaluationExpectations/*}\x12\xd8\x02\n\x1c\x43reateScheduledEvaluationRun\x12<.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest\x1a/.google.cloud.ces.v1beta.ScheduledEvaluationRun\"\xc8\x01\xda\x41;parent,scheduled_evaluation_run,scheduled_evaluation_run_id\xda\x41\x1fparent,scheduled_evaluation_run\x82\xd3\xe4\x93\x02\x62\"F/v1beta/{parent=projects/*/locations/*/apps/*}/scheduledEvaluationRuns:\x18scheduled_evaluation_run\x12\xde\x01\n\x19GetScheduledEvaluationRun\x12\x39.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest\x1a/.google.cloud.ces.v1beta.ScheduledEvaluationRun\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\x12\xf1\x01\n\x1bListScheduledEvaluationRuns\x12;.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest\x1a<.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{parent=projects/*/locations/*/apps/*}/scheduledEvaluationRuns\x12\xb8\x02\n\x1cUpdateScheduledEvaluationRun\x12<.google.cloud.ces.v1beta.UpdateScheduledEvaluationRunRequest\x1a/.google.cloud.ces.v1beta.ScheduledEvaluationRun\"\xa8\x01\xda\x41$scheduled_evaluation_run,update_mask\x82\xd3\xe4\x93\x02{2_/v1beta/{scheduled_evaluation_run.name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}:\x18scheduled_evaluation_run\x12\xcb\x01\n\x1c\x44\x65leteScheduledEvaluationRun\x12<.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1beta/{name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\x12\xc6\x01\n\x10TestPersonaVoice\x12\x30.google.cloud.ces.v1beta.TestPersonaVoiceRequest\x1a\x31.google.cloud.ces.v1beta.TestPersonaVoiceResponse\"M\xda\x41\x03\x61pp\x82\xd3\xe4\x93\x02\x41\"] # 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::V1beta::RetrieveToolsResponse] diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb index 144506d5272f..5b1c53902719 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb @@ -410,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). @@ -422,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::V1beta::RetrieveToolsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service_pb.rb index 408594d32e6a..58e685734750 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/tool_service_pb.rb @@ -9,13 +9,14 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/ces/v1beta/schema_pb' +require 'google/cloud/ces/v1beta/search_suggestions_pb' require 'google/cloud/ces/v1beta/session_service_pb' require 'google/cloud/ces/v1beta/tool_pb' require 'google/cloud/ces/v1beta/toolset_tool_pb' require 'google/protobuf/struct_pb' -descriptor_data = "\n*google/cloud/ces/v1beta/tool_service.proto\x12\x17google.cloud.ces.v1beta\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/v1beta/schema.proto\x1a-google/cloud/ces/v1beta/session_service.proto\x1a\"google/cloud/ces/v1beta/tool.proto\x1a*google/cloud/ces/v1beta/toolset_tool.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xb4\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\x41\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32$.google.cloud.ces.v1beta.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=\n\x0bmock_config\x18\x07 \x01(\x0b\x32#.google.cloud.ces.v1beta.MockConfigB\x03\xe0\x41\x01\x42\x11\n\x0ftool_identifierB\x18\n\x16tool_execution_context\"\xeb\x01\n\x13\x45xecuteToolResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12<\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32$.google.cloud.ces.v1beta.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\"\xd2\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\x41\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32$.google.cloud.ces.v1beta.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\"\x8a\x02\n\x1aRetrieveToolSchemaResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12<\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32$.google.cloud.ces.v1beta.ToolsetToolH\x00\x12\x35\n\x0cinput_schema\x18\x03 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.Schema\x12\x36\n\routput_schema\x18\x04 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.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\"E\n\x15RetrieveToolsResponse\x12,\n\x05tools\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ces.v1beta.Tool2\xbf\x05\n\x0bToolService\x12\xaf\x01\n\x0b\x45xecuteTool\x12+.google.cloud.ces.v1beta.ExecuteToolRequest\x1a,.google.cloud.ces.v1beta.ExecuteToolResponse\"E\x82\xd3\xe4\x93\x02?\":/v1beta/{parent=projects/*/locations/*/apps/*}:executeTool:\x01*\x12\xcb\x01\n\x12RetrieveToolSchema\x12\x32.google.cloud.ces.v1beta.RetrieveToolSchemaRequest\x1a\x33.google.cloud.ces.v1beta.RetrieveToolSchemaResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1beta/{parent=projects/*/locations/*/apps/*}:retrieveToolSchema:\x01*\x12\xc3\x01\n\rRetrieveTools\x12-.google.cloud.ces.v1beta.RetrieveToolsRequest\x1a..google.cloud.ces.v1beta.RetrieveToolsResponse\"S\x82\xd3\xe4\x93\x02M\"H/v1beta/{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-platformB`\n\x1b\x63om.google.cloud.ces.v1betaB\x10ToolServiceProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" +descriptor_data = "\n*google/cloud/ces/v1beta/tool_service.proto\x12\x17google.cloud.ces.v1beta\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/v1beta/schema.proto\x1a\x30google/cloud/ces/v1beta/search_suggestions.proto\x1a-google/cloud/ces/v1beta/session_service.proto\x1a\"google/cloud/ces/v1beta/tool.proto\x1a*google/cloud/ces/v1beta/toolset_tool.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xb4\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\x41\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32$.google.cloud.ces.v1beta.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=\n\x0bmock_config\x18\x07 \x01(\x0b\x32#.google.cloud.ces.v1beta.MockConfigB\x03\xe0\x41\x01\x42\x11\n\x0ftool_identifierB\x18\n\x16tool_execution_context\"\xf7\x02\n\x13\x45xecuteToolResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12<\n\x0ctoolset_tool\x18\x03 \x01(\x0b\x32$.google.cloud.ces.v1beta.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\x35\n\tcitations\x18\x05 \x01(\x0b\x32\".google.cloud.ces.v1beta.Citations\x12S\n\x19google_search_suggestions\x18\x06 \x01(\x0b\x32\x30.google.cloud.ces.v1beta.GoogleSearchSuggestionsB\x11\n\x0ftool_identifier\"\xd2\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\x41\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32$.google.cloud.ces.v1beta.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\"\x8a\x02\n\x1aRetrieveToolSchemaResponse\x12,\n\x04tool\x18\x01 \x01(\tB\x1c\xfa\x41\x19\n\x17\x63\x65s.googleapis.com/ToolH\x00\x12<\n\x0ctoolset_tool\x18\x02 \x01(\x0b\x32$.google.cloud.ces.v1beta.ToolsetToolH\x00\x12\x35\n\x0cinput_schema\x18\x03 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.Schema\x12\x36\n\routput_schema\x18\x04 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.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\"E\n\x15RetrieveToolsResponse\x12,\n\x05tools\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ces.v1beta.Tool2\xbf\x05\n\x0bToolService\x12\xaf\x01\n\x0b\x45xecuteTool\x12+.google.cloud.ces.v1beta.ExecuteToolRequest\x1a,.google.cloud.ces.v1beta.ExecuteToolResponse\"E\x82\xd3\xe4\x93\x02?\":/v1beta/{parent=projects/*/locations/*/apps/*}:executeTool:\x01*\x12\xcb\x01\n\x12RetrieveToolSchema\x12\x32.google.cloud.ces.v1beta.RetrieveToolSchemaRequest\x1a\x33.google.cloud.ces.v1beta.RetrieveToolSchemaResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1beta/{parent=projects/*/locations/*/apps/*}:retrieveToolSchema:\x01*\x12\xc3\x01\n\rRetrieveTools\x12-.google.cloud.ces.v1beta.RetrieveToolsRequest\x1a..google.cloud.ces.v1beta.RetrieveToolsResponse\"S\x82\xd3\xe4\x93\x02M\"H/v1beta/{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-platformB`\n\x1b\x63om.google.cloud.ces.v1betaB\x10ToolServiceProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/widget_tool_pb.rb b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/widget_tool_pb.rb index c1d65db3da9f..42cf420a2cce 100644 --- a/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +++ b/google-cloud-ces-v1beta/lib/google/cloud/ces/v1beta/widget_tool_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/struct_pb' -descriptor_data = "\n)google/cloud/ces/v1beta/widget_tool.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/cloud/ces/v1beta/python_function.proto\x1a$google/cloud/ces/v1beta/schema.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa9\x08\n\nWidgetTool\x12:\n\nparameters\x18\x04 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.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\x12H\n\x0bwidget_type\x18\x03 \x01(\x0e\x32..google.cloud.ces.v1beta.WidgetTool.WidgetTypeB\x03\xe0\x41\x01\x12/\n\tui_config\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12J\n\x0c\x64\x61ta_mapping\x18\x06 \x01(\x0b\x32/.google.cloud.ces.v1beta.WidgetTool.DataMappingB\x03\xe0\x41\x01\x1a\xb2\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\x42.google.cloud.ces.v1beta.WidgetTool.DataMapping.FieldMappingsEntryB\x03\xe0\x41\x01\x12\x45\n\x0fpython_function\x18\x05 \x01(\x0b\x32\'.google.cloud.ces.v1beta.PythonFunctionB\x03\xe0\x41\x01\x12G\n\x04mode\x18\x04 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.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\x05inputB_\n\x1b\x63om.google.cloud.ces.v1betaB\x0fWidgetToolProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" +descriptor_data = "\n)google/cloud/ces/v1beta/widget_tool.proto\x12\x17google.cloud.ces.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/cloud/ces/v1beta/python_function.proto\x1a$google/cloud/ces/v1beta/schema.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf4\n\n\nWidgetTool\x12:\n\nparameters\x18\x04 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.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\x12H\n\x0bwidget_type\x18\x03 \x01(\x0e\x32..google.cloud.ces.v1beta.WidgetTool.WidgetTypeB\x03\xe0\x41\x01\x12/\n\tui_config\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12J\n\x0c\x64\x61ta_mapping\x18\x06 \x01(\x0b\x32/.google.cloud.ces.v1beta.WidgetTool.DataMappingB\x03\xe0\x41\x01\x12Y\n\x14text_response_config\x18\x07 \x01(\x0b\x32\x36.google.cloud.ces.v1beta.WidgetTool.TextResponseConfigB\x03\xe0\x41\x01\x1a\xed\x01\n\x12TextResponseConfig\x12N\n\x04type\x18\x01 \x01(\x0e\x32;.google.cloud.ces.v1beta.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\xb2\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\x42.google.cloud.ces.v1beta.WidgetTool.DataMapping.FieldMappingsEntryB\x03\xe0\x41\x01\x12\x45\n\x0fpython_function\x18\x05 \x01(\x0b\x32\'.google.cloud.ces.v1beta.PythonFunctionB\x03\xe0\x41\x01\x12G\n\x04mode\x18\x04 \x01(\x0e\x32\x34.google.cloud.ces.v1beta.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\x05inputB_\n\x1b\x63om.google.cloud.ces.v1betaB\x0fWidgetToolProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -20,6 +20,8 @@ module Cloud module Ces module V1beta WidgetTool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.WidgetTool").msgclass + WidgetTool::TextResponseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.WidgetTool.TextResponseConfig").msgclass + WidgetTool::TextResponseConfig::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.WidgetTool.TextResponseConfig.Type").enummodule WidgetTool::DataMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.WidgetTool.DataMapping").msgclass WidgetTool::DataMapping::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode").enummodule WidgetTool::WidgetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.ces.v1beta.WidgetTool.WidgetType").enummodule diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent.rb index eb3052d88e25..a3e7ea2bfa89 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent.rb @@ -131,6 +131,10 @@ module V1beta # @return [::Array<::Google::Cloud::Ces::V1beta::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-v1beta/proto_docs/google/cloud/ces/v1beta/agent_card.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent_card.rb new file mode 100644 index 000000000000..66fb0ffa6ca8 --- /dev/null +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/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 V1beta + # 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::V1beta::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::V1beta::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::V1beta::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-v1beta/proto_docs/google/cloud/ces/v1beta/agent_service.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent_service.rb index 3c91c3421ffa..9290691ca595 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent_service.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/agent_service.rb @@ -1185,19 +1185,24 @@ class RestoreAppVersionResponse # The agent resource to be used by the LLM assistant, can be empty for # generating a new agent. # - # Note: The following fields are mutually exclusive: `agent`, `tool`, `toolset`. 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`, `toolset`, `app_version_context`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] tool # @return [::Google::Cloud::Ces::V1beta::Tool] # The tool resource to be used by the LLM assistant, can be empty for # generating a new tool. # - # Note: The following fields are mutually exclusive: `tool`, `agent`, `toolset`. 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: `tool`, `agent`, `toolset`, `app_version_context`. 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::V1beta::Toolset] # The toolset resource to be used by the LLM assistant, can be empty for # generating a new toolset. # - # Note: The following fields are mutually exclusive: `toolset`, `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: `toolset`, `agent`, `tool`, `app_version_context`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] app_version_context + # @return [::Google::Cloud::Ces::V1beta::GenerateAppResourceRequest::AppVersionContext] + # The app version context specifying the base snapshot and target agent. + # + # Note: The following fields are mutually exclusive: `app_version_context`, `agent`, `tool`, `toolset`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] parent # @return [::String] # Required. The resource name of the app to generate the resource for. @@ -1226,6 +1231,22 @@ class GenerateAppResourceRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + # The app version context specifying the base snapshot and target agent. + # @!attribute [rw] app_version + # @return [::String] + # The resource name of the app version to be used by the LLM assistant. + # Format: + # `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + # @!attribute [rw] agent_resource_name + # @return [::String] + # The resource name of the target agent to be used by the LLM assistant. + # Format: + # `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + class AppVersionContext + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The instructions to be used to refine a part of the resource. The part of # the resource can be specified with a start index, end index and a field # mask. For example, if you want to refine a part of the agent instructions diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/app.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/app.rb index 0c2e26b175b4..bc4fbb0dcbdc 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/app.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/app.rb @@ -112,6 +112,9 @@ module V1beta # @!attribute [rw] client_certificate_settings # @return [::Google::Cloud::Ces::V1beta::ClientCertificateSettings] # Optional. The default client certificate settings for the app. + # @!attribute [rw] vpc_sc_settings + # @return [::Google::Cloud::Ces::V1beta::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 @@ -124,6 +127,9 @@ module V1beta # @!attribute [rw] evaluation_settings # @return [::Google::Cloud::Ces::V1beta::EvaluationSettings] # Optional. The evaluation settings for the app. + # @!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 @@ -384,11 +390,20 @@ class MetricAnalysisSettings # Optional. Configuration for how sensitive data should be redacted. # @!attribute [rw] audio_recording_config # @return [::Google::Cloud::Ces::V1beta::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::V1beta::LoggingSettings#redaction_config RedactionConfig}. + # @!attribute [rw] unredacted_audio_recording_config + # @return [::Google::Cloud::Ces::V1beta::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::V1beta::RedactionConfig#enable_redaction enabled}, + # typically for auditing or monitoring purposes. # @!attribute [rw] bigquery_export_settings # @return [::Google::Cloud::Ces::V1beta::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::V1beta::LoggingSettings#redaction_config RedactionConfig}. # @!attribute [rw] cloud_logging_settings # @return [::Google::Cloud::Ces::V1beta::CloudLoggingSettings] # Optional. Settings to describe the Cloud Logging behaviors for the app. @@ -613,6 +628,13 @@ module HallucinationMetricBehavior # @return [::Google::Cloud::Ces::V1beta::EvaluationToolCallBehaviour] # Optional. Configures the default tool call behaviour for scenario # evaluations. + # @!attribute [rw] metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig] + # Optional. Configures the default metrics for evaluations. + # @!attribute [rw] scenario_execution_mode + # @return [::Google::Cloud::Ces::V1beta::EvaluationSettings::ScenarioExecutionMode] + # Optional. The execution mode for scenario evaluations. If not provided, + # will default to QUALITY_OPTIMIZED. class EvaluationSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -628,6 +650,18 @@ module ScenarioConversationInitiator # The agent starts the conversation. AGENT = 2 end + + # The execution mode for scenario evaluations. + module ScenarioExecutionMode + # Unspecified execution mode. Defaults to QUALITY_OPTIMIZED. + SCENARIO_EXECUTION_MODE_UNSPECIFIED = 0 + + # Quality optimized mode. + QUALITY_OPTIMIZED = 1 + + # Speed optimized mode. + SPEED_OPTIMIZED = 2 + end end # Settings for custom client certificates. @@ -651,6 +685,19 @@ 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] diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/conversation.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/conversation.rb index 2df90c55ee2f..a2b5bd8ccacd 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/conversation.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/conversation.rb @@ -131,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-v1beta/proto_docs/google/cloud/ces/v1beta/deployment.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/deployment.rb index fc8f4c7ede3b..c1c5ca0d6eb8 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/deployment.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/deployment.rb @@ -21,6 +21,64 @@ module Google module Cloud module Ces module V1beta + # Experiment for the deployment. + # @!attribute [rw] version_release + # @return [::Google::Cloud::Ces::V1beta::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::V1beta::ExperimentConfig::State] + # Optional. State of the version release. + # @!attribute [rw] traffic_allocations + # @return [::Array<::Google::Cloud::Ces::V1beta::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 + + # Pending state. Experiment is pending and not valid. + PENDING = 1 + + # Running state. Experiment is running and valid. + RUNNING = 2 + + # Done state. Experiment is done and no longer valid. + DONE = 3 + + # Expired state. Experiment is expired and no longer valid. + 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,6 +110,9 @@ module V1beta # 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::V1beta::ExperimentConfig] + # Optional. Experiment configuration for the deployment. class Deployment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation.rb index 47fe0326e86d..c21e5c694ce9 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation.rb @@ -209,6 +209,12 @@ class MetricsByTurn # Output only. The last 10 evaluation results for this evaluation. This is # only populated if include_last_ten_results is set to true in the # ListEvaluationsRequest or GetEvaluationRequest. + # @!attribute [rw] evaluation_metrics_threshold_override + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds] + # Optional. Overrides metrics thresholds for this specific evaluation. + # @!attribute [rw] evaluation_metrics_config_override + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig] + # Optional. Overrides metrics config for this specific evaluation. class Evaluation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -218,42 +224,63 @@ class Evaluation # @return [::Google::Cloud::Ces::V1beta::ToolCall] # Optional. Check that a specific tool was called with the parameters. # - # Note: The following fields are mutually exclusive: `tool_call`, `tool_response`, `agent_response`, `agent_transfer`, `updated_variables`, `mock_tool_response`. 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: `tool_call`, `tool_response`, `agent_response`, `agent_transfer`, `updated_variables`, `mock_tool_response`, `no_tool_calls`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] tool_response # @return [::Google::Cloud::Ces::V1beta::ToolResponse] # Optional. Check that a specific tool had the expected response. # - # Note: The following fields are mutually exclusive: `tool_response`, `tool_call`, `agent_response`, `agent_transfer`, `updated_variables`, `mock_tool_response`. 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: `tool_response`, `tool_call`, `agent_response`, `agent_transfer`, `updated_variables`, `mock_tool_response`, `no_tool_calls`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] agent_response # @return [::Google::Cloud::Ces::V1beta::Message] # Optional. Check that the agent responded with the correct response. The # role "agent" is implied. # - # Note: The following fields are mutually exclusive: `agent_response`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`, `mock_tool_response`. 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_response`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`, `mock_tool_response`, `no_tool_calls`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] agent_transfer # @return [::Google::Cloud::Ces::V1beta::AgentTransfer] # Optional. Check that the agent transferred the conversation to a # different agent. # - # Note: The following fields are mutually exclusive: `agent_transfer`, `tool_call`, `tool_response`, `agent_response`, `updated_variables`, `mock_tool_response`. 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_transfer`, `tool_call`, `tool_response`, `agent_response`, `updated_variables`, `mock_tool_response`, `no_tool_calls`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] updated_variables # @return [::Google::Protobuf::Struct] # Optional. Check that the agent updated the session variables to the # expected values. Used to also capture agent variable updates for golden # evals. # - # Note: The following fields are mutually exclusive: `updated_variables`, `tool_call`, `tool_response`, `agent_response`, `agent_transfer`, `mock_tool_response`. 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: `updated_variables`, `tool_call`, `tool_response`, `agent_response`, `agent_transfer`, `mock_tool_response`, `no_tool_calls`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] mock_tool_response # @return [::Google::Cloud::Ces::V1beta::ToolResponse] # Optional. The tool response to mock, with the parameters of interest # specified. Any parameters not specified will be hallucinated by the # LLM. # - # Note: The following fields are mutually exclusive: `mock_tool_response`, `tool_call`, `tool_response`, `agent_response`, `agent_transfer`, `updated_variables`. 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: `mock_tool_response`, `tool_call`, `tool_response`, `agent_response`, `agent_transfer`, `updated_variables`, `no_tool_calls`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] no_tool_calls + # @return [::Boolean] + # Optional. Check that no tools were called during this turn. + # + # Note: The following fields are mutually exclusive: `no_tool_calls`, `tool_call`, `tool_response`, `agent_response`, `agent_transfer`, `updated_variables`, `mock_tool_response`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] note # @return [::String] # Optional. A note for this requirement, useful in reporting when specific # checks fail. E.g., "Check_Payment_Tool_Called". + # @!attribute [rw] skip_evaluation + # @return [::Boolean] + # Optional. If set to true, this specific expectation will not be + # evaluated. + # @!attribute [rw] expectation_level_metrics_thresholds_override + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::GoldenEvaluationMetricsThresholds::ExpectationLevelMetricsThresholds] + # Optional. Overrides metrics at the step level. + # @!attribute [rw] agent_response_semantic_similarity_metrics_config_override + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::SemanticSimilarityMetricsConfig] + # Optional. Overrides for agent_response semantic similarity metrics. + # @!attribute [rw] agent_response_hallucination_metrics_config_override + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::HallucinationMetricsConfig] + # Optional. Overrides for agent_response hallucination metrics. + # @!attribute [rw] comparison_type + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ComparisonType] + # Optional. The comparison type to use for the expectation check. class GoldenExpectation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -287,7 +314,14 @@ class Step # @!attribute [rw] root_span # @return [::Google::Cloud::Ces::V1beta::Span] # Optional. The root span of the golden turn for processing and maintaining - # audio information. + # audio information. The uri for the audio must contain audio saved in + # 16Khz sample rate. + # @!attribute [rw] turn_level_metrics_thresholds_override + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::GoldenEvaluationMetricsThresholds::TurnLevelMetricsThresholds] + # Optional. Overrides for turn-level metric thresholds. + # @!attribute [rw] hallucination_metric_behavior_override + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::HallucinationMetricBehavior] + # Optional. Override for turn-level hallucination metric behavior. class GoldenTurn include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -297,6 +331,7 @@ class GoldenTurn # @!attribute [rw] turns # @return [::Array<::Google::Cloud::Ces::V1beta::Evaluation::GoldenTurn>] # Required. The golden turns required to replay a golden conversation. + # The maximum number of allowed turns is 100. # @!attribute [rw] evaluation_expectations # @return [::Array<::String>] # Optional. The evaluation expectations to evaluate the replayed @@ -348,8 +383,8 @@ class ToolExpectation # Optional. The user facts to be used by the scenario. # @!attribute [rw] max_turns # @return [::Integer] - # Optional. The maximum number of turns to simulate. If not specified, the - # simulation will continue until the task is complete. + # Optional. The maximum number of turns to simulate. The maximum allowed + # value is 100. The default value is 100. # @!attribute [rw] rubrics # @return [::Array<::String>] # Required. The rubrics to score the scenario against. @@ -378,6 +413,9 @@ class ToolExpectation # Optional. The evaluation expectations to evaluate the conversation # produced by the simulation against. Format: # `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}` + # @!attribute [rw] scenario_execution_mode + # @return [::Google::Cloud::Ces::V1beta::EvaluationSettings::ScenarioExecutionMode] + # Optional. The execution mode for scenario evaluations. class Scenario include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -555,22 +593,29 @@ class EvaluationResult # @return [::Google::Cloud::Ces::V1beta::ToolCall] # Output only. The result of the tool call expectation. # - # Note: The following fields are mutually exclusive: `observed_tool_call`, `observed_tool_response`, `observed_agent_response`, `observed_agent_transfer`. 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: `observed_tool_call`, `observed_tool_response`, `observed_agent_response`, `observed_agent_transfer`, `observed_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [r] observed_tool_response # @return [::Google::Cloud::Ces::V1beta::ToolResponse] # Output only. The result of the tool response expectation. # - # Note: The following fields are mutually exclusive: `observed_tool_response`, `observed_tool_call`, `observed_agent_response`, `observed_agent_transfer`. 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: `observed_tool_response`, `observed_tool_call`, `observed_agent_response`, `observed_agent_transfer`, `observed_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [r] observed_agent_response # @return [::Google::Cloud::Ces::V1beta::Message] # Output only. The result of the agent response expectation. # - # Note: The following fields are mutually exclusive: `observed_agent_response`, `observed_tool_call`, `observed_tool_response`, `observed_agent_transfer`. 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: `observed_agent_response`, `observed_tool_call`, `observed_tool_response`, `observed_agent_transfer`, `observed_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [r] observed_agent_transfer # @return [::Google::Cloud::Ces::V1beta::AgentTransfer] # Output only. The result of the agent transfer expectation. # - # Note: The following fields are mutually exclusive: `observed_agent_transfer`, `observed_tool_call`, `observed_tool_response`, `observed_agent_response`. 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: `observed_agent_transfer`, `observed_tool_call`, `observed_tool_response`, `observed_agent_response`, `observed_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] observed_payload + # @return [::Google::Protobuf::Struct] + # Output only. An observed custom payload. + # There are no expectations for custom payloads. This is only used for + # metrics calculation. The outcome is always SKIPPED. + # + # Note: The following fields are mutually exclusive: `observed_payload`, `observed_tool_call`, `observed_tool_response`, `observed_agent_response`, `observed_agent_transfer`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [r] expectation # @return [::Google::Cloud::Ces::V1beta::Evaluation::GoldenExpectation] # Output only. The expectation that was evaluated. @@ -989,6 +1034,9 @@ module ExecutionState # Evaluation result execution state is not specified. EXECUTION_STATE_UNSPECIFIED = 0 + # Evaluation result execution is queued. + QUEUED = 5 + # Evaluation result execution is running. RUNNING = 1 @@ -997,6 +1045,9 @@ module ExecutionState # Evaluation result execution failed due to an internal error. ERROR = 3 + + # Evaluation result execution was cancelled. + CANCELLED = 4 end end @@ -1098,6 +1149,11 @@ module ExecutionState # @!attribute [r] golden_run_method # @return [::Google::Cloud::Ces::V1beta::GoldenRunMethod] # Output only. The method used to run the evaluation. + # @!attribute [r] operation + # @return [::String] + # Output only. The operation that created this evaluation run. + # Format: + # `projects/{project}/locations/{location}/operations/{operation}` class EvaluationRun include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -1124,6 +1180,10 @@ class EvaluationRun # Output only. Number of completed evaluation results with an outcome of # PASS. (EvaluationResult.execution_state is COMPLETED and # EvaluationResult.evaluation_status is PASS). + # @!attribute [r] cancelled_count + # @return [::Integer] + # Output only. Number of evaluation results that were cancelled. + # (EvaluationResult.execution_state is CANCELLED). class Progress include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -1178,6 +1238,9 @@ module EvaluationRunState # Evaluation run state is not specified. EVALUATION_RUN_STATE_UNSPECIFIED = 0 + # Indicates the evaluation run is queued. + QUEUED = 5 + # Evaluation run is running. RUNNING = 1 @@ -1186,6 +1249,9 @@ module EvaluationRunState # The evaluation run has an error. ERROR = 3 + + # Evaluation run was cancelled. + CANCELLED = 4 end end @@ -1376,6 +1442,9 @@ module EvaluationChannel # @!attribute [r] session_id # @return [::String] # Output only. The session ID for the conversation that caused the error. + # @!attribute [r] user_facing_error_message + # @return [::String] + # Output only. The user facing error message. class EvaluationErrorInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb new file mode 100644 index 000000000000..28d57dfe8d6e --- /dev/null +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb @@ -0,0 +1,151 @@ +# 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 V1beta + # Configures the metrics for an evaluation. + # @!attribute [rw] golden_metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::GoldenMetricsConfig] + # Optional. Configuration for the golden metrics for the evaluation. + # @!attribute [rw] scenario_metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ScenarioMetricsConfig] + # Optional. Configuration for the scenario metrics for the evaluation. + class EvaluationMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Configuration for similarity metrics for the evaluation. + # To disable the metric, set the message but do not set the + # `enable_semantic_similarity_metrics` field to true (or explicitly set it to + # false). To unset the configuration and fallback to the default behavior, + # omit the message entirely. + # @!attribute [rw] enable_semantic_similarity_metrics + # @return [::Boolean] + # Optional. Whether to calculate semantic similarity metrics for the + # evaluation. + class SemanticSimilarityMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for correctness metrics for the evaluation. + # To disable the metric, set the message but do not set the + # `enable_tool_correctness_metrics` field to true (or explicitly set it to + # false). To unset the configuration and fallback to the default behavior, + # omit the message entirely. + # @!attribute [rw] enable_tool_correctness_metrics + # @return [::Boolean] + # Optional. Whether to calculate tool correctness metrics for the + # evaluation. + class ToolCorrectnessMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for the hallucination metrics for the evaluation. + # To disable the metric, set the message but do not set the + # `enable_hallucination_metrics` field to true (or explicitly set it to + # false). To unset the configuration and fallback to the default behavior, + # omit the message entirely. + # @!attribute [rw] enable_hallucination_metrics + # @return [::Boolean] + # Optional. Whether to calculate hallucination metrics for the evaluation. + class HallucinationMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for the user goal met metrics for the evaluation. + # To disable the metric, set the message but do not set the + # `enable_user_goal_met_metrics` field to true (or explicitly set it to + # false). To unset the configuration and fallback to the default behavior, + # omit the message entirely. + # @!attribute [rw] enable_user_goal_met_metrics + # @return [::Boolean] + # Optional. Whether to calculate the user goal met metrics for the + # evaluation. + class UserGoalMetMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for the expectation level metrics for the evaluation. + # To disable the metric, set the message but do not set the + # `enable_expectations_met_metrics` field to true (or explicitly set it to + # false). To unset the configuration and fallback to the default behavior, + # omit the message entirely. + # @!attribute [rw] enable_expectations_met_metrics + # @return [::Boolean] + # Optional. Whether to calculate the expectation level metrics for the + # evaluation. + class ExpectationsMetMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for the golden metrics for the evaluation. + # @!attribute [rw] semantic_similarity_metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::SemanticSimilarityMetricsConfig] + # Optional. Global configuration for semantic similarity metrics. + # @!attribute [rw] tool_correctness_metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ToolCorrectnessMetricsConfig] + # Optional. Configuration for turn level tool correctness metrics. + # @!attribute [rw] step_tool_correctness_metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ToolCorrectnessMetricsConfig] + # Optional. Configuration for step level tool correctness metrics. + class GoldenMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration for the scenario metrics for the evaluation. + # @!attribute [rw] user_goal_met_metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::UserGoalMetMetricsConfig] + # Optional. Configuration for user goal met metrics. + # @!attribute [rw] expectations_met_metrics_config + # @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ExpectationsMetMetricsConfig] + # Optional. Configuration for expectation level metrics. + class ScenarioMetricsConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Supported comparison types for checking the agent's response. + module ComparisonType + # Unspecified comparison type. Behavior defaults to SEMANTIC_SIMILARITY + # for agent responses and tool calls. + COMPARISON_TYPE_UNSPECIFIED = 0 + + # Exact string match. + EQUALS = 1 + + # Substring match (checks if the expected string is contained in the + # actual response). + CONTAINS = 2 + + # Semantic similarity match (evaluates meaning similarity using an LLM). + SEMANTIC_SIMILARITY = 3 + end + end + end + end + end +end diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb index e1a5558022c7..b828bab0506a 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb @@ -21,6 +21,28 @@ module Google module Cloud module Ces module V1beta + # Request message for + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#run_evaluation_result_metrics EvaluationService.RunEvaluationResultMetrics}. + # @!attribute [rw] evaluation_result_id + # @return [::String] + # Required. The evaluation result to run metrics for. + # Format: + # `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result_id}` + class RunEvaluationResultMetricsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#run_evaluation_result_metrics EvaluationService.RunEvaluationResultMetrics}. + # @!attribute [r] status + # @return [::Google::Cloud::Ces::V1beta::EvaluationResult::Outcome] + # Output only. The status of the evaluation result metrics calculation. + class RunEvaluationResultMetricsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Response message for # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#run_evaluation EvaluationService.RunEvaluation}. # @!attribute [rw] evaluation_run @@ -964,8 +986,26 @@ class FailedEvaluationsEntry end end + # Request message for + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_results EvaluationService.ExportEvaluationResults}. + # @!attribute [rw] parent + # @return [::String] + # Required. The resource name of the evaluation to export evaluation results + # from. Format: + # `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + # @!attribute [rw] names + # @return [::Array<::String>] + # Required. The resource names of the evaluation results to export. + # @!attribute [rw] export_options + # @return [::Google::Cloud::Ces::V1beta::ExportOptions] + # Optional. The export options for the evaluation results. + class ExportEvaluationResultsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Response message for - # [EvaluationService.ExportEvaluationResults][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults]. + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_results EvaluationService.ExportEvaluationResults}. # @!attribute [rw] evaluation_results_content # @return [::String] # The content of the exported Evaluation Results. This will be populated if @@ -984,8 +1024,25 @@ class ExportEvaluationResultsResponse extend ::Google::Protobuf::MessageExts::ClassMethods end + # Request message for + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_runs EvaluationService.ExportEvaluationRuns}. + # @!attribute [rw] parent + # @return [::String] + # Required. The resource name of the app to export evaluation runs from. + # Format: `projects/{project}/locations/{location}/apps/{app}` + # @!attribute [rw] names + # @return [::Array<::String>] + # Required. The resource names of the evaluation runs to export. + # @!attribute [rw] export_options + # @return [::Google::Cloud::Ces::V1beta::ExportOptions] + # Optional. The export options for the evaluation runs. + class ExportEvaluationRunsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Response message for - # [EvaluationService.ExportEvaluationRuns][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns]. + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_runs EvaluationService.ExportEvaluationRuns}. # @!attribute [rw] evaluation_runs_content # @return [::String] # The content of the exported Evaluation Runs. This will be populated if @@ -1003,6 +1060,27 @@ class ExportEvaluationRunsResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # Operation metadata for + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_runs EvaluationService.ExportEvaluationRuns}. + class ExportEvaluationRunsOperationMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Operation metadata for + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_results EvaluationService.ExportEvaluationResults}. + class ExportEvaluationResultsOperationMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Operation metadata for + # {::Google::Cloud::Ces::V1beta::EvaluationService::Client#run_evaluation_result_metrics EvaluationService.RunEvaluationResultMetrics}. + class RunEvaluationResultMetricsOperationMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end end end diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb index 3a38b2959b4f..46c6ac1df076 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb @@ -27,6 +27,10 @@ module V1beta # @!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 V1beta # 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::V1beta::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-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb index 94c5a6fa8b83..c2673b2839d2 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb @@ -52,6 +52,11 @@ module V1beta # 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::V1beta::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::V1beta::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::V1beta::Schema] + # Output only. The schema of the input arguments of the MCP tool. + # @!attribute [r] output_schema + # @return [::Google::Cloud::Ces::V1beta::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-v1beta/proto_docs/google/cloud/ces/v1beta/python_function.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/python_function.rb index 4d1b8c3957c0..a3178c54e15b 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/python_function.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/python_function.rb @@ -34,6 +34,9 @@ module V1beta # @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::V1beta::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-v1beta/proto_docs/google/cloud/ces/v1beta/session_service.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/session_service.rb index d65be8feb814..8bf6c2976597 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/session_service.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/session_service.rb @@ -207,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 diff --git a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/tool.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/tool.rb index 90086f0679b2..f2435d73822d 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/tool.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/tool.rb @@ -27,58 +27,63 @@ module V1beta # @return [::Google::Cloud::Ces::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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 V1beta # @!attribute [rw] execution_type # @return [::Google::Cloud::Ces::V1beta::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-v1beta/proto_docs/google/cloud/ces/v1beta/tool_service.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/tool_service.rb index 23c1d7ee1dbd..01584c536336 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/tool_service.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/tool_service.rb @@ -88,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::V1beta::Citations] + # Citations that provide the source information for the tool's execution. + # @!attribute [rw] google_search_suggestions + # @return [::Google::Cloud::Ces::V1beta::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 @@ -153,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-v1beta/proto_docs/google/cloud/ces/v1beta/widget_tool.rb b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/widget_tool.rb index 74b728e7ccb7..40d4a164da67 100644 --- a/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/widget_tool.rb +++ b/google-cloud-ces-v1beta/proto_docs/google/cloud/ces/v1beta/widget_tool.rb @@ -45,10 +45,46 @@ module V1beta # @return [::Google::Cloud::Ces::V1beta::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::V1beta::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::V1beta::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-v1beta/snippets/evaluation_service/export_evaluation_results.rb b/google-cloud-ces-v1beta/snippets/evaluation_service/export_evaluation_results.rb new file mode 100644 index 000000000000..305a7c987fc2 --- /dev/null +++ b/google-cloud-ces-v1beta/snippets/evaluation_service/export_evaluation_results.rb @@ -0,0 +1,54 @@ +# 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! + +# [START ces_v1beta_generated_EvaluationService_ExportEvaluationResults_sync] +require "google/cloud/ces/v1beta" + +## +# Snippet for the export_evaluation_results call in the EvaluationService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_results. +# +def export_evaluation_results + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Ces::V1beta::EvaluationService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest.new + + # Call the export_evaluation_results method. + result = client.export_evaluation_results request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END ces_v1beta_generated_EvaluationService_ExportEvaluationResults_sync] diff --git a/google-cloud-ces-v1beta/snippets/evaluation_service/export_evaluation_runs.rb b/google-cloud-ces-v1beta/snippets/evaluation_service/export_evaluation_runs.rb new file mode 100644 index 000000000000..9ce588f0513a --- /dev/null +++ b/google-cloud-ces-v1beta/snippets/evaluation_service/export_evaluation_runs.rb @@ -0,0 +1,54 @@ +# 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! + +# [START ces_v1beta_generated_EvaluationService_ExportEvaluationRuns_sync] +require "google/cloud/ces/v1beta" + +## +# Snippet for the export_evaluation_runs call in the EvaluationService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_runs. +# +def export_evaluation_runs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Ces::V1beta::EvaluationService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest.new + + # Call the export_evaluation_runs method. + result = client.export_evaluation_runs request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END ces_v1beta_generated_EvaluationService_ExportEvaluationRuns_sync] diff --git a/google-cloud-ces-v1beta/snippets/evaluation_service/run_evaluation_result_metrics.rb b/google-cloud-ces-v1beta/snippets/evaluation_service/run_evaluation_result_metrics.rb new file mode 100644 index 000000000000..ee7799649d42 --- /dev/null +++ b/google-cloud-ces-v1beta/snippets/evaluation_service/run_evaluation_result_metrics.rb @@ -0,0 +1,54 @@ +# 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! + +# [START ces_v1beta_generated_EvaluationService_RunEvaluationResultMetrics_sync] +require "google/cloud/ces/v1beta" + +## +# Snippet for the run_evaluation_result_metrics call in the EvaluationService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Ces::V1beta::EvaluationService::Client#run_evaluation_result_metrics. +# +def run_evaluation_result_metrics + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Ces::V1beta::EvaluationService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest.new + + # Call the run_evaluation_result_metrics method. + result = client.run_evaluation_result_metrics request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END ces_v1beta_generated_EvaluationService_RunEvaluationResultMetrics_sync] diff --git a/google-cloud-ces-v1beta/snippets/snippet_metadata_google.cloud.ces.v1beta.json b/google-cloud-ces-v1beta/snippets/snippet_metadata_google.cloud.ces.v1beta.json index e0dc75eda289..ea7c3ee5744f 100644 --- a/google-cloud-ces-v1beta/snippets/snippet_metadata_google.cloud.ces.v1beta.json +++ b/google-cloud-ces-v1beta/snippets/snippet_metadata_google.cloud.ces.v1beta.json @@ -3451,6 +3451,126 @@ } ] }, + { + "region_tag": "ces_v1beta_generated_EvaluationService_ExportEvaluationRuns_sync", + "title": "Snippet for the export_evaluation_runs call in the EvaluationService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_runs.", + "file": "evaluation_service/export_evaluation_runs.rb", + "language": "RUBY", + "client_method": { + "short_name": "export_evaluation_runs", + "full_name": "::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_runs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "EvaluationService::Client", + "full_name": "::Google::Cloud::Ces::V1beta::EvaluationService::Client" + }, + "method": { + "short_name": "ExportEvaluationRuns", + "full_name": "google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns", + "service": { + "short_name": "EvaluationService", + "full_name": "google.cloud.ces.v1beta.EvaluationService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "ces_v1beta_generated_EvaluationService_ExportEvaluationResults_sync", + "title": "Snippet for the export_evaluation_results call in the EvaluationService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_results.", + "file": "evaluation_service/export_evaluation_results.rb", + "language": "RUBY", + "client_method": { + "short_name": "export_evaluation_results", + "full_name": "::Google::Cloud::Ces::V1beta::EvaluationService::Client#export_evaluation_results", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "EvaluationService::Client", + "full_name": "::Google::Cloud::Ces::V1beta::EvaluationService::Client" + }, + "method": { + "short_name": "ExportEvaluationResults", + "full_name": "google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults", + "service": { + "short_name": "EvaluationService", + "full_name": "google.cloud.ces.v1beta.EvaluationService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "ces_v1beta_generated_EvaluationService_RunEvaluationResultMetrics_sync", + "title": "Snippet for the run_evaluation_result_metrics call in the EvaluationService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Ces::V1beta::EvaluationService::Client#run_evaluation_result_metrics.", + "file": "evaluation_service/run_evaluation_result_metrics.rb", + "language": "RUBY", + "client_method": { + "short_name": "run_evaluation_result_metrics", + "full_name": "::Google::Cloud::Ces::V1beta::EvaluationService::Client#run_evaluation_result_metrics", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "EvaluationService::Client", + "full_name": "::Google::Cloud::Ces::V1beta::EvaluationService::Client" + }, + "method": { + "short_name": "RunEvaluationResultMetrics", + "full_name": "google.cloud.ces.v1beta.EvaluationService.RunEvaluationResultMetrics", + "service": { + "short_name": "EvaluationService", + "full_name": "google.cloud.ces.v1beta.EvaluationService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, { "region_tag": "ces_v1beta_generated_ToolService_ExecuteTool_sync", "title": "Snippet for the execute_tool call in the ToolService service", diff --git a/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_rest_test.rb b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_rest_test.rb index 942003554c7c..5d266592e5a2 100644 --- a/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_rest_test.rb +++ b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_rest_test.rb @@ -1872,6 +1872,172 @@ def test_export_evaluations end end + def test_export_evaluation_runs + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + export_options = {} + + export_evaluation_runs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Ces::V1beta::EvaluationService::Rest::ServiceStub.stub :transcode_export_evaluation_runs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, export_evaluation_runs_client_stub do + # Create client + client = ::Google::Cloud::Ces::V1beta::EvaluationService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.export_evaluation_runs({ parent: parent, names: names, export_options: export_options }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.export_evaluation_runs parent: parent, names: names, export_options: export_options do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.export_evaluation_runs ::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest.new(parent: parent, names: names, export_options: export_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.export_evaluation_runs({ parent: parent, names: names, export_options: export_options }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.export_evaluation_runs(::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest.new(parent: parent, names: names, export_options: export_options), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, export_evaluation_runs_client_stub.call_count + end + end + end + + def test_export_evaluation_results + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + export_options = {} + + export_evaluation_results_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Ces::V1beta::EvaluationService::Rest::ServiceStub.stub :transcode_export_evaluation_results_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, export_evaluation_results_client_stub do + # Create client + client = ::Google::Cloud::Ces::V1beta::EvaluationService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.export_evaluation_results({ parent: parent, names: names, export_options: export_options }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.export_evaluation_results parent: parent, names: names, export_options: export_options do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.export_evaluation_results ::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest.new(parent: parent, names: names, export_options: export_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.export_evaluation_results({ parent: parent, names: names, export_options: export_options }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.export_evaluation_results(::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest.new(parent: parent, names: names, export_options: export_options), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, export_evaluation_results_client_stub.call_count + end + end + end + + def test_run_evaluation_result_metrics + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + evaluation_result_id = "hello world" + + run_evaluation_result_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Ces::V1beta::EvaluationService::Rest::ServiceStub.stub :transcode_run_evaluation_result_metrics_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, run_evaluation_result_metrics_client_stub do + # Create client + client = ::Google::Cloud::Ces::V1beta::EvaluationService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.run_evaluation_result_metrics({ evaluation_result_id: evaluation_result_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.run_evaluation_result_metrics evaluation_result_id: evaluation_result_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.run_evaluation_result_metrics ::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest.new(evaluation_result_id: evaluation_result_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.run_evaluation_result_metrics({ evaluation_result_id: evaluation_result_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.run_evaluation_result_metrics(::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest.new(evaluation_result_id: evaluation_result_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, run_evaluation_result_metrics_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_test.rb b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_test.rb index 6ab6d38bd361..021883c5e66d 100644 --- a/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_test.rb +++ b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/evaluation_service_test.rb @@ -2108,6 +2108,203 @@ def test_export_evaluations end end + def test_export_evaluation_runs + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + export_options = {} + + export_evaluation_runs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :export_evaluation_runs, name + assert_kind_of ::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest, request + assert_equal "hello world", request["parent"] + assert_equal ["hello world"], request["names"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Ces::V1beta::ExportOptions), request["export_options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, export_evaluation_runs_client_stub do + # Create client + client = ::Google::Cloud::Ces::V1beta::EvaluationService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.export_evaluation_runs({ parent: parent, names: names, export_options: export_options }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.export_evaluation_runs parent: parent, names: names, export_options: export_options do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.export_evaluation_runs ::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest.new(parent: parent, names: names, export_options: export_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.export_evaluation_runs({ parent: parent, names: names, export_options: export_options }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.export_evaluation_runs(::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest.new(parent: parent, names: names, export_options: export_options), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, export_evaluation_runs_client_stub.call_rpc_count + end + end + + def test_export_evaluation_results + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + export_options = {} + + export_evaluation_results_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :export_evaluation_results, name + assert_kind_of ::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest, request + assert_equal "hello world", request["parent"] + assert_equal ["hello world"], request["names"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Ces::V1beta::ExportOptions), request["export_options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, export_evaluation_results_client_stub do + # Create client + client = ::Google::Cloud::Ces::V1beta::EvaluationService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.export_evaluation_results({ parent: parent, names: names, export_options: export_options }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.export_evaluation_results parent: parent, names: names, export_options: export_options do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.export_evaluation_results ::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest.new(parent: parent, names: names, export_options: export_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.export_evaluation_results({ parent: parent, names: names, export_options: export_options }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.export_evaluation_results(::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest.new(parent: parent, names: names, export_options: export_options), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, export_evaluation_results_client_stub.call_rpc_count + end + end + + def test_run_evaluation_result_metrics + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + evaluation_result_id = "hello world" + + run_evaluation_result_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :run_evaluation_result_metrics, name + assert_kind_of ::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest, request + assert_equal "hello world", request["evaluation_result_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, run_evaluation_result_metrics_client_stub do + # Create client + client = ::Google::Cloud::Ces::V1beta::EvaluationService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.run_evaluation_result_metrics({ evaluation_result_id: evaluation_result_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.run_evaluation_result_metrics evaluation_result_id: evaluation_result_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.run_evaluation_result_metrics ::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest.new(evaluation_result_id: evaluation_result_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.run_evaluation_result_metrics({ evaluation_result_id: evaluation_result_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.run_evaluation_result_metrics(::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest.new(evaluation_result_id: evaluation_result_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, run_evaluation_result_metrics_client_stub.call_rpc_count + end + end + def test_configure grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure diff --git a/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/tool_service_rest_test.rb b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/tool_service_rest_test.rb index 90d6815bac5a..07aa71523536 100644 --- a/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/tool_service_rest_test.rb +++ b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/tool_service_rest_test.rb @@ -201,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" @@ -216,27 +217,27 @@ def test_retrieve_tools end # Use hash object - client.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }) do |_result, response| + client.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 - client.retrieve_tools toolset: toolset, tool_ids: tool_ids do |_result, response| + client.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 - client.retrieve_tools ::Google::Cloud::Ces::V1beta::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids) do |_result, response| + client.retrieve_tools ::Google::Cloud::Ces::V1beta::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 - client.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }, call_options) do |_result, response| + client.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 - client.retrieve_tools(::Google::Cloud::Ces::V1beta::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids), call_options) do |_result, response| + client.retrieve_tools(::Google::Cloud::Ces::V1beta::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-v1beta/test/google/cloud/ces/v1beta/tool_service_test.rb b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/tool_service_test.rb index 6ce0f5ec78e1..be227e6c59fb 100644 --- a/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/tool_service_test.rb +++ b/google-cloud-ces-v1beta/test/google/cloud/ces/v1beta/tool_service_test.rb @@ -202,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::V1beta::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 @@ -218,31 +220,31 @@ def test_retrieve_tools end # Use hash object - client.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }) do |response, operation| + client.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 - client.retrieve_tools toolset: toolset, tool_ids: tool_ids do |response, operation| + client.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 - client.retrieve_tools ::Google::Cloud::Ces::V1beta::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids) do |response, operation| + client.retrieve_tools ::Google::Cloud::Ces::V1beta::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 - client.retrieve_tools({ toolset: toolset, tool_ids: tool_ids }, grpc_options) do |response, operation| + client.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 - client.retrieve_tools(::Google::Cloud::Ces::V1beta::RetrieveToolsRequest.new(toolset: toolset, tool_ids: tool_ids), grpc_options) do |response, operation| + client.retrieve_tools(::Google::Cloud::Ces::V1beta::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