Package biopb.image

Class DetectionSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
biopb.image.DetectionSettings.Builder
All Implemented Interfaces:
DetectionSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DetectionSettings

public static final class DetectionSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder> implements DetectionSettingsOrBuilder
Protobuf type biopb.image.DetectionSettings
  • Method Details

    • 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<DetectionSettings.Builder>
    • clear

      public DetectionSettings.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.GeneratedMessageV3.Builder<DetectionSettings.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<DetectionSettings.Builder>
    • getDefaultInstanceForType

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

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

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

      public DetectionSettings.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
    • setField

      public DetectionSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
    • clearField

      public DetectionSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
    • clearOneof

      public DetectionSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
    • setRepeatedField

      public DetectionSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
    • addRepeatedField

      public DetectionSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
    • mergeFrom

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

      public DetectionSettings.Builder mergeFrom(DetectionSettings other)
    • isInitialized

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

      public DetectionSettings.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<DetectionSettings.Builder>
      Throws:
      IOException
    • getResizeInfoCase

      public DetectionSettings.ResizeInfoCase getResizeInfoCase()
      Specified by:
      getResizeInfoCase in interface DetectionSettingsOrBuilder
    • clearResizeInfo

      public DetectionSettings.Builder clearResizeInfo()
    • hasMinCellArea

      public boolean hasMinCellArea()
       Minimal cell area to be consider for detection. The unit is decided by
       the physical unit of the image, i.e., if the physical pixel size unit is
       "nm", then the unit here is nm^2 (2D) or nm^3 (3D). However, if the
       physical pixel size field is not set, then the unit here is `pixels`.
       
      optional float min_cell_area = 1;
      Specified by:
      hasMinCellArea in interface DetectionSettingsOrBuilder
      Returns:
      Whether the minCellArea field is set.
    • getMinCellArea

      public float getMinCellArea()
       Minimal cell area to be consider for detection. The unit is decided by
       the physical unit of the image, i.e., if the physical pixel size unit is
       "nm", then the unit here is nm^2 (2D) or nm^3 (3D). However, if the
       physical pixel size field is not set, then the unit here is `pixels`.
       
      optional float min_cell_area = 1;
      Specified by:
      getMinCellArea in interface DetectionSettingsOrBuilder
      Returns:
      The minCellArea.
    • setMinCellArea

      public DetectionSettings.Builder setMinCellArea(float value)
       Minimal cell area to be consider for detection. The unit is decided by
       the physical unit of the image, i.e., if the physical pixel size unit is
       "nm", then the unit here is nm^2 (2D) or nm^3 (3D). However, if the
       physical pixel size field is not set, then the unit here is `pixels`.
       
      optional float min_cell_area = 1;
      Parameters:
      value - The minCellArea to set.
      Returns:
      This builder for chaining.
    • clearMinCellArea

      public DetectionSettings.Builder clearMinCellArea()
       Minimal cell area to be consider for detection. The unit is decided by
       the physical unit of the image, i.e., if the physical pixel size unit is
       "nm", then the unit here is nm^2 (2D) or nm^3 (3D). However, if the
       physical pixel size field is not set, then the unit here is `pixels`.
       
      optional float min_cell_area = 1;
      Returns:
      This builder for chaining.
    • hasMinScore

      public boolean hasMinScore()
       Minimal detection score in order to be considered. If unset, the default
       value is chosen server-side.
       
      optional float min_score = 2;
      Specified by:
      hasMinScore in interface DetectionSettingsOrBuilder
      Returns:
      Whether the minScore field is set.
    • getMinScore

      public float getMinScore()
       Minimal detection score in order to be considered. If unset, the default
       value is chosen server-side.
       
      optional float min_score = 2;
      Specified by:
      getMinScore in interface DetectionSettingsOrBuilder
      Returns:
      The minScore.
    • setMinScore

      public DetectionSettings.Builder setMinScore(float value)
       Minimal detection score in order to be considered. If unset, the default
       value is chosen server-side.
       
      optional float min_score = 2;
      Parameters:
      value - The minScore to set.
      Returns:
      This builder for chaining.
    • clearMinScore

      public DetectionSettings.Builder clearMinScore()
       Minimal detection score in order to be considered. If unset, the default
       value is chosen server-side.
       
      optional float min_score = 2;
      Returns:
      This builder for chaining.
    • hasSegmentationThreshold

      public boolean hasSegmentationThreshold()
       Threshold for binarize segmentation logits. If unset, default to 0.
       
      optional float segmentation_threshold = 3;
      Specified by:
      hasSegmentationThreshold in interface DetectionSettingsOrBuilder
      Returns:
      Whether the segmentationThreshold field is set.
    • getSegmentationThreshold

      public float getSegmentationThreshold()
       Threshold for binarize segmentation logits. If unset, default to 0.
       
      optional float segmentation_threshold = 3;
      Specified by:
      getSegmentationThreshold in interface DetectionSettingsOrBuilder
      Returns:
      The segmentationThreshold.
    • setSegmentationThreshold

      public DetectionSettings.Builder setSegmentationThreshold(float value)
       Threshold for binarize segmentation logits. If unset, default to 0.
       
      optional float segmentation_threshold = 3;
      Parameters:
      value - The segmentationThreshold to set.
      Returns:
      This builder for chaining.
    • clearSegmentationThreshold

      public DetectionSettings.Builder clearSegmentationThreshold()
       Threshold for binarize segmentation logits. If unset, default to 0.
       
      optional float segmentation_threshold = 3;
      Returns:
      This builder for chaining.
    • hasNmsIou

      public boolean hasNmsIou()
       A threshold value for remove overlapping detections. If two detection has
       an IOU > this threshold, the one with the lower score will be eliminated
       from the detection list. Nothing will be removed if the field is not set.
       
      optional float nms_iou = 4;
      Specified by:
      hasNmsIou in interface DetectionSettingsOrBuilder
      Returns:
      Whether the nmsIou field is set.
    • getNmsIou

      public float getNmsIou()
       A threshold value for remove overlapping detections. If two detection has
       an IOU > this threshold, the one with the lower score will be eliminated
       from the detection list. Nothing will be removed if the field is not set.
       
      optional float nms_iou = 4;
      Specified by:
      getNmsIou in interface DetectionSettingsOrBuilder
      Returns:
      The nmsIou.
    • setNmsIou

      public DetectionSettings.Builder setNmsIou(float value)
       A threshold value for remove overlapping detections. If two detection has
       an IOU > this threshold, the one with the lower score will be eliminated
       from the detection list. Nothing will be removed if the field is not set.
       
      optional float nms_iou = 4;
      Parameters:
      value - The nmsIou to set.
      Returns:
      This builder for chaining.
    • clearNmsIou

      public DetectionSettings.Builder clearNmsIou()
       A threshold value for remove overlapping detections. If two detection has
       an IOU > this threshold, the one with the lower score will be eliminated
       from the detection list. Nothing will be removed if the field is not set.
       
      optional float nms_iou = 4;
      Returns:
      This builder for chaining.
    • hasCellDiameterHint

      public boolean hasCellDiameterHint()
       A hint for the typical cell diameter. If the physical pixel size is
       known, the value takes the same physical unit. Otherwise, the unit is
       pixel.
       
      float cell_diameter_hint = 6;
      Specified by:
      hasCellDiameterHint in interface DetectionSettingsOrBuilder
      Returns:
      Whether the cellDiameterHint field is set.
    • getCellDiameterHint

      public float getCellDiameterHint()
       A hint for the typical cell diameter. If the physical pixel size is
       known, the value takes the same physical unit. Otherwise, the unit is
       pixel.
       
      float cell_diameter_hint = 6;
      Specified by:
      getCellDiameterHint in interface DetectionSettingsOrBuilder
      Returns:
      The cellDiameterHint.
    • setCellDiameterHint

      public DetectionSettings.Builder setCellDiameterHint(float value)
       A hint for the typical cell diameter. If the physical pixel size is
       known, the value takes the same physical unit. Otherwise, the unit is
       pixel.
       
      float cell_diameter_hint = 6;
      Parameters:
      value - The cellDiameterHint to set.
      Returns:
      This builder for chaining.
    • clearCellDiameterHint

      public DetectionSettings.Builder clearCellDiameterHint()
       A hint for the typical cell diameter. If the physical pixel size is
       known, the value takes the same physical unit. Otherwise, the unit is
       pixel.
       
      float cell_diameter_hint = 6;
      Returns:
      This builder for chaining.
    • hasScalingHint

      public boolean hasScalingHint()
       A direct suggestion for image scaling. A nonnegative value. However,
       requesting a very large scaling factor will likely be refused by the
       server due to the potential out-of-memory problem.
       
      float scaling_hint = 7;
      Specified by:
      hasScalingHint in interface DetectionSettingsOrBuilder
      Returns:
      Whether the scalingHint field is set.
    • getScalingHint

      public float getScalingHint()
       A direct suggestion for image scaling. A nonnegative value. However,
       requesting a very large scaling factor will likely be refused by the
       server due to the potential out-of-memory problem.
       
      float scaling_hint = 7;
      Specified by:
      getScalingHint in interface DetectionSettingsOrBuilder
      Returns:
      The scalingHint.
    • setScalingHint

      public DetectionSettings.Builder setScalingHint(float value)
       A direct suggestion for image scaling. A nonnegative value. However,
       requesting a very large scaling factor will likely be refused by the
       server due to the potential out-of-memory problem.
       
      float scaling_hint = 7;
      Parameters:
      value - The scalingHint to set.
      Returns:
      This builder for chaining.
    • clearScalingHint

      public DetectionSettings.Builder clearScalingHint()
       A direct suggestion for image scaling. A nonnegative value. However,
       requesting a very large scaling factor will likely be refused by the
       server due to the potential out-of-memory problem.
       
      float scaling_hint = 7;
      Returns:
      This builder for chaining.
    • getModelName

      public String getModelName()
       Specify the model name for servers that support more than one model
       variants.
       
      string model_name = 8;
      Specified by:
      getModelName in interface DetectionSettingsOrBuilder
      Returns:
      The modelName.
    • getModelNameBytes

      public com.google.protobuf.ByteString getModelNameBytes()
       Specify the model name for servers that support more than one model
       variants.
       
      string model_name = 8;
      Specified by:
      getModelNameBytes in interface DetectionSettingsOrBuilder
      Returns:
      The bytes for modelName.
    • setModelName

      public DetectionSettings.Builder setModelName(String value)
       Specify the model name for servers that support more than one model
       variants.
       
      string model_name = 8;
      Parameters:
      value - The modelName to set.
      Returns:
      This builder for chaining.
    • clearModelName

      public DetectionSettings.Builder clearModelName()
       Specify the model name for servers that support more than one model
       variants.
       
      string model_name = 8;
      Returns:
      This builder for chaining.
    • setModelNameBytes

      public DetectionSettings.Builder setModelNameBytes(com.google.protobuf.ByteString value)
       Specify the model name for servers that support more than one model
       variants.
       
      string model_name = 8;
      Parameters:
      value - The bytes for modelName to set.
      Returns:
      This builder for chaining.
    • hasModelConfiguration

      public boolean hasModelConfiguration()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
      Specified by:
      hasModelConfiguration in interface DetectionSettingsOrBuilder
      Returns:
      Whether the modelConfiguration field is set.
    • getModelConfiguration

      public com.google.protobuf.Any getModelConfiguration()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
      Specified by:
      getModelConfiguration in interface DetectionSettingsOrBuilder
      Returns:
      The modelConfiguration.
    • setModelConfiguration

      public DetectionSettings.Builder setModelConfiguration(com.google.protobuf.Any value)
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
    • setModelConfiguration

      public DetectionSettings.Builder setModelConfiguration(com.google.protobuf.Any.Builder builderForValue)
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
    • mergeModelConfiguration

      public DetectionSettings.Builder mergeModelConfiguration(com.google.protobuf.Any value)
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
    • clearModelConfiguration

      public DetectionSettings.Builder clearModelConfiguration()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
    • getModelConfigurationBuilder

      public com.google.protobuf.Any.Builder getModelConfigurationBuilder()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
    • getModelConfigurationOrBuilder

      public com.google.protobuf.AnyOrBuilder getModelConfigurationOrBuilder()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
      Specified by:
      getModelConfigurationOrBuilder in interface DetectionSettingsOrBuilder
    • setUnknownFields

      public final DetectionSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>
    • mergeUnknownFields

      public final DetectionSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DetectionSettings.Builder>