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.GeneratedMessageV3.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.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.v1.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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
clear
public Document.Entity.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
getDefaultInstanceForType
public Document.Entity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document.Entity build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document.Entity buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.Entity.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
setField
public Document.Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
clearField
public Document.Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
clearOneof
public Document.Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
addRepeatedField
public Document.Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
mergeFrom
public Document.Entity.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Document.Entity.Builder>
-
mergeFrom
public Document.Entity.Builder mergeFrom(Document.Entity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasTextAnchor
in 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.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTextAnchor
in 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.v1.Document.text].
.google.cloud.documentai.v1.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.v1.Document.text].
.google.cloud.documentai.v1.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.v1.Document.text].
.google.cloud.documentai.v1.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.v1.Document.text].
.google.cloud.documentai.v1.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.v1.Document.text].
.google.cloud.documentai.v1.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.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTextAnchorOrBuilder
in 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:
getType
in 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:
getTypeBytes
in 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:
getMentionText
in 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:
getMentionTextBytes
in 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:
getMentionId
in 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:
getMentionIdBytes
in 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:
getConfidence
in 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.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasPageAnchor
in 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.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPageAnchor
in 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPageAnchorOrBuilder
in 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:
getId
in 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:
getIdBytes
in 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.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasNormalizedValue
in 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.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNormalizedValue
in 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.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 (e.g. 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
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.v1.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.v1.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.v1.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.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNormalizedValueOrBuilder
in 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.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPropertiesList
in 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:
getPropertiesCount
in 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.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getProperties
in 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPropertiesOrBuilder
in 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.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPropertiesOrBuilderList
in 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.v1.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.v1.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.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:
hasProvenance
in interfaceDocument.EntityOrBuilder
- Returns:
- Whether the provenance field is set.
-
getProvenance
public Document.Provenance getProvenance()
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getProvenance
in interfaceDocument.EntityOrBuilder
- Returns:
- The provenance.
-
setProvenance
public Document.Entity.Builder setProvenance(Document.Provenance value)
Optional. The history of this annotation.
.google.cloud.documentai.v1.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.v1.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.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
clearProvenance
public Document.Entity.Builder clearProvenance()
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getProvenanceBuilder
public Document.Provenance.Builder getProvenanceBuilder()
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getProvenanceOrBuilder
public Document.ProvenanceOrBuilder getProvenanceOrBuilder()
Optional. The history of this annotation.
.google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getProvenanceOrBuilder
in 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:
getRedacted
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
mergeUnknownFields
public final Document.Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>
-
-