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.
If this field is provided, then the Endpoint's
traffic_split will be
overwritten with it. If last DeployedModel is being undeployed from the
Endpoint, the [Endpoint.traffic_split] will always end up empty when this
call returns. A DeployedModel will be successfully undeployed only if it
doesn't have any traffic assigned to it when this method executes, or if
this field unassigns any traffic to it.
If this field is provided, then the Endpoint's
traffic_split will be
overwritten with it. If last DeployedModel is being undeployed from the
Endpoint, the [Endpoint.traffic_split] will always end up empty when this
call returns. A DeployedModel will be successfully undeployed only if it
doesn't have any traffic assigned to it when this method executes, or if
this field unassigns any traffic to it.
If this field is provided, then the Endpoint's
traffic_split will be
overwritten with it. If last DeployedModel is being undeployed from the
Endpoint, the [Endpoint.traffic_split] will always end up empty when this
call returns. A DeployedModel will be successfully undeployed only if it
doesn't have any traffic assigned to it when this method executes, or if
this field unassigns any traffic to it.
If this field is provided, then the Endpoint's
traffic_split will be
overwritten with it. If last DeployedModel is being undeployed from the
Endpoint, the [Endpoint.traffic_split] will always end up empty when this
call returns. A DeployedModel will be successfully undeployed only if it
doesn't have any traffic assigned to it when this method executes, or if
this field unassigns any traffic to it.
If this field is provided, then the Endpoint's
traffic_split will be
overwritten with it. If last DeployedModel is being undeployed from the
Endpoint, the [Endpoint.traffic_split] will always end up empty when this
call returns. A DeployedModel will be successfully undeployed only if it
doesn't have any traffic assigned to it when this method executes, or if
this field unassigns any traffic to it.
[[["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-03 UTC."],[],[],null,["# Interface UndeployModelRequestOrBuilder (1.32.0)\n\n public interface UndeployModelRequestOrBuilder 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### containsTrafficSplit(String key)\n\n public abstract boolean containsTrafficSplit(String key)\n\nIf this field is provided, then the Endpoint's\ntraffic_split will be\noverwritten with it. If last DeployedModel is being undeployed from the\nEndpoint, the \\[Endpoint.traffic_split\\] will always end up empty when this\ncall returns. A DeployedModel will be successfully undeployed only if it\ndoesn't have any traffic assigned to it when this method executes, or if\nthis field unassigns any traffic to it.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### getDeployedModelId()\n\n public abstract String getDeployedModelId()\n\nRequired. The ID of the DeployedModel to be undeployed from the Endpoint.\n\n`string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getDeployedModelIdBytes()\n\n public abstract ByteString getDeployedModelIdBytes()\n\nRequired. The ID of the DeployedModel to be undeployed from the Endpoint.\n\n`string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getEndpoint()\n\n public abstract String getEndpoint()\n\nRequired. The name of the Endpoint resource from which to undeploy a Model.\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 resource from which to undeploy a Model.\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### getTrafficSplit() (deprecated)\n\n public abstract Map\u003cString,Integer\u003e getTrafficSplit()\n\nUse [#getTrafficSplitMap()](/vertex-ai/generative-ai/docs/reference/java/latest/com.google.cloud.vertexai.api.UndeployModelRequestOrBuilder#com_google_cloud_vertexai_api_UndeployModelRequestOrBuilder_getTrafficSplitMap__) instead.\n\n### getTrafficSplitCount()\n\n public abstract int getTrafficSplitCount()\n\nIf this field is provided, then the Endpoint's\ntraffic_split will be\noverwritten with it. If last DeployedModel is being undeployed from the\nEndpoint, the \\[Endpoint.traffic_split\\] will always end up empty when this\ncall returns. A DeployedModel will be successfully undeployed only if it\ndoesn't have any traffic assigned to it when this method executes, or if\nthis field unassigns any traffic to it.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### getTrafficSplitMap()\n\n public abstract Map\u003cString,Integer\u003e getTrafficSplitMap()\n\nIf this field is provided, then the Endpoint's\ntraffic_split will be\noverwritten with it. If last DeployedModel is being undeployed from the\nEndpoint, the \\[Endpoint.traffic_split\\] will always end up empty when this\ncall returns. A DeployedModel will be successfully undeployed only if it\ndoesn't have any traffic assigned to it when this method executes, or if\nthis field unassigns any traffic to it.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### getTrafficSplitOrDefault(String key, int defaultValue)\n\n public abstract int getTrafficSplitOrDefault(String key, int defaultValue)\n\nIf this field is provided, then the Endpoint's\ntraffic_split will be\noverwritten with it. If last DeployedModel is being undeployed from the\nEndpoint, the \\[Endpoint.traffic_split\\] will always end up empty when this\ncall returns. A DeployedModel will be successfully undeployed only if it\ndoesn't have any traffic assigned to it when this method executes, or if\nthis field unassigns any traffic to it.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### getTrafficSplitOrThrow(String key)\n\n public abstract int getTrafficSplitOrThrow(String key)\n\nIf this field is provided, then the Endpoint's\ntraffic_split will be\noverwritten with it. If last DeployedModel is being undeployed from the\nEndpoint, the \\[Endpoint.traffic_split\\] will always end up empty when this\ncall returns. A DeployedModel will be successfully undeployed only if it\ndoesn't have any traffic assigned to it when this method executes, or if\nthis field unassigns any traffic to it.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`"]]