Class PropertyMetadata.Builder (2.35.0)

public static final class PropertyMetadata.Builder extends GeneratedMessageV3.Builder<PropertyMetadata.Builder> implements PropertyMetadataOrBuilder

Metadata about a property.

Protobuf type google.cloud.documentai.v1beta3.PropertyMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PropertyMetadata build()
Returns
TypeDescription
PropertyMetadata

buildPartial()

public PropertyMetadata buildPartial()
Returns
TypeDescription
PropertyMetadata

clear()

public PropertyMetadata.Builder clear()
Returns
TypeDescription
PropertyMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PropertyMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PropertyMetadata.Builder
Overrides

clearFieldExtractionMetadata()

public PropertyMetadata.Builder clearFieldExtractionMetadata()

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Returns
TypeDescription
PropertyMetadata.Builder

clearInactive()

public PropertyMetadata.Builder clearInactive()

Whether the property should be considered as "inactive".

bool inactive = 3;

Returns
TypeDescription
PropertyMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PropertyMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PropertyMetadata.Builder
Overrides

clone()

public PropertyMetadata.Builder clone()
Returns
TypeDescription
PropertyMetadata.Builder
Overrides

getDefaultInstanceForType()

public PropertyMetadata getDefaultInstanceForType()
Returns
TypeDescription
PropertyMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFieldExtractionMetadata()

public FieldExtractionMetadata getFieldExtractionMetadata()

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Returns
TypeDescription
FieldExtractionMetadata

The fieldExtractionMetadata.

getFieldExtractionMetadataBuilder()

public FieldExtractionMetadata.Builder getFieldExtractionMetadataBuilder()

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Returns
TypeDescription
FieldExtractionMetadata.Builder

getFieldExtractionMetadataOrBuilder()

public FieldExtractionMetadataOrBuilder getFieldExtractionMetadataOrBuilder()

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Returns
TypeDescription
FieldExtractionMetadataOrBuilder

getInactive()

public boolean getInactive()

Whether the property should be considered as "inactive".

bool inactive = 3;

Returns
TypeDescription
boolean

The inactive.

hasFieldExtractionMetadata()

public boolean hasFieldExtractionMetadata()

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Returns
TypeDescription
boolean

Whether the fieldExtractionMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFieldExtractionMetadata(FieldExtractionMetadata value)

public PropertyMetadata.Builder mergeFieldExtractionMetadata(FieldExtractionMetadata value)

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Parameter
NameDescription
valueFieldExtractionMetadata
Returns
TypeDescription
PropertyMetadata.Builder

mergeFrom(PropertyMetadata other)

public PropertyMetadata.Builder mergeFrom(PropertyMetadata other)
Parameter
NameDescription
otherPropertyMetadata
Returns
TypeDescription
PropertyMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PropertyMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PropertyMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PropertyMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PropertyMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFieldExtractionMetadata(FieldExtractionMetadata value)

public PropertyMetadata.Builder setFieldExtractionMetadata(FieldExtractionMetadata value)

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Parameter
NameDescription
valueFieldExtractionMetadata
Returns
TypeDescription
PropertyMetadata.Builder

setFieldExtractionMetadata(FieldExtractionMetadata.Builder builderForValue)

public PropertyMetadata.Builder setFieldExtractionMetadata(FieldExtractionMetadata.Builder builderForValue)

Field extraction metadata on the property.

.google.cloud.documentai.v1beta3.FieldExtractionMetadata field_extraction_metadata = 9;

Parameter
NameDescription
builderForValueFieldExtractionMetadata.Builder
Returns
TypeDescription
PropertyMetadata.Builder

setInactive(boolean value)

public PropertyMetadata.Builder setInactive(boolean value)

Whether the property should be considered as "inactive".

bool inactive = 3;

Parameter
NameDescription
valueboolean

The inactive to set.

Returns
TypeDescription
PropertyMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final PropertyMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PropertyMetadata.Builder
Overrides