Class Barcode.Builder

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

public static final class Barcode.Builder extends com.google.protobuf.GeneratedMessage.Builder<Barcode.Builder> implements BarcodeOrBuilder
 Encodes the detailed information of a barcode.
 
Protobuf type google.cloud.documentai.v1.Barcode
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Format of a barcode.
    Raw value encoded in the barcode.
    Value format describes the format of the value that a barcode encodes.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Format of a barcode.
    com.google.protobuf.ByteString
    Format of a barcode.
    Raw value encoded in the barcode.
    com.google.protobuf.ByteString
    Raw value encoded in the barcode.
    Value format describes the format of the value that a barcode encodes.
    com.google.protobuf.ByteString
    Value format describes the format of the value that a barcode encodes.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Format of a barcode.
    setFormatBytes(com.google.protobuf.ByteString value)
    Format of a barcode.
    Raw value encoded in the barcode.
    setRawValueBytes(com.google.protobuf.ByteString value)
    Raw value encoded in the barcode.
    Value format describes the format of the value that a barcode encodes.
    setValueFormatBytes(com.google.protobuf.ByteString value)
    Value format describes the format of the value that a barcode encodes.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Barcode.Builder>
    • clear

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

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

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

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

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

      public Barcode.Builder mergeFrom(Barcode other)
    • isInitialized

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

      public Barcode.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<Barcode.Builder>
      Throws:
      IOException
    • getFormat

      public String getFormat()
       Format of a barcode.
       The supported formats are:
      
       - `CODE_128`: Code 128 type.
       - `CODE_39`: Code 39 type.
       - `CODE_93`: Code 93 type.
       - `CODABAR`: Codabar type.
       - `DATA_MATRIX`: 2D Data Matrix type.
       - `ITF`: ITF type.
       - `EAN_13`: EAN-13 type.
       - `EAN_8`: EAN-8 type.
       - `QR_CODE`: 2D QR code type.
       - `UPC_A`: UPC-A type.
       - `UPC_E`: UPC-E type.
       - `PDF417`: PDF417 type.
       - `AZTEC`: 2D Aztec code type.
       - `DATABAR`: GS1 DataBar code type.
       
      string format = 1;
      Specified by:
      getFormat in interface BarcodeOrBuilder
      Returns:
      The format.
    • getFormatBytes

      public com.google.protobuf.ByteString getFormatBytes()
       Format of a barcode.
       The supported formats are:
      
       - `CODE_128`: Code 128 type.
       - `CODE_39`: Code 39 type.
       - `CODE_93`: Code 93 type.
       - `CODABAR`: Codabar type.
       - `DATA_MATRIX`: 2D Data Matrix type.
       - `ITF`: ITF type.
       - `EAN_13`: EAN-13 type.
       - `EAN_8`: EAN-8 type.
       - `QR_CODE`: 2D QR code type.
       - `UPC_A`: UPC-A type.
       - `UPC_E`: UPC-E type.
       - `PDF417`: PDF417 type.
       - `AZTEC`: 2D Aztec code type.
       - `DATABAR`: GS1 DataBar code type.
       
      string format = 1;
      Specified by:
      getFormatBytes in interface BarcodeOrBuilder
      Returns:
      The bytes for format.
    • setFormat

      public Barcode.Builder setFormat(String value)
       Format of a barcode.
       The supported formats are:
      
       - `CODE_128`: Code 128 type.
       - `CODE_39`: Code 39 type.
       - `CODE_93`: Code 93 type.
       - `CODABAR`: Codabar type.
       - `DATA_MATRIX`: 2D Data Matrix type.
       - `ITF`: ITF type.
       - `EAN_13`: EAN-13 type.
       - `EAN_8`: EAN-8 type.
       - `QR_CODE`: 2D QR code type.
       - `UPC_A`: UPC-A type.
       - `UPC_E`: UPC-E type.
       - `PDF417`: PDF417 type.
       - `AZTEC`: 2D Aztec code type.
       - `DATABAR`: GS1 DataBar code type.
       
      string format = 1;
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public Barcode.Builder clearFormat()
       Format of a barcode.
       The supported formats are:
      
       - `CODE_128`: Code 128 type.
       - `CODE_39`: Code 39 type.
       - `CODE_93`: Code 93 type.
       - `CODABAR`: Codabar type.
       - `DATA_MATRIX`: 2D Data Matrix type.
       - `ITF`: ITF type.
       - `EAN_13`: EAN-13 type.
       - `EAN_8`: EAN-8 type.
       - `QR_CODE`: 2D QR code type.
       - `UPC_A`: UPC-A type.
       - `UPC_E`: UPC-E type.
       - `PDF417`: PDF417 type.
       - `AZTEC`: 2D Aztec code type.
       - `DATABAR`: GS1 DataBar code type.
       
      string format = 1;
      Returns:
      This builder for chaining.
    • setFormatBytes

      public Barcode.Builder setFormatBytes(com.google.protobuf.ByteString value)
       Format of a barcode.
       The supported formats are:
      
       - `CODE_128`: Code 128 type.
       - `CODE_39`: Code 39 type.
       - `CODE_93`: Code 93 type.
       - `CODABAR`: Codabar type.
       - `DATA_MATRIX`: 2D Data Matrix type.
       - `ITF`: ITF type.
       - `EAN_13`: EAN-13 type.
       - `EAN_8`: EAN-8 type.
       - `QR_CODE`: 2D QR code type.
       - `UPC_A`: UPC-A type.
       - `UPC_E`: UPC-E type.
       - `PDF417`: PDF417 type.
       - `AZTEC`: 2D Aztec code type.
       - `DATABAR`: GS1 DataBar code type.
       
      string format = 1;
      Parameters:
      value - The bytes for format to set.
      Returns:
      This builder for chaining.
    • getValueFormat

      public String getValueFormat()
       Value format describes the format of the value that a barcode
       encodes.
       The supported formats are:
      
       - `CONTACT_INFO`: Contact information.
       - `EMAIL`: Email address.
       - `ISBN`: ISBN identifier.
       - `PHONE`: Phone number.
       - `PRODUCT`: Product.
       - `SMS`: SMS message.
       - `TEXT`: Text string.
       - `URL`: URL address.
       - `WIFI`: Wifi information.
       - `GEO`: Geo-localization.
       - `CALENDAR_EVENT`: Calendar event.
       - `DRIVER_LICENSE`: Driver's license.
       
      string value_format = 2;
      Specified by:
      getValueFormat in interface BarcodeOrBuilder
      Returns:
      The valueFormat.
    • getValueFormatBytes

      public com.google.protobuf.ByteString getValueFormatBytes()
       Value format describes the format of the value that a barcode
       encodes.
       The supported formats are:
      
       - `CONTACT_INFO`: Contact information.
       - `EMAIL`: Email address.
       - `ISBN`: ISBN identifier.
       - `PHONE`: Phone number.
       - `PRODUCT`: Product.
       - `SMS`: SMS message.
       - `TEXT`: Text string.
       - `URL`: URL address.
       - `WIFI`: Wifi information.
       - `GEO`: Geo-localization.
       - `CALENDAR_EVENT`: Calendar event.
       - `DRIVER_LICENSE`: Driver's license.
       
      string value_format = 2;
      Specified by:
      getValueFormatBytes in interface BarcodeOrBuilder
      Returns:
      The bytes for valueFormat.
    • setValueFormat

      public Barcode.Builder setValueFormat(String value)
       Value format describes the format of the value that a barcode
       encodes.
       The supported formats are:
      
       - `CONTACT_INFO`: Contact information.
       - `EMAIL`: Email address.
       - `ISBN`: ISBN identifier.
       - `PHONE`: Phone number.
       - `PRODUCT`: Product.
       - `SMS`: SMS message.
       - `TEXT`: Text string.
       - `URL`: URL address.
       - `WIFI`: Wifi information.
       - `GEO`: Geo-localization.
       - `CALENDAR_EVENT`: Calendar event.
       - `DRIVER_LICENSE`: Driver's license.
       
      string value_format = 2;
      Parameters:
      value - The valueFormat to set.
      Returns:
      This builder for chaining.
    • clearValueFormat

      public Barcode.Builder clearValueFormat()
       Value format describes the format of the value that a barcode
       encodes.
       The supported formats are:
      
       - `CONTACT_INFO`: Contact information.
       - `EMAIL`: Email address.
       - `ISBN`: ISBN identifier.
       - `PHONE`: Phone number.
       - `PRODUCT`: Product.
       - `SMS`: SMS message.
       - `TEXT`: Text string.
       - `URL`: URL address.
       - `WIFI`: Wifi information.
       - `GEO`: Geo-localization.
       - `CALENDAR_EVENT`: Calendar event.
       - `DRIVER_LICENSE`: Driver's license.
       
      string value_format = 2;
      Returns:
      This builder for chaining.
    • setValueFormatBytes

      public Barcode.Builder setValueFormatBytes(com.google.protobuf.ByteString value)
       Value format describes the format of the value that a barcode
       encodes.
       The supported formats are:
      
       - `CONTACT_INFO`: Contact information.
       - `EMAIL`: Email address.
       - `ISBN`: ISBN identifier.
       - `PHONE`: Phone number.
       - `PRODUCT`: Product.
       - `SMS`: SMS message.
       - `TEXT`: Text string.
       - `URL`: URL address.
       - `WIFI`: Wifi information.
       - `GEO`: Geo-localization.
       - `CALENDAR_EVENT`: Calendar event.
       - `DRIVER_LICENSE`: Driver's license.
       
      string value_format = 2;
      Parameters:
      value - The bytes for valueFormat to set.
      Returns:
      This builder for chaining.
    • getRawValue

      public String getRawValue()
       Raw value encoded in the barcode.
       For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
       
      string raw_value = 3;
      Specified by:
      getRawValue in interface BarcodeOrBuilder
      Returns:
      The rawValue.
    • getRawValueBytes

      public com.google.protobuf.ByteString getRawValueBytes()
       Raw value encoded in the barcode.
       For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
       
      string raw_value = 3;
      Specified by:
      getRawValueBytes in interface BarcodeOrBuilder
      Returns:
      The bytes for rawValue.
    • setRawValue

      public Barcode.Builder setRawValue(String value)
       Raw value encoded in the barcode.
       For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
       
      string raw_value = 3;
      Parameters:
      value - The rawValue to set.
      Returns:
      This builder for chaining.
    • clearRawValue

      public Barcode.Builder clearRawValue()
       Raw value encoded in the barcode.
       For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
       
      string raw_value = 3;
      Returns:
      This builder for chaining.
    • setRawValueBytes

      public Barcode.Builder setRawValueBytes(com.google.protobuf.ByteString value)
       Raw value encoded in the barcode.
       For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.
       
      string raw_value = 3;
      Parameters:
      value - The bytes for rawValue to set.
      Returns:
      This builder for chaining.