Class ImageSegmentationPredictionParams.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<ImageSegmentationPredictionParams.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<ImageSegmentationPredictionParams.Builder>
      • getDefaultInstanceForType

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

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

        public ImageSegmentationPredictionParams 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<ImageSegmentationPredictionParams.Builder>
      • getConfidenceThreshold

        public float getConfidenceThreshold()
         When the model predicts category of pixels of the image, it will only
         provide predictions for pixels that it is at least this much confident
         about. All other pixels will be classified as background. Default value is
         0.5.
         
        float confidence_threshold = 1;
        Specified by:
        getConfidenceThreshold in interface ImageSegmentationPredictionParamsOrBuilder
        Returns:
        The confidenceThreshold.
      • setConfidenceThreshold

        public ImageSegmentationPredictionParams.Builder setConfidenceThreshold​(float value)
         When the model predicts category of pixels of the image, it will only
         provide predictions for pixels that it is at least this much confident
         about. All other pixels will be classified as background. Default value is
         0.5.
         
        float confidence_threshold = 1;
        Parameters:
        value - The confidenceThreshold to set.
        Returns:
        This builder for chaining.
      • clearConfidenceThreshold

        public ImageSegmentationPredictionParams.Builder clearConfidenceThreshold()
         When the model predicts category of pixels of the image, it will only
         provide predictions for pixels that it is at least this much confident
         about. All other pixels will be classified as background. Default value is
         0.5.
         
        float confidence_threshold = 1;
        Returns:
        This builder for chaining.