public static final class Document.Entity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder> implements Document.EntityOrBuilder
A phrase in the text that is a known entity type, such as a person, an organization, or location.Protobuf type
google.cloud.documentai.v1beta2.Document.EntitygetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.Entity build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.Entity buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.Entity.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Entity.Builder>public Document.Entity.Builder mergeFrom(Document.Entity other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public Document.Entity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Entity.Builder>IOExceptionpublic boolean hasTextAnchor()
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;hasTextAnchor in interface Document.EntityOrBuilderpublic Document.TextAnchor getTextAnchor()
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;getTextAnchor in interface Document.EntityOrBuilderpublic Document.Entity.Builder setTextAnchor(Document.TextAnchor value)
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;public Document.Entity.Builder setTextAnchor(Document.TextAnchor.Builder builderForValue)
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;public Document.Entity.Builder mergeTextAnchor(Document.TextAnchor value)
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;public Document.Entity.Builder clearTextAnchor()
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;public Document.TextAnchor.Builder getTextAnchorBuilder()
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;public Document.TextAnchorOrBuilder getTextAnchorOrBuilder()
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;getTextAnchorOrBuilder in interface Document.EntityOrBuilderpublic String getType()
Entity type from a schema e.g. `Address`.
string type = 2;getType in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Entity type from a schema e.g. `Address`.
string type = 2;getTypeBytes in interface Document.EntityOrBuilderpublic Document.Entity.Builder setType(String value)
Entity type from a schema e.g. `Address`.
string type = 2;value - The type to set.public Document.Entity.Builder clearType()
Entity type from a schema e.g. `Address`.
string type = 2;public Document.Entity.Builder setTypeBytes(com.google.protobuf.ByteString value)
Entity type from a schema e.g. `Address`.
string type = 2;value - The bytes for type to set.public String getMentionText()
Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;getMentionText in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getMentionTextBytes()
Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;getMentionTextBytes in interface Document.EntityOrBuilderpublic Document.Entity.Builder setMentionText(String value)
Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;value - The mentionText to set.public Document.Entity.Builder clearMentionText()
Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;public Document.Entity.Builder setMentionTextBytes(com.google.protobuf.ByteString value)
Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;value - The bytes for mentionText to set.public String getMentionId()
Deprecated. Use `id` field instead.
string mention_id = 4;getMentionId in interface Document.EntityOrBuilderpublic com.google.protobuf.ByteString getMentionIdBytes()
Deprecated. Use `id` field instead.
string mention_id = 4;getMentionIdBytes in interface Document.EntityOrBuilderpublic Document.Entity.Builder setMentionId(String value)
Deprecated. Use `id` field instead.
string mention_id = 4;value - The mentionId to set.public Document.Entity.Builder clearMentionId()
Deprecated. Use `id` field instead.
string mention_id = 4;public Document.Entity.Builder setMentionIdBytes(com.google.protobuf.ByteString value)
Deprecated. Use `id` field instead.
string mention_id = 4;value - The bytes for mentionId to set.public float getConfidence()
Optional. Confidence of detected Schema entity. Range [0, 1].
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];getConfidence in interface Document.EntityOrBuilderpublic Document.Entity.Builder setConfidence(float value)
Optional. Confidence of detected Schema entity. Range [0, 1].
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];value - The confidence to set.public Document.Entity.Builder clearConfidence()
Optional. Confidence of detected Schema entity. Range [0, 1].
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];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];
hasPageAnchor in interface Document.EntityOrBuilderpublic 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];
getPageAnchor in interface Document.EntityOrBuilderpublic 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];
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];
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];
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];
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];
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];
getPageAnchorOrBuilder in interface Document.EntityOrBuilderpublic 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];getId in interface Document.EntityOrBuilderpublic 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];getIdBytes in interface Document.EntityOrBuilderpublic 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];value - The id to set.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];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];value - The bytes for id to set.public boolean hasBoundingPolyForDemoFrontend()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
hasBoundingPolyForDemoFrontend in interface Document.EntityOrBuilderpublic BoundingPoly getBoundingPolyForDemoFrontend()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPolyForDemoFrontend in interface Document.EntityOrBuilderpublic Document.Entity.Builder setBoundingPolyForDemoFrontend(BoundingPoly value)
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
public Document.Entity.Builder setBoundingPolyForDemoFrontend(BoundingPoly.Builder builderForValue)
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
public Document.Entity.Builder mergeBoundingPolyForDemoFrontend(BoundingPoly value)
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
public Document.Entity.Builder clearBoundingPolyForDemoFrontend()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
public BoundingPoly.Builder getBoundingPolyForDemoFrontendBuilder()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
public BoundingPolyOrBuilder getBoundingPolyForDemoFrontendOrBuilder()
Optional. Temporary field to store the bounding poly for short-term POCs. Used by the frontend only. Do not use before you talk to ybo@ and lukasr@.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly_for_demo_frontend = 8 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPolyForDemoFrontendOrBuilder in interface Document.EntityOrBuilderpublic final Document.Entity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>public final Document.Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Entity.Builder>Copyright © 2020 Google LLC. All rights reserved.