public static final class Document.Entity.NormalizedValue extends GeneratedMessageV3 implements Document.Entity.NormalizedValueOrBuilder
Parsed and normalized entity value.
Protobuf type google.cloud.documentai.v1.Document.Entity.NormalizedValue
Fields
ADDRESS_VALUE_FIELD_NUMBER
public static final int ADDRESS_VALUE_FIELD_NUMBER
Field Value
BOOLEAN_VALUE_FIELD_NUMBER
public static final int BOOLEAN_VALUE_FIELD_NUMBER
Field Value
DATETIME_VALUE_FIELD_NUMBER
public static final int DATETIME_VALUE_FIELD_NUMBER
Field Value
DATE_VALUE_FIELD_NUMBER
public static final int DATE_VALUE_FIELD_NUMBER
Field Value
MONEY_VALUE_FIELD_NUMBER
public static final int MONEY_VALUE_FIELD_NUMBER
Field Value
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAddressValue()
public PostalAddress getAddressValue()
Returns
Type | Description |
com.google.type.PostalAddress | The addressValue.
|
getAddressValueOrBuilder()
public PostalAddressOrBuilder getAddressValueOrBuilder()
Returns
Type | Description |
com.google.type.PostalAddressOrBuilder | |
getBooleanValue()
public boolean getBooleanValue()
Boolean value. Can be used for entities with binary values, or for
checkboxes.
bool boolean_value = 6;
Returns
Type | Description |
boolean | The booleanValue.
|
getDateValue()
public Date getDateValue()
Returns
Type | Description |
com.google.type.Date | The dateValue.
|
getDateValueOrBuilder()
public DateOrBuilder getDateValueOrBuilder()
Returns
Type | Description |
com.google.type.DateOrBuilder | |
getDatetimeValue()
public DateTime getDatetimeValue()
Returns
Type | Description |
com.google.type.DateTime | The datetimeValue.
|
getDatetimeValueOrBuilder()
public DateTimeOrBuilder getDatetimeValueOrBuilder()
Returns
Type | Description |
com.google.type.DateTimeOrBuilder | |
getDefaultInstance()
public static Document.Entity.NormalizedValue getDefaultInstance()
Returns
getDefaultInstanceForType()
public Document.Entity.NormalizedValue getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getMoneyValue()
public Money getMoneyValue()
Returns
Type | Description |
com.google.type.Money | The moneyValue.
|
getMoneyValueOrBuilder()
public MoneyOrBuilder getMoneyValueOrBuilder()
Returns
Type | Description |
com.google.type.MoneyOrBuilder | |
getParserForType()
public Parser<Document.Entity.NormalizedValue> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStructuredValueCase()
public Document.Entity.NormalizedValue.StructuredValueCase getStructuredValueCase()
Returns
getText()
Required. Normalized entity value stored as a string. This field is populated for
supported document type (e.g. Invoice). For some entity types, one of
respective 'structured_value' fields may also be populated.
- Money/Currency type (
money_value
) is in the ISO 4217 text format.
- Date type (
date_value
) is in the ISO 8601 text format.
- Datetime type (
datetime_value
) is in the ISO 8601 text format.
string text = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The text.
|
getTextBytes()
public ByteString getTextBytes()
Required. Normalized entity value stored as a string. This field is populated for
supported document type (e.g. Invoice). For some entity types, one of
respective 'structured_value' fields may also be populated.
- Money/Currency type (
money_value
) is in the ISO 4217 text format.
- Date type (
date_value
) is in the ISO 8601 text format.
- Datetime type (
datetime_value
) is in the ISO 8601 text format.
string text = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasAddressValue()
public boolean hasAddressValue()
Returns
Type | Description |
boolean | Whether the addressValue field is set.
|
hasBooleanValue()
public boolean hasBooleanValue()
Boolean value. Can be used for entities with binary values, or for
checkboxes.
bool boolean_value = 6;
Returns
Type | Description |
boolean | Whether the booleanValue field is set.
|
hasDateValue()
public boolean hasDateValue()
Returns
Type | Description |
boolean | Whether the dateValue field is set.
|
hasDatetimeValue()
public boolean hasDatetimeValue()
Returns
Type | Description |
boolean | Whether the datetimeValue field is set.
|
hasMoneyValue()
public boolean hasMoneyValue()
Returns
Type | Description |
boolean | Whether the moneyValue field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Document.Entity.NormalizedValue.Builder newBuilder()
Returns
newBuilder(Document.Entity.NormalizedValue prototype)
public static Document.Entity.NormalizedValue.Builder newBuilder(Document.Entity.NormalizedValue prototype)
Parameter
Returns
newBuilderForType()
public Document.Entity.NormalizedValue.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Entity.NormalizedValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Document.Entity.NormalizedValue parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Document.Entity.NormalizedValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Document.Entity.NormalizedValue parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Document.Entity.NormalizedValue parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Document.Entity.NormalizedValue parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Document.Entity.NormalizedValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Document.Entity.NormalizedValue parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Document.Entity.NormalizedValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Document.Entity.NormalizedValue parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Document.Entity.NormalizedValue> parser()
Returns
toBuilder()
public Document.Entity.NormalizedValue.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions