Class Document.Entity.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
- com.google.cloud.documentai.v1beta2.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.GeneratedMessageV3.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 typegoogle.cloud.documentai.v1beta2.Document.Entity
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Document.Entity.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
getDefaultInstanceForType
public Document.Entity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document.Entity build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document.Entity buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.Entity.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
setField
public Document.Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
clearField
public Document.Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
clearOneof
public Document.Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
setRepeatedField
public Document.Entity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
addRepeatedField
public Document.Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
mergeFrom
public Document.Entity.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Entity.Builder>
-
mergeFrom
public Document.Entity.Builder mergeFrom(Document.Entity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTextAnchorin interfaceDocument.EntityOrBuilder- Returns:
- Whether the textAnchor field is set.
-
getTextAnchor
public Document.TextAnchor getTextAnchor()
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTextAnchorin interfaceDocument.EntityOrBuilder- Returns:
- The textAnchor.
-
setTextAnchor
public Document.Entity.Builder setTextAnchor(Document.TextAnchor value)
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];
-
setTextAnchor
public Document.Entity.Builder setTextAnchor(Document.TextAnchor.Builder builderForValue)
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];
-
mergeTextAnchor
public Document.Entity.Builder mergeTextAnchor(Document.TextAnchor value)
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];
-
clearTextAnchor
public Document.Entity.Builder clearTextAnchor()
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];
-
getTextAnchorBuilder
public Document.TextAnchor.Builder getTextAnchorBuilder()
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];
-
getTextAnchorOrBuilder
public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
Optional. Provenance of the entity. Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta2.Document.text].
.google.cloud.documentai.v1beta2.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTextAnchorOrBuilderin interfaceDocument.EntityOrBuilder
-
getType
public String getType()
Required. Entity type from a schema e.g. `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 e.g. `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeBytesin interfaceDocument.EntityOrBuilder- Returns:
- The bytes for type.
-
setType
public Document.Entity.Builder setType(String value)
Required. Entity type from a schema e.g. `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Document.Entity.Builder clearType()
Required. Entity type from a schema e.g. `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTypeBytes
public Document.Entity.Builder setTypeBytes(com.google.protobuf.ByteString value)
Required. Entity type from a schema e.g. `Address`.
string type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getMentionText
public String getMentionText()
Optional. Text value of the entity e.g. `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 e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMentionTextBytesin interfaceDocument.EntityOrBuilder- Returns:
- The bytes for mentionText.
-
setMentionText
public Document.Entity.Builder setMentionText(String value)
Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mentionText to set.- Returns:
- This builder for chaining.
-
clearMentionText
public Document.Entity.Builder clearMentionText()
Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setMentionTextBytes
public Document.Entity.Builder setMentionTextBytes(com.google.protobuf.ByteString value)
Optional. Text value of the entity e.g. `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
public String 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
public Document.Entity.Builder setMentionId(String value)
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
public Document.Entity.Builder clearMentionId()
Optional. Deprecated. Use `id` field instead.
string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setMentionIdBytes
public Document.Entity.Builder setMentionIdBytes(com.google.protobuf.ByteString value)
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
public Document.Entity.Builder setConfidence(float value)
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
public Document.Entity.Builder 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.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPageAnchorin interfaceDocument.EntityOrBuilder- Returns:
- Whether the pageAnchor field is set.
-
getPageAnchor
public Document.PageAnchor getPageAnchor()
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageAnchorin interfaceDocument.EntityOrBuilder- Returns:
- The pageAnchor.
-
setPageAnchor
public Document.Entity.Builder setPageAnchor(Document.PageAnchor value)
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
-
setPageAnchor
public Document.Entity.Builder setPageAnchor(Document.PageAnchor.Builder builderForValue)
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
-
mergePageAnchor
public Document.Entity.Builder mergePageAnchor(Document.PageAnchor value)
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
-
clearPageAnchor
public Document.Entity.Builder clearPageAnchor()
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
-
getPageAnchorBuilder
public Document.PageAnchor.Builder getPageAnchorBuilder()
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
-
getPageAnchorOrBuilder
public Document.PageAnchorOrBuilder getPageAnchorOrBuilder()
Optional. Represents the provenance of this entity wrt. the location on the page where it was found.
.google.cloud.documentai.v1beta2.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageAnchorOrBuilderin interfaceDocument.EntityOrBuilder
-
getId
public String 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
public Document.Entity.Builder setId(String value)
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
public Document.Entity.Builder 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
public Document.Entity.Builder setIdBytes(com.google.protobuf.ByteString value)
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 (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasNormalizedValuein interfaceDocument.EntityOrBuilder- Returns:
- Whether the normalizedValue field is set.
-
getNormalizedValue
public Document.Entity.NormalizedValue getNormalizedValue()
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNormalizedValuein interfaceDocument.EntityOrBuilder- Returns:
- The normalizedValue.
-
setNormalizedValue
public Document.Entity.Builder setNormalizedValue(Document.Entity.NormalizedValue value)
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.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 (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];
-
mergeNormalizedValue
public Document.Entity.Builder mergeNormalizedValue(Document.Entity.NormalizedValue value)
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];
-
clearNormalizedValue
public Document.Entity.Builder clearNormalizedValue()
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getNormalizedValueBuilder
public Document.Entity.NormalizedValue.Builder getNormalizedValueBuilder()
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getNormalizedValueOrBuilder
public Document.Entity.NormalizedValueOrBuilder getNormalizedValueOrBuilder()
Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types.
.google.cloud.documentai.v1beta2.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNormalizedValueOrBuilderin interfaceDocument.EntityOrBuilder
-
getPropertiesList
public List<Document.Entity> getPropertiesList()
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.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.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesCountin interfaceDocument.EntityOrBuilder
-
getProperties
public Document.Entity getProperties(int index)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesin interfaceDocument.EntityOrBuilder
-
setProperties
public Document.Entity.Builder setProperties(int index, Document.Entity value)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
setProperties
public Document.Entity.Builder setProperties(int index, Document.Entity.Builder builderForValue)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
addProperties
public Document.Entity.Builder addProperties(Document.Entity value)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
addProperties
public Document.Entity.Builder addProperties(int index, Document.Entity value)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
addProperties
public Document.Entity.Builder addProperties(Document.Entity.Builder builderForValue)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
addProperties
public Document.Entity.Builder addProperties(int index, Document.Entity.Builder builderForValue)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
addAllProperties
public Document.Entity.Builder addAllProperties(Iterable<? extends Document.Entity> values)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
clearProperties
public Document.Entity.Builder clearProperties()
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
removeProperties
public Document.Entity.Builder removeProperties(int index)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
getPropertiesBuilder
public Document.Entity.Builder getPropertiesBuilder(int index)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
getPropertiesOrBuilder
public Document.EntityOrBuilder getPropertiesOrBuilder(int index)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesOrBuilderin interfaceDocument.EntityOrBuilder
-
getPropertiesOrBuilderList
public List<? extends Document.EntityOrBuilder> getPropertiesOrBuilderList()
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesOrBuilderListin interfaceDocument.EntityOrBuilder
-
addPropertiesBuilder
public Document.Entity.Builder addPropertiesBuilder()
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
addPropertiesBuilder
public Document.Entity.Builder addPropertiesBuilder(int index)
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
getPropertiesBuilderList
public List<Document.Entity.Builder> getPropertiesBuilderList()
Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.
repeated .google.cloud.documentai.v1beta2.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
-
hasProvenance
public boolean hasProvenance()
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasProvenancein interfaceDocument.EntityOrBuilder- Returns:
- Whether the provenance field is set.
-
getProvenance
public Document.Provenance getProvenance()
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProvenancein interfaceDocument.EntityOrBuilder- Returns:
- The provenance.
-
setProvenance
public Document.Entity.Builder setProvenance(Document.Provenance value)
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
setProvenance
public Document.Entity.Builder setProvenance(Document.Provenance.Builder builderForValue)
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
mergeProvenance
public Document.Entity.Builder mergeProvenance(Document.Provenance value)
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
clearProvenance
public Document.Entity.Builder clearProvenance()
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getProvenanceBuilder
public Document.Provenance.Builder getProvenanceBuilder()
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getProvenanceOrBuilder
public Document.ProvenanceOrBuilder getProvenanceOrBuilder()
Optional. The history of this annotation.
.google.cloud.documentai.v1beta2.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
public Document.Entity.Builder setRedacted(boolean value)
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
public Document.Entity.Builder 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.
-
setUnknownFields
public final Document.Entity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
mergeUnknownFields
public final Document.Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
-