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.
[[["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-08-28 UTC."],[],[],null,["# Interface StreamDirectPredictRequestOrBuilder (1.32.0)\n\n public interface StreamDirectPredictRequestOrBuilder 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### getInputs(int index)\n\n public abstract Tensor getInputs(int index)\n\nOptional. The prediction input.\n\n`\nrepeated .google.cloud.vertexai.v1.Tensor inputs = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getInputsCount()\n\n public abstract int getInputsCount()\n\nOptional. The prediction input.\n\n`\nrepeated .google.cloud.vertexai.v1.Tensor inputs = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getInputsList()\n\n public abstract List\u003cTensor\u003e getInputsList()\n\nOptional. The prediction input.\n\n`\nrepeated .google.cloud.vertexai.v1.Tensor inputs = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getInputsOrBuilder(int index)\n\n public abstract TensorOrBuilder getInputsOrBuilder(int index)\n\nOptional. The prediction input.\n\n`\nrepeated .google.cloud.vertexai.v1.Tensor inputs = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getInputsOrBuilderList()\n\n public abstract List\u003c? extends TensorOrBuilder\u003e getInputsOrBuilderList()\n\nOptional. The prediction input.\n\n`\nrepeated .google.cloud.vertexai.v1.Tensor inputs = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getParameters()\n\n public abstract Tensor getParameters()\n\nOptional. The parameters that govern the prediction.\n\n`\n.google.cloud.vertexai.v1.Tensor parameters = 3 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getParametersOrBuilder()\n\n public abstract TensorOrBuilder getParametersOrBuilder()\n\nOptional. The parameters that govern the prediction.\n\n`\n.google.cloud.vertexai.v1.Tensor parameters = 3 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### hasParameters()\n\n public abstract boolean hasParameters()\n\nOptional. The parameters that govern the prediction.\n\n`\n.google.cloud.vertexai.v1.Tensor parameters = 3 [(.google.api.field_behavior) = OPTIONAL];\n`"]]