A partire dal 29 aprile 2025, i modelli Gemini 1.5 Pro e Gemini 1.5 Flash non sono disponibili nei progetti che non li hanno mai utilizzati, inclusi i nuovi progetti. Per maggiori dettagli, vedi Versioni e ciclo di vita dei modelli.
public abstract boolean containsTrafficSplit(String key)
Se questo campo viene fornito, il valore traffic_split dell'endpoint verrà sovrascritto. Se viene annullato il deployment dell'ultimo DeployedModel dall'endpoint, [Endpoint.traffic_split] sarà sempre vuoto quando viene restituita questa chiamata. Il deployment di un modello DeployedModel verrà annullato solo se non ha traffico assegnato quando questo metodo viene eseguito o se questo campo annulla l'assegnazione di traffico al modello.
Obbligatorio. Il nome della risorsa endpoint da cui annullare il deployment di un modello.
Formato:
projects/{project}/locations/{location}/endpoints/{endpoint}
Obbligatorio. Il nome della risorsa endpoint da cui annullare il deployment di un modello.
Formato:
projects/{project}/locations/{location}/endpoints/{endpoint}
Se questo campo viene fornito, il valore traffic_split dell'endpoint verrà sovrascritto. Se viene annullato il deployment dell'ultimo DeployedModel dall'endpoint, [Endpoint.traffic_split] sarà sempre vuoto quando viene restituita questa chiamata. Il deployment di un modello DeployedModel verrà annullato solo se non ha traffico assegnato quando questo metodo viene eseguito o se questo campo annulla l'assegnazione di traffico al modello.
public abstract Map<String,Integer> getTrafficSplitMap()
Se questo campo viene fornito, il valore traffic_split dell'endpoint verrà sovrascritto. Se viene annullato il deployment dell'ultimo DeployedModel dall'endpoint, [Endpoint.traffic_split] sarà sempre vuoto quando viene restituita questa chiamata. Il deployment di un modello DeployedModel verrà annullato solo se non ha traffico assegnato quando questo metodo viene eseguito o se questo campo annulla l'assegnazione di traffico al modello.
getTrafficSplitOrDefault(String key, int defaultValue)
public abstract int getTrafficSplitOrDefault(String key, int defaultValue)
Se questo campo viene fornito, il valore traffic_split dell'endpoint verrà sovrascritto. Se viene annullato il deployment dell'ultimo DeployedModel dall'endpoint, [Endpoint.traffic_split] sarà sempre vuoto quando viene restituita questa chiamata. Il deployment di un modello DeployedModel verrà annullato solo se non ha traffico assegnato quando questo metodo viene eseguito o se questo campo annulla l'assegnazione di traffico al modello.
public abstract int getTrafficSplitOrThrow(String key)
Se questo campo viene fornito, il valore traffic_split dell'endpoint verrà sovrascritto. Se viene annullato il deployment dell'ultimo DeployedModel dall'endpoint, [Endpoint.traffic_split] sarà sempre vuoto quando viene restituita questa chiamata. Il deployment di un modello DeployedModel verrà annullato solo se non ha traffico assegnato quando questo metodo viene eseguito o se questo campo annulla l'assegnazione di traffico al modello.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2024-05-17 UTC."],[],[],null,["# Interface UndeployModelRequestOrBuilder (0.4.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/0.4.0/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;`"]]