google-cloud-discovery_engine-v1 2.13.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +8 -10
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/client.rb +591 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/paths.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest/client.rb +534 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/client.rb +528 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1/assistant_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/client.rb +493 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/service_stub.rb +307 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/client.rb +732 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest/client.rb +668 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest/operations.rb +1168 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest/service_stub.rb +265 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +162 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/credentials.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1/completion_service/paths.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +155 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +78 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +37 -9
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +37 -9
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/client.rb +779 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/credentials.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/paths.rb +227 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/client.rb +715 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/operations.rb +1168 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/service_stub.rb +274 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +215 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +201 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +138 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +0 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +0 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +218 -3
- data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +204 -3
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +123 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/client.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/client.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/client.rb +1044 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/paths.rb +86 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/rest/client.rb +959 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/rest/service_stub.rb +451 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/project_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/rank_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/rest.rb +8 -2
- data/lib/google/cloud/discovery_engine/v1/schema_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +14 -2
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +14 -2
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/client.rb +408 -3
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/client.rb +380 -3
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/service_stub.rb +303 -0
- data/lib/google/cloud/discovery_engine/v1/session_service/client.rb +25 -9
- data/lib/google/cloud/discovery_engine/v1/session_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1/session_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/session_service/rest/client.rb +25 -9
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/client.rb +124 -7
- data/lib/google/cloud/discovery_engine/v1/user_license_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/client.rb +117 -7
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/service_stub.rb +61 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/client.rb +590 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/paths.rb +71 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/rest/client.rb +533 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/client.rb +624 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/credentials.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/paths.rb +101 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest/client.rb +567 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest/service_stub.rb +234 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1.rb +9 -3
- data/lib/google/cloud/discoveryengine/v1/acl_config_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/acl_config_service_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1/acl_config_service_services_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/agent_gateway_setting_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/assist_answer_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/assistant_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/assistant_service_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1/assistant_service_services_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1/chunk_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/cmek_config_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/cmek_config_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/collection_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/collection_service_pb.rb +32 -0
- data/lib/google/cloud/discoveryengine/v1/collection_service_services_pb.rb +65 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +16 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/control_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/control_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/data_connector_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1/data_connector_service_pb.rb +32 -0
- data/lib/google/cloud/discoveryengine/v1/data_connector_service_services_pb.rb +58 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +10 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +20 -1
- data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +23 -4
- data/lib/google/cloud/discoveryengine/v1/feedback_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/license_config_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1/license_config_service_pb.rb +36 -0
- data/lib/google/cloud/discoveryengine/v1/license_config_service_services_pb.rb +63 -0
- data/lib/google/cloud/discoveryengine/v1/logging_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1/project_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1/project_service_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/project_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/rank_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/rank_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/recommendation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/recommendation_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/schema_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_tuning_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_tuning_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/serving_config_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/serving_config_service_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/serving_config_service_services_pb.rb +21 -1
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/session_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/session_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_license_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/user_license_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/user_license_service_services_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/user_store_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1/user_store_service_pb.rb +29 -0
- data/lib/google/cloud/discoveryengine/v1/user_store_service_services_pb.rb +47 -0
- data/lib/google/cloud/discoveryengine/v1/widget_config_pb.rb +63 -0
- data/lib/google/cloud/discoveryengine/v1/widget_config_service_pb.rb +30 -0
- data/lib/google/cloud/discoveryengine/v1/widget_config_service_services_pb.rb +48 -0
- data/proto_docs/google/cloud/discoveryengine/v1/acl_config.rb +43 -0
- data/proto_docs/google/cloud/discoveryengine/v1/acl_config_service.rb +49 -0
- data/proto_docs/google/cloud/discoveryengine/v1/agent_gateway_setting.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb +164 -1
- data/proto_docs/google/cloud/discoveryengine/v1/assistant.rb +217 -0
- data/proto_docs/google/cloud/discoveryengine/v1/assistant_service.rb +179 -6
- data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +4 -0
- data/proto_docs/google/cloud/discoveryengine/v1/cmek_config_service.rb +7 -2
- data/proto_docs/google/cloud/discoveryengine/v1/collection.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1/collection_service.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +201 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +320 -4
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +31 -8
- data/proto_docs/google/cloud/discoveryengine/v1/data_connector.rb +875 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_connector_service.rb +142 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +179 -2
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +9 -4
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +7 -0
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +251 -1
- data/proto_docs/google/cloud/discoveryengine/v1/feedback.rb +165 -0
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +107 -0
- data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store_service.rb +1 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +6 -4
- data/proto_docs/google/cloud/discoveryengine/v1/license_config.rb +107 -0
- data/proto_docs/google/cloud/discoveryengine/v1/license_config_service.rb +220 -0
- data/proto_docs/google/cloud/discoveryengine/v1/logging.rb +40 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project.rb +229 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project_service.rb +18 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +2 -1
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +7 -1
- data/proto_docs/google/cloud/discoveryengine/v1/serving_config.rb +43 -0
- data/proto_docs/google/cloud/discoveryengine/v1/serving_config_service.rb +71 -0
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +9 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +16 -6
- data/proto_docs/google/cloud/discoveryengine/v1/user_license.rb +16 -1
- data/proto_docs/google/cloud/discoveryengine/v1/user_license_service.rb +53 -6
- data/proto_docs/google/cloud/discoveryengine/v1/user_store.rb +66 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_store_service.rb +54 -0
- data/proto_docs/google/cloud/discoveryengine/v1/widget_config.rb +1082 -0
- data/proto_docs/google/cloud/discoveryengine/v1/widget_config_service.rb +102 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/type/date.rb +1 -1
- data/proto_docs/google/type/datetime.rb +104 -0
- data/proto_docs/google/type/expr.rb +75 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +103 -1
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# [AssistResponse][google.cloud.discoveryengine.v1.AssistResponse].
|
|
26
26
|
# @!attribute [rw] name
|
|
27
27
|
# @return [::String]
|
|
28
|
-
# Immutable. Resource name of the `AssistAnswer`.
|
|
28
|
+
# Immutable. Identifier. Resource name of the `AssistAnswer`.
|
|
29
29
|
# Format:
|
|
30
30
|
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
|
|
31
31
|
#
|
|
@@ -34,12 +34,25 @@ module Google
|
|
|
34
34
|
# @!attribute [rw] state
|
|
35
35
|
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::State]
|
|
36
36
|
# State of the answer generation.
|
|
37
|
+
# @!attribute [r] connector_display_names
|
|
38
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
39
|
+
# Output only. Maps an internal connector agent name (the machine identifier
|
|
40
|
+
# embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
|
|
41
|
+
# connector's human-readable display name. Populated at serving time for
|
|
42
|
+
# custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
|
|
43
|
+
# tool-call chip) can show the connector name instead of its internal
|
|
44
|
+
# identifier. Empty when there are no such connectors.
|
|
37
45
|
# @!attribute [rw] replies
|
|
38
46
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::Reply>]
|
|
39
47
|
# Replies of the assistant.
|
|
40
48
|
# @!attribute [rw] assist_skipped_reasons
|
|
41
49
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::AssistSkippedReason>]
|
|
42
50
|
# Reasons for not answering the assist call.
|
|
51
|
+
# @!attribute [rw] customer_policy_enforcement_result
|
|
52
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult]
|
|
53
|
+
# Optional. The field contains information about the various policy checks'
|
|
54
|
+
# results like the banned phrases or the Model Armor checks. This field is
|
|
55
|
+
# populated only if the assist call was skipped due to a policy violation.
|
|
43
56
|
class AssistAnswer
|
|
44
57
|
include ::Google::Protobuf::MessageExts
|
|
45
58
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -48,11 +61,113 @@ module Google
|
|
|
48
61
|
# @!attribute [rw] grounded_content
|
|
49
62
|
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent]
|
|
50
63
|
# Possibly grounded response text or media from the assistant.
|
|
64
|
+
# @!attribute [rw] create_time
|
|
65
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
66
|
+
# The time when the reply was created.
|
|
51
67
|
class Reply
|
|
52
68
|
include ::Google::Protobuf::MessageExts
|
|
53
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
54
70
|
end
|
|
55
71
|
|
|
72
|
+
# Customer policy enforcement results. Contains the results of the various
|
|
73
|
+
# policy checks, like the banned phrases or the Model Armor checks.
|
|
74
|
+
# @!attribute [rw] verdict
|
|
75
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::Verdict]
|
|
76
|
+
# Final verdict of the customer policy enforcement. If only one policy
|
|
77
|
+
# blocked the processing, the verdict is BLOCK.
|
|
78
|
+
# @!attribute [rw] policy_results
|
|
79
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult>]
|
|
80
|
+
# Customer policy enforcement results.
|
|
81
|
+
# Populated only if the assist call was skipped due to a policy
|
|
82
|
+
# violation. It contains results from those filters that blocked the
|
|
83
|
+
# processing of the query.
|
|
84
|
+
# @!attribute [r] violation_source
|
|
85
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::ViolationSource]
|
|
86
|
+
# Output only. The source of the violation.
|
|
87
|
+
class CustomerPolicyEnforcementResult
|
|
88
|
+
include ::Google::Protobuf::MessageExts
|
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
90
|
+
|
|
91
|
+
# Customer policy enforcement result for the banned phrase policy.
|
|
92
|
+
# @!attribute [rw] banned_phrases
|
|
93
|
+
# @return [::Array<::String>]
|
|
94
|
+
# The banned phrases that were found in the query or the answer.
|
|
95
|
+
class BannedPhraseEnforcementResult
|
|
96
|
+
include ::Google::Protobuf::MessageExts
|
|
97
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Customer policy enforcement result for the Model Armor policy.
|
|
101
|
+
# @!attribute [rw] model_armor_violation
|
|
102
|
+
# @return [::String]
|
|
103
|
+
# The Model Armor violation that was found.
|
|
104
|
+
#
|
|
105
|
+
# Note: The following fields are mutually exclusive: `model_armor_violation`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
106
|
+
# @!attribute [rw] error
|
|
107
|
+
# @return [::Google::Rpc::Status]
|
|
108
|
+
# The error returned by Model Armor if the policy enforcement failed
|
|
109
|
+
# for some reason.
|
|
110
|
+
#
|
|
111
|
+
# Note: The following fields are mutually exclusive: `error`, `model_armor_violation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
112
|
+
class ModelArmorEnforcementResult
|
|
113
|
+
include ::Google::Protobuf::MessageExts
|
|
114
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Customer policy enforcement result for a single policy type.
|
|
118
|
+
# @!attribute [rw] banned_phrase_enforcement_result
|
|
119
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult]
|
|
120
|
+
# The policy enforcement result for the banned phrase policy.
|
|
121
|
+
#
|
|
122
|
+
# Note: The following fields are mutually exclusive: `banned_phrase_enforcement_result`, `model_armor_enforcement_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
123
|
+
# @!attribute [rw] model_armor_enforcement_result
|
|
124
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult]
|
|
125
|
+
# The policy enforcement result for the Model Armor policy.
|
|
126
|
+
#
|
|
127
|
+
# Note: The following fields are mutually exclusive: `model_armor_enforcement_result`, `banned_phrase_enforcement_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
128
|
+
class PolicyEnforcementResult
|
|
129
|
+
include ::Google::Protobuf::MessageExts
|
|
130
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# The verdict of the customer policy enforcement.
|
|
134
|
+
module Verdict
|
|
135
|
+
# Unknown value.
|
|
136
|
+
UNSPECIFIED = 0
|
|
137
|
+
|
|
138
|
+
# There was no policy violation.
|
|
139
|
+
ALLOW = 1
|
|
140
|
+
|
|
141
|
+
# Processing was blocked by the customer policy.
|
|
142
|
+
BLOCK = 2
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# If the assist call was skipped due to a policy violation, this contains
|
|
146
|
+
# the source of the violation.
|
|
147
|
+
module ViolationSource
|
|
148
|
+
# Unknown value.
|
|
149
|
+
VIOLATION_SOURCE_UNSPECIFIED = 0
|
|
150
|
+
|
|
151
|
+
# Violation found in the system response.
|
|
152
|
+
SYSTEM = 1
|
|
153
|
+
|
|
154
|
+
# Violation found in the user prompt.
|
|
155
|
+
PROMPT = 2
|
|
156
|
+
|
|
157
|
+
# Violation found in the user attachment.
|
|
158
|
+
ATTACHMENT = 3
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# @!attribute [rw] key
|
|
163
|
+
# @return [::String]
|
|
164
|
+
# @!attribute [rw] value
|
|
165
|
+
# @return [::String]
|
|
166
|
+
class ConnectorDisplayNamesEntry
|
|
167
|
+
include ::Google::Protobuf::MessageExts
|
|
168
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
169
|
+
end
|
|
170
|
+
|
|
56
171
|
# State of the answer generation.
|
|
57
172
|
module State
|
|
58
173
|
# Unknown.
|
|
@@ -69,6 +184,10 @@ module Google
|
|
|
69
184
|
|
|
70
185
|
# Assist operation has been skipped.
|
|
71
186
|
SKIPPED = 4
|
|
187
|
+
|
|
188
|
+
# Assist operation has been cancelled (e.g. client closed the stream).
|
|
189
|
+
# May contain a partial response.
|
|
190
|
+
CANCELLED = 5
|
|
72
191
|
end
|
|
73
192
|
|
|
74
193
|
# Possible reasons for not answering an assist call.
|
|
@@ -197,6 +316,10 @@ module Google
|
|
|
197
316
|
# @!attribute [rw] content
|
|
198
317
|
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistantContent]
|
|
199
318
|
# The content.
|
|
319
|
+
# @!attribute [rw] citation_metadata
|
|
320
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::CitationMetadata]
|
|
321
|
+
# Source attribution of the generated content. See also
|
|
322
|
+
# https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
|
|
200
323
|
class AssistantGroundedContent
|
|
201
324
|
include ::Google::Protobuf::MessageExts
|
|
202
325
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -205,6 +328,9 @@ module Google
|
|
|
205
328
|
# @!attribute [rw] segments
|
|
206
329
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Segment>]
|
|
207
330
|
# Grounding information for parts of the text.
|
|
331
|
+
# @!attribute [rw] visual_segments
|
|
332
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::VisualSegment>]
|
|
333
|
+
# Grounding information for parts of the visual content.
|
|
208
334
|
# @!attribute [rw] references
|
|
209
335
|
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Reference>]
|
|
210
336
|
# References for the grounded text.
|
|
@@ -235,18 +361,41 @@ module Google
|
|
|
235
361
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
236
362
|
end
|
|
237
363
|
|
|
364
|
+
# Grounding information for a visual segment.
|
|
365
|
+
# @!attribute [rw] reference_indices
|
|
366
|
+
# @return [::Array<::Integer>]
|
|
367
|
+
# References for the visual segment.
|
|
368
|
+
# @!attribute [rw] content_id
|
|
369
|
+
# @return [::String]
|
|
370
|
+
# The content id of the visual segment. In order to display the citation
|
|
371
|
+
# of the visual element, this content_id needs to match with the
|
|
372
|
+
# `grounded_content.content_metadata.content_id` field.
|
|
373
|
+
class VisualSegment
|
|
374
|
+
include ::Google::Protobuf::MessageExts
|
|
375
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
376
|
+
end
|
|
377
|
+
|
|
238
378
|
# Referenced content and related document metadata.
|
|
239
379
|
# @!attribute [rw] content
|
|
240
380
|
# @return [::String]
|
|
241
381
|
# Referenced text content.
|
|
382
|
+
# @!attribute [rw] code_snippet
|
|
383
|
+
# @return [::String]
|
|
384
|
+
# Chunk of code snippet from the referenced document.
|
|
242
385
|
# @!attribute [rw] document_metadata
|
|
243
386
|
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata]
|
|
244
387
|
# Document metadata.
|
|
388
|
+
# @!attribute [r] chunk_metadata
|
|
389
|
+
# @return [::Google::Protobuf::Struct]
|
|
390
|
+
# Output only. Generic structured chunk metadata from upstream data
|
|
391
|
+
# source connectors.
|
|
245
392
|
class Reference
|
|
246
393
|
include ::Google::Protobuf::MessageExts
|
|
247
394
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
248
395
|
|
|
249
396
|
# Document metadata.
|
|
397
|
+
# @!attribute [rw] language
|
|
398
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::AssistantGroundedContent::TextGroundingMetadata::Reference::DocumentMetadata::Language]
|
|
250
399
|
# @!attribute [rw] document
|
|
251
400
|
# @return [::String]
|
|
252
401
|
# Document resource name.
|
|
@@ -265,9 +414,23 @@ module Google
|
|
|
265
414
|
# Domain name from the document URI. Note that the `uri` field may
|
|
266
415
|
# contain a URL that redirects to the actual website, in which case
|
|
267
416
|
# this will contain the domain name of the target site.
|
|
417
|
+
# @!attribute [rw] mime_type
|
|
418
|
+
# @return [::String]
|
|
419
|
+
# The mime type of the document.
|
|
420
|
+
# https://www.iana.org/assignments/media-types/media-types.xhtml.
|
|
268
421
|
class DocumentMetadata
|
|
269
422
|
include ::Google::Protobuf::MessageExts
|
|
270
423
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
424
|
+
|
|
425
|
+
# Language of the referenced content. For now, it is only used for
|
|
426
|
+
# code.
|
|
427
|
+
module Language
|
|
428
|
+
LANGUAGE_UNSPECIFIED = 0
|
|
429
|
+
|
|
430
|
+
PYTHON = 1
|
|
431
|
+
|
|
432
|
+
SQL = 2
|
|
433
|
+
end
|
|
271
434
|
end
|
|
272
435
|
end
|
|
273
436
|
end
|
|
@@ -29,9 +29,226 @@ module Google
|
|
|
29
29
|
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
|
|
30
30
|
#
|
|
31
31
|
# It must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
32
|
+
# @!attribute [rw] display_name
|
|
33
|
+
# @return [::String]
|
|
34
|
+
# Required. The assistant display name.
|
|
35
|
+
#
|
|
36
|
+
# It must be a UTF-8 encoded string with a length limit of 128 characters.
|
|
37
|
+
# @!attribute [rw] description
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# Optional. Description for additional information. Expected to be shown on
|
|
40
|
+
# the configuration UI, not to the users of the assistant.
|
|
41
|
+
# @!attribute [rw] generation_config
|
|
42
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::GenerationConfig]
|
|
43
|
+
# Optional. Configuration for the generation of the assistant response.
|
|
44
|
+
# @!attribute [rw] web_grounding_type
|
|
45
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::WebGroundingType]
|
|
46
|
+
# Optional. The type of web grounding to use.
|
|
47
|
+
# @!attribute [rw] default_web_grounding_toggle_off
|
|
48
|
+
# @return [::Boolean]
|
|
49
|
+
# Optional. This field controls the default web grounding toggle for end
|
|
50
|
+
# users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
|
|
51
|
+
# or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
|
|
52
|
+
# set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
|
|
53
|
+
# or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
|
|
54
|
+
# grounding enabled by default on UI. If true, grounding toggle will be
|
|
55
|
+
# disabled by default on UI. End users can still enable web grounding in
|
|
56
|
+
# the UI if web grounding is enabled.
|
|
57
|
+
# @!attribute [rw] enabled_tools
|
|
58
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1::Assistant::ToolList}]
|
|
59
|
+
# Optional. Note: not implemented yet. Use
|
|
60
|
+
# [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
|
|
61
|
+
# instead. The enabled tools on this assistant. The keys are connector name,
|
|
62
|
+
# for example
|
|
63
|
+
# "projects/\\{projectId}/locations/\\{locationId}/collections/\\{collectionId}/dataconnector
|
|
64
|
+
# The values consist of admin enabled tools towards the connector
|
|
65
|
+
# instance. Admin can selectively enable multiple tools on any of the
|
|
66
|
+
# connector instances that they created in the project. For example
|
|
67
|
+
# \\{"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
|
|
68
|
+
# "transferTicket")],
|
|
69
|
+
# "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
|
|
70
|
+
# @!attribute [rw] customer_policy
|
|
71
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy]
|
|
72
|
+
# Optional. Customer policy for the assistant.
|
|
73
|
+
# @!attribute [r] create_time
|
|
74
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
75
|
+
# Output only. Represents the time when this Assistant was created.
|
|
76
|
+
# @!attribute [r] update_time
|
|
77
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
78
|
+
# Output only. Represents the time when this Assistant was most recently
|
|
79
|
+
# updated.
|
|
32
80
|
class Assistant
|
|
33
81
|
include ::Google::Protobuf::MessageExts
|
|
34
82
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
83
|
+
|
|
84
|
+
# Configuration for the generation of the assistant response.
|
|
85
|
+
# @!attribute [rw] default_model_id
|
|
86
|
+
# @return [::String]
|
|
87
|
+
# Optional. The default model to use for assistant.
|
|
88
|
+
# @!attribute [rw] allowed_model_ids
|
|
89
|
+
# @return [::Array<::String>]
|
|
90
|
+
# Optional. The list of models that are allowed to be used for assistant.
|
|
91
|
+
# @!attribute [rw] system_instruction
|
|
92
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::GenerationConfig::SystemInstruction]
|
|
93
|
+
# System instruction, also known as the prompt preamble for LLM calls.
|
|
94
|
+
# See also
|
|
95
|
+
# https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
|
|
96
|
+
# @!attribute [rw] default_language
|
|
97
|
+
# @return [::String]
|
|
98
|
+
# The default language to use for the generation of the assistant
|
|
99
|
+
# response.
|
|
100
|
+
# Use an ISO 639-1 language code such as `en`.
|
|
101
|
+
# If not specified, the language will be automatically detected.
|
|
102
|
+
class GenerationConfig
|
|
103
|
+
include ::Google::Protobuf::MessageExts
|
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
105
|
+
|
|
106
|
+
# System instruction, also known as the prompt preamble for LLM calls.
|
|
107
|
+
# @!attribute [rw] additional_system_instruction
|
|
108
|
+
# @return [::String]
|
|
109
|
+
# Optional. Additional system instruction that will be added to the
|
|
110
|
+
# default system instruction.
|
|
111
|
+
class SystemInstruction
|
|
112
|
+
include ::Google::Protobuf::MessageExts
|
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Information to identify a tool.
|
|
118
|
+
# @!attribute [rw] tool_name
|
|
119
|
+
# @return [::String]
|
|
120
|
+
# The name of the tool as defined by
|
|
121
|
+
# DataConnectorService.QueryAvailableActions.
|
|
122
|
+
# Note: it's using `action` in the DataConnectorService apis, but they are
|
|
123
|
+
# the same as the `tool` here.
|
|
124
|
+
# @!attribute [rw] tool_display_name
|
|
125
|
+
# @return [::String]
|
|
126
|
+
# The display name of the tool.
|
|
127
|
+
class ToolInfo
|
|
128
|
+
include ::Google::Protobuf::MessageExts
|
|
129
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# The enabled tools on a connector
|
|
133
|
+
# @!attribute [rw] tool_info
|
|
134
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Assistant::ToolInfo>]
|
|
135
|
+
# The list of tools with corresponding tool information.
|
|
136
|
+
class ToolList
|
|
137
|
+
include ::Google::Protobuf::MessageExts
|
|
138
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Customer-defined policy for the assistant.
|
|
142
|
+
# @!attribute [rw] banned_phrases
|
|
143
|
+
# @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::BannedPhrase>]
|
|
144
|
+
# Optional. List of banned phrases.
|
|
145
|
+
# @!attribute [rw] model_armor_config
|
|
146
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::ModelArmorConfig]
|
|
147
|
+
# Optional. Model Armor configuration to be used for sanitizing user
|
|
148
|
+
# prompts and assistant responses.
|
|
149
|
+
# @!attribute [rw] data_protection_policy
|
|
150
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::DataProtectionPolicy]
|
|
151
|
+
# Optional. Data protection policy to be used for sanitizing file uploads.
|
|
152
|
+
class CustomerPolicy
|
|
153
|
+
include ::Google::Protobuf::MessageExts
|
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
155
|
+
|
|
156
|
+
# Definition of a customer-defined banned phrase. A banned phrase is not
|
|
157
|
+
# allowed to appear in the user query or the LLM response, or else the
|
|
158
|
+
# answer will be refused.
|
|
159
|
+
# @!attribute [rw] phrase
|
|
160
|
+
# @return [::String]
|
|
161
|
+
# Required. The raw string content to be banned.
|
|
162
|
+
# @!attribute [rw] match_type
|
|
163
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::BannedPhrase::BannedPhraseMatchType]
|
|
164
|
+
# Optional. Match type for the banned phrase.
|
|
165
|
+
# @!attribute [rw] ignore_diacritics
|
|
166
|
+
# @return [::Boolean]
|
|
167
|
+
# Optional. If true, diacritical marks (e.g., accents, umlauts) are
|
|
168
|
+
# ignored when matching banned phrases. For example, "cafe" would match
|
|
169
|
+
# "café".
|
|
170
|
+
class BannedPhrase
|
|
171
|
+
include ::Google::Protobuf::MessageExts
|
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
173
|
+
|
|
174
|
+
# The matching method for the banned phrase.
|
|
175
|
+
module BannedPhraseMatchType
|
|
176
|
+
# Defaults to SIMPLE_STRING_MATCH.
|
|
177
|
+
BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0
|
|
178
|
+
|
|
179
|
+
# The banned phrase matches if it is found anywhere in the text as an
|
|
180
|
+
# exact substring.
|
|
181
|
+
SIMPLE_STRING_MATCH = 1
|
|
182
|
+
|
|
183
|
+
# Banned phrase only matches if the pattern found in the text is
|
|
184
|
+
# surrounded by word delimiters. The phrase itself may still contain
|
|
185
|
+
# word delimiters.
|
|
186
|
+
WORD_BOUNDARY_STRING_MATCH = 2
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Configuration for customer defined Model Armor templates to be used for
|
|
191
|
+
# sanitizing user prompts and assistant responses.
|
|
192
|
+
# @!attribute [rw] user_prompt_template
|
|
193
|
+
# @return [::String]
|
|
194
|
+
# Optional. The resource name of the Model Armor template for sanitizing
|
|
195
|
+
# user prompts. Format:
|
|
196
|
+
# `projects/{project}/locations/{location}/templates/{template_id}`
|
|
197
|
+
#
|
|
198
|
+
# If not specified, no sanitization will be applied to the user prompt.
|
|
199
|
+
# @!attribute [rw] response_template
|
|
200
|
+
# @return [::String]
|
|
201
|
+
# Optional. The resource name of the Model Armor template for sanitizing
|
|
202
|
+
# assistant responses. Format:
|
|
203
|
+
# `projects/{project}/locations/{location}/templates/{template_id}`
|
|
204
|
+
#
|
|
205
|
+
# If not specified, no sanitization will be applied to the assistant
|
|
206
|
+
# response.
|
|
207
|
+
# @!attribute [rw] failure_mode
|
|
208
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode]
|
|
209
|
+
# Optional. Defines the failure mode for Model Armor sanitization.
|
|
210
|
+
class ModelArmorConfig
|
|
211
|
+
include ::Google::Protobuf::MessageExts
|
|
212
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
213
|
+
|
|
214
|
+
# Determines the behavior when Model Armor fails to process a request.
|
|
215
|
+
module FailureMode
|
|
216
|
+
# Unspecified failure mode, default behavior is `FAIL_CLOSED`.
|
|
217
|
+
FAILURE_MODE_UNSPECIFIED = 0
|
|
218
|
+
|
|
219
|
+
# In case of a Model Armor processing failure, the request is allowed
|
|
220
|
+
# to proceed without any changes.
|
|
221
|
+
FAIL_OPEN = 1
|
|
222
|
+
|
|
223
|
+
# In case of a Model Armor processing failure, the request is rejected.
|
|
224
|
+
FAIL_CLOSED = 2
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# @!attribute [rw] key
|
|
230
|
+
# @return [::String]
|
|
231
|
+
# @!attribute [rw] value
|
|
232
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::Assistant::ToolList]
|
|
233
|
+
class EnabledToolsEntry
|
|
234
|
+
include ::Google::Protobuf::MessageExts
|
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# The type of web grounding to use.
|
|
239
|
+
module WebGroundingType
|
|
240
|
+
# Default, unspecified setting. This is the same as disabled.
|
|
241
|
+
WEB_GROUNDING_TYPE_UNSPECIFIED = 0
|
|
242
|
+
|
|
243
|
+
# Web grounding is disabled.
|
|
244
|
+
WEB_GROUNDING_TYPE_DISABLED = 1
|
|
245
|
+
|
|
246
|
+
# Grounding with Google Search is enabled.
|
|
247
|
+
WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2
|
|
248
|
+
|
|
249
|
+
# Grounding with Enterprise Web Search is enabled.
|
|
250
|
+
WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3
|
|
251
|
+
end
|
|
35
252
|
end
|
|
36
253
|
end
|
|
37
254
|
end
|