Class DocumentSchema.EntityType.Property.Builder (2.24.0)

public static final class DocumentSchema.EntityType.Property.Builder extends GeneratedMessageV3.Builder<DocumentSchema.EntityType.Property.Builder> implements DocumentSchema.EntityType.PropertyOrBuilder

Defines properties that can be part of the entity type.

Protobuf type google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DocumentSchema.EntityType.Property.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

build()

public DocumentSchema.EntityType.Property build()
Returns
TypeDescription
DocumentSchema.EntityType.Property

buildPartial()

public DocumentSchema.EntityType.Property buildPartial()
Returns
TypeDescription
DocumentSchema.EntityType.Property

clear()

public DocumentSchema.EntityType.Property.Builder clear()
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DocumentSchema.EntityType.Property.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

clearName()

public DocumentSchema.EntityType.Property.Builder clearName()

The name of the property. Follows the same guidelines as the EntityType name.

string name = 1;

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

clearOccurrenceType()

public DocumentSchema.EntityType.Property.Builder clearOccurrenceType()

Occurrence type limits the number of instances an entity type appears in the document.

.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentSchema.EntityType.Property.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

clearPropertyMetadata()

public DocumentSchema.EntityType.Property.Builder clearPropertyMetadata()

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

clearValueType()

public DocumentSchema.EntityType.Property.Builder clearValueType()

A reference to the value type of the property. This type is subject to the same conventions as the Entity.base_types field.

string value_type = 2;

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

clone()

public DocumentSchema.EntityType.Property.Builder clone()
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

getDefaultInstanceForType()

public DocumentSchema.EntityType.Property getDefaultInstanceForType()
Returns
TypeDescription
DocumentSchema.EntityType.Property

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the property. Follows the same guidelines as the EntityType name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the property. Follows the same guidelines as the EntityType name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOccurrenceType()

public DocumentSchema.EntityType.Property.OccurrenceType getOccurrenceType()

Occurrence type limits the number of instances an entity type appears in the document.

.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;

Returns
TypeDescription
DocumentSchema.EntityType.Property.OccurrenceType

The occurrenceType.

getOccurrenceTypeValue()

public int getOccurrenceTypeValue()

Occurrence type limits the number of instances an entity type appears in the document.

.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for occurrenceType.

getPropertyMetadata()

public PropertyMetadata getPropertyMetadata()

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Returns
TypeDescription
PropertyMetadata

The propertyMetadata.

getPropertyMetadataBuilder()

public PropertyMetadata.Builder getPropertyMetadataBuilder()

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Returns
TypeDescription
PropertyMetadata.Builder

getPropertyMetadataOrBuilder()

public PropertyMetadataOrBuilder getPropertyMetadataOrBuilder()

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Returns
TypeDescription
PropertyMetadataOrBuilder

getValueType()

public String getValueType()

A reference to the value type of the property. This type is subject to the same conventions as the Entity.base_types field.

string value_type = 2;

Returns
TypeDescription
String

The valueType.

getValueTypeBytes()

public ByteString getValueTypeBytes()

A reference to the value type of the property. This type is subject to the same conventions as the Entity.base_types field.

string value_type = 2;

Returns
TypeDescription
ByteString

The bytes for valueType.

hasPropertyMetadata()

public boolean hasPropertyMetadata()

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Returns
TypeDescription
boolean

Whether the propertyMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentSchema.EntityType.Property other)

public DocumentSchema.EntityType.Property.Builder mergeFrom(DocumentSchema.EntityType.Property other)
Parameter
NameDescription
otherDocumentSchema.EntityType.Property
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DocumentSchema.EntityType.Property.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DocumentSchema.EntityType.Property.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

mergePropertyMetadata(PropertyMetadata value)

public DocumentSchema.EntityType.Property.Builder mergePropertyMetadata(PropertyMetadata value)

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Parameter
NameDescription
valuePropertyMetadata
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentSchema.EntityType.Property.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentSchema.EntityType.Property.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

setName(String value)

public DocumentSchema.EntityType.Property.Builder setName(String value)

The name of the property. Follows the same guidelines as the EntityType name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DocumentSchema.EntityType.Property.Builder setNameBytes(ByteString value)

The name of the property. Follows the same guidelines as the EntityType name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

setOccurrenceType(DocumentSchema.EntityType.Property.OccurrenceType value)

public DocumentSchema.EntityType.Property.Builder setOccurrenceType(DocumentSchema.EntityType.Property.OccurrenceType value)

Occurrence type limits the number of instances an entity type appears in the document.

.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;

Parameter
NameDescription
valueDocumentSchema.EntityType.Property.OccurrenceType

The occurrenceType to set.

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

setOccurrenceTypeValue(int value)

public DocumentSchema.EntityType.Property.Builder setOccurrenceTypeValue(int value)

Occurrence type limits the number of instances an entity type appears in the document.

.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for occurrenceType to set.

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

setPropertyMetadata(PropertyMetadata value)

public DocumentSchema.EntityType.Property.Builder setPropertyMetadata(PropertyMetadata value)

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Parameter
NameDescription
valuePropertyMetadata
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

setPropertyMetadata(PropertyMetadata.Builder builderForValue)

public DocumentSchema.EntityType.Property.Builder setPropertyMetadata(PropertyMetadata.Builder builderForValue)

Any additional metadata about the property can be added here.

.google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5;

Parameter
NameDescription
builderForValuePropertyMetadata.Builder
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

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

public DocumentSchema.EntityType.Property.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentSchema.EntityType.Property.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder
Overrides

setValueType(String value)

public DocumentSchema.EntityType.Property.Builder setValueType(String value)

A reference to the value type of the property. This type is subject to the same conventions as the Entity.base_types field.

string value_type = 2;

Parameter
NameDescription
valueString

The valueType to set.

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.

setValueTypeBytes(ByteString value)

public DocumentSchema.EntityType.Property.Builder setValueTypeBytes(ByteString value)

A reference to the value type of the property. This type is subject to the same conventions as the Entity.base_types field.

string value_type = 2;

Parameter
NameDescription
valueByteString

The bytes for valueType to set.

Returns
TypeDescription
DocumentSchema.EntityType.Property.Builder

This builder for chaining.