Class Document.Entity.NormalizedValue.Builder (2.48.0)

public static final class Document.Entity.NormalizedValue.Builder extends GeneratedMessageV3.Builder<Document.Entity.NormalizedValue.Builder> implements Document.Entity.NormalizedValueOrBuilder

Parsed and normalized entity value.

Protobuf type google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Entity.NormalizedValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

build()

public Document.Entity.NormalizedValue build()
Returns
Type Description
Document.Entity.NormalizedValue

buildPartial()

public Document.Entity.NormalizedValue buildPartial()
Returns
Type Description
Document.Entity.NormalizedValue

clear()

public Document.Entity.NormalizedValue.Builder clear()
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

clearAddressValue()

public Document.Entity.NormalizedValue.Builder clearAddressValue()

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

Returns
Type Description
Document.Entity.NormalizedValue.Builder

clearBooleanValue()

public Document.Entity.NormalizedValue.Builder clearBooleanValue()

Boolean value. Can be used for entities with binary values, or for checkboxes.

bool boolean_value = 6;

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

clearDateValue()

public Document.Entity.NormalizedValue.Builder clearDateValue()

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;

Returns
Type Description
Document.Entity.NormalizedValue.Builder

clearDatetimeValue()

public Document.Entity.NormalizedValue.Builder clearDatetimeValue()

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;

Returns
Type Description
Document.Entity.NormalizedValue.Builder

clearField(Descriptors.FieldDescriptor field)

public Document.Entity.NormalizedValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

clearFloatValue()

public Document.Entity.NormalizedValue.Builder clearFloatValue()

Float value.

float float_value = 8;

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

clearIntegerValue()

public Document.Entity.NormalizedValue.Builder clearIntegerValue()

Integer value.

int32 integer_value = 7;

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

clearMoneyValue()

public Document.Entity.NormalizedValue.Builder clearMoneyValue()

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Returns
Type Description
Document.Entity.NormalizedValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Entity.NormalizedValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

clearStructuredValue()

public Document.Entity.NormalizedValue.Builder clearStructuredValue()
Returns
Type Description
Document.Entity.NormalizedValue.Builder

clearText()

public Document.Entity.NormalizedValue.Builder clearText()

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
Document.Entity.NormalizedValue.Builder

This builder for chaining.

clone()

public Document.Entity.NormalizedValue.Builder clone()
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

getAddressValue()

public PostalAddress getAddressValue()

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

Returns
Type Description
com.google.type.PostalAddress

The addressValue.

getAddressValueBuilder()

public PostalAddress.Builder getAddressValueBuilder()

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

Returns
Type Description
com.google.type.PostalAddress.Builder

getAddressValueOrBuilder()

public PostalAddressOrBuilder getAddressValueOrBuilder()

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

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()

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;

Returns
Type Description
com.google.type.Date

The dateValue.

getDateValueBuilder()

public Date.Builder getDateValueBuilder()

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;

Returns
Type Description
com.google.type.Date.Builder

getDateValueOrBuilder()

public 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;

Returns
Type Description
com.google.type.DateOrBuilder

getDatetimeValue()

public 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;

Returns
Type Description
com.google.type.DateTime

The datetimeValue.

getDatetimeValueBuilder()

public DateTime.Builder getDatetimeValueBuilder()

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;

Returns
Type Description
com.google.type.DateTime.Builder

getDatetimeValueOrBuilder()

public 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;

Returns
Type Description
com.google.type.DateTimeOrBuilder

getDefaultInstanceForType()

public Document.Entity.NormalizedValue getDefaultInstanceForType()
Returns
Type Description
Document.Entity.NormalizedValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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()

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Returns
Type Description
com.google.type.Money

The moneyValue.

getMoneyValueBuilder()

public Money.Builder getMoneyValueBuilder()

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Returns
Type Description
com.google.type.Money.Builder

getMoneyValueOrBuilder()

public MoneyOrBuilder getMoneyValueOrBuilder()

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Returns
Type Description
com.google.type.MoneyOrBuilder

getStructuredValueCase()

public Document.Entity.NormalizedValue.StructuredValueCase getStructuredValueCase()
Returns
Type Description
Document.Entity.NormalizedValue.StructuredValueCase

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];

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()

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

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()

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;

Returns
Type Description
boolean

Whether the dateValue field is set.

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;

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()

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Returns
Type Description
boolean

Whether the moneyValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAddressValue(PostalAddress value)

public Document.Entity.NormalizedValue.Builder mergeAddressValue(PostalAddress value)

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

Parameter
Name Description
value com.google.type.PostalAddress
Returns
Type Description
Document.Entity.NormalizedValue.Builder

mergeDateValue(Date value)

public Document.Entity.NormalizedValue.Builder mergeDateValue(Date value)

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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
Document.Entity.NormalizedValue.Builder

mergeDatetimeValue(DateTime value)

public Document.Entity.NormalizedValue.Builder mergeDatetimeValue(DateTime value)

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;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
Document.Entity.NormalizedValue.Builder

mergeFrom(Document.Entity.NormalizedValue other)

public Document.Entity.NormalizedValue.Builder mergeFrom(Document.Entity.NormalizedValue other)
Parameter
Name Description
other Document.Entity.NormalizedValue
Returns
Type Description
Document.Entity.NormalizedValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.Entity.NormalizedValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Document.Entity.NormalizedValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

mergeMoneyValue(Money value)

public Document.Entity.NormalizedValue.Builder mergeMoneyValue(Money value)

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
Document.Entity.NormalizedValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Entity.NormalizedValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

setAddressValue(PostalAddress value)

public Document.Entity.NormalizedValue.Builder setAddressValue(PostalAddress value)

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

Parameter
Name Description
value com.google.type.PostalAddress
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setAddressValue(PostalAddress.Builder builderForValue)

public Document.Entity.NormalizedValue.Builder setAddressValue(PostalAddress.Builder builderForValue)

Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto

.google.type.PostalAddress address_value = 5;

Parameter
Name Description
builderForValue com.google.type.PostalAddress.Builder
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setBooleanValue(boolean value)

public Document.Entity.NormalizedValue.Builder setBooleanValue(boolean value)

Boolean value. Can be used for entities with binary values, or for checkboxes.

bool boolean_value = 6;

Parameter
Name Description
value boolean

The booleanValue to set.

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

setDateValue(Date value)

public Document.Entity.NormalizedValue.Builder setDateValue(Date value)

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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setDateValue(Date.Builder builderForValue)

public Document.Entity.NormalizedValue.Builder setDateValue(Date.Builder builderForValue)

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;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setDatetimeValue(DateTime value)

public Document.Entity.NormalizedValue.Builder setDatetimeValue(DateTime value)

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;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setDatetimeValue(DateTime.Builder builderForValue)

public Document.Entity.NormalizedValue.Builder setDatetimeValue(DateTime.Builder builderForValue)

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;

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.Entity.NormalizedValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

setFloatValue(float value)

public Document.Entity.NormalizedValue.Builder setFloatValue(float value)

Float value.

float float_value = 8;

Parameter
Name Description
value float

The floatValue to set.

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

setIntegerValue(int value)

public Document.Entity.NormalizedValue.Builder setIntegerValue(int value)

Integer value.

int32 integer_value = 7;

Parameter
Name Description
value int

The integerValue to set.

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

setMoneyValue(Money value)

public Document.Entity.NormalizedValue.Builder setMoneyValue(Money value)

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setMoneyValue(Money.Builder builderForValue)

public Document.Entity.NormalizedValue.Builder setMoneyValue(Money.Builder builderForValue)

Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto

.google.type.Money money_value = 2;

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
Document.Entity.NormalizedValue.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.Entity.NormalizedValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides

setText(String value)

public Document.Entity.NormalizedValue.Builder setText(String value)

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];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

setTextBytes(ByteString value)

public Document.Entity.NormalizedValue.Builder setTextBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Document.Entity.NormalizedValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.Entity.NormalizedValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.Entity.NormalizedValue.Builder
Overrides