Class Barcode.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
- com.google.cloud.documentai.v1beta2.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 typegoogle.cloud.documentai.v1beta2.Barcode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Barcode.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Barcode
build()
Barcode
buildPartial()
Barcode.Builder
clear()
Barcode.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Barcode.Builder
clearFormat()
Format of a barcode.Barcode.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Barcode.Builder
clearRawValue()
Raw value encoded in the barcode.Barcode.Builder
clearValueFormat()
Value format describes the format of the value that a barcode encodes.Barcode.Builder
clone()
Barcode
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFormat()
Format of a barcode.com.google.protobuf.ByteString
getFormatBytes()
Format of a barcode.String
getRawValue()
Raw value encoded in the barcode.com.google.protobuf.ByteString
getRawValueBytes()
Raw value encoded in the barcode.String
getValueFormat()
Value format describes the format of the value that a barcode encodes.com.google.protobuf.ByteString
getValueFormatBytes()
Value format describes the format of the value that a barcode encodes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Barcode.Builder
mergeFrom(Barcode other)
Barcode.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Barcode.Builder
mergeFrom(com.google.protobuf.Message other)
Barcode.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Barcode.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Barcode.Builder
setFormat(String value)
Format of a barcode.Barcode.Builder
setFormatBytes(com.google.protobuf.ByteString value)
Format of a barcode.Barcode.Builder
setRawValue(String value)
Raw value encoded in the barcode.Barcode.Builder
setRawValueBytes(com.google.protobuf.ByteString value)
Raw value encoded in the barcode.Barcode.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Barcode.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Barcode.Builder
setValueFormat(String value)
Value format describes the format of the value that a barcode encodes.Barcode.Builder
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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
clear
public Barcode.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
getDefaultInstanceForType
public Barcode getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Barcode build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Barcode buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Barcode.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
setField
public Barcode.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
clearField
public Barcode.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
clearOneof
public Barcode.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
addRepeatedField
public Barcode.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
mergeFrom
public Barcode.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Barcode.Builder>
-
mergeFrom
public Barcode.Builder mergeFrom(Barcode other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceBarcodeOrBuilder
- 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 interfaceBarcodeOrBuilder
- 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 interfaceBarcodeOrBuilder
- 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 interfaceBarcodeOrBuilder
- 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 interfaceBarcodeOrBuilder
- 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 interfaceBarcodeOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
mergeUnknownFields
public final Barcode.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Barcode.Builder>
-
-