Class TabularClassificationPredictionResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder>
com.google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.Builder
All Implemented Interfaces:
TabularClassificationPredictionResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TabularClassificationPredictionResult

public static final class TabularClassificationPredictionResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder> implements TabularClassificationPredictionResultOrBuilder
 Prediction output format for Tabular Classification.
 
Protobuf type google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.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<TabularClassificationPredictionResult.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<TabularClassificationPredictionResult.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TabularClassificationPredictionResult.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<TabularClassificationPredictionResult.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<TabularClassificationPredictionResult.Builder>
    • mergeFrom

      public TabularClassificationPredictionResult.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<TabularClassificationPredictionResult.Builder>
      Throws:
      IOException
    • getClassesList

      public com.google.protobuf.ProtocolStringList getClassesList()
       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Specified by:
      getClassesList in interface TabularClassificationPredictionResultOrBuilder
      Returns:
      A list containing the classes.
    • getClassesCount

      public int getClassesCount()
       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Specified by:
      getClassesCount in interface TabularClassificationPredictionResultOrBuilder
      Returns:
      The count of classes.
    • getClasses

      public String getClasses(int index)
       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Specified by:
      getClasses in interface TabularClassificationPredictionResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The classes at the given index.
    • getClassesBytes

      public com.google.protobuf.ByteString getClassesBytes(int index)
       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Specified by:
      getClassesBytes in interface TabularClassificationPredictionResultOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the classes at the given index.
    • setClasses

      public TabularClassificationPredictionResult.Builder setClasses(int index, String value)
       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Parameters:
      index - The index to set the value at.
      value - The classes to set.
      Returns:
      This builder for chaining.
    • addClasses

       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Parameters:
      value - The classes to add.
      Returns:
      This builder for chaining.
    • addAllClasses

       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Parameters:
      values - The classes to add.
      Returns:
      This builder for chaining.
    • clearClasses

       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Returns:
      This builder for chaining.
    • addClassesBytes

      public TabularClassificationPredictionResult.Builder addClassesBytes(com.google.protobuf.ByteString value)
       The name of the classes being classified, contains all possible values of
       the target column.
       
      repeated string classes = 1;
      Parameters:
      value - The bytes of the classes to add.
      Returns:
      This builder for chaining.
    • getScoresList

      public List<Float> getScoresList()
       The model's confidence in each class being correct, higher
       value means higher confidence. The N-th score corresponds to
       the N-th class in classes.
       
      repeated float scores = 2;
      Specified by:
      getScoresList in interface TabularClassificationPredictionResultOrBuilder
      Returns:
      A list containing the scores.
    • getScoresCount

      public int getScoresCount()
       The model's confidence in each class being correct, higher
       value means higher confidence. The N-th score corresponds to
       the N-th class in classes.
       
      repeated float scores = 2;
      Specified by:
      getScoresCount in interface TabularClassificationPredictionResultOrBuilder
      Returns:
      The count of scores.
    • getScores

      public float getScores(int index)
       The model's confidence in each class being correct, higher
       value means higher confidence. The N-th score corresponds to
       the N-th class in classes.
       
      repeated float scores = 2;
      Specified by:
      getScores in interface TabularClassificationPredictionResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The scores at the given index.
    • setScores

      public TabularClassificationPredictionResult.Builder setScores(int index, float value)
       The model's confidence in each class being correct, higher
       value means higher confidence. The N-th score corresponds to
       the N-th class in classes.
       
      repeated float scores = 2;
      Parameters:
      index - The index to set the value at.
      value - The scores to set.
      Returns:
      This builder for chaining.
    • addScores

      public TabularClassificationPredictionResult.Builder addScores(float value)
       The model's confidence in each class being correct, higher
       value means higher confidence. The N-th score corresponds to
       the N-th class in classes.
       
      repeated float scores = 2;
      Parameters:
      value - The scores to add.
      Returns:
      This builder for chaining.
    • addAllScores

      public TabularClassificationPredictionResult.Builder addAllScores(Iterable<? extends Float> values)
       The model's confidence in each class being correct, higher
       value means higher confidence. The N-th score corresponds to
       the N-th class in classes.
       
      repeated float scores = 2;
      Parameters:
      values - The scores to add.
      Returns:
      This builder for chaining.
    • clearScores

       The model's confidence in each class being correct, higher
       value means higher confidence. The N-th score corresponds to
       the N-th class in classes.
       
      repeated float scores = 2;
      Returns:
      This builder for chaining.