Class Document
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta1.Document
-
- All Implemented Interfaces:
DocumentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Document extends com.google.protobuf.GeneratedMessageV3 implements DocumentOrBuilder
Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality.
Protobuf typegoogle.cloud.documentai.v1beta1.Document- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.BuilderDocument represents the canonical document resource in Document Understanding AI.static classDocument.EntityA phrase in the text that is a known entity type, such as a person, an organization, or location.static interfaceDocument.EntityOrBuilderstatic classDocument.EntityRelationRelationship between [Entities][google.cloud.documentai.v1beta1.Document.Entity].static interfaceDocument.EntityRelationOrBuilderstatic classDocument.PageA page in a [Document][google.cloud.documentai.v1beta1.Document].static interfaceDocument.PageOrBuilderstatic classDocument.ShardInfoFor a large document, sharding may be performed to produce several document shards.static interfaceDocument.ShardInfoOrBuilderstatic classDocument.SourceCasestatic classDocument.StyleAnnotation for common text style attributes.static interfaceDocument.StyleOrBuilderstatic classDocument.TextAnchorText reference indexing into the [Document.text][google.cloud.documentai.v1beta1.Document.text].static interfaceDocument.TextAnchorOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTENT_FIELD_NUMBERstatic intENTITIES_FIELD_NUMBERstatic intENTITY_RELATIONS_FIELD_NUMBERstatic intERROR_FIELD_NUMBERstatic intMIME_TYPE_FIELD_NUMBERstatic intPAGES_FIELD_NUMBERstatic intSHARD_INFO_FIELD_NUMBERstatic intTEXT_FIELD_NUMBERstatic intTEXT_STYLES_FIELD_NUMBERstatic intURI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.ByteStringgetContent()Inline document content, represented as a stream of bytes.static DocumentgetDefaultInstance()DocumentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Document.EntitygetEntities(int index)A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text].intgetEntitiesCount()A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text].List<Document.Entity>getEntitiesList()A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text].Document.EntityOrBuildergetEntitiesOrBuilder(int index)A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text].List<? extends Document.EntityOrBuilder>getEntitiesOrBuilderList()A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text].Document.EntityRelationgetEntityRelations(int index)Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].intgetEntityRelationsCount()Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].List<Document.EntityRelation>getEntityRelationsList()Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].Document.EntityRelationOrBuildergetEntityRelationsOrBuilder(int index)Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].List<? extends Document.EntityRelationOrBuilder>getEntityRelationsOrBuilderList()Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].com.google.rpc.StatusgetError()Any error that occurred while processing this document.com.google.rpc.StatusOrBuildergetErrorOrBuilder()Any error that occurred while processing this document.StringgetMimeType()An IANA published MIME type (also referred to as media type).com.google.protobuf.ByteStringgetMimeTypeBytes()An IANA published MIME type (also referred to as media type).Document.PagegetPages(int index)Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].intgetPagesCount()Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].List<Document.Page>getPagesList()Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].Document.PageOrBuildergetPagesOrBuilder(int index)Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].List<? extends Document.PageOrBuilder>getPagesOrBuilderList()Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].com.google.protobuf.Parser<Document>getParserForType()intgetSerializedSize()Document.ShardInfogetShardInfo()Information about the sharding if this document is sharded part of a larger document.Document.ShardInfoOrBuildergetShardInfoOrBuilder()Information about the sharding if this document is sharded part of a larger document.Document.SourceCasegetSourceCase()StringgetText()UTF-8 encoded text in reading order from the document.com.google.protobuf.ByteStringgetTextBytes()UTF-8 encoded text in reading order from the document.Document.StylegetTextStyles(int index)Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].intgetTextStylesCount()Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].List<Document.Style>getTextStylesList()Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].Document.StyleOrBuildergetTextStylesOrBuilder(int index)Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].List<? extends Document.StyleOrBuilder>getTextStylesOrBuilderList()Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].StringgetUri()Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`.com.google.protobuf.ByteStringgetUriBytes()Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`.booleanhasContent()Inline document content, represented as a stream of bytes.booleanhasError()Any error that occurred while processing this document.inthashCode()booleanhasShardInfo()Information about the sharding if this document is sharded part of a larger document.booleanhasUri()Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Document.BuildernewBuilder()static Document.BuildernewBuilder(Document prototype)Document.BuildernewBuilderForType()protected Document.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DocumentparseDelimitedFrom(InputStream input)static DocumentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentparseFrom(byte[] data)static DocumentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentparseFrom(com.google.protobuf.ByteString data)static DocumentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentparseFrom(com.google.protobuf.CodedInputStream input)static DocumentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentparseFrom(InputStream input)static DocumentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentparseFrom(ByteBuffer data)static DocumentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Document>parser()Document.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIME_TYPE_FIELD_NUMBER
public static final int MIME_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_STYLES_FIELD_NUMBER
public static final int TEXT_STYLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGES_FIELD_NUMBER
public static final int PAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENTITIES_FIELD_NUMBER
public static final int ENTITIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENTITY_RELATIONS_FIELD_NUMBER
public static final int ENTITY_RELATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHARD_INFO_FIELD_NUMBER
public static final int SHARD_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getSourceCase
public Document.SourceCase getSourceCase()
- Specified by:
getSourceCasein interfaceDocumentOrBuilder
-
hasUri
public boolean hasUri()
Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. See [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.string uri = 1;- Specified by:
hasUriin interfaceDocumentOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
public String getUri()
Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. See [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.string uri = 1;- Specified by:
getUriin interfaceDocumentOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. See [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.string uri = 1;- Specified by:
getUriBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for uri.
-
hasContent
public boolean hasContent()
Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes content = 2;- Specified by:
hasContentin interfaceDocumentOrBuilder- Returns:
- Whether the content field is set.
-
getContent
public com.google.protobuf.ByteString getContent()
Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes content = 2;- Specified by:
getContentin interfaceDocumentOrBuilder- Returns:
- The content.
-
getMimeType
public String getMimeType()
An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 3;- Specified by:
getMimeTypein interfaceDocumentOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()
An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 3;- Specified by:
getMimeTypeBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for mimeType.
-
getText
public String getText()
UTF-8 encoded text in reading order from the document.
string text = 4;- Specified by:
getTextin interfaceDocumentOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()
UTF-8 encoded text in reading order from the document.
string text = 4;- Specified by:
getTextBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for text.
-
getTextStylesList
public List<Document.Style> getTextStylesList()
Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].
repeated .google.cloud.documentai.v1beta1.Document.Style text_styles = 5;- Specified by:
getTextStylesListin interfaceDocumentOrBuilder
-
getTextStylesOrBuilderList
public List<? extends Document.StyleOrBuilder> getTextStylesOrBuilderList()
Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].
repeated .google.cloud.documentai.v1beta1.Document.Style text_styles = 5;- Specified by:
getTextStylesOrBuilderListin interfaceDocumentOrBuilder
-
getTextStylesCount
public int getTextStylesCount()
Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].
repeated .google.cloud.documentai.v1beta1.Document.Style text_styles = 5;- Specified by:
getTextStylesCountin interfaceDocumentOrBuilder
-
getTextStyles
public Document.Style getTextStyles(int index)
Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].
repeated .google.cloud.documentai.v1beta1.Document.Style text_styles = 5;- Specified by:
getTextStylesin interfaceDocumentOrBuilder
-
getTextStylesOrBuilder
public Document.StyleOrBuilder getTextStylesOrBuilder(int index)
Styles for the [Document.text][google.cloud.documentai.v1beta1.Document.text].
repeated .google.cloud.documentai.v1beta1.Document.Style text_styles = 5;- Specified by:
getTextStylesOrBuilderin interfaceDocumentOrBuilder
-
getPagesList
public List<Document.Page> getPagesList()
Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].
repeated .google.cloud.documentai.v1beta1.Document.Page pages = 6;- Specified by:
getPagesListin interfaceDocumentOrBuilder
-
getPagesOrBuilderList
public List<? extends Document.PageOrBuilder> getPagesOrBuilderList()
Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].
repeated .google.cloud.documentai.v1beta1.Document.Page pages = 6;- Specified by:
getPagesOrBuilderListin interfaceDocumentOrBuilder
-
getPagesCount
public int getPagesCount()
Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].
repeated .google.cloud.documentai.v1beta1.Document.Page pages = 6;- Specified by:
getPagesCountin interfaceDocumentOrBuilder
-
getPages
public Document.Page getPages(int index)
Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].
repeated .google.cloud.documentai.v1beta1.Document.Page pages = 6;- Specified by:
getPagesin interfaceDocumentOrBuilder
-
getPagesOrBuilder
public Document.PageOrBuilder getPagesOrBuilder(int index)
Visual page layout for the [Document][google.cloud.documentai.v1beta1.Document].
repeated .google.cloud.documentai.v1beta1.Document.Page pages = 6;- Specified by:
getPagesOrBuilderin interfaceDocumentOrBuilder
-
getEntitiesList
public List<Document.Entity> getEntitiesList()
A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta1.Document.Entity entities = 7;- Specified by:
getEntitiesListin interfaceDocumentOrBuilder
-
getEntitiesOrBuilderList
public List<? extends Document.EntityOrBuilder> getEntitiesOrBuilderList()
A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta1.Document.Entity entities = 7;- Specified by:
getEntitiesOrBuilderListin interfaceDocumentOrBuilder
-
getEntitiesCount
public int getEntitiesCount()
A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta1.Document.Entity entities = 7;- Specified by:
getEntitiesCountin interfaceDocumentOrBuilder
-
getEntities
public Document.Entity getEntities(int index)
A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta1.Document.Entity entities = 7;- Specified by:
getEntitiesin interfaceDocumentOrBuilder
-
getEntitiesOrBuilder
public Document.EntityOrBuilder getEntitiesOrBuilder(int index)
A list of entities detected on [Document.text][google.cloud.documentai.v1beta1.Document.text]. For document shards, entities in this list may cross shard boundaries.
repeated .google.cloud.documentai.v1beta1.Document.Entity entities = 7;- Specified by:
getEntitiesOrBuilderin interfaceDocumentOrBuilder
-
getEntityRelationsList
public List<Document.EntityRelation> getEntityRelationsList()
Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].
repeated .google.cloud.documentai.v1beta1.Document.EntityRelation entity_relations = 8;- Specified by:
getEntityRelationsListin interfaceDocumentOrBuilder
-
getEntityRelationsOrBuilderList
public List<? extends Document.EntityRelationOrBuilder> getEntityRelationsOrBuilderList()
Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].
repeated .google.cloud.documentai.v1beta1.Document.EntityRelation entity_relations = 8;- Specified by:
getEntityRelationsOrBuilderListin interfaceDocumentOrBuilder
-
getEntityRelationsCount
public int getEntityRelationsCount()
Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].
repeated .google.cloud.documentai.v1beta1.Document.EntityRelation entity_relations = 8;- Specified by:
getEntityRelationsCountin interfaceDocumentOrBuilder
-
getEntityRelations
public Document.EntityRelation getEntityRelations(int index)
Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].
repeated .google.cloud.documentai.v1beta1.Document.EntityRelation entity_relations = 8;- Specified by:
getEntityRelationsin interfaceDocumentOrBuilder
-
getEntityRelationsOrBuilder
public Document.EntityRelationOrBuilder getEntityRelationsOrBuilder(int index)
Relationship among [Document.entities][google.cloud.documentai.v1beta1.Document.entities].
repeated .google.cloud.documentai.v1beta1.Document.EntityRelation entity_relations = 8;- Specified by:
getEntityRelationsOrBuilderin interfaceDocumentOrBuilder
-
hasShardInfo
public boolean hasShardInfo()
Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
.google.cloud.documentai.v1beta1.Document.ShardInfo shard_info = 9;- Specified by:
hasShardInfoin interfaceDocumentOrBuilder- Returns:
- Whether the shardInfo field is set.
-
getShardInfo
public Document.ShardInfo getShardInfo()
Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
.google.cloud.documentai.v1beta1.Document.ShardInfo shard_info = 9;- Specified by:
getShardInfoin interfaceDocumentOrBuilder- Returns:
- The shardInfo.
-
getShardInfoOrBuilder
public Document.ShardInfoOrBuilder getShardInfoOrBuilder()
Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified.
.google.cloud.documentai.v1beta1.Document.ShardInfo shard_info = 9;- Specified by:
getShardInfoOrBuilderin interfaceDocumentOrBuilder
-
hasError
public boolean hasError()
Any error that occurred while processing this document.
.google.rpc.Status error = 10;- Specified by:
hasErrorin interfaceDocumentOrBuilder- Returns:
- Whether the error field is set.
-
getError
public com.google.rpc.Status getError()
Any error that occurred while processing this document.
.google.rpc.Status error = 10;- Specified by:
getErrorin interfaceDocumentOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Any error that occurred while processing this document.
.google.rpc.Status error = 10;- Specified by:
getErrorOrBuilderin interfaceDocumentOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Document parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Document parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Document.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Document.Builder newBuilder()
-
newBuilder
public static Document.Builder newBuilder(Document prototype)
-
toBuilder
public Document.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Document getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Document> parser()
-
getParserForType
public com.google.protobuf.Parser<Document> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-