Package biopb.image

Class Caption.Builder

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

public static final class Caption.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Caption.Builder> implements CaptionOrBuilder
 A piece of text written on the image: a note, not a region.

 Distinct from RoiAnnotation.label, which names the CLASS of an ROI ("mitotic",
 repeated over hundreds of them). This is content to be read on the image, and
 it is the whole point of the shape -- an empty one marks nothing.
 
Protobuf type biopb.image.Caption
  • 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<Caption.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Caption.Builder mergeFrom(Caption other)
    • isInitialized

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

      public Caption.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<Caption.Builder>
      Throws:
      IOException
    • hasAt

      public boolean hasAt()
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
      Specified by:
      hasAt in interface CaptionOrBuilder
      Returns:
      Whether the at field is set.
    • getAt

      public Point getAt()
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
      Specified by:
      getAt in interface CaptionOrBuilder
      Returns:
      The at.
    • setAt

      public Caption.Builder setAt(Point value)
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
    • setAt

      public Caption.Builder setAt(Point.Builder builderForValue)
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
    • mergeAt

      public Caption.Builder mergeAt(Point value)
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
    • clearAt

      public Caption.Builder clearAt()
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
    • getAtBuilder

      public Point.Builder getAtBuilder()
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
    • getAtOrBuilder

      public PointOrBuilder getAtOrBuilder()
       Top-left of the text block. Lines run down and right from here.
       
      .biopb.image.Point at = 1;
      Specified by:
      getAtOrBuilder in interface CaptionOrBuilder
    • getText

      public String getText()
       UTF-8, '\n' between lines. No wrapping: a line break is where the writer put
       one. Size and colour are display choices and live in props_json.
       
      string text = 2;
      Specified by:
      getText in interface CaptionOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       UTF-8, '\n' between lines. No wrapping: a line break is where the writer put
       one. Size and colour are display choices and live in props_json.
       
      string text = 2;
      Specified by:
      getTextBytes in interface CaptionOrBuilder
      Returns:
      The bytes for text.
    • setText

      public Caption.Builder setText(String value)
       UTF-8, '\n' between lines. No wrapping: a line break is where the writer put
       one. Size and colour are display choices and live in props_json.
       
      string text = 2;
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public Caption.Builder clearText()
       UTF-8, '\n' between lines. No wrapping: a line break is where the writer put
       one. Size and colour are display choices and live in props_json.
       
      string text = 2;
      Returns:
      This builder for chaining.
    • setTextBytes

      public Caption.Builder setTextBytes(com.google.protobuf.ByteString value)
       UTF-8, '\n' between lines. No wrapping: a line break is where the writer put
       one. Size and colour are display choices and live in props_json.
       
      string text = 2;
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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