Package com.google.cloud.documentai.v1
Class Document.Entity.NormalizedValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1.Document.Entity.NormalizedValue
-
- All Implemented Interfaces:
Document.Entity.NormalizedValueOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- Document.Entity
public static final class Document.Entity.NormalizedValue extends com.google.protobuf.GeneratedMessageV3 implements Document.Entity.NormalizedValueOrBuilder
Parsed and normalized entity value.
Protobuf typegoogle.cloud.documentai.v1.Document.Entity.NormalizedValue
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Document.Entity.NormalizedValue.Builder
Parsed and normalized entity value.static class
Document.Entity.NormalizedValue.StructuredValueCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADDRESS_VALUE_FIELD_NUMBER
static int
BOOLEAN_VALUE_FIELD_NUMBER
static int
DATE_VALUE_FIELD_NUMBER
static int
DATETIME_VALUE_FIELD_NUMBER
static int
FLOAT_VALUE_FIELD_NUMBER
static int
INTEGER_VALUE_FIELD_NUMBER
static int
MONEY_VALUE_FIELD_NUMBER
static int
TEXT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.type.PostalAddress
getAddressValue()
Postal address.com.google.type.PostalAddressOrBuilder
getAddressValueOrBuilder()
Postal address.boolean
getBooleanValue()
Boolean value.com.google.type.DateTime
getDatetimeValue()
DateTime value.com.google.type.DateTimeOrBuilder
getDatetimeValueOrBuilder()
DateTime value.com.google.type.Date
getDateValue()
Date value.com.google.type.DateOrBuilder
getDateValueOrBuilder()
Date value.static Document.Entity.NormalizedValue
getDefaultInstance()
Document.Entity.NormalizedValue
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
float
getFloatValue()
Float value.int
getIntegerValue()
Integer value.com.google.type.Money
getMoneyValue()
Money value.com.google.type.MoneyOrBuilder
getMoneyValueOrBuilder()
Money value.com.google.protobuf.Parser<Document.Entity.NormalizedValue>
getParserForType()
int
getSerializedSize()
Document.Entity.NormalizedValue.StructuredValueCase
getStructuredValueCase()
String
getText()
Optional.com.google.protobuf.ByteString
getTextBytes()
Optional.boolean
hasAddressValue()
Postal address.boolean
hasBooleanValue()
Boolean value.boolean
hasDatetimeValue()
DateTime value.boolean
hasDateValue()
Date value.boolean
hasFloatValue()
Float value.int
hashCode()
boolean
hasIntegerValue()
Integer value.boolean
hasMoneyValue()
Money value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Document.Entity.NormalizedValue.Builder
newBuilder()
static Document.Entity.NormalizedValue.Builder
newBuilder(Document.Entity.NormalizedValue prototype)
Document.Entity.NormalizedValue.Builder
newBuilderForType()
protected Document.Entity.NormalizedValue.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Document.Entity.NormalizedValue
parseDelimitedFrom(InputStream input)
static Document.Entity.NormalizedValue
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Entity.NormalizedValue
parseFrom(byte[] data)
static Document.Entity.NormalizedValue
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Entity.NormalizedValue
parseFrom(com.google.protobuf.ByteString data)
static Document.Entity.NormalizedValue
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Entity.NormalizedValue
parseFrom(com.google.protobuf.CodedInputStream input)
static Document.Entity.NormalizedValue
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Entity.NormalizedValue
parseFrom(InputStream input)
static Document.Entity.NormalizedValue
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Entity.NormalizedValue
parseFrom(ByteBuffer data)
static Document.Entity.NormalizedValue
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Document.Entity.NormalizedValue>
parser()
Document.Entity.NormalizedValue.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MONEY_VALUE_FIELD_NUMBER
public static final int MONEY_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATE_VALUE_FIELD_NUMBER
public static final int DATE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATETIME_VALUE_FIELD_NUMBER
public static final int DATETIME_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADDRESS_VALUE_FIELD_NUMBER
public static final int ADDRESS_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOLEAN_VALUE_FIELD_NUMBER
public static final int BOOLEAN_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTEGER_VALUE_FIELD_NUMBER
public static final int INTEGER_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT_VALUE_FIELD_NUMBER
public static final int FLOAT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
getStructuredValueCase
public Document.Entity.NormalizedValue.StructuredValueCase getStructuredValueCase()
- Specified by:
getStructuredValueCase
in interfaceDocument.Entity.NormalizedValueOrBuilder
-
hasMoneyValue
public boolean hasMoneyValue()
Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
.google.type.Money money_value = 2;
- Specified by:
hasMoneyValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- Whether the moneyValue field is set.
-
getMoneyValue
public com.google.type.Money getMoneyValue()
Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
.google.type.Money money_value = 2;
- Specified by:
getMoneyValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The moneyValue.
-
getMoneyValueOrBuilder
public com.google.type.MoneyOrBuilder getMoneyValueOrBuilder()
Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
.google.type.Money money_value = 2;
- Specified by:
getMoneyValueOrBuilder
in interfaceDocument.Entity.NormalizedValueOrBuilder
-
hasDateValue
public boolean hasDateValue()
Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
.google.type.Date date_value = 3;
- Specified by:
hasDateValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- Whether the dateValue field is set.
-
getDateValue
public com.google.type.Date getDateValue()
Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
.google.type.Date date_value = 3;
- Specified by:
getDateValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The dateValue.
-
getDateValueOrBuilder
public com.google.type.DateOrBuilder getDateValueOrBuilder()
Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
.google.type.Date date_value = 3;
- Specified by:
getDateValueOrBuilder
in interfaceDocument.Entity.NormalizedValueOrBuilder
-
hasDatetimeValue
public boolean hasDatetimeValue()
DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
.google.type.DateTime datetime_value = 4;
- Specified by:
hasDatetimeValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- Whether the datetimeValue field is set.
-
getDatetimeValue
public com.google.type.DateTime getDatetimeValue()
DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
.google.type.DateTime datetime_value = 4;
- Specified by:
getDatetimeValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The datetimeValue.
-
getDatetimeValueOrBuilder
public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder()
DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
.google.type.DateTime datetime_value = 4;
- Specified by:
getDatetimeValueOrBuilder
in interfaceDocument.Entity.NormalizedValueOrBuilder
-
hasAddressValue
public boolean hasAddressValue()
Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
.google.type.PostalAddress address_value = 5;
- Specified by:
hasAddressValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- Whether the addressValue field is set.
-
getAddressValue
public com.google.type.PostalAddress getAddressValue()
Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
.google.type.PostalAddress address_value = 5;
- Specified by:
getAddressValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The addressValue.
-
getAddressValueOrBuilder
public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder()
Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
.google.type.PostalAddress address_value = 5;
- Specified by:
getAddressValueOrBuilder
in interfaceDocument.Entity.NormalizedValueOrBuilder
-
hasBooleanValue
public boolean hasBooleanValue()
Boolean value. Can be used for entities with binary values, or for checkboxes.
bool boolean_value = 6;
- Specified by:
hasBooleanValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- Whether the booleanValue field is set.
-
getBooleanValue
public boolean getBooleanValue()
Boolean value. Can be used for entities with binary values, or for checkboxes.
bool boolean_value = 6;
- Specified by:
getBooleanValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The booleanValue.
-
hasIntegerValue
public boolean hasIntegerValue()
Integer value.
int32 integer_value = 7;
- Specified by:
hasIntegerValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- Whether the integerValue field is set.
-
getIntegerValue
public int getIntegerValue()
Integer value.
int32 integer_value = 7;
- Specified by:
getIntegerValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The integerValue.
-
hasFloatValue
public boolean hasFloatValue()
Float value.
float float_value = 8;
- Specified by:
hasFloatValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- Whether the floatValue field is set.
-
getFloatValue
public float getFloatValue()
Float value.
float float_value = 8;
- Specified by:
getFloatValue
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The floatValue.
-
getText
public String 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];
- Specified by:
getText
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.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];
- Specified by:
getTextBytes
in interfaceDocument.Entity.NormalizedValueOrBuilder
- Returns:
- The bytes for text.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document.Entity.NormalizedValue parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document.Entity.NormalizedValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Entity.NormalizedValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Document.Entity.NormalizedValue.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Document.Entity.NormalizedValue.Builder newBuilder()
-
newBuilder
public static Document.Entity.NormalizedValue.Builder newBuilder(Document.Entity.NormalizedValue prototype)
-
toBuilder
public Document.Entity.NormalizedValue.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Entity.NormalizedValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Document.Entity.NormalizedValue getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Document.Entity.NormalizedValue> parser()
-
getParserForType
public com.google.protobuf.Parser<Document.Entity.NormalizedValue> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Entity.NormalizedValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-