Class PredictResponse (3.77.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.77.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  PredictResponse   extends   GeneratedMessageV3   implements   PredictResponseOrBuilder  
   Response message for
 PredictionService.Predict .
 Protobuf type google.cloud.aiplatform.v1beta1.PredictResponse
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   DEPLOYED_MODEL_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   METADATA_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   MODEL_DISPLAY_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   MODEL_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   MODEL_VERSION_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   PREDICTIONS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   PredictResponse   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   PredictResponse . Builder   newBuilder ()  
  
  
    
public   static   PredictResponse . Builder   newBuilder ( PredictResponse   prototype )  
  
  
  
    
public   static   PredictResponse   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   PredictResponse   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   PredictResponse   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   PredictResponse   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<PredictResponse>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   PredictResponse   getDefaultInstanceForType ()  
  
  
    
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   Value   getMetadata ()  
   Output only. Request-level metadata returned by the model. The metadata
 type will be dependent upon the model implementation.
 .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        Value The metadata.
 
     
  
  
    
public   ValueOrBuilder   getMetadataOrBuilder ()  
   Output only. Request-level metadata returned by the model. The metadata
 type will be dependent upon the model implementation.
 .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 Output only. The resource name of the Model which is deployed as the
 DeployedModel that this prediction hits.
 
 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 resource name of the Model which is deployed as the
 DeployedModel that this prediction hits.
 
 string model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
 
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for model.
 
     
  
  
    
public   String   getModelDisplayName ()  
   Output only. The display
 name  of the Model
 which is deployed as the DeployedModel that this prediction hits.
 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
 which is deployed as the DeployedModel that this prediction hits.
 string model_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for modelDisplayName.
 
     
  
  
    
public   String   getModelVersionId ()  
   Output only. The version ID of the Model which is deployed as the
 DeployedModel that this prediction hits.
 string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        String The modelVersionId.
 
     
  
  
    
public   ByteString   getModelVersionIdBytes ()  
   Output only. The version ID of the Model which is deployed as the
 DeployedModel that this prediction hits.
 string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for modelVersionId.
 
     
  
  
    
public   Parser<PredictResponse>   getParserForType ()  
  
  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  
      
        Name Description  
      
        indexint  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        Value  
     
  
  
    
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  
      
        Type Description  
      
        int  
     
  
  
    
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;
    
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  
      
        Name Description  
      
        indexint  
     
  
  
  
    
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  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
public   boolean   hasMetadata ()  
   Output only. Request-level metadata returned by the model. The metadata
 type will be dependent upon the model implementation.
 .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the metadata field is set.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   PredictResponse . Builder   newBuilderForType ()  
  
  
    
protected   PredictResponse . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   PredictResponse . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]