Class 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.GeneratedMessageV3.Builder<Barcode.Builder>
    implements BarcodeOrBuilder
     Encodes the detailed information of a barcode.
     
    Protobuf type google.cloud.documentai.v1.Barcode
    • Method Detail

      • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

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

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