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.
[[["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,["# Class PredictionServiceStub (1.32.0)\n\n public abstract class PredictionServiceStub implements BackgroundResource\n\nBase stub class for the PredictionService service API.\n\nThis class is for advanced usage and reflects the underlying API directly. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e PredictionServiceStub \n\nImplements\n----------\n\n[BackgroundResource](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.core.BackgroundResource.html) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### PredictionServiceStub()\n\n public PredictionServiceStub()\n\nMethods\n-------\n\n### close()\n\n public abstract void close()\n\n### directPredictCallable()\n\n public UnaryCallable\u003cDirectPredictRequest,DirectPredictResponse\u003e directPredictCallable()\n\n### directRawPredictCallable()\n\n public UnaryCallable\u003cDirectRawPredictRequest,DirectRawPredictResponse\u003e directRawPredictCallable()\n\n### explainCallable()\n\n public UnaryCallable\u003cExplainRequest,ExplainResponse\u003e explainCallable()\n\n### generateContentCallable()\n\n public UnaryCallable\u003cGenerateContentRequest,GenerateContentResponse\u003e generateContentCallable()\n\n### getIamPolicyCallable()\n\n public UnaryCallable\u003cGetIamPolicyRequest,Policy\u003e getIamPolicyCallable()\n\n### getLocationCallable()\n\n public UnaryCallable\u003cGetLocationRequest,Location\u003e getLocationCallable()\n\n### listLocationsCallable()\n\n public UnaryCallable\u003cListLocationsRequest,ListLocationsResponse\u003e listLocationsCallable()\n\n### listLocationsPagedCallable()\n\n public UnaryCallable\u003cListLocationsRequest,PredictionServiceClient.ListLocationsPagedResponse\u003e listLocationsPagedCallable()\n\n### predictCallable()\n\n public UnaryCallable\u003cPredictRequest,PredictResponse\u003e predictCallable()\n\n### rawPredictCallable()\n\n public UnaryCallable\u003cRawPredictRequest,HttpBody\u003e rawPredictCallable()\n\n### serverStreamingPredictCallable()\n\n public ServerStreamingCallable\u003cStreamingPredictRequest,StreamingPredictResponse\u003e serverStreamingPredictCallable()\n\n### setIamPolicyCallable()\n\n public UnaryCallable\u003cSetIamPolicyRequest,Policy\u003e setIamPolicyCallable()\n\n### streamDirectPredictCallable()\n\n public BidiStreamingCallable\u003cStreamDirectPredictRequest,StreamDirectPredictResponse\u003e streamDirectPredictCallable()\n\n### streamDirectRawPredictCallable()\n\n public BidiStreamingCallable\u003cStreamDirectRawPredictRequest,StreamDirectRawPredictResponse\u003e streamDirectRawPredictCallable()\n\n### streamGenerateContentCallable()\n\n public ServerStreamingCallable\u003cGenerateContentRequest,GenerateContentResponse\u003e streamGenerateContentCallable()\n\n### streamRawPredictCallable()\n\n public ServerStreamingCallable\u003cStreamRawPredictRequest,HttpBody\u003e streamRawPredictCallable()\n\n### streamingPredictCallable()\n\n public BidiStreamingCallable\u003cStreamingPredictRequest,StreamingPredictResponse\u003e streamingPredictCallable()\n\n### streamingRawPredictCallable()\n\n public BidiStreamingCallable\u003cStreamingRawPredictRequest,StreamingRawPredictResponse\u003e streamingRawPredictCallable()\n\n### testIamPermissionsCallable()\n\n public UnaryCallable\u003cTestIamPermissionsRequest,TestIamPermissionsResponse\u003e testIamPermissionsCallable()"]]