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