google-cloud-discovery_engine-v1beta 0.26.0 → 0.28.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 +5 -5
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/client.rb +591 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/paths.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest/client.rb +534 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/client.rb +1058 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/credentials.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/paths.rb +230 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest/client.rb +975 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest/service_stub.rb +444 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/client.rb +823 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/paths.rb +135 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/client.rb +752 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/operations.rb +1152 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/service_stub.rb +341 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +148 -12
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/credentials.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +141 -12
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +212 -10
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +46 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +207 -10
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +72 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +13 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +13 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +10 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +10 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +226 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +212 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +123 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +13 -9
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +13 -9
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/client.rb +1180 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/paths.rb +154 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/client.rb +1088 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/operations.rb +1152 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/service_stub.rb +511 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/client.rb +1050 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/paths.rb +86 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/client.rb +965 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/service_stub.rb +451 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +10 -3
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +196 -38
- data/lib/google/cloud/discovery_engine/v1beta/search_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +196 -38
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +209 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +195 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/service_stub.rb +153 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +27 -9
- data/lib/google/cloud/discovery_engine/v1beta/session_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/session_service/paths.rb +46 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/client.rb +27 -9
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +25 -11
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +25 -11
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/client.rb +768 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/paths.rb +71 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/client.rb +704 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/operations.rb +1152 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/service_stub.rb +265 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/client.rb +590 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/paths.rb +71 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/client.rb +533 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +11 -4
- data/lib/google/cloud/discoveryengine/v1beta/acl_config_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_services_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/agent_gateway_setting_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/assist_answer_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/assistant_pb.rb +35 -0
- data/lib/google/cloud/discoveryengine/v1beta/assistant_service_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/assistant_service_services_pb.rb +56 -0
- data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_pb.rb +39 -0
- data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_services_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +6 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +17 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +28 -6
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/feedback_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_pb.rb +26 -0
- data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_pb.rb +44 -0
- data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_services_pb.rb +58 -0
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/license_config_pb.rb +27 -0
- data/lib/google/cloud/discoveryengine/v1beta/license_config_service_pb.rb +36 -0
- data/lib/google/cloud/discoveryengine/v1beta/license_config_service_services_pb.rb +65 -0
- data/lib/google/cloud/discoveryengine/v1beta/logging_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +10 -1
- data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/safety_pb.rb +26 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +18 -2
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +14 -0
- data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/session_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_license_pb.rb +27 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_license_service_pb.rb +38 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_license_service_services_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_store_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_store_service_pb.rb +29 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_store_service_services_pb.rb +47 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config.rb +43 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config_service.rb +49 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/agent_gateway_setting.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +117 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/assist_answer.rb +401 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/assistant.rb +253 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/assistant_service.rb +368 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +60 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/cmek_config_service.rb +228 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +223 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +115 -13
- data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +119 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +178 -8
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +218 -9
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +12 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +115 -10
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +30 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +388 -8
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +13 -11
- data/proto_docs/google/cloud/discoveryengine/v1beta/feedback.rb +147 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +190 -9
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +9 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store.rb +84 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.rb +280 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +25 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/license_config.rb +101 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/license_config_service.rb +224 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/logging.rb +40 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +18 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +9 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +4 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/safety.rb +108 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +461 -69
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +50 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +30 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +21 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +8 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +7 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +39 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +14 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_license.rb +100 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_license_service.rb +202 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_store.rb +67 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_store_service.rb +54 -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/expr.rb +75 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +120 -3
|
@@ -791,7 +791,7 @@ module Google
|
|
|
791
791
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
792
792
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
793
793
|
#
|
|
794
|
-
# @overload answer_query(serving_config: nil, query: nil, session: nil, safety_spec: nil, related_questions_spec: nil, grounding_spec: nil, answer_generation_spec: nil, search_spec: nil, query_understanding_spec: nil, asynchronous_mode: nil, user_pseudo_id: nil, user_labels: nil)
|
|
794
|
+
# @overload answer_query(serving_config: nil, query: nil, session: nil, safety_spec: nil, related_questions_spec: nil, grounding_spec: nil, answer_generation_spec: nil, search_spec: nil, query_understanding_spec: nil, asynchronous_mode: nil, user_pseudo_id: nil, user_labels: nil, end_user_spec: nil)
|
|
795
795
|
# Pass arguments to `answer_query` via keyword arguments. Note that at
|
|
796
796
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
797
797
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -801,6 +801,12 @@ module Google
|
|
|
801
801
|
# `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
|
|
802
802
|
# or
|
|
803
803
|
# `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
|
|
804
|
+
#
|
|
805
|
+
# Or the resource name of the agent engine serving config, such as:
|
|
806
|
+
# `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`.
|
|
807
|
+
# (use when `enable_agent_invocation` set to true, and you have custom
|
|
808
|
+
# `AI_MODE` agent engine configured)
|
|
809
|
+
#
|
|
804
810
|
# This field is used to identify the serving configuration name, set
|
|
805
811
|
# of models used to make the search.
|
|
806
812
|
# @param query [::Google::Cloud::DiscoveryEngine::V1beta::Query, ::Hash]
|
|
@@ -865,6 +871,8 @@ module Google
|
|
|
865
871
|
# See [Google Cloud
|
|
866
872
|
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
|
867
873
|
# for more details.
|
|
874
|
+
# @param end_user_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::EndUserSpec, ::Hash]
|
|
875
|
+
# Optional. End user specification.
|
|
868
876
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
869
877
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse]
|
|
870
878
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -923,6 +931,170 @@ module Google
|
|
|
923
931
|
raise ::Google::Cloud::Error.from_error(e)
|
|
924
932
|
end
|
|
925
933
|
|
|
934
|
+
##
|
|
935
|
+
# Answer query method (streaming).
|
|
936
|
+
#
|
|
937
|
+
# It takes one
|
|
938
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest AnswerQueryRequest}
|
|
939
|
+
# and returns multiple
|
|
940
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse AnswerQueryResponse}
|
|
941
|
+
# messages in a stream.
|
|
942
|
+
#
|
|
943
|
+
# @overload stream_answer_query(request, options = nil)
|
|
944
|
+
# Pass arguments to `stream_answer_query` via a request object, either of type
|
|
945
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest} or an equivalent Hash.
|
|
946
|
+
#
|
|
947
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest, ::Hash]
|
|
948
|
+
# A request object representing the call parameters. Required. To specify no
|
|
949
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
950
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
951
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
952
|
+
#
|
|
953
|
+
# @overload stream_answer_query(serving_config: nil, query: nil, session: nil, safety_spec: nil, related_questions_spec: nil, grounding_spec: nil, answer_generation_spec: nil, search_spec: nil, query_understanding_spec: nil, asynchronous_mode: nil, user_pseudo_id: nil, user_labels: nil, end_user_spec: nil)
|
|
954
|
+
# Pass arguments to `stream_answer_query` via keyword arguments. Note that at
|
|
955
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
956
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
957
|
+
#
|
|
958
|
+
# @param serving_config [::String]
|
|
959
|
+
# Required. The resource name of the Search serving config, such as
|
|
960
|
+
# `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
|
|
961
|
+
# or
|
|
962
|
+
# `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
|
|
963
|
+
#
|
|
964
|
+
# Or the resource name of the agent engine serving config, such as:
|
|
965
|
+
# `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`.
|
|
966
|
+
# (use when `enable_agent_invocation` set to true, and you have custom
|
|
967
|
+
# `AI_MODE` agent engine configured)
|
|
968
|
+
#
|
|
969
|
+
# This field is used to identify the serving configuration name, set
|
|
970
|
+
# of models used to make the search.
|
|
971
|
+
# @param query [::Google::Cloud::DiscoveryEngine::V1beta::Query, ::Hash]
|
|
972
|
+
# Required. Current user query.
|
|
973
|
+
# @param session [::String]
|
|
974
|
+
# The session resource name. Not required.
|
|
975
|
+
#
|
|
976
|
+
# When session field is not set, the API is in sessionless mode.
|
|
977
|
+
#
|
|
978
|
+
# We support auto session mode: users can use the wildcard symbol `-` as
|
|
979
|
+
# session ID. A new ID will be automatically generated and assigned.
|
|
980
|
+
# @param safety_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec, ::Hash]
|
|
981
|
+
# Model specification.
|
|
982
|
+
# @param related_questions_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec, ::Hash]
|
|
983
|
+
# Related questions specification.
|
|
984
|
+
# @param grounding_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::GroundingSpec, ::Hash]
|
|
985
|
+
# Optional. Grounding specification.
|
|
986
|
+
# @param answer_generation_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec, ::Hash]
|
|
987
|
+
# Answer generation specification.
|
|
988
|
+
# @param search_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec, ::Hash]
|
|
989
|
+
# Search specification.
|
|
990
|
+
# @param query_understanding_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec, ::Hash]
|
|
991
|
+
# Query understanding specification.
|
|
992
|
+
# @param asynchronous_mode [::Boolean]
|
|
993
|
+
# Deprecated: This field is deprecated. Streaming Answer API will be
|
|
994
|
+
# supported.
|
|
995
|
+
#
|
|
996
|
+
# Asynchronous mode control.
|
|
997
|
+
#
|
|
998
|
+
# If enabled, the response will be returned with answer/session resource
|
|
999
|
+
# name without final answer. The API users need to do the polling to get
|
|
1000
|
+
# the latest status of answer/session by calling
|
|
1001
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client#get_answer ConversationalSearchService.GetAnswer}
|
|
1002
|
+
# or
|
|
1003
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client#get_session ConversationalSearchService.GetSession}
|
|
1004
|
+
# method.
|
|
1005
|
+
# @param user_pseudo_id [::String]
|
|
1006
|
+
# A unique identifier for tracking visitors. For example, this could be
|
|
1007
|
+
# implemented with an HTTP cookie, which should be able to uniquely identify
|
|
1008
|
+
# a visitor on a single device. This unique identifier should not change if
|
|
1009
|
+
# the visitor logs in or out of the website.
|
|
1010
|
+
#
|
|
1011
|
+
# This field should NOT have a fixed value such as `unknown_visitor`.
|
|
1012
|
+
#
|
|
1013
|
+
# The field must be a UTF-8 encoded string with a length limit of 128
|
|
1014
|
+
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
1015
|
+
# @param user_labels [::Hash{::String => ::String}]
|
|
1016
|
+
# The user labels applied to a resource must meet the following requirements:
|
|
1017
|
+
#
|
|
1018
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
|
1019
|
+
# * Each label must be a key-value pair.
|
|
1020
|
+
# * Keys have a minimum length of 1 character and a maximum length of 63
|
|
1021
|
+
# characters and cannot be empty. Values can be empty and have a maximum
|
|
1022
|
+
# length of 63 characters.
|
|
1023
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
|
1024
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
|
1025
|
+
# international characters are allowed.
|
|
1026
|
+
# * The key portion of a label must be unique. However, you can use the same
|
|
1027
|
+
# key with multiple resources.
|
|
1028
|
+
# * Keys must start with a lowercase letter or international character.
|
|
1029
|
+
#
|
|
1030
|
+
# See [Google Cloud
|
|
1031
|
+
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
|
1032
|
+
# for more details.
|
|
1033
|
+
# @param end_user_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::EndUserSpec, ::Hash]
|
|
1034
|
+
# Optional. End user specification.
|
|
1035
|
+
# @return [::Enumerable<::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse>]
|
|
1036
|
+
#
|
|
1037
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1038
|
+
#
|
|
1039
|
+
# @example Basic example
|
|
1040
|
+
# require "google/cloud/discovery_engine/v1beta"
|
|
1041
|
+
#
|
|
1042
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1043
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
|
|
1044
|
+
#
|
|
1045
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1046
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest.new
|
|
1047
|
+
#
|
|
1048
|
+
# # Call the stream_answer_query method to start streaming.
|
|
1049
|
+
# output = client.stream_answer_query request
|
|
1050
|
+
#
|
|
1051
|
+
# # The returned object is a streamed enumerable yielding elements of type
|
|
1052
|
+
# # ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse
|
|
1053
|
+
# output.each do |current_response|
|
|
1054
|
+
# p current_response
|
|
1055
|
+
# end
|
|
1056
|
+
#
|
|
1057
|
+
def stream_answer_query request, options = nil
|
|
1058
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1059
|
+
|
|
1060
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest
|
|
1061
|
+
|
|
1062
|
+
# Converts hash and nil to an options object
|
|
1063
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1064
|
+
|
|
1065
|
+
# Customize the options with defaults
|
|
1066
|
+
call_metadata = @config.rpcs.stream_answer_query.metadata.to_h
|
|
1067
|
+
|
|
1068
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1069
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1070
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1071
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
|
1072
|
+
transports_version_send: [:rest]
|
|
1073
|
+
|
|
1074
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1075
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1076
|
+
|
|
1077
|
+
options.apply_defaults timeout: @config.rpcs.stream_answer_query.timeout,
|
|
1078
|
+
metadata: call_metadata,
|
|
1079
|
+
retry_policy: @config.rpcs.stream_answer_query.retry_policy
|
|
1080
|
+
|
|
1081
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1082
|
+
metadata: @config.metadata,
|
|
1083
|
+
retry_policy: @config.retry_policy
|
|
1084
|
+
|
|
1085
|
+
::Gapic::Rest::ServerStream.new(
|
|
1086
|
+
::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse,
|
|
1087
|
+
::Gapic::Rest::ThreadedEnumerator.new do |in_q, out_q|
|
|
1088
|
+
@conversational_search_service_stub.stream_answer_query request, options do |chunk|
|
|
1089
|
+
in_q.deq
|
|
1090
|
+
out_q.enq chunk
|
|
1091
|
+
end
|
|
1092
|
+
end
|
|
1093
|
+
)
|
|
1094
|
+
rescue ::Gapic::Rest::Error => e
|
|
1095
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1096
|
+
end
|
|
1097
|
+
|
|
926
1098
|
##
|
|
927
1099
|
# Gets a Answer.
|
|
928
1100
|
#
|
|
@@ -1018,7 +1190,7 @@ module Google
|
|
|
1018
1190
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1019
1191
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1020
1192
|
#
|
|
1021
|
-
# @overload create_session(parent: nil, session: nil)
|
|
1193
|
+
# @overload create_session(parent: nil, session: nil, session_id: nil)
|
|
1022
1194
|
# Pass arguments to `create_session` via keyword arguments. Note that at
|
|
1023
1195
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1024
1196
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -1028,6 +1200,13 @@ module Google
|
|
|
1028
1200
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
|
|
1029
1201
|
# @param session [::Google::Cloud::DiscoveryEngine::V1beta::Session, ::Hash]
|
|
1030
1202
|
# Required. The session to create.
|
|
1203
|
+
# @param session_id [::String]
|
|
1204
|
+
# Optional. The ID to use for the session, which will become the final
|
|
1205
|
+
# component of the session's resource name.
|
|
1206
|
+
#
|
|
1207
|
+
# This value should be 1-63 characters, and valid characters
|
|
1208
|
+
# are /[a-z0-9][a-z0-9-]\\{0,61}[a-z0-9]/. If not specified, a unique ID will
|
|
1209
|
+
# be generated.
|
|
1031
1210
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1032
1211
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::Session]
|
|
1033
1212
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1370,7 +1549,9 @@ module Google
|
|
|
1370
1549
|
# Provide this to retrieve the subsequent page.
|
|
1371
1550
|
# @param filter [::String]
|
|
1372
1551
|
# A comma-separated list of fields to filter by, in EBNF grammar.
|
|
1552
|
+
#
|
|
1373
1553
|
# The supported fields are:
|
|
1554
|
+
#
|
|
1374
1555
|
# * `user_pseudo_id`
|
|
1375
1556
|
# * `state`
|
|
1376
1557
|
# * `display_name`
|
|
@@ -1379,28 +1560,35 @@ module Google
|
|
|
1379
1560
|
# * `labels`
|
|
1380
1561
|
# * `create_time`
|
|
1381
1562
|
# * `update_time`
|
|
1563
|
+
# * `collaborative_project`
|
|
1382
1564
|
#
|
|
1383
1565
|
# Examples:
|
|
1384
|
-
#
|
|
1385
|
-
#
|
|
1386
|
-
#
|
|
1387
|
-
#
|
|
1388
|
-
#
|
|
1566
|
+
#
|
|
1567
|
+
# * `user_pseudo_id = some_id`
|
|
1568
|
+
# * `display_name = "some_name"`
|
|
1569
|
+
# * `starred = true`
|
|
1570
|
+
# * `is_pinned=true AND (NOT labels:hidden)`
|
|
1571
|
+
# * `create_time > "1970-01-01T12:00:00Z"`
|
|
1572
|
+
# * `collaborative_project =
|
|
1573
|
+
# "projects/123/locations/global/collections/default_collection/engines/"
|
|
1574
|
+
# "default_engine/collaborative_projects/cp1"`
|
|
1389
1575
|
# @param order_by [::String]
|
|
1390
1576
|
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
1391
1577
|
# Use "desc" after a field name for descending.
|
|
1578
|
+
#
|
|
1392
1579
|
# Supported fields:
|
|
1393
1580
|
#
|
|
1394
1581
|
# * `update_time`
|
|
1395
1582
|
# * `create_time`
|
|
1396
1583
|
# * `session_name`
|
|
1397
1584
|
# * `is_pinned`
|
|
1585
|
+
# * `display_name`
|
|
1398
1586
|
#
|
|
1399
1587
|
# Example:
|
|
1400
1588
|
#
|
|
1401
|
-
# *
|
|
1402
|
-
# *
|
|
1403
|
-
# *
|
|
1589
|
+
# * `update_time desc`
|
|
1590
|
+
# * `create_time`
|
|
1591
|
+
# * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
|
|
1404
1592
|
# by update_time.
|
|
1405
1593
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1406
1594
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Session>]
|
|
@@ -1536,6 +1724,7 @@ module Google
|
|
|
1536
1724
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1537
1725
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1538
1726
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1727
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1539
1728
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1540
1729
|
# trigger a retry.
|
|
1541
1730
|
# @return [::Hash]
|
|
@@ -1608,6 +1797,7 @@ module Google
|
|
|
1608
1797
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1609
1798
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1610
1799
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1800
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1611
1801
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1612
1802
|
# trigger a retry.
|
|
1613
1803
|
#
|
|
@@ -1648,6 +1838,11 @@ module Google
|
|
|
1648
1838
|
#
|
|
1649
1839
|
attr_reader :answer_query
|
|
1650
1840
|
##
|
|
1841
|
+
# RPC-specific configuration for `stream_answer_query`
|
|
1842
|
+
# @return [::Gapic::Config::Method]
|
|
1843
|
+
#
|
|
1844
|
+
attr_reader :stream_answer_query
|
|
1845
|
+
##
|
|
1651
1846
|
# RPC-specific configuration for `get_answer`
|
|
1652
1847
|
# @return [::Gapic::Config::Method]
|
|
1653
1848
|
#
|
|
@@ -1694,6 +1889,8 @@ module Google
|
|
|
1694
1889
|
@list_conversations = ::Gapic::Config::Method.new list_conversations_config
|
|
1695
1890
|
answer_query_config = parent_rpcs.answer_query if parent_rpcs.respond_to? :answer_query
|
|
1696
1891
|
@answer_query = ::Gapic::Config::Method.new answer_query_config
|
|
1892
|
+
stream_answer_query_config = parent_rpcs.stream_answer_query if parent_rpcs.respond_to? :stream_answer_query
|
|
1893
|
+
@stream_answer_query = ::Gapic::Config::Method.new stream_answer_query_config
|
|
1697
1894
|
get_answer_config = parent_rpcs.get_answer if parent_rpcs.respond_to? :get_answer
|
|
1698
1895
|
@get_answer = ::Gapic::Config::Method.new get_answer_config
|
|
1699
1896
|
create_session_config = parent_rpcs.create_session if parent_rpcs.respond_to? :create_session
|
data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb
CHANGED
|
@@ -353,6 +353,40 @@ module Google
|
|
|
353
353
|
end
|
|
354
354
|
end
|
|
355
355
|
|
|
356
|
+
##
|
|
357
|
+
# Baseline implementation for the stream_answer_query REST call
|
|
358
|
+
#
|
|
359
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest]
|
|
360
|
+
# A request object representing the call parameters. Required.
|
|
361
|
+
# @param options [::Gapic::CallOptions]
|
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
363
|
+
#
|
|
364
|
+
# @yieldparam chunk [::String] The chunk of data received during server streaming.
|
|
365
|
+
#
|
|
366
|
+
# @return [::Gapic::Rest::TransportOperation]
|
|
367
|
+
def stream_answer_query(request_pb, options = nil, &)
|
|
368
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
369
|
+
|
|
370
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_stream_answer_query_request request_pb
|
|
371
|
+
query_string_params = if query_string_params.any?
|
|
372
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
373
|
+
else
|
|
374
|
+
{}
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
response = @client_stub.make_http_request(
|
|
378
|
+
verb,
|
|
379
|
+
uri: uri,
|
|
380
|
+
body: body || "",
|
|
381
|
+
params: query_string_params,
|
|
382
|
+
method_name: "stream_answer_query",
|
|
383
|
+
options: options,
|
|
384
|
+
is_server_streaming: true,
|
|
385
|
+
&
|
|
386
|
+
)
|
|
387
|
+
::Gapic::Rest::TransportOperation.new response
|
|
388
|
+
end
|
|
389
|
+
|
|
356
390
|
##
|
|
357
391
|
# Baseline implementation for the get_answer REST call
|
|
358
392
|
#
|
|
@@ -850,6 +884,44 @@ module Google
|
|
|
850
884
|
transcoder.transcode request_pb
|
|
851
885
|
end
|
|
852
886
|
|
|
887
|
+
##
|
|
888
|
+
# @private
|
|
889
|
+
#
|
|
890
|
+
# GRPC transcoding helper method for the stream_answer_query REST call
|
|
891
|
+
#
|
|
892
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest]
|
|
893
|
+
# A request object representing the call parameters. Required.
|
|
894
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
895
|
+
# Uri, Body, Query string parameters
|
|
896
|
+
def self.transcode_stream_answer_query_request request_pb
|
|
897
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
898
|
+
.with_bindings(
|
|
899
|
+
uri_method: :post,
|
|
900
|
+
uri_template: "/v1beta/{serving_config}:streamAnswer",
|
|
901
|
+
body: "*",
|
|
902
|
+
matches: [
|
|
903
|
+
["serving_config", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
904
|
+
]
|
|
905
|
+
)
|
|
906
|
+
.with_bindings(
|
|
907
|
+
uri_method: :post,
|
|
908
|
+
uri_template: "/v1beta/{serving_config}:streamAnswer",
|
|
909
|
+
body: "*",
|
|
910
|
+
matches: [
|
|
911
|
+
["serving_config", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
912
|
+
]
|
|
913
|
+
)
|
|
914
|
+
.with_bindings(
|
|
915
|
+
uri_method: :post,
|
|
916
|
+
uri_template: "/v1beta/{serving_config}:streamAnswer",
|
|
917
|
+
body: "*",
|
|
918
|
+
matches: [
|
|
919
|
+
["serving_config", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
920
|
+
]
|
|
921
|
+
)
|
|
922
|
+
transcoder.transcode request_pb
|
|
923
|
+
end
|
|
924
|
+
|
|
853
925
|
##
|
|
854
926
|
# @private
|
|
855
927
|
#
|
|
@@ -233,11 +233,21 @@ module Google
|
|
|
233
233
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
234
234
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
235
235
|
#
|
|
236
|
-
# @overload create_data_store(parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil)
|
|
236
|
+
# @overload create_data_store(cmek_config_name: nil, disable_cmek: nil, parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil)
|
|
237
237
|
# Pass arguments to `create_data_store` via keyword arguments. Note that at
|
|
238
238
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
239
239
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
240
240
|
#
|
|
241
|
+
# @param cmek_config_name [::String]
|
|
242
|
+
# Resource name of the CmekConfig to use for protecting this DataStore.
|
|
243
|
+
#
|
|
244
|
+
# Note: The following parameters are mutually exclusive: `cmek_config_name`, `disable_cmek`. 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.
|
|
245
|
+
# @param disable_cmek [::Boolean]
|
|
246
|
+
# DataStore without CMEK protections. If a default CmekConfig is set for
|
|
247
|
+
# the project, setting this field will override the default CmekConfig as
|
|
248
|
+
# well.
|
|
249
|
+
#
|
|
250
|
+
# Note: The following parameters are mutually exclusive: `disable_cmek`, `cmek_config_name`. 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.
|
|
241
251
|
# @param parent [::String]
|
|
242
252
|
# Required. The parent resource name, such as
|
|
243
253
|
# `projects/{project}/locations/{location}/collections/{collection}`.
|
|
@@ -853,6 +863,7 @@ module Google
|
|
|
853
863
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
854
864
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
855
865
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
866
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
856
867
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
857
868
|
# trigger a retry.
|
|
858
869
|
# @return [::Hash]
|
|
@@ -936,6 +947,7 @@ module Google
|
|
|
936
947
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
937
948
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
938
949
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
950
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
939
951
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
940
952
|
# trigger a retry.
|
|
941
953
|
#
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the DataStoreService API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/discoveryengine.readwrite",
|
|
31
|
+
"https://www.googleapis.com/auth/discoveryengine.serving.readwrite"
|
|
30
32
|
]
|
|
31
33
|
self.env_vars = [
|
|
32
34
|
"GOOGLE_CLOUD_CREDENTIALS",
|
|
@@ -703,6 +703,7 @@ module Google
|
|
|
703
703
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
704
704
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
705
705
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
706
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
706
707
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
707
708
|
# trigger a retry.
|
|
708
709
|
# @return [::Hash]
|
|
@@ -786,6 +787,7 @@ module Google
|
|
|
786
787
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
787
788
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
788
789
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
790
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
789
791
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
790
792
|
# trigger a retry.
|
|
791
793
|
#
|
|
@@ -24,6 +24,47 @@ module Google
|
|
|
24
24
|
module DataStoreService
|
|
25
25
|
# Path helper methods for the DataStoreService API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified CmekConfig resource string.
|
|
29
|
+
#
|
|
30
|
+
# @overload cmek_config_path(project:, location:)
|
|
31
|
+
# The resource will be in the following format:
|
|
32
|
+
#
|
|
33
|
+
# `projects/{project}/locations/{location}/cmekConfig`
|
|
34
|
+
#
|
|
35
|
+
# @param project [String]
|
|
36
|
+
# @param location [String]
|
|
37
|
+
#
|
|
38
|
+
# @overload cmek_config_path(project:, location:, cmek_config:)
|
|
39
|
+
# The resource will be in the following format:
|
|
40
|
+
#
|
|
41
|
+
# `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`
|
|
42
|
+
#
|
|
43
|
+
# @param project [String]
|
|
44
|
+
# @param location [String]
|
|
45
|
+
# @param cmek_config [String]
|
|
46
|
+
#
|
|
47
|
+
# @return [::String]
|
|
48
|
+
def cmek_config_path **args
|
|
49
|
+
resources = {
|
|
50
|
+
"location:project" => (proc do |project:, location:|
|
|
51
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
52
|
+
|
|
53
|
+
"projects/#{project}/locations/#{location}/cmekConfig"
|
|
54
|
+
end),
|
|
55
|
+
"cmek_config:location:project" => (proc do |project:, location:, cmek_config:|
|
|
56
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
57
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
58
|
+
|
|
59
|
+
"projects/#{project}/locations/#{location}/cmekConfigs/#{cmek_config}"
|
|
60
|
+
end)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
resource = resources[args.keys.sort.join(":")]
|
|
64
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
65
|
+
resource.call(**args)
|
|
66
|
+
end
|
|
67
|
+
|
|
27
68
|
##
|
|
28
69
|
# Create a fully-qualified Collection resource string.
|
|
29
70
|
#
|
|
@@ -43,6 +84,50 @@ module Google
|
|
|
43
84
|
"projects/#{project}/locations/#{location}/collections/#{collection}"
|
|
44
85
|
end
|
|
45
86
|
|
|
87
|
+
##
|
|
88
|
+
# Create a fully-qualified CryptoKeyVersions resource string.
|
|
89
|
+
#
|
|
90
|
+
# The resource will be in the following format:
|
|
91
|
+
#
|
|
92
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
93
|
+
#
|
|
94
|
+
# @param project [String]
|
|
95
|
+
# @param location [String]
|
|
96
|
+
# @param key_ring [String]
|
|
97
|
+
# @param crypto_key [String]
|
|
98
|
+
# @param crypto_key_version [String]
|
|
99
|
+
#
|
|
100
|
+
# @return [::String]
|
|
101
|
+
def crypto_key_versions_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
104
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
105
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
106
|
+
|
|
107
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
##
|
|
111
|
+
# Create a fully-qualified CryptoKeys resource string.
|
|
112
|
+
#
|
|
113
|
+
# The resource will be in the following format:
|
|
114
|
+
#
|
|
115
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
116
|
+
#
|
|
117
|
+
# @param project [String]
|
|
118
|
+
# @param location [String]
|
|
119
|
+
# @param key_ring [String]
|
|
120
|
+
# @param crypto_key [String]
|
|
121
|
+
#
|
|
122
|
+
# @return [::String]
|
|
123
|
+
def crypto_keys_path project:, location:, key_ring:, crypto_key:
|
|
124
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
125
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
126
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
127
|
+
|
|
128
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
129
|
+
end
|
|
130
|
+
|
|
46
131
|
##
|
|
47
132
|
# Create a fully-qualified DataStore resource string.
|
|
48
133
|
#
|
|
@@ -133,6 +218,25 @@ module Google
|
|
|
133
218
|
resource.call(**args)
|
|
134
219
|
end
|
|
135
220
|
|
|
221
|
+
##
|
|
222
|
+
# Create a fully-qualified IdentityMappingStore resource string.
|
|
223
|
+
#
|
|
224
|
+
# The resource will be in the following format:
|
|
225
|
+
#
|
|
226
|
+
# `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`
|
|
227
|
+
#
|
|
228
|
+
# @param project [String]
|
|
229
|
+
# @param location [String]
|
|
230
|
+
# @param identity_mapping_store [String]
|
|
231
|
+
#
|
|
232
|
+
# @return [::String]
|
|
233
|
+
def identity_mapping_store_path project:, location:, identity_mapping_store:
|
|
234
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
235
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
236
|
+
|
|
237
|
+
"projects/#{project}/locations/#{location}/identityMappingStores/#{identity_mapping_store}"
|
|
238
|
+
end
|
|
239
|
+
|
|
136
240
|
##
|
|
137
241
|
# Create a fully-qualified Schema resource string.
|
|
138
242
|
#
|
|
@@ -226,11 +226,21 @@ module Google
|
|
|
226
226
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
227
227
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
228
228
|
#
|
|
229
|
-
# @overload create_data_store(parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil)
|
|
229
|
+
# @overload create_data_store(cmek_config_name: nil, disable_cmek: nil, parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil)
|
|
230
230
|
# Pass arguments to `create_data_store` via keyword arguments. Note that at
|
|
231
231
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
232
232
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
233
233
|
#
|
|
234
|
+
# @param cmek_config_name [::String]
|
|
235
|
+
# Resource name of the CmekConfig to use for protecting this DataStore.
|
|
236
|
+
#
|
|
237
|
+
# Note: The following parameters are mutually exclusive: `cmek_config_name`, `disable_cmek`. 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.
|
|
238
|
+
# @param disable_cmek [::Boolean]
|
|
239
|
+
# DataStore without CMEK protections. If a default CmekConfig is set for
|
|
240
|
+
# the project, setting this field will override the default CmekConfig as
|
|
241
|
+
# well.
|
|
242
|
+
#
|
|
243
|
+
# Note: The following parameters are mutually exclusive: `disable_cmek`, `cmek_config_name`. 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.
|
|
234
244
|
# @param parent [::String]
|
|
235
245
|
# Required. The parent resource name, such as
|
|
236
246
|
# `projects/{project}/locations/{location}/collections/{collection}`.
|
|
@@ -785,6 +795,7 @@ module Google
|
|
|
785
795
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
786
796
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
787
797
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
798
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
788
799
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
789
800
|
# trigger a retry.
|
|
790
801
|
# @return [::Hash]
|
|
@@ -857,6 +868,7 @@ module Google
|
|
|
857
868
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
858
869
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
859
870
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
871
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
860
872
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
861
873
|
# trigger a retry.
|
|
862
874
|
#
|