Package biopb.image

Class ImageAnnotation.Builder

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

public static final class ImageAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotation.Builder> implements ImageAnnotationOrBuilder
 Additional annotation of the image, which may be used for the analysis.
 
Protobuf type biopb.image.ImageAnnotation
  • 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<ImageAnnotation.Builder>
    • clear

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

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

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

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

      public ImageAnnotation.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<ImageAnnotation.Builder>
    • setField

      public ImageAnnotation.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<ImageAnnotation.Builder>
    • clearField

      public ImageAnnotation.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<ImageAnnotation.Builder>
    • clearOneof

      public ImageAnnotation.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<ImageAnnotation.Builder>
    • setRepeatedField

      public ImageAnnotation.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<ImageAnnotation.Builder>
    • addRepeatedField

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

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

      public ImageAnnotation.Builder mergeFrom(ImageAnnotation other)
    • isInitialized

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

      public ImageAnnotation.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<ImageAnnotation.Builder>
      Throws:
      IOException
    • getRoisList

      public List<ROI> getRoisList()
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
      Specified by:
      getRoisList in interface ImageAnnotationOrBuilder
    • getRoisCount

      public int getRoisCount()
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
      Specified by:
      getRoisCount in interface ImageAnnotationOrBuilder
    • getRois

      public ROI getRois(int index)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
      Specified by:
      getRois in interface ImageAnnotationOrBuilder
    • setRois

      public ImageAnnotation.Builder setRois(int index, ROI value)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • setRois

      public ImageAnnotation.Builder setRois(int index, ROI.Builder builderForValue)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • addRois

      public ImageAnnotation.Builder addRois(ROI value)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • addRois

      public ImageAnnotation.Builder addRois(int index, ROI value)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • addRois

      public ImageAnnotation.Builder addRois(ROI.Builder builderForValue)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • addRois

      public ImageAnnotation.Builder addRois(int index, ROI.Builder builderForValue)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • addAllRois

      public ImageAnnotation.Builder addAllRois(Iterable<? extends ROI> values)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • clearRois

      public ImageAnnotation.Builder clearRois()
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • removeRois

      public ImageAnnotation.Builder removeRois(int index)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • getRoisBuilder

      public ROI.Builder getRoisBuilder(int index)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • getRoisOrBuilder

      public ROIOrBuilder getRoisOrBuilder(int index)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
      Specified by:
      getRoisOrBuilder in interface ImageAnnotationOrBuilder
    • getRoisOrBuilderList

      public List<? extends ROIOrBuilder> getRoisOrBuilderList()
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
      Specified by:
      getRoisOrBuilderList in interface ImageAnnotationOrBuilder
    • addRoisBuilder

      public ROI.Builder addRoisBuilder()
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • addRoisBuilder

      public ROI.Builder addRoisBuilder(int index)
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • getRoisBuilderList

      public List<ROI.Builder> getRoisBuilderList()
       a list of region of interest
       
      repeated .biopb.image.ROI rois = 1;
    • getAnnotation

      public String getAnnotation()
       additional text annotation
       
      string annotation = 2;
      Specified by:
      getAnnotation in interface ImageAnnotationOrBuilder
      Returns:
      The annotation.
    • getAnnotationBytes

      public com.google.protobuf.ByteString getAnnotationBytes()
       additional text annotation
       
      string annotation = 2;
      Specified by:
      getAnnotationBytes in interface ImageAnnotationOrBuilder
      Returns:
      The bytes for annotation.
    • setAnnotation

      public ImageAnnotation.Builder setAnnotation(String value)
       additional text annotation
       
      string annotation = 2;
      Parameters:
      value - The annotation to set.
      Returns:
      This builder for chaining.
    • clearAnnotation

      public ImageAnnotation.Builder clearAnnotation()
       additional text annotation
       
      string annotation = 2;
      Returns:
      This builder for chaining.
    • setAnnotationBytes

      public ImageAnnotation.Builder setAnnotationBytes(com.google.protobuf.ByteString value)
       additional text annotation
       
      string annotation = 2;
      Parameters:
      value - The bytes for annotation to set.
      Returns:
      This builder for chaining.
    • getPixelsSizesList

      public List<Float> getPixelsSizesList()
       physical size of a pixel.
       
      repeated float pixels_sizes = 4;
      Specified by:
      getPixelsSizesList in interface ImageAnnotationOrBuilder
      Returns:
      A list containing the pixelsSizes.
    • getPixelsSizesCount

      public int getPixelsSizesCount()
       physical size of a pixel.
       
      repeated float pixels_sizes = 4;
      Specified by:
      getPixelsSizesCount in interface ImageAnnotationOrBuilder
      Returns:
      The count of pixelsSizes.
    • getPixelsSizes

      public float getPixelsSizes(int index)
       physical size of a pixel.
       
      repeated float pixels_sizes = 4;
      Specified by:
      getPixelsSizes in interface ImageAnnotationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The pixelsSizes at the given index.
    • setPixelsSizes

      public ImageAnnotation.Builder setPixelsSizes(int index, float value)
       physical size of a pixel.
       
      repeated float pixels_sizes = 4;
      Parameters:
      index - The index to set the value at.
      value - The pixelsSizes to set.
      Returns:
      This builder for chaining.
    • addPixelsSizes

      public ImageAnnotation.Builder addPixelsSizes(float value)
       physical size of a pixel.
       
      repeated float pixels_sizes = 4;
      Parameters:
      value - The pixelsSizes to add.
      Returns:
      This builder for chaining.
    • addAllPixelsSizes

      public ImageAnnotation.Builder addAllPixelsSizes(Iterable<? extends Float> values)
       physical size of a pixel.
       
      repeated float pixels_sizes = 4;
      Parameters:
      values - The pixelsSizes to add.
      Returns:
      This builder for chaining.
    • clearPixelsSizes

      public ImageAnnotation.Builder clearPixelsSizes()
       physical size of a pixel.
       
      repeated float pixels_sizes = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ImageAnnotation.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<ImageAnnotation.Builder>
    • mergeUnknownFields

      public final ImageAnnotation.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<ImageAnnotation.Builder>