Package com.google.cloud.documentai.v1
Class Document.Entity.NormalizedValue
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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.GeneratedMessage
implements Document.Entity.NormalizedValueOrBuilder
Parsed and normalized entity value.Protobuf type
google.cloud.documentai.v1.Document.Entity.NormalizedValue- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classParsed and normalized entity value.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanPostal address.Postal address.booleanBoolean value.DateTime value.DateTime value.Date value.Date value.static final com.google.protobuf.Descriptors.DescriptorfloatFloat value.intInteger value.Money value.Money value.com.google.protobuf.Parser<Document.Entity.NormalizedValue>intbooleanA signature - a graphical representation of a person's name, often used to sign a document.getText()Optional.com.google.protobuf.ByteStringOptional.booleanPostal address.booleanBoolean value.booleanDateTime value.booleanDate value.booleanFloat value.inthashCode()booleanInteger value.booleanMoney value.booleanA signature - a graphical representation of a person's name, often used to sign a document.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(Document.Entity.NormalizedValue prototype) protected Document.Entity.NormalizedValue.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Document.Entity.NormalizedValue>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MONEY_VALUE_FIELD_NUMBER
public static final int MONEY_VALUE_FIELD_NUMBER- See Also:
-
DATE_VALUE_FIELD_NUMBER
public static final int DATE_VALUE_FIELD_NUMBER- See Also:
-
DATETIME_VALUE_FIELD_NUMBER
public static final int DATETIME_VALUE_FIELD_NUMBER- See Also:
-
ADDRESS_VALUE_FIELD_NUMBER
public static final int ADDRESS_VALUE_FIELD_NUMBER- See Also:
-
BOOLEAN_VALUE_FIELD_NUMBER
public static final int BOOLEAN_VALUE_FIELD_NUMBER- See Also:
-
INTEGER_VALUE_FIELD_NUMBER
public static final int INTEGER_VALUE_FIELD_NUMBER- See Also:
-
FLOAT_VALUE_FIELD_NUMBER
public static final int FLOAT_VALUE_FIELD_NUMBER- See Also:
-
SIGNATURE_VALUE_FIELD_NUMBER
public static final int SIGNATURE_VALUE_FIELD_NUMBER- See Also:
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getStructuredValueCase
- Specified by:
getStructuredValueCasein 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:
hasMoneyValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- Whether the moneyValue field is set.
-
getMoneyValue
Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
.google.type.Money money_value = 2;- Specified by:
getMoneyValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The moneyValue.
-
getMoneyValueOrBuilder
Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
.google.type.Money money_value = 2;- Specified by:
getMoneyValueOrBuilderin 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:
hasDateValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- Whether the dateValue field is set.
-
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:
getDateValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The dateValue.
-
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:
getDateValueOrBuilderin 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:
hasDatetimeValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- Whether the datetimeValue field is set.
-
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:
getDatetimeValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The datetimeValue.
-
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:
getDatetimeValueOrBuilderin 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:
hasAddressValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- Whether the addressValue field is set.
-
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:
getAddressValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The addressValue.
-
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:
getAddressValueOrBuilderin 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:
hasBooleanValuein 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:
getBooleanValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The booleanValue.
-
hasIntegerValue
public boolean hasIntegerValue()Integer value.
int32 integer_value = 7;- Specified by:
hasIntegerValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- Whether the integerValue field is set.
-
getIntegerValue
public int getIntegerValue()Integer value.
int32 integer_value = 7;- Specified by:
getIntegerValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The integerValue.
-
hasFloatValue
public boolean hasFloatValue()Float value.
float float_value = 8;- Specified by:
hasFloatValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- Whether the floatValue field is set.
-
getFloatValue
public float getFloatValue()Float value.
float float_value = 8;- Specified by:
getFloatValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The floatValue.
-
hasSignatureValue
public boolean hasSignatureValue()A signature - a graphical representation of a person's name, often used to sign a document.
bool signature_value = 10;- Specified by:
hasSignatureValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- Whether the signatureValue field is set.
-
getSignatureValue
public boolean getSignatureValue()A signature - a graphical representation of a person's name, often used to sign a document.
bool signature_value = 10;- Specified by:
getSignatureValuein interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The signatureValue.
-
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:
getTextin 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:
getTextBytesin interfaceDocument.Entity.NormalizedValueOrBuilder- Returns:
- The bytes for text.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Document.Entity.NormalizedValue.Builder newBuilder(Document.Entity.NormalizedValue prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Entity.NormalizedValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-