Class Document.Style.FontSize.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.Style.FontSize.Builder>
com.google.cloud.documentai.v1.Document.Style.FontSize.Builder
All Implemented Interfaces:
Document.Style.FontSizeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Document.Style.FontSize

public static final class Document.Style.FontSize.Builder extends com.google.protobuf.GeneratedMessage.Builder<Document.Style.FontSize.Builder> implements Document.Style.FontSizeOrBuilder
 Font size with unit.
 
Protobuf type google.cloud.documentai.v1.Document.Style.FontSize
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Document.Style.FontSize.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.GeneratedMessage.Builder<Document.Style.FontSize.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.GeneratedMessage.Builder<Document.Style.FontSize.Builder>
    • getDefaultInstanceForType

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

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

      public Document.Style.FontSize buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Document.Style.FontSize.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<Document.Style.FontSize.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Document.Style.FontSize.Builder>
    • mergeFrom

      public Document.Style.FontSize.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<Document.Style.FontSize.Builder>
      Throws:
      IOException
    • getSize

      public float getSize()
       Font size for the text.
       
      float size = 1;
      Specified by:
      getSize in interface Document.Style.FontSizeOrBuilder
      Returns:
      The size.
    • setSize

      public Document.Style.FontSize.Builder setSize(float value)
       Font size for the text.
       
      float size = 1;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public Document.Style.FontSize.Builder clearSize()
       Font size for the text.
       
      float size = 1;
      Returns:
      This builder for chaining.
    • getUnit

      public String getUnit()
       Unit for the font size. Follows CSS naming (such as `in`, `px`, and
       `pt`).
       
      string unit = 2;
      Specified by:
      getUnit in interface Document.Style.FontSizeOrBuilder
      Returns:
      The unit.
    • getUnitBytes

      public com.google.protobuf.ByteString getUnitBytes()
       Unit for the font size. Follows CSS naming (such as `in`, `px`, and
       `pt`).
       
      string unit = 2;
      Specified by:
      getUnitBytes in interface Document.Style.FontSizeOrBuilder
      Returns:
      The bytes for unit.
    • setUnit

      public Document.Style.FontSize.Builder setUnit(String value)
       Unit for the font size. Follows CSS naming (such as `in`, `px`, and
       `pt`).
       
      string unit = 2;
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

      public Document.Style.FontSize.Builder clearUnit()
       Unit for the font size. Follows CSS naming (such as `in`, `px`, and
       `pt`).
       
      string unit = 2;
      Returns:
      This builder for chaining.
    • setUnitBytes

      public Document.Style.FontSize.Builder setUnitBytes(com.google.protobuf.ByteString value)
       Unit for the font size. Follows CSS naming (such as `in`, `px`, and
       `pt`).
       
      string unit = 2;
      Parameters:
      value - The bytes for unit to set.
      Returns:
      This builder for chaining.