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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
ADDRESS_VALUE_FIELD_NUMBER
public static final int ADDRESS_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
BOOLEAN_VALUE_FIELD_NUMBER
public static final int BOOLEAN_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DATETIME_VALUE_FIELD_NUMBER
public static final int DATETIME_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DATE_VALUE_FIELD_NUMBER
public static final int DATE_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FLOAT_VALUE_FIELD_NUMBER
public static final int FLOAT_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INTEGER_VALUE_FIELD_NUMBER
public static final int INTEGER_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MONEY_VALUE_FIELD_NUMBER
public static final int MONEY_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Document.Entity.NormalizedValue getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Document.Entity.NormalizedValue.Builder newBuilder()
newBuilder(Document.Entity.NormalizedValue prototype)
public static Document.Entity.NormalizedValue.Builder newBuilder(Document.Entity.NormalizedValue prototype)
public static Document.Entity.NormalizedValue parseDelimitedFrom(InputStream input)
public static Document.Entity.NormalizedValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Document.Entity.NormalizedValue parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Document.Entity.NormalizedValue parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(CodedInputStream input)
public static Document.Entity.NormalizedValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(InputStream input)
public static Document.Entity.NormalizedValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Document.Entity.NormalizedValue parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Entity.NormalizedValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Document.Entity.NormalizedValue> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 | |
getDefaultInstanceForType()
public Document.Entity.NormalizedValue getDefaultInstanceForType()
getFloatValue()
public float getFloatValue()
Float value.
float float_value = 8;
Returns |
---|
Type | Description |
float | The floatValue.
|
getIntegerValue()
public int getIntegerValue()
Integer value.
int32 integer_value = 7;
Returns |
---|
Type | Description |
int | The integerValue.
|
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getStructuredValueCase()
public Document.Entity.NormalizedValue.StructuredValueCase getStructuredValueCase()
getText()
Optional. An optional field to store a normalized string.
For some entity types, one of respective structured_value
fields may
also be populated. Also not all the types of structured_value
will be
normalized. For example, some processors may not generate float
or integer
normalized text by default.
Below are sample formats mapped to structured values.
- 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) = OPTIONAL];
Returns |
---|
Type | Description |
String | The text.
|
getTextBytes()
public ByteString getTextBytes()
Optional. An optional field to store a normalized string.
For some entity types, one of respective structured_value
fields may
also be populated. Also not all the types of structured_value
will be
normalized. For example, some processors may not generate float
or integer
normalized text by default.
Below are sample formats mapped to structured values.
- 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) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for text.
|
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.
|
hasFloatValue()
public boolean hasFloatValue()
Float value.
float float_value = 8;
Returns |
---|
Type | Description |
boolean | Whether the floatValue field is set.
|
hasIntegerValue()
public boolean hasIntegerValue()
Integer value.
int32 integer_value = 7;
Returns |
---|
Type | Description |
boolean | Whether the integerValue field is set.
|
hasMoneyValue()
public boolean hasMoneyValue()
Returns |
---|
Type | Description |
boolean | Whether the moneyValue field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Document.Entity.NormalizedValue.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Entity.NormalizedValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Document.Entity.NormalizedValue.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides