Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
Required. The instances that are the input to the prediction call.
A DeployedModel may have an upper limit on the number of instances it
supports per request, and when it is exceeded the prediction call errors
in case of AutoML Models, or, in case of customer created Models, the
behaviour is as documented by that Model.
The schema of any single instance may be specified via Endpoint's
DeployedModels' Model'sPredictSchemata'sinstance_schema_uri.
Required. The instances that are the input to the prediction call.
A DeployedModel may have an upper limit on the number of instances it
supports per request, and when it is exceeded the prediction call errors
in case of AutoML Models, or, in case of customer created Models, the
behaviour is as documented by that Model.
The schema of any single instance may be specified via Endpoint's
DeployedModels' Model'sPredictSchemata'sinstance_schema_uri.
Required. The instances that are the input to the prediction call.
A DeployedModel may have an upper limit on the number of instances it
supports per request, and when it is exceeded the prediction call errors
in case of AutoML Models, or, in case of customer created Models, the
behaviour is as documented by that Model.
The schema of any single instance may be specified via Endpoint's
DeployedModels' Model'sPredictSchemata'sinstance_schema_uri.
Required. The instances that are the input to the prediction call.
A DeployedModel may have an upper limit on the number of instances it
supports per request, and when it is exceeded the prediction call errors
in case of AutoML Models, or, in case of customer created Models, the
behaviour is as documented by that Model.
The schema of any single instance may be specified via Endpoint's
DeployedModels' Model'sPredictSchemata'sinstance_schema_uri.
Required. The instances that are the input to the prediction call.
A DeployedModel may have an upper limit on the number of instances it
supports per request, and when it is exceeded the prediction call errors
in case of AutoML Models, or, in case of customer created Models, the
behaviour is as documented by that Model.
The schema of any single instance may be specified via Endpoint's
DeployedModels' Model'sPredictSchemata'sinstance_schema_uri.
The parameters that govern the prediction. The schema of the parameters may
be specified via Endpoint's DeployedModels' Model's
PredictSchemata'sparameters_schema_uri.
The parameters that govern the prediction. The schema of the parameters may
be specified via Endpoint's DeployedModels' Model's
PredictSchemata'sparameters_schema_uri.
The parameters that govern the prediction. The schema of the parameters may
be specified via Endpoint's DeployedModels' Model's
PredictSchemata'sparameters_schema_uri.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface PredictRequestOrBuilder (0.3.0)\n\n public interface PredictRequestOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getEndpoint()\n\n public abstract String getEndpoint()\n\nRequired. The name of the Endpoint requested to serve the prediction.\nFormat:\n`projects/{project}/locations/{location}/endpoints/{endpoint}`\n\n`\nstring endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getEndpointBytes()\n\n public abstract ByteString getEndpointBytes()\n\nRequired. The name of the Endpoint requested to serve the prediction.\nFormat:\n`projects/{project}/locations/{location}/endpoints/{endpoint}`\n\n`\nstring endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getInstances(int index)\n\n public abstract Value getInstances(int index)\n\nRequired. The instances that are the input to the prediction call.\nA DeployedModel may have an upper limit on the number of instances it\nsupports per request, and when it is exceeded the prediction call errors\nin case of AutoML Models, or, in case of customer created Models, the\nbehaviour is as documented by that Model.\nThe schema of any single instance may be specified via Endpoint's\nDeployedModels' Model's\nPredictSchemata's\ninstance_schema_uri.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesCount()\n\n public abstract int getInstancesCount()\n\nRequired. The instances that are the input to the prediction call.\nA DeployedModel may have an upper limit on the number of instances it\nsupports per request, and when it is exceeded the prediction call errors\nin case of AutoML Models, or, in case of customer created Models, the\nbehaviour is as documented by that Model.\nThe schema of any single instance may be specified via Endpoint's\nDeployedModels' Model's\nPredictSchemata's\ninstance_schema_uri.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesList()\n\n public abstract List\u003cValue\u003e getInstancesList()\n\nRequired. The instances that are the input to the prediction call.\nA DeployedModel may have an upper limit on the number of instances it\nsupports per request, and when it is exceeded the prediction call errors\nin case of AutoML Models, or, in case of customer created Models, the\nbehaviour is as documented by that Model.\nThe schema of any single instance may be specified via Endpoint's\nDeployedModels' Model's\nPredictSchemata's\ninstance_schema_uri.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesOrBuilder(int index)\n\n public abstract ValueOrBuilder getInstancesOrBuilder(int index)\n\nRequired. The instances that are the input to the prediction call.\nA DeployedModel may have an upper limit on the number of instances it\nsupports per request, and when it is exceeded the prediction call errors\nin case of AutoML Models, or, in case of customer created Models, the\nbehaviour is as documented by that Model.\nThe schema of any single instance may be specified via Endpoint's\nDeployedModels' Model's\nPredictSchemata's\ninstance_schema_uri.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesOrBuilderList()\n\n public abstract List\u003c? extends ValueOrBuilder\u003e getInstancesOrBuilderList()\n\nRequired. The instances that are the input to the prediction call.\nA DeployedModel may have an upper limit on the number of instances it\nsupports per request, and when it is exceeded the prediction call errors\nin case of AutoML Models, or, in case of customer created Models, the\nbehaviour is as documented by that Model.\nThe schema of any single instance may be specified via Endpoint's\nDeployedModels' Model's\nPredictSchemata's\ninstance_schema_uri.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getParameters()\n\n public abstract Value getParameters()\n\nThe parameters that govern the prediction. The schema of the parameters may\nbe specified via Endpoint's DeployedModels' Model's\nPredictSchemata's\nparameters_schema_uri.\n\n`.google.protobuf.Value parameters = 3;`\n\n### getParametersOrBuilder()\n\n public abstract ValueOrBuilder getParametersOrBuilder()\n\nThe parameters that govern the prediction. The schema of the parameters may\nbe specified via Endpoint's DeployedModels' Model's\nPredictSchemata's\nparameters_schema_uri.\n\n`.google.protobuf.Value parameters = 3;`\n\n### hasParameters()\n\n public abstract boolean hasParameters()\n\nThe parameters that govern the prediction. The schema of the parameters may\nbe specified via Endpoint's DeployedModels' Model's\nPredictSchemata's\nparameters_schema_uri.\n\n`.google.protobuf.Value parameters = 3;`"]]