diff --git a/AiPlatform/metadata/V1/PredictionService.php b/AiPlatform/metadata/V1/PredictionService.php index 3b3c7394d47..0352e5578b2 100644 --- a/AiPlatform/metadata/V1/PredictionService.php +++ b/AiPlatform/metadata/V1/PredictionService.php @@ -27,7 +27,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xCET\x0A3google/cloud/aiplatform/v1/prediction_service.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/httpbody.proto\x1A\x19google/api/resource.proto\x1A(google/cloud/aiplatform/v1/content.proto\x1A,google/cloud/aiplatform/v1/explanation.proto\x1A%google/cloud/aiplatform/v1/tool.proto\x1A&google/cloud/aiplatform/v1/types.proto\x1A/google/cloud/aiplatform/v1/usage_metadata.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA6\x02\x0A\x0EPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12.\x0A\x09instances\x18\x02 \x03(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x02\x12*\x0A\x0Aparameters\x18\x03 \x01(\x0B2\x16.google.protobuf.Value\x12K\x0A\x06labels\x18\x04 \x03(\x0B26.google.cloud.aiplatform.v1.PredictRequest.LabelsEntryB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x80\x02\x0A\x0FPredictResponse\x12+\x0A\x0Bpredictions\x18\x01 \x03(\x0B2\x16.google.protobuf.Value\x12\x19\x0A\x11deployed_model_id\x18\x02 \x01(\x09\x126\x0A\x05model\x18\x03 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Faiplatform.googleapis.com/Model\x12\x1D\x0A\x10model_version_id\x18\x05 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12model_display_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x12-\x0A\x08metadata\x18\x06 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x03\"z\x0A\x11RawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12'\x0A\x09http_body\x18\x02 \x01(\x0B2\x14.google.api.HttpBody\"\x80\x01\x0A\x17StreamRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12'\x0A\x09http_body\x18\x02 \x01(\x0B2\x14.google.api.HttpBody\"\xC0\x01\x0A\x14DirectPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x122\x0A\x06inputs\x18\x02 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"\x84\x01\x0A\x15DirectPredictResponse\x123\x0A\x07outputs\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x02 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"{\x0A\x17DirectRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x13\x0A\x0Bmethod_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05input\x18\x03 \x01(\x0C\"*\x0A\x18DirectRawPredictResponse\x12\x0E\x0A\x06output\x18\x01 \x01(\x0C\"\xD0\x01\x0A\x1AStreamDirectPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x127\x0A\x06inputs\x18\x02 \x03(\x0B2\".google.cloud.aiplatform.v1.TensorB\x03\xE0A\x01\x12;\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.TensorB\x03\xE0A\x01\"\x8A\x01\x0A\x1BStreamDirectPredictResponse\x123\x0A\x07outputs\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x02 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"\x8B\x01\x0A\x1DStreamDirectRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x18\x0A\x0Bmethod_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05input\x18\x03 \x01(\x0CB\x03\xE0A\x01\"0\x0A\x1EStreamDirectRawPredictResponse\x12\x0E\x0A\x06output\x18\x01 \x01(\x0C\"\xC3\x01\x0A\x17StreamingPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x122\x0A\x06inputs\x18\x02 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"\x87\x01\x0A\x18StreamingPredictResponse\x123\x0A\x07outputs\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x02 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"~\x0A\x1AStreamingRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x13\x0A\x0Bmethod_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05input\x18\x03 \x01(\x0C\"-\x0A\x1BStreamingRawPredictResponse\x12\x0E\x0A\x06output\x18\x01 \x01(\x0C\"\x9D\x02\x0A\x0EExplainRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12.\x0A\x09instances\x18\x02 \x03(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x02\x12*\x0A\x0Aparameters\x18\x04 \x01(\x0B2\x16.google.protobuf.Value\x12V\x0A\x19explanation_spec_override\x18\x05 \x01(\x0B23.google.cloud.aiplatform.v1.ExplanationSpecOverride\x12\x19\x0A\x11deployed_model_id\x18\x03 \x01(\x09\"\x98\x01\x0A\x0FExplainResponse\x12=\x0A\x0Cexplanations\x18\x01 \x03(\x0B2'.google.cloud.aiplatform.v1.Explanation\x12\x19\x0A\x11deployed_model_id\x18\x02 \x01(\x09\x12+\x0A\x0Bpredictions\x18\x03 \x03(\x0B2\x16.google.protobuf.Value\"\xD3\x03\x0A\x12CountTokensRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x12\x0A\x05model\x18\x03 \x01(\x09B\x03\xE0A\x01\x12.\x0A\x09instances\x18\x02 \x03(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\x12:\x0A\x08contents\x18\x04 \x03(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x01\x12I\x0A\x12system_instruction\x18\x05 \x01(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x01H\x00\x88\x01\x01\x124\x0A\x05tools\x18\x06 \x03(\x0B2 .google.cloud.aiplatform.v1.ToolB\x03\xE0A\x01\x12Q\x0A\x11generation_config\x18\x07 \x01(\x0B2,.google.cloud.aiplatform.v1.GenerationConfigB\x03\xE0A\x01H\x01\x88\x01\x01B\x15\x0A\x13_system_instructionB\x14\x0A\x12_generation_config\"\xA2\x01\x0A\x13CountTokensResponse\x12\x14\x0A\x0Ctotal_tokens\x18\x01 \x01(\x05\x12!\x0A\x19total_billable_characters\x18\x02 \x01(\x05\x12R\x0A\x15prompt_tokens_details\x18\x03 \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\"\xF5\x05\x0A\x16GenerateContentRequest\x12\x12\x0A\x05model\x18\x05 \x01(\x09B\x03\xE0A\x02\x12:\x0A\x08contents\x18\x02 \x03(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x02\x12I\x0A\x12system_instruction\x18\x08 \x01(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x01H\x00\x88\x01\x01\x12G\x0A\x0Ecached_content\x18\x09 \x01(\x09B/\xE0A\x01\xFAA)\x0A'aiplatform.googleapis.com/CachedContent\x124\x0A\x05tools\x18\x06 \x03(\x0B2 .google.cloud.aiplatform.v1.ToolB\x03\xE0A\x01\x12@\x0A\x0Btool_config\x18\x07 \x01(\x0B2&.google.cloud.aiplatform.v1.ToolConfigB\x03\xE0A\x01\x12S\x0A\x06labels\x18\x0A \x03(\x0B2>.google.cloud.aiplatform.v1.GenerateContentRequest.LabelsEntryB\x03\xE0A\x01\x12G\x0A\x0Fsafety_settings\x18\x03 \x03(\x0B2).google.cloud.aiplatform.v1.SafetySettingB\x03\xE0A\x01\x12M\x0A\x12model_armor_config\x18\x0B \x01(\x0B2,.google.cloud.aiplatform.v1.ModelArmorConfigB\x03\xE0A\x01\x12L\x0A\x11generation_config\x18\x04 \x01(\x0B2,.google.cloud.aiplatform.v1.GenerationConfigB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x15\x0A\x13_system_instruction\"\xFC\x0B\x0A\x17GenerateContentResponse\x12>\x0A\x0Acandidates\x18\x02 \x03(\x0B2%.google.cloud.aiplatform.v1.CandidateB\x03\xE0A\x03\x12\x1A\x0A\x0Dmodel_version\x18\x0B \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bresponse_id\x18\x0D \x01(\x09B\x03\xE0A\x03\x12`\x0A\x0Fprompt_feedback\x18\x03 \x01(\x0B2B.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedbackB\x03\xE0A\x03\x12Y\x0A\x0Eusage_metadata\x18\x04 \x01(\x0B2A.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata\x1A\xF7\x02\x0A\x0EPromptFeedback\x12k\x0A\x0Cblock_reason\x18\x01 \x01(\x0E2P.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.BlockedReasonB\x03\xE0A\x03\x12E\x0A\x0Esafety_ratings\x18\x02 \x03(\x0B2(.google.cloud.aiplatform.v1.SafetyRatingB\x03\xE0A\x03\x12!\x0A\x14block_reason_message\x18\x03 \x01(\x09B\x03\xE0A\x03\"\x8D\x01\x0A\x0DBlockedReason\x12\x1E\x0A\x1ABLOCKED_REASON_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SAFETY\x10\x01\x12\x09\x0A\x05OTHER\x10\x02\x12\x0D\x0A\x09BLOCKLIST\x10\x03\x12\x16\x0A\x12PROHIBITED_CONTENT\x10\x04\x12\x0F\x0A\x0BMODEL_ARMOR\x10\x05\x12\x0D\x0A\x09JAILBREAK\x10\x06\x1A\xFD\x05\x0A\x0DUsageMetadata\x12\x1A\x0A\x12prompt_token_count\x18\x01 \x01(\x05\x12\x1E\x0A\x16candidates_token_count\x18\x02 \x01(\x05\x12!\x0A\x14thoughts_token_count\x18\x0E \x01(\x05B\x03\xE0A\x03\x12\x19\x0A\x11total_token_count\x18\x03 \x01(\x05\x12'\x0A\x1Acached_content_token_count\x18\x05 \x01(\x05B\x03\xE0A\x03\x12R\x0A\x15prompt_tokens_details\x18\x09 \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12Q\x0A\x14cache_tokens_details\x18\x0A \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12V\x0A\x19candidates_tokens_details\x18\x0B \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12[\x0A\x1Etool_use_prompt_tokens_details\x18\x0C \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12h\x0A\x0Ctraffic_type\x18\x08 \x01(\x0E2M.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata.TrafficTypeB\x03\xE0A\x03\"\x82\x01\x0A\x0BTrafficType\x12\x1C\x0A\x18TRAFFIC_TYPE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x16\x0A\x12ON_DEMAND_PRIORITY\x10\x03\x12\x12\x0A\x0EON_DEMAND_FLEX\x10\x04\x12\x1A\x0A\x16PROVISIONED_THROUGHPUT\x10\x02\"\x84\x05\x0A\x13EmbedContentRequest\x12;\x0A\x05model\x18\x01 \x01(\x09B'\xFAA\$\x0A\"aiplatform.googleapis.com/EndpointH\x00\x88\x01\x01\x129\x0A\x07content\x18\x02 \x01(\x0B2#.google.cloud.aiplatform.v1.ContentH\x01\x88\x01\x01\x12\x17\x0A\x05title\x18\x04 \x01(\x09B\x03\xE0A\x01H\x02\x88\x01\x01\x12^\x0A\x09task_type\x18\x05 \x01(\x0E2A.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskTypeB\x03\xE0A\x01H\x03\x88\x01\x01\x12'\x0A\x15output_dimensionality\x18\x06 \x01(\x05B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x1F\x0A\x0Dauto_truncate\x18\x07 \x01(\x08B\x03\xE0A\x01H\x05\x88\x01\x01\"\xD7\x01\x0A\x11EmbeddingTaskType\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x13\x0A\x0FRETRIEVAL_QUERY\x10\x02\x12\x16\x0A\x12RETRIEVAL_DOCUMENT\x10\x03\x12\x17\x0A\x13SEMANTIC_SIMILARITY\x10\x04\x12\x12\x0A\x0ECLASSIFICATION\x10\x05\x12\x0E\x0A\x0ACLUSTERING\x10\x06\x12\x16\x0A\x12QUESTION_ANSWERING\x10\x07\x12\x15\x0A\x11FACT_VERIFICATION\x10\x08\x12\x18\x0A\x14CODE_RETRIEVAL_QUERY\x10\x09B\x08\x0A\x06_modelB\x0A\x0A\x08_contentB\x08\x0A\x06_titleB\x0C\x0A\x0A_task_typeB\x18\x0A\x16_output_dimensionalityB\x10\x0A\x0E_auto_truncate\"\xD8\x01\x0A\x14EmbedContentResponse\x12M\x0A\x09embedding\x18\x01 \x01(\x0B2:.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding\x12A\x0A\x0Eusage_metadata\x18\x02 \x01(\x0B2).google.cloud.aiplatform.v1.UsageMetadata\x12\x11\x0A\x09truncated\x18\x04 \x01(\x08\x1A\x1B\x0A\x09Embedding\x12\x0E\x0A\x06values\x18\x01 \x03(\x022\xC8\x1B\x0A\x11PredictionService\x12\x94\x02\x0A\x07Predict\x12*.google.cloud.aiplatform.v1.PredictRequest\x1A+.google.cloud.aiplatform.v1.PredictResponse\"\xAF\x01\xDAA\x1Dendpoint,instances,parameters\x82\xD3\xE4\x93\x02\x88\x01\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict:\x01*ZH\"C/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict:\x01*\x12\xFE\x01\x0A\x0ARawPredict\x12-.google.cloud.aiplatform.v1.RawPredictRequest\x1A\x14.google.api.HttpBody\"\xAA\x01\xDAA\x12endpoint,http_body\x82\xD3\xE4\x93\x02\x8E\x01\"\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain:\x01*\x12\x8D\x03\x0A\x0FGenerateContent\x122.google.cloud.aiplatform.v1.GenerateContentRequest\x1A3.google.cloud.aiplatform.v1.GenerateContentResponse\"\x90\x02\xDAA\x0Emodel,contents\x82\xD3\xE4\x93\x02\xF8\x01\">/v1/{model=projects/*/locations/*/endpoints/*}:generateContent:\x01*ZM\"H/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent:\x01*Z,\"'/v1/{model=endpoints/*}:generateContent:\x01*Z6\"1/v1/{model=publishers/*/models/*}:generateContent:\x01*\x12\xAD\x03\x0A\x15StreamGenerateContent\x122.google.cloud.aiplatform.v1.GenerateContentRequest\x1A3.google.cloud.aiplatform.v1.GenerateContentResponse\"\xA8\x02\xDAA\x0Emodel,contents\x82\xD3\xE4\x93\x02\x90\x02\"D/v1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent:\x01*ZS\"N/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\x01*Z2\"-/v1/{model=endpoints/*}:streamGenerateContent:\x01*Z<\"7/v1/{model=publishers/*/models/*}:streamGenerateContent:\x01*0\x01\x12\xD3\x01\x0A\x0CEmbedContent\x12/.google.cloud.aiplatform.v1.EmbedContentRequest\x1A0.google.cloud.aiplatform.v1.EmbedContentResponse\"`\xDAA\x0Dmodel,content\x82\xD3\xE4\x93\x02J\"E/v1/{model=projects/*/locations/*/publishers/*/models/*}:embedContent:\x01*\x1A\x86\x01\xCAA\x19aiplatform.googleapis.com\xD2Aghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xD4\x01\x0A\x1Ecom.google.cloud.aiplatform.v1B\x16PredictionServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1b\x06proto3" + "\x0A\xEFX\x0A3google/cloud/aiplatform/v1/prediction_service.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/httpbody.proto\x1A\x19google/api/resource.proto\x1A(google/cloud/aiplatform/v1/content.proto\x1A,google/cloud/aiplatform/v1/explanation.proto\x1A%google/cloud/aiplatform/v1/tool.proto\x1A&google/cloud/aiplatform/v1/types.proto\x1A/google/cloud/aiplatform/v1/usage_metadata.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA6\x02\x0A\x0EPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12.\x0A\x09instances\x18\x02 \x03(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x02\x12*\x0A\x0Aparameters\x18\x03 \x01(\x0B2\x16.google.protobuf.Value\x12K\x0A\x06labels\x18\x04 \x03(\x0B26.google.cloud.aiplatform.v1.PredictRequest.LabelsEntryB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x80\x02\x0A\x0FPredictResponse\x12+\x0A\x0Bpredictions\x18\x01 \x03(\x0B2\x16.google.protobuf.Value\x12\x19\x0A\x11deployed_model_id\x18\x02 \x01(\x09\x126\x0A\x05model\x18\x03 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Faiplatform.googleapis.com/Model\x12\x1D\x0A\x10model_version_id\x18\x05 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12model_display_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x12-\x0A\x08metadata\x18\x06 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x03\"z\x0A\x11RawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12'\x0A\x09http_body\x18\x02 \x01(\x0B2\x14.google.api.HttpBody\"\x80\x01\x0A\x17StreamRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12'\x0A\x09http_body\x18\x02 \x01(\x0B2\x14.google.api.HttpBody\"\xC0\x01\x0A\x14DirectPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x122\x0A\x06inputs\x18\x02 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"\x84\x01\x0A\x15DirectPredictResponse\x123\x0A\x07outputs\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x02 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"{\x0A\x17DirectRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x13\x0A\x0Bmethod_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05input\x18\x03 \x01(\x0C\"*\x0A\x18DirectRawPredictResponse\x12\x0E\x0A\x06output\x18\x01 \x01(\x0C\"\xD0\x01\x0A\x1AStreamDirectPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x127\x0A\x06inputs\x18\x02 \x03(\x0B2\".google.cloud.aiplatform.v1.TensorB\x03\xE0A\x01\x12;\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.TensorB\x03\xE0A\x01\"\x8A\x01\x0A\x1BStreamDirectPredictResponse\x123\x0A\x07outputs\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x02 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"\x8B\x01\x0A\x1DStreamDirectRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x18\x0A\x0Bmethod_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05input\x18\x03 \x01(\x0CB\x03\xE0A\x01\"0\x0A\x1EStreamDirectRawPredictResponse\x12\x0E\x0A\x06output\x18\x01 \x01(\x0C\"\xC3\x01\x0A\x17StreamingPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x122\x0A\x06inputs\x18\x02 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"\x87\x01\x0A\x18StreamingPredictResponse\x123\x0A\x07outputs\x18\x01 \x03(\x0B2\".google.cloud.aiplatform.v1.Tensor\x126\x0A\x0Aparameters\x18\x02 \x01(\x0B2\".google.cloud.aiplatform.v1.Tensor\"~\x0A\x1AStreamingRawPredictRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x13\x0A\x0Bmethod_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05input\x18\x03 \x01(\x0C\"-\x0A\x1BStreamingRawPredictResponse\x12\x0E\x0A\x06output\x18\x01 \x01(\x0C\"\x9D\x02\x0A\x0EExplainRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12.\x0A\x09instances\x18\x02 \x03(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x02\x12*\x0A\x0Aparameters\x18\x04 \x01(\x0B2\x16.google.protobuf.Value\x12V\x0A\x19explanation_spec_override\x18\x05 \x01(\x0B23.google.cloud.aiplatform.v1.ExplanationSpecOverride\x12\x19\x0A\x11deployed_model_id\x18\x03 \x01(\x09\"\x98\x01\x0A\x0FExplainResponse\x12=\x0A\x0Cexplanations\x18\x01 \x03(\x0B2'.google.cloud.aiplatform.v1.Explanation\x12\x19\x0A\x11deployed_model_id\x18\x02 \x01(\x09\x12+\x0A\x0Bpredictions\x18\x03 \x03(\x0B2\x16.google.protobuf.Value\"\xD3\x03\x0A\x12CountTokensRequest\x12<\x0A\x08endpoint\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"aiplatform.googleapis.com/Endpoint\x12\x12\x0A\x05model\x18\x03 \x01(\x09B\x03\xE0A\x01\x12.\x0A\x09instances\x18\x02 \x03(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\x12:\x0A\x08contents\x18\x04 \x03(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x01\x12I\x0A\x12system_instruction\x18\x05 \x01(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x01H\x00\x88\x01\x01\x124\x0A\x05tools\x18\x06 \x03(\x0B2 .google.cloud.aiplatform.v1.ToolB\x03\xE0A\x01\x12Q\x0A\x11generation_config\x18\x07 \x01(\x0B2,.google.cloud.aiplatform.v1.GenerationConfigB\x03\xE0A\x01H\x01\x88\x01\x01B\x15\x0A\x13_system_instructionB\x14\x0A\x12_generation_config\"\xA2\x01\x0A\x13CountTokensResponse\x12\x14\x0A\x0Ctotal_tokens\x18\x01 \x01(\x05\x12!\x0A\x19total_billable_characters\x18\x02 \x01(\x05\x12R\x0A\x15prompt_tokens_details\x18\x03 \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\"\xF5\x05\x0A\x16GenerateContentRequest\x12\x12\x0A\x05model\x18\x05 \x01(\x09B\x03\xE0A\x02\x12:\x0A\x08contents\x18\x02 \x03(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x02\x12I\x0A\x12system_instruction\x18\x08 \x01(\x0B2#.google.cloud.aiplatform.v1.ContentB\x03\xE0A\x01H\x00\x88\x01\x01\x12G\x0A\x0Ecached_content\x18\x09 \x01(\x09B/\xE0A\x01\xFAA)\x0A'aiplatform.googleapis.com/CachedContent\x124\x0A\x05tools\x18\x06 \x03(\x0B2 .google.cloud.aiplatform.v1.ToolB\x03\xE0A\x01\x12@\x0A\x0Btool_config\x18\x07 \x01(\x0B2&.google.cloud.aiplatform.v1.ToolConfigB\x03\xE0A\x01\x12S\x0A\x06labels\x18\x0A \x03(\x0B2>.google.cloud.aiplatform.v1.GenerateContentRequest.LabelsEntryB\x03\xE0A\x01\x12G\x0A\x0Fsafety_settings\x18\x03 \x03(\x0B2).google.cloud.aiplatform.v1.SafetySettingB\x03\xE0A\x01\x12M\x0A\x12model_armor_config\x18\x0B \x01(\x0B2,.google.cloud.aiplatform.v1.ModelArmorConfigB\x03\xE0A\x01\x12L\x0A\x11generation_config\x18\x04 \x01(\x0B2,.google.cloud.aiplatform.v1.GenerationConfigB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x15\x0A\x13_system_instruction\"\xFC\x0B\x0A\x17GenerateContentResponse\x12>\x0A\x0Acandidates\x18\x02 \x03(\x0B2%.google.cloud.aiplatform.v1.CandidateB\x03\xE0A\x03\x12\x1A\x0A\x0Dmodel_version\x18\x0B \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bresponse_id\x18\x0D \x01(\x09B\x03\xE0A\x03\x12`\x0A\x0Fprompt_feedback\x18\x03 \x01(\x0B2B.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedbackB\x03\xE0A\x03\x12Y\x0A\x0Eusage_metadata\x18\x04 \x01(\x0B2A.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata\x1A\xF7\x02\x0A\x0EPromptFeedback\x12k\x0A\x0Cblock_reason\x18\x01 \x01(\x0E2P.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.BlockedReasonB\x03\xE0A\x03\x12E\x0A\x0Esafety_ratings\x18\x02 \x03(\x0B2(.google.cloud.aiplatform.v1.SafetyRatingB\x03\xE0A\x03\x12!\x0A\x14block_reason_message\x18\x03 \x01(\x09B\x03\xE0A\x03\"\x8D\x01\x0A\x0DBlockedReason\x12\x1E\x0A\x1ABLOCKED_REASON_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SAFETY\x10\x01\x12\x09\x0A\x05OTHER\x10\x02\x12\x0D\x0A\x09BLOCKLIST\x10\x03\x12\x16\x0A\x12PROHIBITED_CONTENT\x10\x04\x12\x0F\x0A\x0BMODEL_ARMOR\x10\x05\x12\x0D\x0A\x09JAILBREAK\x10\x06\x1A\xFD\x05\x0A\x0DUsageMetadata\x12\x1A\x0A\x12prompt_token_count\x18\x01 \x01(\x05\x12\x1E\x0A\x16candidates_token_count\x18\x02 \x01(\x05\x12!\x0A\x14thoughts_token_count\x18\x0E \x01(\x05B\x03\xE0A\x03\x12\x19\x0A\x11total_token_count\x18\x03 \x01(\x05\x12'\x0A\x1Acached_content_token_count\x18\x05 \x01(\x05B\x03\xE0A\x03\x12R\x0A\x15prompt_tokens_details\x18\x09 \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12Q\x0A\x14cache_tokens_details\x18\x0A \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12V\x0A\x19candidates_tokens_details\x18\x0B \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12[\x0A\x1Etool_use_prompt_tokens_details\x18\x0C \x03(\x0B2..google.cloud.aiplatform.v1.ModalityTokenCountB\x03\xE0A\x03\x12h\x0A\x0Ctraffic_type\x18\x08 \x01(\x0E2M.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata.TrafficTypeB\x03\xE0A\x03\"\x82\x01\x0A\x0BTrafficType\x12\x1C\x0A\x18TRAFFIC_TYPE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x16\x0A\x12ON_DEMAND_PRIORITY\x10\x03\x12\x12\x0A\x0EON_DEMAND_FLEX\x10\x04\x12\x1A\x0A\x16PROVISIONED_THROUGHPUT\x10\x02\"\xA5\x09\x0A\x13EmbedContentRequest\x12;\x0A\x05model\x18\x01 \x01(\x09B'\xFAA\$\x0A\"aiplatform.googleapis.com/EndpointH\x00\x88\x01\x01\x129\x0A\x07content\x18\x02 \x01(\x0B2#.google.cloud.aiplatform.v1.ContentH\x01\x88\x01\x01\x12\x19\x0A\x05title\x18\x04 \x01(\x09B\x05\x18\x01\xE0A\x01H\x02\x88\x01\x01\x12`\x0A\x09task_type\x18\x05 \x01(\x0E2A.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskTypeB\x05\x18\x01\xE0A\x01H\x03\x88\x01\x01\x12)\x0A\x15output_dimensionality\x18\x06 \x01(\x05B\x05\x18\x01\xE0A\x01H\x04\x88\x01\x01\x12!\x0A\x0Dauto_truncate\x18\x07 \x01(\x08B\x05\x18\x01\xE0A\x01H\x05\x88\x01\x01\x12j\x0A\x14embed_content_config\x18\x08 \x01(\x0B2B.google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfigB\x03\xE0A\x01H\x06\x88\x01\x01\x1A\x91\x03\x0A\x12EmbedContentConfig\x12\x17\x0A\x05title\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12^\x0A\x09task_type\x18\x02 \x01(\x0E2A.google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskTypeB\x03\xE0A\x01H\x01\x88\x01\x01\x12\x1F\x0A\x0Dauto_truncate\x18\x03 \x01(\x08B\x03\xE0A\x01H\x02\x88\x01\x01\x12'\x0A\x15output_dimensionality\x18\x04 \x01(\x05B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1E\x0A\x0Cdocument_ocr\x18\x05 \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01\x12(\x0A\x16audio_track_extraction\x18\x06 \x01(\x08B\x03\xE0A\x01H\x05\x88\x01\x01B\x08\x0A\x06_titleB\x0C\x0A\x0A_task_typeB\x10\x0A\x0E_auto_truncateB\x18\x0A\x16_output_dimensionalityB\x0F\x0A\x0D_document_ocrB\x19\x0A\x17_audio_track_extraction\"\xD7\x01\x0A\x11EmbeddingTaskType\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x13\x0A\x0FRETRIEVAL_QUERY\x10\x02\x12\x16\x0A\x12RETRIEVAL_DOCUMENT\x10\x03\x12\x17\x0A\x13SEMANTIC_SIMILARITY\x10\x04\x12\x12\x0A\x0ECLASSIFICATION\x10\x05\x12\x0E\x0A\x0ACLUSTERING\x10\x06\x12\x16\x0A\x12QUESTION_ANSWERING\x10\x07\x12\x15\x0A\x11FACT_VERIFICATION\x10\x08\x12\x18\x0A\x14CODE_RETRIEVAL_QUERY\x10\x09B\x08\x0A\x06_modelB\x0A\x0A\x08_contentB\x08\x0A\x06_titleB\x0C\x0A\x0A_task_typeB\x18\x0A\x16_output_dimensionalityB\x10\x0A\x0E_auto_truncateB\x17\x0A\x15_embed_content_config\"\xD8\x01\x0A\x14EmbedContentResponse\x12M\x0A\x09embedding\x18\x01 \x01(\x0B2:.google.cloud.aiplatform.v1.EmbedContentResponse.Embedding\x12A\x0A\x0Eusage_metadata\x18\x02 \x01(\x0B2).google.cloud.aiplatform.v1.UsageMetadata\x12\x11\x0A\x09truncated\x18\x04 \x01(\x08\x1A\x1B\x0A\x09Embedding\x12\x0E\x0A\x06values\x18\x01 \x03(\x022\xC8\x1B\x0A\x11PredictionService\x12\x94\x02\x0A\x07Predict\x12*.google.cloud.aiplatform.v1.PredictRequest\x1A+.google.cloud.aiplatform.v1.PredictResponse\"\xAF\x01\xDAA\x1Dendpoint,instances,parameters\x82\xD3\xE4\x93\x02\x88\x01\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict:\x01*ZH\"C/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict:\x01*\x12\xFE\x01\x0A\x0ARawPredict\x12-.google.cloud.aiplatform.v1.RawPredictRequest\x1A\x14.google.api.HttpBody\"\xAA\x01\xDAA\x12endpoint,http_body\x82\xD3\xE4\x93\x02\x8E\x01\"\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain:\x01*\x12\x8D\x03\x0A\x0FGenerateContent\x122.google.cloud.aiplatform.v1.GenerateContentRequest\x1A3.google.cloud.aiplatform.v1.GenerateContentResponse\"\x90\x02\xDAA\x0Emodel,contents\x82\xD3\xE4\x93\x02\xF8\x01\">/v1/{model=projects/*/locations/*/endpoints/*}:generateContent:\x01*ZM\"H/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent:\x01*Z,\"'/v1/{model=endpoints/*}:generateContent:\x01*Z6\"1/v1/{model=publishers/*/models/*}:generateContent:\x01*\x12\xAD\x03\x0A\x15StreamGenerateContent\x122.google.cloud.aiplatform.v1.GenerateContentRequest\x1A3.google.cloud.aiplatform.v1.GenerateContentResponse\"\xA8\x02\xDAA\x0Emodel,contents\x82\xD3\xE4\x93\x02\x90\x02\"D/v1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent:\x01*ZS\"N/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\x01*Z2\"-/v1/{model=endpoints/*}:streamGenerateContent:\x01*Z<\"7/v1/{model=publishers/*/models/*}:streamGenerateContent:\x01*0\x01\x12\xD3\x01\x0A\x0CEmbedContent\x12/.google.cloud.aiplatform.v1.EmbedContentRequest\x1A0.google.cloud.aiplatform.v1.EmbedContentResponse\"`\xDAA\x0Dmodel,content\x82\xD3\xE4\x93\x02J\"E/v1/{model=projects/*/locations/*/publishers/*/models/*}:embedContent:\x01*\x1A\x86\x01\xCAA\x19aiplatform.googleapis.com\xD2Aghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xD4\x01\x0A\x1Ecom.google.cloud.aiplatform.v1B\x16PredictionServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AiPlatform/metadata/V1/Tool.php b/AiPlatform/metadata/V1/Tool.php index 9faef715a01..bb6004b3c45 100644 --- a/AiPlatform/metadata/V1/Tool.php +++ b/AiPlatform/metadata/V1/Tool.php @@ -20,7 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Type\Latlng::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xFA.\x0A%google/cloud/aiplatform/v1/tool.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/aiplatform/v1/openapi.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x18google/type/latlng.proto\"\xAB\x0A\x0A\x04Tool\x12S\x0A\x15function_declarations\x18\x01 \x03(\x0B2/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xE0A\x01\x12=\x0A\x09retrieval\x18\x02 \x01(\x0B2%.google.cloud.aiplatform.v1.RetrievalB\x03\xE0A\x01\x12I\x0A\x0Dgoogle_search\x18\x07 \x01(\x0B2-.google.cloud.aiplatform.v1.Tool.GoogleSearchB\x03\xE0A\x01\x12W\x0A\x17google_search_retrieval\x18\x03 \x01(\x0B21.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\x03\xE0A\x01\x12@\x0A\x0Bgoogle_maps\x18\x05 \x01(\x0B2&.google.cloud.aiplatform.v1.GoogleMapsB\x03\xE0A\x01\x12S\x0A\x15enterprise_web_search\x18\x06 \x01(\x0B2/.google.cloud.aiplatform.v1.EnterpriseWebSearchB\x03\xE0A\x01\x12K\x0A\x0Ecode_execution\x18\x04 \x01(\x0B2..google.cloud.aiplatform.v1.Tool.CodeExecutionB\x03\xE0A\x01\x12@\x0A\x0Burl_context\x18\x0A \x01(\x0B2&.google.cloud.aiplatform.v1.UrlContextB\x03\xE0A\x01\x12G\x0A\x0Ccomputer_use\x18\x0B \x01(\x0B2,.google.cloud.aiplatform.v1.Tool.ComputerUseB\x03\xE0A\x01\x1A\xA1\x01\x0A\x0CGoogleSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x03 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x04 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\x1A\x0F\x0A\x0DCodeExecution\x1A\xD2\x01\x0A\x0BComputerUse\x12R\x0A\x0Benvironment\x18\x01 \x01(\x0E28.google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\x03\xE0A\x02\x12*\x0A\x1Dexcluded_predefined_functions\x18\x02 \x03(\x09B\x03\xE0A\x01\"C\x0A\x0BEnvironment\x12\x1B\x0A\x17ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x17\x0A\x13ENVIRONMENT_BROWSER\x10\x01\"\xE5\x01\x0A\x13PhishBlockThreshold\x12%\x0A!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BLOCK_LOW_AND_ABOVE\x10\x1E\x12\x1A\x0A\x16BLOCK_MEDIUM_AND_ABOVE\x10(\x12\x18\x0A\x14BLOCK_HIGH_AND_ABOVE\x102\x12\x1A\x0A\x16BLOCK_HIGHER_AND_ABOVE\x107\x12\x1D\x0A\x19BLOCK_VERY_HIGH_AND_ABOVE\x10<\x12\x1D\x0A\x19BLOCK_ONLY_EXTREMELY_HIGH\x10dJ\x04\x08\x08\x10\x09J\x04\x08\x09\x10\x0A\"\x0C\x0A\x0AUrlContext\"\xB2\x02\x0A\x13FunctionDeclaration\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x12;\x0A\x16parameters_json_schema\x18\x05 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\x129\x0A\x08response\x18\x04 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x129\x0A\x14response_json_schema\x18\x06 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\"\xAC\x01\x0A\x0CFunctionCall\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x04args\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x0Cpartial_args\x18\x04 \x03(\x0B2&.google.cloud.aiplatform.v1.PartialArgB\x03\xE0A\x01\x12\x1A\x0A\x0Dwill_continue\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xD5\x01\x0A\x0APartialArg\x125\x0A\x0Anull_value\x18\x02 \x01(\x0E2\x1A.google.protobuf.NullValueB\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cnumber_value\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cstring_value\x18\x04 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Abool_value\x18\x05 \x01(\x08B\x03\xE0A\x01H\x00\x12\x16\x0A\x09json_path\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dwill_continue\x18\x06 \x01(\x08B\x03\xE0A\x01B\x07\x0A\x05delta\"\xB2\x01\x0A\x14FunctionResponsePart\x12G\x0A\x0Binline_data\x18\x01 \x01(\x0B20.google.cloud.aiplatform.v1.FunctionResponseBlobH\x00\x12I\x0A\x09file_data\x18\x02 \x01(\x0B24.google.cloud.aiplatform.v1.FunctionResponseFileDataH\x00B\x06\x0A\x04data\"\\\x0A\x14FunctionResponseBlob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\"d\x0A\x18FunctionResponseFileData\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08file_uri\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x10FunctionResponse\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12.\x0A\x08response\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x02\x12D\x0A\x05parts\x18\x04 \x03(\x0B20.google.cloud.aiplatform.v1.FunctionResponsePartB\x03\xE0A\x01\"\xA1\x01\x0A\x0EExecutableCode\x12J\x0A\x08language\x18\x01 \x01(\x0E23.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\x03\xE0A\x02\x12\x11\x0A\x04code\x18\x02 \x01(\x09B\x03\xE0A\x02\"0\x0A\x08Language\x12\x18\x0A\x14LANGUAGE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PYTHON\x10\x01\"\xE0\x01\x0A\x13CodeExecutionResult\x12M\x0A\x07outcome\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\x03\xE0A\x02\x12\x13\x0A\x06output\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A\x07Outcome\x12\x17\x0A\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AOUTCOME_OK\x10\x01\x12\x12\x0A\x0EOUTCOME_FAILED\x10\x02\x12\x1D\x0A\x19OUTCOME_DEADLINE_EXCEEDED\x10\x03\"\xC9\x01\x0A\x09Retrieval\x12F\x0A\x10vertex_ai_search\x18\x02 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12F\x0A\x10vertex_rag_store\x18\x04 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexRagStoreH\x00\x12\"\x0A\x13disable_attribution\x18\x03 \x01(\x08B\x05\x18\x01\xE0A\x01B\x08\x0A\x06source\"\xAA\x03\x0A\x0EVertexRagStore\x12R\x0A\x0Drag_resources\x18\x04 \x03(\x0B26.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\x03\xE0A\x01\x12\$\x0A\x10similarity_top_k\x18\x02 \x01(\x05B\x05\x18\x01\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x05\x18\x01\xE0A\x01H\x01\x88\x01\x01\x12Q\x0A\x14rag_retrieval_config\x18\x06 \x01(\x0B2..google.cloud.aiplatform.v1.RagRetrievalConfigB\x03\xE0A\x01\x1Ai\x0A\x0BRagResource\x12?\x0A\x0Arag_corpus\x18\x01 \x01(\x09B+\xE0A\x01\xFAA%\x0A#aiplatform.googleapis.com/RagCorpus\x12\x19\x0A\x0Crag_file_ids\x18\x02 \x03(\x09B\x03\xE0A\x01B\x13\x0A\x11_similarity_top_kB\x1C\x0A\x1A_vector_distance_threshold\"\xFA\x01\x0A\x0EVertexAISearch\x12\x16\x0A\x09datastore\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06engine\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bmax_results\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12R\x0A\x10data_store_specs\x18\x05 \x03(\x0B28.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\x1A8\x0A\x0DDataStoreSpec\x12\x12\x0A\x0Adata_store\x18\x01 \x01(\x09\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\"m\x0A\x15GoogleSearchRetrieval\x12T\x0A\x18dynamic_retrieval_config\x18\x02 \x01(\x0B22.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\x0A\x0AGoogleMaps\x12\x1A\x0A\x0Denable_widget\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x13EnterpriseWebSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x01 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x02 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\"\xCA\x01\x0A\x16DynamicRetrievalConfig\x12E\x0A\x04mode\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\x12#\x0A\x11dynamic_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01H\x00\x88\x01\x01\".\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CMODE_DYNAMIC\x10\x01B\x14\x0A\x12_dynamic_threshold\"\xB1\x01\x0A\x0AToolConfig\x12W\x0A\x17function_calling_config\x18\x01 \x01(\x0B21.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xE0A\x01\x12J\x0A\x10retrieval_config\x18\x02 \x01(\x0B2+.google.cloud.aiplatform.v1.RetrievalConfigB\x03\xE0A\x01\"\xEF\x01\x0A\x15FunctionCallingConfig\x12I\x0A\x04mode\x18\x01 \x01(\x0E26.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xE0A\x01\x12#\x0A\x16allowed_function_names\x18\x02 \x03(\x09B\x03\xE0A\x01\x12+\x0A\x1Estream_function_call_arguments\x18\x04 \x01(\x08B\x03\xE0A\x01\"9\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04AUTO\x10\x01\x12\x07\x0A\x03ANY\x10\x02\x12\x08\x0A\x04NONE\x10\x03\"v\x0A\x0FRetrievalConfig\x12)\x0A\x07lat_lng\x18\x01 \x01(\x0B2\x13.google.type.LatLngH\x00\x88\x01\x01\x12\x1A\x0A\x0Dlanguage_code\x18\x02 \x01(\x09H\x01\x88\x01\x01B\x0A\x0A\x08_lat_lngB\x10\x0A\x0E_language_code\"\xAA\x05\x0A\x12RagRetrievalConfig\x12\x12\x0A\x05top_k\x18\x01 \x01(\x05B\x03\xE0A\x01\x12J\x0A\x06filter\x18\x03 \x01(\x0B25.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\x03\xE0A\x01\x12L\x0A\x07ranking\x18\x04 \x01(\x0B26.google.cloud.aiplatform.v1.RagRetrievalConfig.RankingB\x03\xE0A\x01\x1A\x93\x01\x0A\x06Filter\x12(\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12*\x0A\x1Bvector_similarity_threshold\x18\x04 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1C\x0A\x0Fmetadata_filter\x18\x02 \x01(\x09B\x03\xE0A\x01B\x15\x0A\x13vector_db_threshold\x1A\xCF\x02\x0A\x07Ranking\x12_\x0A\x0Crank_service\x18\x01 \x01(\x0B2B.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\x03\xE0A\x01H\x00\x12[\x0A\x0Allm_ranker\x18\x03 \x01(\x0B2@.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\x03\xE0A\x01H\x00\x1A:\x0A\x0BRankService\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_name\x1A8\x0A\x09LlmRanker\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_nameB\x10\x0A\x0Eranking_configB\xC7\x01\x0A\x1Ecom.google.cloud.aiplatform.v1B\x09ToolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1b\x06proto3" + "\x0A\x8F/\x0A%google/cloud/aiplatform/v1/tool.proto\x12\x1Agoogle.cloud.aiplatform.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/aiplatform/v1/openapi.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x18google/type/latlng.proto\"\xAB\x0A\x0A\x04Tool\x12S\x0A\x15function_declarations\x18\x01 \x03(\x0B2/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xE0A\x01\x12=\x0A\x09retrieval\x18\x02 \x01(\x0B2%.google.cloud.aiplatform.v1.RetrievalB\x03\xE0A\x01\x12I\x0A\x0Dgoogle_search\x18\x07 \x01(\x0B2-.google.cloud.aiplatform.v1.Tool.GoogleSearchB\x03\xE0A\x01\x12W\x0A\x17google_search_retrieval\x18\x03 \x01(\x0B21.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\x03\xE0A\x01\x12@\x0A\x0Bgoogle_maps\x18\x05 \x01(\x0B2&.google.cloud.aiplatform.v1.GoogleMapsB\x03\xE0A\x01\x12S\x0A\x15enterprise_web_search\x18\x06 \x01(\x0B2/.google.cloud.aiplatform.v1.EnterpriseWebSearchB\x03\xE0A\x01\x12K\x0A\x0Ecode_execution\x18\x04 \x01(\x0B2..google.cloud.aiplatform.v1.Tool.CodeExecutionB\x03\xE0A\x01\x12@\x0A\x0Burl_context\x18\x0A \x01(\x0B2&.google.cloud.aiplatform.v1.UrlContextB\x03\xE0A\x01\x12G\x0A\x0Ccomputer_use\x18\x0B \x01(\x0B2,.google.cloud.aiplatform.v1.Tool.ComputerUseB\x03\xE0A\x01\x1A\xA1\x01\x0A\x0CGoogleSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x03 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x04 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\x1A\x0F\x0A\x0DCodeExecution\x1A\xD2\x01\x0A\x0BComputerUse\x12R\x0A\x0Benvironment\x18\x01 \x01(\x0E28.google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\x03\xE0A\x02\x12*\x0A\x1Dexcluded_predefined_functions\x18\x02 \x03(\x09B\x03\xE0A\x01\"C\x0A\x0BEnvironment\x12\x1B\x0A\x17ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x17\x0A\x13ENVIRONMENT_BROWSER\x10\x01\"\xE5\x01\x0A\x13PhishBlockThreshold\x12%\x0A!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BLOCK_LOW_AND_ABOVE\x10\x1E\x12\x1A\x0A\x16BLOCK_MEDIUM_AND_ABOVE\x10(\x12\x18\x0A\x14BLOCK_HIGH_AND_ABOVE\x102\x12\x1A\x0A\x16BLOCK_HIGHER_AND_ABOVE\x107\x12\x1D\x0A\x19BLOCK_VERY_HIGH_AND_ABOVE\x10<\x12\x1D\x0A\x19BLOCK_ONLY_EXTREMELY_HIGH\x10dJ\x04\x08\x08\x10\x09J\x04\x08\x09\x10\x0A\"\x0C\x0A\x0AUrlContext\"\xB2\x02\x0A\x13FunctionDeclaration\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x0Aparameters\x18\x03 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x12;\x0A\x16parameters_json_schema\x18\x05 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\x129\x0A\x08response\x18\x04 \x01(\x0B2\".google.cloud.aiplatform.v1.SchemaB\x03\xE0A\x01\x129\x0A\x14response_json_schema\x18\x06 \x01(\x0B2\x16.google.protobuf.ValueB\x03\xE0A\x01\"\xAC\x01\x0A\x0CFunctionCall\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x04args\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x01\x12A\x0A\x0Cpartial_args\x18\x04 \x03(\x0B2&.google.cloud.aiplatform.v1.PartialArgB\x03\xE0A\x01\x12\x1A\x0A\x0Dwill_continue\x18\x05 \x01(\x08B\x03\xE0A\x01\"\xD5\x01\x0A\x0APartialArg\x125\x0A\x0Anull_value\x18\x02 \x01(\x0E2\x1A.google.protobuf.NullValueB\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cnumber_value\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1B\x0A\x0Cstring_value\x18\x04 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Abool_value\x18\x05 \x01(\x08B\x03\xE0A\x01H\x00\x12\x16\x0A\x09json_path\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dwill_continue\x18\x06 \x01(\x08B\x03\xE0A\x01B\x07\x0A\x05delta\"\xB2\x01\x0A\x14FunctionResponsePart\x12G\x0A\x0Binline_data\x18\x01 \x01(\x0B20.google.cloud.aiplatform.v1.FunctionResponseBlobH\x00\x12I\x0A\x09file_data\x18\x02 \x01(\x0B24.google.cloud.aiplatform.v1.FunctionResponseFileDataH\x00B\x06\x0A\x04data\"\\\x0A\x14FunctionResponseBlob\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04data\x18\x02 \x01(\x0CB\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\"d\x0A\x18FunctionResponseFileData\x12\x16\x0A\x09mime_type\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08file_uri\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x10FunctionResponse\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12.\x0A\x08response\x18\x02 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x02\x12D\x0A\x05parts\x18\x04 \x03(\x0B20.google.cloud.aiplatform.v1.FunctionResponsePartB\x03\xE0A\x01\"\xA1\x01\x0A\x0EExecutableCode\x12J\x0A\x08language\x18\x01 \x01(\x0E23.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\x03\xE0A\x02\x12\x11\x0A\x04code\x18\x02 \x01(\x09B\x03\xE0A\x02\"0\x0A\x08Language\x12\x18\x0A\x14LANGUAGE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PYTHON\x10\x01\"\xE0\x01\x0A\x13CodeExecutionResult\x12M\x0A\x07outcome\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\x03\xE0A\x02\x12\x13\x0A\x06output\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A\x07Outcome\x12\x17\x0A\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AOUTCOME_OK\x10\x01\x12\x12\x0A\x0EOUTCOME_FAILED\x10\x02\x12\x1D\x0A\x19OUTCOME_DEADLINE_EXCEEDED\x10\x03\"\xC9\x01\x0A\x09Retrieval\x12F\x0A\x10vertex_ai_search\x18\x02 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12F\x0A\x10vertex_rag_store\x18\x04 \x01(\x0B2*.google.cloud.aiplatform.v1.VertexRagStoreH\x00\x12\"\x0A\x13disable_attribution\x18\x03 \x01(\x08B\x05\x18\x01\xE0A\x01B\x08\x0A\x06source\"\xAA\x03\x0A\x0EVertexRagStore\x12R\x0A\x0Drag_resources\x18\x04 \x03(\x0B26.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\x03\xE0A\x01\x12\$\x0A\x10similarity_top_k\x18\x02 \x01(\x05B\x05\x18\x01\xE0A\x01H\x00\x88\x01\x01\x12-\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x05\x18\x01\xE0A\x01H\x01\x88\x01\x01\x12Q\x0A\x14rag_retrieval_config\x18\x06 \x01(\x0B2..google.cloud.aiplatform.v1.RagRetrievalConfigB\x03\xE0A\x01\x1Ai\x0A\x0BRagResource\x12?\x0A\x0Arag_corpus\x18\x01 \x01(\x09B+\xE0A\x01\xFAA%\x0A#aiplatform.googleapis.com/RagCorpus\x12\x19\x0A\x0Crag_file_ids\x18\x02 \x03(\x09B\x03\xE0A\x01B\x13\x0A\x11_similarity_top_kB\x1C\x0A\x1A_vector_distance_threshold\"\xFA\x01\x0A\x0EVertexAISearch\x12\x16\x0A\x09datastore\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06engine\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bmax_results\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12R\x0A\x10data_store_specs\x18\x05 \x03(\x0B28.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\x1A8\x0A\x0DDataStoreSpec\x12\x12\x0A\x0Adata_store\x18\x01 \x01(\x09\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\"m\x0A\x15GoogleSearchRetrieval\x12T\x0A\x18dynamic_retrieval_config\x18\x02 \x01(\x0B22.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\x0A\x0AGoogleMaps\x12\x1A\x0A\x0Denable_widget\x18\x01 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x13EnterpriseWebSearch\x12\x1C\x0A\x0Fexclude_domains\x18\x01 \x03(\x09B\x03\xE0A\x01\x12[\x0A\x13blocking_confidence\x18\x02 \x01(\x0E24.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_blocking_confidence\"\xCA\x01\x0A\x16DynamicRetrievalConfig\x12E\x0A\x04mode\x18\x01 \x01(\x0E27.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\x12#\x0A\x11dynamic_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01H\x00\x88\x01\x01\".\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CMODE_DYNAMIC\x10\x01B\x14\x0A\x12_dynamic_threshold\"\xB1\x01\x0A\x0AToolConfig\x12W\x0A\x17function_calling_config\x18\x01 \x01(\x0B21.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xE0A\x01\x12J\x0A\x10retrieval_config\x18\x02 \x01(\x0B2+.google.cloud.aiplatform.v1.RetrievalConfigB\x03\xE0A\x01\"\x84\x02\x0A\x15FunctionCallingConfig\x12I\x0A\x04mode\x18\x01 \x01(\x0E26.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xE0A\x01\x12#\x0A\x16allowed_function_names\x18\x02 \x03(\x09B\x03\xE0A\x01\x12+\x0A\x1Estream_function_call_arguments\x18\x04 \x01(\x08B\x03\xE0A\x01\"N\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04AUTO\x10\x01\x12\x07\x0A\x03ANY\x10\x02\x12\x08\x0A\x04NONE\x10\x03\x12\x0D\x0A\x09VALIDATED\x10\x05\"\x04\x08\x04\x10\x04\"v\x0A\x0FRetrievalConfig\x12)\x0A\x07lat_lng\x18\x01 \x01(\x0B2\x13.google.type.LatLngH\x00\x88\x01\x01\x12\x1A\x0A\x0Dlanguage_code\x18\x02 \x01(\x09H\x01\x88\x01\x01B\x0A\x0A\x08_lat_lngB\x10\x0A\x0E_language_code\"\xAA\x05\x0A\x12RagRetrievalConfig\x12\x12\x0A\x05top_k\x18\x01 \x01(\x05B\x03\xE0A\x01\x12J\x0A\x06filter\x18\x03 \x01(\x0B25.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\x03\xE0A\x01\x12L\x0A\x07ranking\x18\x04 \x01(\x0B26.google.cloud.aiplatform.v1.RagRetrievalConfig.RankingB\x03\xE0A\x01\x1A\x93\x01\x0A\x06Filter\x12(\x0A\x19vector_distance_threshold\x18\x03 \x01(\x01B\x03\xE0A\x01H\x00\x12*\x0A\x1Bvector_similarity_threshold\x18\x04 \x01(\x01B\x03\xE0A\x01H\x00\x12\x1C\x0A\x0Fmetadata_filter\x18\x02 \x01(\x09B\x03\xE0A\x01B\x15\x0A\x13vector_db_threshold\x1A\xCF\x02\x0A\x07Ranking\x12_\x0A\x0Crank_service\x18\x01 \x01(\x0B2B.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\x03\xE0A\x01H\x00\x12[\x0A\x0Allm_ranker\x18\x03 \x01(\x0B2@.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\x03\xE0A\x01H\x00\x1A:\x0A\x0BRankService\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_name\x1A8\x0A\x09LlmRanker\x12\x1C\x0A\x0Amodel_name\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x0D\x0A\x0B_model_nameB\x10\x0A\x0Eranking_configB\xC7\x01\x0A\x1Ecom.google.cloud.aiplatform.v1B\x09ToolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xAA\x02\x1AGoogle.Cloud.AIPlatform.V1\xCA\x02\x1AGoogle\\Cloud\\AIPlatform\\V1\xEA\x02\x1DGoogle::Cloud::AIPlatform::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AiPlatform/src/V1/EmbedContentRequest.php b/AiPlatform/src/V1/EmbedContentRequest.php index 3e30d7afc57..8bdf7ad73e3 100644 --- a/AiPlatform/src/V1/EmbedContentRequest.php +++ b/AiPlatform/src/V1/EmbedContentRequest.php @@ -25,43 +25,57 @@ class EmbedContentRequest extends \Google\Protobuf\Internal\Message */ protected $model = null; /** - * Required. Input content to be embedded. Required. + * Required. Input content to be embedded. * * Generated from protobuf field optional .google.cloud.aiplatform.v1.Content content = 2; */ protected $content = null; /** - * Optional. An optional title for the text. + * Optional. Deprecated: Please use EmbedContentConfig.title instead. + * The title for the text. * - * Generated from protobuf field optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string title = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $title = null; /** - * Optional. The task type of the embedding. + * Optional. Deprecated: Please use EmbedContentConfig.task_type instead. + * The task type of the embedding. * - * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $task_type = null; /** - * Optional. Optional reduced dimension for the output embedding. If set, - * excessive values in the output embedding are truncated from the end. + * Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality + * instead. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. * - * Generated from protobuf field optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional int32 output_dimensionality = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $output_dimensionality = null; /** - * Optional. Whether to silently truncate the input content if it's longer + * Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. + * Whether to silently truncate the input content if it's longer * than the maximum sequence length. * - * Generated from protobuf field optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional bool auto_truncate = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $auto_truncate = null; + /** + * Optional. Configuration for the EmbedContent request. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $embed_content_config = null; /** * @param string $model Required. The name of the publisher model requested to serve the * prediction. Format: * `projects/{project}/locations/{location}/publishers/*/models/*` - * @param \Google\Cloud\AIPlatform\V1\Content $content Required. Input content to be embedded. Required. + * @param \Google\Cloud\AIPlatform\V1\Content $content Required. Input content to be embedded. * * @return \Google\Cloud\AIPlatform\V1\EmbedContentRequest * @@ -85,17 +99,23 @@ public static function build(string $model, \Google\Cloud\AIPlatform\V1\Content * prediction. Format: * `projects/{project}/locations/{location}/publishers/{@*}models/*` * @type \Google\Cloud\AIPlatform\V1\Content $content - * Required. Input content to be embedded. Required. + * Required. Input content to be embedded. * @type string $title - * Optional. An optional title for the text. + * Optional. Deprecated: Please use EmbedContentConfig.title instead. + * The title for the text. * @type int $task_type - * Optional. The task type of the embedding. + * Optional. Deprecated: Please use EmbedContentConfig.task_type instead. + * The task type of the embedding. * @type int $output_dimensionality - * Optional. Optional reduced dimension for the output embedding. If set, - * excessive values in the output embedding are truncated from the end. + * Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality + * instead. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. * @type bool $auto_truncate - * Optional. Whether to silently truncate the input content if it's longer + * Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. + * Whether to silently truncate the input content if it's longer * than the maximum sequence length. + * @type \Google\Cloud\AIPlatform\V1\EmbedContentRequest\EmbedContentConfig $embed_content_config + * Optional. Configuration for the EmbedContent request. * } */ public function __construct($data = NULL) { @@ -144,7 +164,7 @@ public function setModel($var) } /** - * Required. Input content to be embedded. Required. + * Required. Input content to be embedded. * * Generated from protobuf field optional .google.cloud.aiplatform.v1.Content content = 2; * @return \Google\Cloud\AIPlatform\V1\Content|null @@ -165,7 +185,7 @@ public function clearContent() } /** - * Required. Input content to be embedded. Required. + * Required. Input content to be embedded. * * Generated from protobuf field optional .google.cloud.aiplatform.v1.Content content = 2; * @param \Google\Cloud\AIPlatform\V1\Content $var @@ -180,35 +200,47 @@ public function setContent($var) } /** - * Optional. An optional title for the text. + * Optional. Deprecated: Please use EmbedContentConfig.title instead. + * The title for the text. * - * Generated from protobuf field optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string title = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return string + * @deprecated */ public function getTitle() { + if (isset($this->title)) { + @trigger_error('title is deprecated.', E_USER_DEPRECATED); + } return isset($this->title) ? $this->title : ''; } public function hasTitle() { + if (isset($this->title)) { + @trigger_error('title is deprecated.', E_USER_DEPRECATED); + } return isset($this->title); } public function clearTitle() { + @trigger_error('title is deprecated.', E_USER_DEPRECATED); unset($this->title); } /** - * Optional. An optional title for the text. + * Optional. Deprecated: Please use EmbedContentConfig.title instead. + * The title for the text. * - * Generated from protobuf field optional string title = 4 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional string title = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this + * @deprecated */ public function setTitle($var) { + @trigger_error('title is deprecated.', E_USER_DEPRECATED); GPBUtil::checkString($var, True); $this->title = $var; @@ -216,35 +248,47 @@ public function setTitle($var) } /** - * Optional. The task type of the embedding. + * Optional. Deprecated: Please use EmbedContentConfig.task_type instead. + * The task type of the embedding. * - * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return int + * @deprecated */ public function getTaskType() { + if (isset($this->task_type)) { + @trigger_error('task_type is deprecated.', E_USER_DEPRECATED); + } return isset($this->task_type) ? $this->task_type : 0; } public function hasTaskType() { + if (isset($this->task_type)) { + @trigger_error('task_type is deprecated.', E_USER_DEPRECATED); + } return isset($this->task_type); } public function clearTaskType() { + @trigger_error('task_type is deprecated.', E_USER_DEPRECATED); unset($this->task_type); } /** - * Optional. The task type of the embedding. + * Optional. Deprecated: Please use EmbedContentConfig.task_type instead. + * The task type of the embedding. * - * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this + * @deprecated */ public function setTaskType($var) { + @trigger_error('task_type is deprecated.', E_USER_DEPRECATED); GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\EmbedContentRequest\EmbeddingTaskType::class); $this->task_type = $var; @@ -252,37 +296,49 @@ public function setTaskType($var) } /** - * Optional. Optional reduced dimension for the output embedding. If set, - * excessive values in the output embedding are truncated from the end. + * Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality + * instead. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. * - * Generated from protobuf field optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional int32 output_dimensionality = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return int + * @deprecated */ public function getOutputDimensionality() { + if (isset($this->output_dimensionality)) { + @trigger_error('output_dimensionality is deprecated.', E_USER_DEPRECATED); + } return isset($this->output_dimensionality) ? $this->output_dimensionality : 0; } public function hasOutputDimensionality() { + if (isset($this->output_dimensionality)) { + @trigger_error('output_dimensionality is deprecated.', E_USER_DEPRECATED); + } return isset($this->output_dimensionality); } public function clearOutputDimensionality() { + @trigger_error('output_dimensionality is deprecated.', E_USER_DEPRECATED); unset($this->output_dimensionality); } /** - * Optional. Optional reduced dimension for the output embedding. If set, - * excessive values in the output embedding are truncated from the end. + * Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality + * instead. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. * - * Generated from protobuf field optional int32 output_dimensionality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional int32 output_dimensionality = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this + * @deprecated */ public function setOutputDimensionality($var) { + @trigger_error('output_dimensionality is deprecated.', E_USER_DEPRECATED); GPBUtil::checkInt32($var); $this->output_dimensionality = $var; @@ -290,42 +346,90 @@ public function setOutputDimensionality($var) } /** - * Optional. Whether to silently truncate the input content if it's longer + * Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. + * Whether to silently truncate the input content if it's longer * than the maximum sequence length. * - * Generated from protobuf field optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional bool auto_truncate = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return bool + * @deprecated */ public function getAutoTruncate() { + if (isset($this->auto_truncate)) { + @trigger_error('auto_truncate is deprecated.', E_USER_DEPRECATED); + } return isset($this->auto_truncate) ? $this->auto_truncate : false; } public function hasAutoTruncate() { + if (isset($this->auto_truncate)) { + @trigger_error('auto_truncate is deprecated.', E_USER_DEPRECATED); + } return isset($this->auto_truncate); } public function clearAutoTruncate() { + @trigger_error('auto_truncate is deprecated.', E_USER_DEPRECATED); unset($this->auto_truncate); } /** - * Optional. Whether to silently truncate the input content if it's longer + * Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead. + * Whether to silently truncate the input content if it's longer * than the maximum sequence length. * - * Generated from protobuf field optional bool auto_truncate = 7 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field optional bool auto_truncate = 7 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this + * @deprecated */ public function setAutoTruncate($var) { + @trigger_error('auto_truncate is deprecated.', E_USER_DEPRECATED); GPBUtil::checkBool($var); $this->auto_truncate = $var; return $this; } + /** + * Optional. Configuration for the EmbedContent request. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\AIPlatform\V1\EmbedContentRequest\EmbedContentConfig|null + */ + public function getEmbedContentConfig() + { + return $this->embed_content_config; + } + + public function hasEmbedContentConfig() + { + return isset($this->embed_content_config); + } + + public function clearEmbedContentConfig() + { + unset($this->embed_content_config); + } + + /** + * Optional. Configuration for the EmbedContent request. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig embed_content_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\AIPlatform\V1\EmbedContentRequest\EmbedContentConfig $var + * @return $this + */ + public function setEmbedContentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\EmbedContentRequest\EmbedContentConfig::class); + $this->embed_content_config = $var; + + return $this; + } + } diff --git a/AiPlatform/src/V1/EmbedContentRequest/EmbedContentConfig.php b/AiPlatform/src/V1/EmbedContentRequest/EmbedContentConfig.php new file mode 100644 index 00000000000..0a4f4b84433 --- /dev/null +++ b/AiPlatform/src/V1/EmbedContentRequest/EmbedContentConfig.php @@ -0,0 +1,317 @@ +google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig + */ +class EmbedContentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The title for the text. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $title = null; + /** + * Optional. The task type of the embedding. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $task_type = null; + /** + * Optional. Whether to silently truncate the input content if it's longer + * than the maximum sequence length. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional bool auto_truncate = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $auto_truncate = null; + /** + * Optional. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. + * + * Generated from protobuf field optional int32 output_dimensionality = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $output_dimensionality = null; + /** + * Optional. Whether to enable OCR for document content. + * + * Generated from protobuf field optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $document_ocr = null; + /** + * Optional. Whether to extract audio from video content. + * + * Generated from protobuf field optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $audio_track_extraction = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * Optional. The title for the text. + * Only applicable to text-only embedding models. + * @type int $task_type + * Optional. The task type of the embedding. + * Only applicable to text-only embedding models. + * @type bool $auto_truncate + * Optional. Whether to silently truncate the input content if it's longer + * than the maximum sequence length. + * Only applicable to text-only embedding models. + * @type int $output_dimensionality + * Optional. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. + * @type bool $document_ocr + * Optional. Whether to enable OCR for document content. + * @type bool $audio_track_extraction + * Optional. Whether to extract audio from video content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\PredictionService::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The title for the text. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTitle() + { + return isset($this->title) ? $this->title : ''; + } + + public function hasTitle() + { + return isset($this->title); + } + + public function clearTitle() + { + unset($this->title); + } + + /** + * Optional. The title for the text. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * Optional. The task type of the embedding. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTaskType() + { + return isset($this->task_type) ? $this->task_type : 0; + } + + public function hasTaskType() + { + return isset($this->task_type); + } + + public function clearTaskType() + { + unset($this->task_type); + } + + /** + * Optional. The task type of the embedding. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional .google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType task_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTaskType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\EmbedContentRequest\EmbeddingTaskType::class); + $this->task_type = $var; + + return $this; + } + + /** + * Optional. Whether to silently truncate the input content if it's longer + * than the maximum sequence length. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional bool auto_truncate = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAutoTruncate() + { + return isset($this->auto_truncate) ? $this->auto_truncate : false; + } + + public function hasAutoTruncate() + { + return isset($this->auto_truncate); + } + + public function clearAutoTruncate() + { + unset($this->auto_truncate); + } + + /** + * Optional. Whether to silently truncate the input content if it's longer + * than the maximum sequence length. + * Only applicable to text-only embedding models. + * + * Generated from protobuf field optional bool auto_truncate = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAutoTruncate($var) + { + GPBUtil::checkBool($var); + $this->auto_truncate = $var; + + return $this; + } + + /** + * Optional. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. + * + * Generated from protobuf field optional int32 output_dimensionality = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOutputDimensionality() + { + return isset($this->output_dimensionality) ? $this->output_dimensionality : 0; + } + + public function hasOutputDimensionality() + { + return isset($this->output_dimensionality); + } + + public function clearOutputDimensionality() + { + unset($this->output_dimensionality); + } + + /** + * Optional. Reduced dimension for the output embedding. If set, excessive + * values in the output embedding are truncated from the end. + * + * Generated from protobuf field optional int32 output_dimensionality = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOutputDimensionality($var) + { + GPBUtil::checkInt32($var); + $this->output_dimensionality = $var; + + return $this; + } + + /** + * Optional. Whether to enable OCR for document content. + * + * Generated from protobuf field optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDocumentOcr() + { + return isset($this->document_ocr) ? $this->document_ocr : false; + } + + public function hasDocumentOcr() + { + return isset($this->document_ocr); + } + + public function clearDocumentOcr() + { + unset($this->document_ocr); + } + + /** + * Optional. Whether to enable OCR for document content. + * + * Generated from protobuf field optional bool document_ocr = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDocumentOcr($var) + { + GPBUtil::checkBool($var); + $this->document_ocr = $var; + + return $this; + } + + /** + * Optional. Whether to extract audio from video content. + * + * Generated from protobuf field optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAudioTrackExtraction() + { + return isset($this->audio_track_extraction) ? $this->audio_track_extraction : false; + } + + public function hasAudioTrackExtraction() + { + return isset($this->audio_track_extraction); + } + + public function clearAudioTrackExtraction() + { + unset($this->audio_track_extraction); + } + + /** + * Optional. Whether to extract audio from video content. + * + * Generated from protobuf field optional bool audio_track_extraction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAudioTrackExtraction($var) + { + GPBUtil::checkBool($var); + $this->audio_track_extraction = $var; + + return $this; + } + +} + diff --git a/AiPlatform/src/V1/EmbedContentResponse.php b/AiPlatform/src/V1/EmbedContentResponse.php index f1e698e6667..8fc0e3be443 100644 --- a/AiPlatform/src/V1/EmbedContentResponse.php +++ b/AiPlatform/src/V1/EmbedContentResponse.php @@ -23,7 +23,7 @@ class EmbedContentResponse extends \Google\Protobuf\Internal\Message */ protected $embedding = null; /** - * Metadata about the response(s). + * Usage metadata about the response(s). * * Generated from protobuf field .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; */ @@ -44,7 +44,7 @@ class EmbedContentResponse extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\AIPlatform\V1\EmbedContentResponse\Embedding $embedding * The embedding generated from the input content. * @type \Google\Cloud\AIPlatform\V1\UsageMetadata $usage_metadata - * Metadata about the response(s). + * Usage metadata about the response(s). * @type bool $truncated * Whether the input content was truncated before generating the embedding. * } @@ -91,7 +91,7 @@ public function setEmbedding($var) } /** - * Metadata about the response(s). + * Usage metadata about the response(s). * * Generated from protobuf field .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; * @return \Google\Cloud\AIPlatform\V1\UsageMetadata|null @@ -112,7 +112,7 @@ public function clearUsageMetadata() } /** - * Metadata about the response(s). + * Usage metadata about the response(s). * * Generated from protobuf field .google.cloud.aiplatform.v1.UsageMetadata usage_metadata = 2; * @param \Google\Cloud\AIPlatform\V1\UsageMetadata $var diff --git a/AiPlatform/src/V1/FunctionCallingConfig/Mode.php b/AiPlatform/src/V1/FunctionCallingConfig/Mode.php index 68dc87f0938..16fc79102f1 100644 --- a/AiPlatform/src/V1/FunctionCallingConfig/Mode.php +++ b/AiPlatform/src/V1/FunctionCallingConfig/Mode.php @@ -42,12 +42,24 @@ class Mode * Generated from protobuf enum NONE = 3; */ const NONE = 3; + /** + * Model is constrained to predict either function calls or natural language + * response. + * If [allowed_function_names][FunctionCallingConfig.allowed_function_names] + * are set, the predicted function calls will be limited to any one of + * `allowed_function_names`, else the predicted function calls will be any + * one of the provided [FunctionDeclaration]. + * + * Generated from protobuf enum VALIDATED = 5; + */ + const VALIDATED = 5; private static $valueToName = [ self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', self::AUTO => 'AUTO', self::ANY => 'ANY', self::NONE => 'NONE', + self::VALIDATED => 'VALIDATED', ]; public static function name($value)