Class BatchPredictResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder>
com.google.cloud.automl.v1.BatchPredictResult.Builder
All Implemented Interfaces:
BatchPredictResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchPredictResult

public static final class BatchPredictResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder> implements BatchPredictResultOrBuilder
 Result of the Batch Predict. This message is returned in
 [response][google.longrunning.Operation.response] of the operation returned
 by the [PredictionService.BatchPredict][google.cloud.automl.v1.PredictionService.BatchPredict].
 
Protobuf type google.cloud.automl.v1.BatchPredictResult
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder>
    • getDefaultInstanceForType

      public BatchPredictResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BatchPredictResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BatchPredictResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BatchPredictResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchPredictResult.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BatchPredictResult.Builder>
    • mergeFrom

      public BatchPredictResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchPredictResult.Builder>
      Throws:
      IOException
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: BatchPredictResultOrBuilder
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;
      Specified by:
      getMetadataCount in interface BatchPredictResultOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;
      Specified by:
      containsMetadata in interface BatchPredictResultOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface BatchPredictResultOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;
      Specified by:
      getMetadataMap in interface BatchPredictResultOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;
      Specified by:
      getMetadataOrDefault in interface BatchPredictResultOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;
      Specified by:
      getMetadataOrThrow in interface BatchPredictResultOrBuilder
    • clearMetadata

      public BatchPredictResult.Builder clearMetadata()
    • removeMetadata

      public BatchPredictResult.Builder removeMetadata(String key)
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public BatchPredictResult.Builder putMetadata(String key, String value)
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;
    • putAllMetadata

      public BatchPredictResult.Builder putAllMetadata(Map<String,String> values)
       Additional domain-specific prediction response metadata.
      
       AutoML Vision Object Detection
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per image.
      
       AutoML Video Intelligence Object Tracking
      
       `max_bounding_box_count`
       : (int64) The maximum number of bounding boxes returned per frame.
       
      map<string, string> metadata = 1;