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.
A map from a DeployedModel's ID to the percentage of this Endpoint's
traffic that should be forwarded to that DeployedModel.
If this field is non-empty, then the Endpoint's
traffic_split
will be overwritten with it. To refer to the ID of the just being deployed
Model, a "0" should be used, and the actual ID of the new DeployedModel
will be filled in its place by this method. The traffic percentage values
must add up to 100.
If this field is empty, then the Endpoint's
traffic_split is
not updated.
Required. The DeployedModel to be created within the Endpoint. Note that
Endpoint.traffic_split
must be updated for the DeployedModel to start receiving traffic, either as
part of this call, or via
EndpointService.UpdateEndpoint.
Required. The DeployedModel to be created within the Endpoint. Note that
Endpoint.traffic_split
must be updated for the DeployedModel to start receiving traffic, either as
part of this call, or via
EndpointService.UpdateEndpoint.
A map from a DeployedModel's ID to the percentage of this Endpoint's
traffic that should be forwarded to that DeployedModel.
If this field is non-empty, then the Endpoint's
traffic_split
will be overwritten with it. To refer to the ID of the just being deployed
Model, a "0" should be used, and the actual ID of the new DeployedModel
will be filled in its place by this method. The traffic percentage values
must add up to 100.
If this field is empty, then the Endpoint's
traffic_split is
not updated.
A map from a DeployedModel's ID to the percentage of this Endpoint's
traffic that should be forwarded to that DeployedModel.
If this field is non-empty, then the Endpoint's
traffic_split
will be overwritten with it. To refer to the ID of the just being deployed
Model, a "0" should be used, and the actual ID of the new DeployedModel
will be filled in its place by this method. The traffic percentage values
must add up to 100.
If this field is empty, then the Endpoint's
traffic_split is
not updated.
A map from a DeployedModel's ID to the percentage of this Endpoint's
traffic that should be forwarded to that DeployedModel.
If this field is non-empty, then the Endpoint's
traffic_split
will be overwritten with it. To refer to the ID of the just being deployed
Model, a "0" should be used, and the actual ID of the new DeployedModel
will be filled in its place by this method. The traffic percentage values
must add up to 100.
If this field is empty, then the Endpoint's
traffic_split is
not updated.
A map from a DeployedModel's ID to the percentage of this Endpoint's
traffic that should be forwarded to that DeployedModel.
If this field is non-empty, then the Endpoint's
traffic_split
will be overwritten with it. To refer to the ID of the just being deployed
Model, a "0" should be used, and the actual ID of the new DeployedModel
will be filled in its place by this method. The traffic percentage values
must add up to 100.
If this field is empty, then the Endpoint's
traffic_split is
not updated.
Required. The DeployedModel to be created within the Endpoint. Note that
Endpoint.traffic_split
must be updated for the DeployedModel to start receiving traffic, either as
part of this call, or via
EndpointService.UpdateEndpoint.
[[["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 DeployModelRequestOrBuilder (0.2.0)\n\n public interface DeployModelRequestOrBuilder 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\nA map from a DeployedModel's ID to the percentage of this Endpoint's\ntraffic that should be forwarded to that DeployedModel.\n\nIf this field is non-empty, then the Endpoint's\ntraffic_split\nwill be overwritten with it. To refer to the ID of the just being deployed\nModel, a \"0\" should be used, and the actual ID of the new DeployedModel\nwill be filled in its place by this method. The traffic percentage values\nmust add up to 100.\n\nIf this field is empty, then the Endpoint's\ntraffic_split is\nnot updated.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### getDeployedModel()\n\n public abstract DeployedModel getDeployedModel()\n\nRequired. The DeployedModel to be created within the Endpoint. Note that\nEndpoint.traffic_split\nmust be updated for the DeployedModel to start receiving traffic, either as\npart of this call, or via\nEndpointService.UpdateEndpoint.\n\n`\n.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getDeployedModelOrBuilder()\n\n public abstract DeployedModelOrBuilder getDeployedModelOrBuilder()\n\nRequired. The DeployedModel to be created within the Endpoint. Note that\nEndpoint.traffic_split\nmust be updated for the DeployedModel to start receiving traffic, either as\npart of this call, or via\nEndpointService.UpdateEndpoint.\n\n`\n.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getEndpoint()\n\n public abstract String getEndpoint()\n\nRequired. The name of the Endpoint resource into which to deploy 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 into which to deploy 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/0.2.0/com.google.cloud.vertexai.api.DeployModelRequestOrBuilder#com_google_cloud_vertexai_api_DeployModelRequestOrBuilder_getTrafficSplitMap__) instead.\n\n### getTrafficSplitCount()\n\n public abstract int getTrafficSplitCount()\n\nA map from a DeployedModel's ID to the percentage of this Endpoint's\ntraffic that should be forwarded to that DeployedModel.\n\nIf this field is non-empty, then the Endpoint's\ntraffic_split\nwill be overwritten with it. To refer to the ID of the just being deployed\nModel, a \"0\" should be used, and the actual ID of the new DeployedModel\nwill be filled in its place by this method. The traffic percentage values\nmust add up to 100.\n\nIf this field is empty, then the Endpoint's\ntraffic_split is\nnot updated.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### getTrafficSplitMap()\n\n public abstract Map\u003cString,Integer\u003e getTrafficSplitMap()\n\nA map from a DeployedModel's ID to the percentage of this Endpoint's\ntraffic that should be forwarded to that DeployedModel.\n\nIf this field is non-empty, then the Endpoint's\ntraffic_split\nwill be overwritten with it. To refer to the ID of the just being deployed\nModel, a \"0\" should be used, and the actual ID of the new DeployedModel\nwill be filled in its place by this method. The traffic percentage values\nmust add up to 100.\n\nIf this field is empty, then the Endpoint's\ntraffic_split is\nnot updated.\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\nA map from a DeployedModel's ID to the percentage of this Endpoint's\ntraffic that should be forwarded to that DeployedModel.\n\nIf this field is non-empty, then the Endpoint's\ntraffic_split\nwill be overwritten with it. To refer to the ID of the just being deployed\nModel, a \"0\" should be used, and the actual ID of the new DeployedModel\nwill be filled in its place by this method. The traffic percentage values\nmust add up to 100.\n\nIf this field is empty, then the Endpoint's\ntraffic_split is\nnot updated.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### getTrafficSplitOrThrow(String key)\n\n public abstract int getTrafficSplitOrThrow(String key)\n\nA map from a DeployedModel's ID to the percentage of this Endpoint's\ntraffic that should be forwarded to that DeployedModel.\n\nIf this field is non-empty, then the Endpoint's\ntraffic_split\nwill be overwritten with it. To refer to the ID of the just being deployed\nModel, a \"0\" should be used, and the actual ID of the new DeployedModel\nwill be filled in its place by this method. The traffic percentage values\nmust add up to 100.\n\nIf this field is empty, then the Endpoint's\ntraffic_split is\nnot updated.\n\n`map\u003cstring, int32\u003e traffic_split = 3;`\n\n### hasDeployedModel()\n\n public abstract boolean hasDeployedModel()\n\nRequired. The DeployedModel to be created within the Endpoint. Note that\nEndpoint.traffic_split\nmust be updated for the DeployedModel to start receiving traffic, either as\npart of this call, or via\nEndpointService.UpdateEndpoint.\n\n`\n.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];\n`"]]