Send feedback
Class PredictResponse (2.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.0 keyboard_arrow_down
public final class PredictResponse extends GeneratedMessageV3 implements PredictResponseOrBuilder
Response message for PredictionService.Predict .
Protobuf type google.cloud.aiplatform.v1beta1.PredictResponse
Fields
public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER
Field Value
public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER
Field Value
public static final int MODEL_FIELD_NUMBER
Field Value
public static final int PREDICTIONS_FIELD_NUMBER
Field Value
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public static PredictResponse getDefaultInstance ()
Returns
public PredictResponse getDefaultInstanceForType ()
Returns
public String getDeployedModelId ()
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;
Returns
Type Description String The deployedModelId.
public ByteString getDeployedModelIdBytes ()
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;
Returns
Type Description ByteString The bytes for deployedModelId.
public static final Descriptors . Descriptor getDescriptor ()
Returns
Output only. The name of the Model this DeployedModel, that served this prediction, was
created from.
string model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
Type Description String The model.
public ByteString getModelBytes ()
Output only. The name of the Model this DeployedModel, that served this prediction, was
created from.
string model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
public String getModelDisplayName ()
Output only. The display name of the Model this DeployedModel,
that served this prediction, was created from.
string model_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type Description String The modelDisplayName.
public ByteString getModelDisplayNameBytes ()
Output only. The display name of the Model this DeployedModel,
that served this prediction, was created from.
string model_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type Description ByteString The bytes for modelDisplayName.
public Parser<PredictResponse> getParserForType ()
Returns
Overrides
public Value getPredictions ( int index )
The predictions that are the output of the predictions call.
The schema of any single prediction may be specified via Endpoint's
DeployedModels' Model's
PredictSchemata's
prediction_schema_uri .
repeated .google.protobuf.Value predictions = 1;
Parameter
Returns
public int getPredictionsCount ()
The predictions that are the output of the predictions call.
The schema of any single prediction may be specified via Endpoint's
DeployedModels' Model's
PredictSchemata's
prediction_schema_uri .
repeated .google.protobuf.Value predictions = 1;
Returns
public List<Value> getPredictionsList ()
The predictions that are the output of the predictions call.
The schema of any single prediction may be specified via Endpoint's
DeployedModels' Model's
PredictSchemata's
prediction_schema_uri .
repeated .google.protobuf.Value predictions = 1;
Returns
public ValueOrBuilder getPredictionsOrBuilder ( int index )
The predictions that are the output of the predictions call.
The schema of any single prediction may be specified via Endpoint's
DeployedModels' Model's
PredictSchemata's
prediction_schema_uri .
repeated .google.protobuf.Value predictions = 1;
Parameter
Returns
public List <? extends ValueOrBuilder > getPredictionsOrBuilderList ()
The predictions that are the output of the predictions call.
The schema of any single prediction may be specified via Endpoint's
DeployedModels' Model's
PredictSchemata's
prediction_schema_uri .
repeated .google.protobuf.Value predictions = 1;
Returns
Type Description List <? extends com.google.protobuf.ValueOrBuilder >
public int getSerializedSize ()
Returns
Overrides
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public static PredictResponse . Builder newBuilder ()
Returns
public static PredictResponse . Builder newBuilder ( PredictResponse prototype )
Parameter
Returns
public PredictResponse . Builder newBuilderForType ()
Returns
protected PredictResponse . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public static PredictResponse parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static PredictResponse parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static PredictResponse parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
public static PredictResponse parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static PredictResponse parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static PredictResponse parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static PredictResponse parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static PredictResponse parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static PredictResponse parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static PredictResponse parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static PredictResponse parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static PredictResponse parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<PredictResponse> parser ()
Returns
public PredictResponse . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["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-01-28 UTC."],[],[]]