Class DocumentDimensions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentDimensions.Builder>
com.google.cloud.automl.v1.DocumentDimensions.Builder
All Implemented Interfaces:
DocumentDimensionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DocumentDimensions

public static final class DocumentDimensions.Builder extends com.google.protobuf.GeneratedMessage.Builder<DocumentDimensions.Builder> implements DocumentDimensionsOrBuilder
 Message that describes dimension of a document.
 
Protobuf type google.cloud.automl.v1.DocumentDimensions
  • 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<DocumentDimensions.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<DocumentDimensions.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<DocumentDimensions.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DocumentDimensions.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<DocumentDimensions.Builder>
      Throws:
      IOException
    • getUnitValue

      public int getUnitValue()
       Unit of the dimension.
       
      .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1;
      Specified by:
      getUnitValue in interface DocumentDimensionsOrBuilder
      Returns:
      The enum numeric value on the wire for unit.
    • setUnitValue

      public DocumentDimensions.Builder setUnitValue(int value)
       Unit of the dimension.
       
      .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1;
      Parameters:
      value - The enum numeric value on the wire for unit to set.
      Returns:
      This builder for chaining.
    • getUnit

       Unit of the dimension.
       
      .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1;
      Specified by:
      getUnit in interface DocumentDimensionsOrBuilder
      Returns:
      The unit.
    • setUnit

       Unit of the dimension.
       
      .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1;
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

      public DocumentDimensions.Builder clearUnit()
       Unit of the dimension.
       
      .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1;
      Returns:
      This builder for chaining.
    • getWidth

      public float getWidth()
       Width value of the document, works together with the unit.
       
      float width = 2;
      Specified by:
      getWidth in interface DocumentDimensionsOrBuilder
      Returns:
      The width.
    • setWidth

      public DocumentDimensions.Builder setWidth(float value)
       Width value of the document, works together with the unit.
       
      float width = 2;
      Parameters:
      value - The width to set.
      Returns:
      This builder for chaining.
    • clearWidth

      public DocumentDimensions.Builder clearWidth()
       Width value of the document, works together with the unit.
       
      float width = 2;
      Returns:
      This builder for chaining.
    • getHeight

      public float getHeight()
       Height value of the document, works together with the unit.
       
      float height = 3;
      Specified by:
      getHeight in interface DocumentDimensionsOrBuilder
      Returns:
      The height.
    • setHeight

      public DocumentDimensions.Builder setHeight(float value)
       Height value of the document, works together with the unit.
       
      float height = 3;
      Parameters:
      value - The height to set.
      Returns:
      This builder for chaining.
    • clearHeight

      public DocumentDimensions.Builder clearHeight()
       Height value of the document, works together with the unit.
       
      float height = 3;
      Returns:
      This builder for chaining.