Class TabularClassificationPredictionResult.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
      • 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.
      • 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

        public TabularClassificationPredictionResult.Builder addClasses​(String value)
         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

        public TabularClassificationPredictionResult.Builder addAllClasses​(Iterable<String> values)
         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

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

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