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 classDocument.Entity.NormalizedValue.BuilderParsed and normalized entity value.static classDocument.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 intADDRESS_VALUE_FIELD_NUMBERstatic intBOOLEAN_VALUE_FIELD_NUMBERstatic intDATE_VALUE_FIELD_NUMBERstatic intDATETIME_VALUE_FIELD_NUMBERstatic intFLOAT_VALUE_FIELD_NUMBERstatic intINTEGER_VALUE_FIELD_NUMBERstatic intMONEY_VALUE_FIELD_NUMBERstatic intTEXT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.type.PostalAddressgetAddressValue()Postal address.com.google.type.PostalAddressOrBuildergetAddressValueOrBuilder()Postal address.booleangetBooleanValue()Boolean value.com.google.type.DateTimegetDatetimeValue()DateTime value.com.google.type.DateTimeOrBuildergetDatetimeValueOrBuilder()DateTime value.com.google.type.DategetDateValue()Date value.com.google.type.DateOrBuildergetDateValueOrBuilder()Date value.static Document.Entity.NormalizedValuegetDefaultInstance()Document.Entity.NormalizedValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()floatgetFloatValue()Float value.intgetIntegerValue()Integer value.com.google.type.MoneygetMoneyValue()Money value.com.google.type.MoneyOrBuildergetMoneyValueOrBuilder()Money value.com.google.protobuf.Parser<Document.Entity.NormalizedValue>getParserForType()intgetSerializedSize()Document.Entity.NormalizedValue.StructuredValueCasegetStructuredValueCase()StringgetText()Optional.com.google.protobuf.ByteStringgetTextBytes()Optional.booleanhasAddressValue()Postal address.booleanhasBooleanValue()Boolean value.booleanhasDatetimeValue()DateTime value.booleanhasDateValue()Date value.booleanhasFloatValue()Float value.inthashCode()booleanhasIntegerValue()Integer value.booleanhasMoneyValue()Money value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Document.Entity.NormalizedValue.BuildernewBuilder()static Document.Entity.NormalizedValue.BuildernewBuilder(Document.Entity.NormalizedValue prototype)Document.Entity.NormalizedValue.BuildernewBuilderForType()protected Document.Entity.NormalizedValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Document.Entity.NormalizedValueparseDelimitedFrom(InputStream input)static Document.Entity.NormalizedValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Entity.NormalizedValueparseFrom(byte[] data)static Document.Entity.NormalizedValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Entity.NormalizedValueparseFrom(com.google.protobuf.ByteString data)static Document.Entity.NormalizedValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Entity.NormalizedValueparseFrom(com.google.protobuf.CodedInputStream input)static Document.Entity.NormalizedValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Entity.NormalizedValueparseFrom(InputStream input)static Document.Entity.NormalizedValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.Entity.NormalizedValueparseFrom(ByteBuffer data)static Document.Entity.NormalizedValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Document.Entity.NormalizedValue>parser()Document.Entity.NormalizedValue.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getStructuredValueCase
public Document.Entity.NormalizedValue.StructuredValueCase 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
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:
getMoneyValuein 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:
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
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:
getDateValuein 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:
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
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:
getDatetimeValuein 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:
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
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:
getAddressValuein 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:
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.
-
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:
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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Entity.NormalizedValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Entity.NormalizedValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-