Package com.google.cloud.documentai.v1
Class Document.Entity.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.Entity.Builder>
com.google.cloud.documentai.v1.Document.Entity.Builder
- All Implemented Interfaces:
Document.EntityOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.Entity
public static final class Document.Entity.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.Entity.Builder>
implements Document.EntityOrBuilder
An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.Protobuf type
google.cloud.documentai.v1.Document.Entity-
Method Summary
Modifier and TypeMethodDescriptionaddAllProperties(Iterable<? extends Document.Entity> values) Optional.addProperties(int index, Document.Entity value) Optional.addProperties(int index, Document.Entity.Builder builderForValue) Optional.addProperties(Document.Entity value) Optional.addProperties(Document.Entity.Builder builderForValue) Optional.Optional.addPropertiesBuilder(int index) Optional.build()clear()Optional.clearId()Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Required.floatOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.Optional.Optional.Optional.Optional.Optional.Optional.getProperties(int index) Optional.getPropertiesBuilder(int index) Optional.Optional.intOptional.Optional.getPropertiesOrBuilder(int index) Optional.List<? extends Document.EntityOrBuilder>Optional.Optional.Optional.Optional.booleanOptional.Optional.Optional.Optional.getType()Required.com.google.protobuf.ByteStringRequired.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Document.Entity other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.Optional.Optional.removeProperties(int index) Optional.setConfidence(float value) Optional.Optional.setIdBytes(com.google.protobuf.ByteString value) Optional.setMentionId(String value) Optional.setMentionIdBytes(com.google.protobuf.ByteString value) Optional.setMentionText(String value) Optional.setMentionTextBytes(com.google.protobuf.ByteString value) Optional.setMethod(Document.Entity.Method value) Optional.setMethodValue(int value) Optional.Optional.setNormalizedValue(Document.Entity.NormalizedValue.Builder builderForValue) Optional.setPageAnchor(Document.PageAnchor value) Optional.setPageAnchor(Document.PageAnchor.Builder builderForValue) Optional.setProperties(int index, Document.Entity value) Optional.setProperties(int index, Document.Entity.Builder builderForValue) Optional.setProvenance(Document.Provenance value) Optional.setProvenance(Document.Provenance.Builder builderForValue) Optional.setRedacted(boolean value) Optional.setTextAnchor(Document.TextAnchor value) Optional.setTextAnchor(Document.TextAnchor.Builder builderForValue) Optional.Required.setTypeBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Document.Entity.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Document.Entity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Document.Entity.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Entity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.Entity.Builder>
-
mergeFrom
public Document.Entity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Entity.Builder>- Throws:
IOException
-
hasTextAnchor
public boolean hasTextAnchor()Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTextAnchorin interfaceDocument.EntityOrBuilder- Returns:
- Whether the textAnchor field is set.
-
getTextAnchor
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTextAnchorin interfaceDocument.EntityOrBuilder- Returns:
- The textAnchor.
-
setTextAnchor
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; -
setTextAnchor
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTextAnchor
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; -
clearTextAnchor
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getTextAnchorBuilder
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getTextAnchorOrBuilder
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTextAnchorOrBuilderin interfaceDocument.EntityOrBuilder
-
getType
Required. Entity type from a schema, for example, `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypein interfaceDocument.EntityOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Required. Entity type from a schema, for example, `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeBytesin interfaceDocument.EntityOrBuilder- Returns:
- The bytes for type.
-
setType
Required. Entity type from a schema, for example, `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Required. Entity type from a schema, for example, `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTypeBytes
Required. Entity type from a schema, for example, `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getMentionText
Optional. Text value of the entity, for example, `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMentionTextin interfaceDocument.EntityOrBuilder- Returns:
- The mentionText.
-
getMentionTextBytes
public com.google.protobuf.ByteString getMentionTextBytes()Optional. Text value of the entity, for example, `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMentionTextBytesin interfaceDocument.EntityOrBuilder- Returns:
- The bytes for mentionText.
-
setMentionText
Optional. Text value of the entity, for example, `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mentionText to set.- Returns:
- This builder for chaining.
-
clearMentionText
Optional. Text value of the entity, for example, `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setMentionTextBytes
Optional. Text value of the entity, for example, `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for mentionText to set.- Returns:
- This builder for chaining.
-
getMentionId
Optional. Deprecated. Use `id` field instead.
string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMentionIdin interfaceDocument.EntityOrBuilder- Returns:
- The mentionId.
-
getMentionIdBytes
public com.google.protobuf.ByteString getMentionIdBytes()Optional. Deprecated. Use `id` field instead.
string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMentionIdBytesin interfaceDocument.EntityOrBuilder- Returns:
- The bytes for mentionId.
-
setMentionId
Optional. Deprecated. Use `id` field instead.
string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mentionId to set.- Returns:
- This builder for chaining.
-
clearMentionId
Optional. Deprecated. Use `id` field instead.
string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setMentionIdBytes
Optional. Deprecated. Use `id` field instead.
string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for mentionId to set.- Returns:
- This builder for chaining.
-
getConfidence
public float getConfidence()Optional. Confidence of detected Schema entity. Range `[0, 1]`.
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getConfidencein interfaceDocument.EntityOrBuilder- Returns:
- The confidence.
-
setConfidence
Optional. Confidence of detected Schema entity. Range `[0, 1]`.
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
Optional. Confidence of detected Schema entity. Range `[0, 1]`.
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasPageAnchor
public boolean hasPageAnchor()Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPageAnchorin interfaceDocument.EntityOrBuilder- Returns:
- Whether the pageAnchor field is set.
-
getPageAnchor
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageAnchorin interfaceDocument.EntityOrBuilder- Returns:
- The pageAnchor.
-
setPageAnchor
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setPageAnchor
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergePageAnchor
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearPageAnchor
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getPageAnchorBuilder
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getPageAnchorOrBuilder
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageAnchorOrBuilderin interfaceDocument.EntityOrBuilder
-
getId
Optional. Canonical id. This will be a unique value in the entity list for this document.
string id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdin interfaceDocument.EntityOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Optional. Canonical id. This will be a unique value in the entity list for this document.
string id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIdBytesin interfaceDocument.EntityOrBuilder- Returns:
- The bytes for id.
-
setId
Optional. Canonical id. This will be a unique value in the entity list for this document.
string id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Optional. Canonical id. This will be a unique value in the entity list for this document.
string id = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setIdBytes
Optional. Canonical id. This will be a unique value in the entity list for this document.
string id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasNormalizedValue
public boolean hasNormalizedValue()Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasNormalizedValuein interfaceDocument.EntityOrBuilder- Returns:
- Whether the normalizedValue field is set.
-
getNormalizedValue
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNormalizedValuein interfaceDocument.EntityOrBuilder- Returns:
- The normalizedValue.
-
setNormalizedValue
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; -
setNormalizedValue
public Document.Entity.Builder setNormalizedValue(Document.Entity.NormalizedValue.Builder builderForValue) Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; -
mergeNormalizedValue
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; -
clearNormalizedValue
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getNormalizedValueBuilder
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getNormalizedValueOrBuilder
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (for example, address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNormalizedValueOrBuilderin interfaceDocument.EntityOrBuilder
-
getPropertiesList
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesListin interfaceDocument.EntityOrBuilder
-
getPropertiesCount
public int getPropertiesCount()Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesCountin interfaceDocument.EntityOrBuilder
-
getProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesin interfaceDocument.EntityOrBuilder
-
setProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
setProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addAllProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
clearProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
removeProperties
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getPropertiesBuilder
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getPropertiesOrBuilder
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesOrBuilderin interfaceDocument.EntityOrBuilder
-
getPropertiesOrBuilderList
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesOrBuilderListin interfaceDocument.EntityOrBuilder
-
addPropertiesBuilder
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addPropertiesBuilder
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getPropertiesBuilderList
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; -
hasProvenance
public boolean hasProvenance()Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasProvenancein interfaceDocument.EntityOrBuilder- Returns:
- Whether the provenance field is set.
-
getProvenance
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProvenancein interfaceDocument.EntityOrBuilder- Returns:
- The provenance.
-
setProvenance
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setProvenance
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeProvenance
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearProvenance
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getProvenanceBuilder
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getProvenanceOrBuilder
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProvenanceOrBuilderin interfaceDocument.EntityOrBuilder
-
getRedacted
public boolean getRedacted()Optional. Whether the entity will be redacted for de-identification purposes.
bool redacted = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRedactedin interfaceDocument.EntityOrBuilder- Returns:
- The redacted.
-
setRedacted
Optional. Whether the entity will be redacted for de-identification purposes.
bool redacted = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The redacted to set.- Returns:
- This builder for chaining.
-
clearRedacted
Optional. Whether the entity will be redacted for de-identification purposes.
bool redacted = 12 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getMethodValue
public int getMethodValue()Optional. Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.Document.Entity.Method method = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMethodValuein interfaceDocument.EntityOrBuilder- Returns:
- The enum numeric value on the wire for method.
-
setMethodValue
Optional. Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.Document.Entity.Method method = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for method to set.- Returns:
- This builder for chaining.
-
getMethod
Optional. Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.Document.Entity.Method method = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMethodin interfaceDocument.EntityOrBuilder- Returns:
- The method.
-
setMethod
Optional. Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.Document.Entity.Method method = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
Optional. Specifies how the entity's value is obtained.
.google.cloud.documentai.v1.Document.Entity.Method method = 15 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-