Class Document
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.contentwarehouse.v1.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
Defines the structure for content warehouse document proto.
Protobuf typegoogle.cloud.contentwarehouse.v1.Document- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.BuilderDefines the structure for content warehouse document proto.static classDocument.RawDocumentCasestatic classDocument.StructuredContentCase-
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 intASYNC_ENABLED_FIELD_NUMBERstatic intCLOUD_AI_DOCUMENT_FIELD_NUMBERstatic intCONTENT_CATEGORY_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intCREATOR_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intDISPLAY_URI_FIELD_NUMBERstatic intDISPOSITION_TIME_FIELD_NUMBERstatic intDOCUMENT_SCHEMA_NAME_FIELD_NUMBERstatic intINLINE_RAW_DOCUMENT_FIELD_NUMBERstatic intLEGAL_HOLD_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPLAIN_TEXT_FIELD_NUMBERstatic intPROPERTIES_FIELD_NUMBERstatic intRAW_DOCUMENT_FILE_TYPE_FIELD_NUMBERstatic intRAW_DOCUMENT_PATH_FIELD_NUMBERstatic intREFERENCE_ID_FIELD_NUMBERstatic intSTRUCTURED_CONTENT_URI_FIELD_NUMBERstatic intTEXT_EXTRACTION_DISABLED_FIELD_NUMBERstatic intTEXT_EXTRACTION_ENABLED_FIELD_NUMBERstatic intTITLE_FIELD_NUMBERstatic intUPDATE_TIME_FIELD_NUMBERstatic intUPDATER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAsyncEnabled()Deprecated.google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated.com.google.cloud.documentai.v1.DocumentgetCloudAiDocument()Document AI format to save the structured content, including OCR.com.google.cloud.documentai.v1.DocumentOrBuildergetCloudAiDocumentOrBuilder()Document AI format to save the structured content, including OCR.ContentCategorygetContentCategory()Indicates the category (image, audio, video etc.) of the original content.intgetContentCategoryValue()Indicates the category (image, audio, video etc.) of the original content.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.StringgetCreator()The user who creates the document.com.google.protobuf.ByteStringgetCreatorBytes()The user who creates the document.static DocumentgetDefaultInstance()DocumentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.StringgetDisplayUri()Uri to display the document, for example, in the UI.com.google.protobuf.ByteStringgetDisplayUriBytes()Uri to display the document, for example, in the UI.com.google.protobuf.TimestampgetDispositionTime()Output only.com.google.protobuf.TimestampOrBuildergetDispositionTimeOrBuilder()Output only.StringgetDocumentSchemaName()The Document schema name.com.google.protobuf.ByteStringgetDocumentSchemaNameBytes()The Document schema name.com.google.protobuf.ByteStringgetInlineRawDocument()Raw document content.booleangetLegalHold()Output only.StringgetName()The resource name of the document.com.google.protobuf.ByteStringgetNameBytes()The resource name of the document.com.google.protobuf.Parser<Document>getParserForType()StringgetPlainText()Other document format, such as PPTX, XLXScom.google.protobuf.ByteStringgetPlainTextBytes()Other document format, such as PPTX, XLXSPropertygetProperties(int index)List of values that are user supplied metadata.intgetPropertiesCount()List of values that are user supplied metadata.List<Property>getPropertiesList()List of values that are user supplied metadata.PropertyOrBuildergetPropertiesOrBuilder(int index)List of values that are user supplied metadata.List<? extends PropertyOrBuilder>getPropertiesOrBuilderList()List of values that are user supplied metadata.Document.RawDocumentCasegetRawDocumentCase()RawDocumentFileTypegetRawDocumentFileType()This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document.intgetRawDocumentFileTypeValue()This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document.StringgetRawDocumentPath()Raw document file in Cloud Storage path.com.google.protobuf.ByteStringgetRawDocumentPathBytes()Raw document file in Cloud Storage path.StringgetReferenceId()The reference ID set by customers.com.google.protobuf.ByteStringgetReferenceIdBytes()The reference ID set by customers.intgetSerializedSize()Document.StructuredContentCasegetStructuredContentCase()StringgetStructuredContentUri()Deprecated.google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated.com.google.protobuf.ByteStringgetStructuredContentUriBytes()Deprecated.google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated.booleangetTextExtractionDisabled()Deprecated.google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated.booleangetTextExtractionEnabled()If true, text extraction will be performed.StringgetTitle()Title that describes the document.com.google.protobuf.ByteStringgetTitleBytes()Title that describes the document.StringgetUpdater()The user who lastly updates the document.com.google.protobuf.ByteStringgetUpdaterBytes()The user who lastly updates the document.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCloudAiDocument()Document AI format to save the structured content, including OCR.booleanhasCreateTime()Output only.booleanhasDispositionTime()Output only.inthashCode()booleanhasInlineRawDocument()Raw document content.booleanhasPlainText()Other document format, such as PPTX, XLXSbooleanhasRawDocumentPath()Raw document file in Cloud Storage path.booleanhasUpdateTime()Output only.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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REFERENCE_ID_FIELD_NUMBER
public static final int REFERENCE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_URI_FIELD_NUMBER
public static final int DISPLAY_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_SCHEMA_NAME_FIELD_NUMBER
public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLAIN_TEXT_FIELD_NUMBER
public static final int PLAIN_TEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLOUD_AI_DOCUMENT_FIELD_NUMBER
public static final int CLOUD_AI_DOCUMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRUCTURED_CONTENT_URI_FIELD_NUMBER
public static final int STRUCTURED_CONTENT_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RAW_DOCUMENT_PATH_FIELD_NUMBER
public static final int RAW_DOCUMENT_PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INLINE_RAW_DOCUMENT_FIELD_NUMBER
public static final int INLINE_RAW_DOCUMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER
public static final int RAW_DOCUMENT_FILE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASYNC_ENABLED_FIELD_NUMBER
public static final int ASYNC_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENT_CATEGORY_FIELD_NUMBER
public static final int CONTENT_CATEGORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_EXTRACTION_DISABLED_FIELD_NUMBER
public static final int TEXT_EXTRACTION_DISABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_EXTRACTION_ENABLED_FIELD_NUMBER
public static final int TEXT_EXTRACTION_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATOR_FIELD_NUMBER
public static final int CREATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATER_FIELD_NUMBER
public static final int UPDATER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPOSITION_TIME_FIELD_NUMBER
public static final int DISPOSITION_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEGAL_HOLD_FIELD_NUMBER
public static final int LEGAL_HOLD_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
-
getStructuredContentCase
public Document.StructuredContentCase getStructuredContentCase()
- Specified by:
getStructuredContentCasein interfaceDocumentOrBuilder
-
getRawDocumentCase
public Document.RawDocumentCase getRawDocumentCase()
- Specified by:
getRawDocumentCasein interfaceDocumentOrBuilder
-
getName
public String getName()
The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document.string name = 1;- Specified by:
getNamein interfaceDocumentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document.string name = 1;- Specified by:
getNameBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for name.
-
getReferenceId
public String getReferenceId()
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;- Specified by:
getReferenceIdin interfaceDocumentOrBuilder- Returns:
- The referenceId.
-
getReferenceIdBytes
public com.google.protobuf.ByteString getReferenceIdBytes()
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;- Specified by:
getReferenceIdBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for referenceId.
-
getDisplayName
public String getDisplayName()
Required. Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the 'title' field as 'title' is optional and stores the top heading in the document.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceDocumentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the 'title' field as 'title' is optional and stores the top heading in the document.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for displayName.
-
getTitle
public String getTitle()
Title that describes the document. This can be the top heading or text that describes the document.
string title = 18;- Specified by:
getTitlein interfaceDocumentOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
Title that describes the document. This can be the top heading or text that describes the document.
string title = 18;- Specified by:
getTitleBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for title.
-
getDisplayUri
public String getDisplayUri()
Uri to display the document, for example, in the UI.
string display_uri = 17;- Specified by:
getDisplayUriin interfaceDocumentOrBuilder- Returns:
- The displayUri.
-
getDisplayUriBytes
public com.google.protobuf.ByteString getDisplayUriBytes()
Uri to display the document, for example, in the UI.
string display_uri = 17;- Specified by:
getDisplayUriBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for displayUri.
-
getDocumentSchemaName
public String getDocumentSchemaName()
The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.string document_schema_name = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getDocumentSchemaNamein interfaceDocumentOrBuilder- Returns:
- The documentSchemaName.
-
getDocumentSchemaNameBytes
public com.google.protobuf.ByteString getDocumentSchemaNameBytes()
The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.string document_schema_name = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getDocumentSchemaNameBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for documentSchemaName.
-
hasPlainText
public boolean hasPlainText()
Other document format, such as PPTX, XLXS
string plain_text = 15;- Specified by:
hasPlainTextin interfaceDocumentOrBuilder- Returns:
- Whether the plainText field is set.
-
getPlainText
public String getPlainText()
Other document format, such as PPTX, XLXS
string plain_text = 15;- Specified by:
getPlainTextin interfaceDocumentOrBuilder- Returns:
- The plainText.
-
getPlainTextBytes
public com.google.protobuf.ByteString getPlainTextBytes()
Other document format, such as PPTX, XLXS
string plain_text = 15;- Specified by:
getPlainTextBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for plainText.
-
hasCloudAiDocument
public boolean hasCloudAiDocument()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;- Specified by:
hasCloudAiDocumentin interfaceDocumentOrBuilder- Returns:
- Whether the cloudAiDocument field is set.
-
getCloudAiDocument
public com.google.cloud.documentai.v1.Document getCloudAiDocument()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;- Specified by:
getCloudAiDocumentin interfaceDocumentOrBuilder- Returns:
- The cloudAiDocument.
-
getCloudAiDocumentOrBuilder
public com.google.cloud.documentai.v1.DocumentOrBuilder getCloudAiDocumentOrBuilder()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;- Specified by:
getCloudAiDocumentOrBuilderin interfaceDocumentOrBuilder
-
getStructuredContentUri
@Deprecated public String getStructuredContentUri()
Deprecated.google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=79A path linked to structured content file.
string structured_content_uri = 16 [deprecated = true];- Specified by:
getStructuredContentUriin interfaceDocumentOrBuilder- Returns:
- The structuredContentUri.
-
getStructuredContentUriBytes
@Deprecated public com.google.protobuf.ByteString getStructuredContentUriBytes()
Deprecated.google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=79A path linked to structured content file.
string structured_content_uri = 16 [deprecated = true];- Specified by:
getStructuredContentUriBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for structuredContentUri.
-
hasRawDocumentPath
public boolean hasRawDocumentPath()
Raw document file in Cloud Storage path.
string raw_document_path = 5;- Specified by:
hasRawDocumentPathin interfaceDocumentOrBuilder- Returns:
- Whether the rawDocumentPath field is set.
-
getRawDocumentPath
public String getRawDocumentPath()
Raw document file in Cloud Storage path.
string raw_document_path = 5;- Specified by:
getRawDocumentPathin interfaceDocumentOrBuilder- Returns:
- The rawDocumentPath.
-
getRawDocumentPathBytes
public com.google.protobuf.ByteString getRawDocumentPathBytes()
Raw document file in Cloud Storage path.
string raw_document_path = 5;- Specified by:
getRawDocumentPathBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for rawDocumentPath.
-
hasInlineRawDocument
public boolean hasInlineRawDocument()
Raw document content.
bytes inline_raw_document = 6;- Specified by:
hasInlineRawDocumentin interfaceDocumentOrBuilder- Returns:
- Whether the inlineRawDocument field is set.
-
getInlineRawDocument
public com.google.protobuf.ByteString getInlineRawDocument()
Raw document content.
bytes inline_raw_document = 6;- Specified by:
getInlineRawDocumentin interfaceDocumentOrBuilder- Returns:
- The inlineRawDocument.
-
getPropertiesList
public List<Property> getPropertiesList()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;- Specified by:
getPropertiesListin interfaceDocumentOrBuilder
-
getPropertiesOrBuilderList
public List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;- Specified by:
getPropertiesOrBuilderListin interfaceDocumentOrBuilder
-
getPropertiesCount
public int getPropertiesCount()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;- Specified by:
getPropertiesCountin interfaceDocumentOrBuilder
-
getProperties
public Property getProperties(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;- Specified by:
getPropertiesin interfaceDocumentOrBuilder
-
getPropertiesOrBuilder
public PropertyOrBuilder getPropertiesOrBuilder(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;- Specified by:
getPropertiesOrBuilderin interfaceDocumentOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceDocumentOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceDocumentOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceDocumentOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceDocumentOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceDocumentOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceDocumentOrBuilder
-
getRawDocumentFileTypeValue
public int getRawDocumentFileTypeValue()
This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
.google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10;- Specified by:
getRawDocumentFileTypeValuein interfaceDocumentOrBuilder- Returns:
- The enum numeric value on the wire for rawDocumentFileType.
-
getRawDocumentFileType
public RawDocumentFileType getRawDocumentFileType()
This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
.google.cloud.contentwarehouse.v1.RawDocumentFileType raw_document_file_type = 10;- Specified by:
getRawDocumentFileTypein interfaceDocumentOrBuilder- Returns:
- The rawDocumentFileType.
-
getAsyncEnabled
@Deprecated public boolean getAsyncEnabled()
Deprecated.google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=108If true, makes the document visible to asynchronous policies and rules.
bool async_enabled = 12 [deprecated = true];- Specified by:
getAsyncEnabledin interfaceDocumentOrBuilder- Returns:
- The asyncEnabled.
-
getContentCategoryValue
public int getContentCategoryValue()
Indicates the category (image, audio, video etc.) of the original content.
.google.cloud.contentwarehouse.v1.ContentCategory content_category = 20;- Specified by:
getContentCategoryValuein interfaceDocumentOrBuilder- Returns:
- The enum numeric value on the wire for contentCategory.
-
getContentCategory
public ContentCategory getContentCategory()
Indicates the category (image, audio, video etc.) of the original content.
.google.cloud.contentwarehouse.v1.ContentCategory content_category = 20;- Specified by:
getContentCategoryin interfaceDocumentOrBuilder- Returns:
- The contentCategory.
-
getTextExtractionDisabled
@Deprecated public boolean getTextExtractionDisabled()
Deprecated.google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=114If true, text extraction will not be performed.
bool text_extraction_disabled = 19 [deprecated = true];- Specified by:
getTextExtractionDisabledin interfaceDocumentOrBuilder- Returns:
- The textExtractionDisabled.
-
getTextExtractionEnabled
public boolean getTextExtractionEnabled()
If true, text extraction will be performed.
bool text_extraction_enabled = 21;- Specified by:
getTextExtractionEnabledin interfaceDocumentOrBuilder- Returns:
- The textExtractionEnabled.
-
getCreator
public String getCreator()
The user who creates the document.
string creator = 13;- Specified by:
getCreatorin interfaceDocumentOrBuilder- Returns:
- The creator.
-
getCreatorBytes
public com.google.protobuf.ByteString getCreatorBytes()
The user who creates the document.
string creator = 13;- Specified by:
getCreatorBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for creator.
-
getUpdater
public String getUpdater()
The user who lastly updates the document.
string updater = 14;- Specified by:
getUpdaterin interfaceDocumentOrBuilder- Returns:
- The updater.
-
getUpdaterBytes
public com.google.protobuf.ByteString getUpdaterBytes()
The user who lastly updates the document.
string updater = 14;- Specified by:
getUpdaterBytesin interfaceDocumentOrBuilder- Returns:
- The bytes for updater.
-
hasDispositionTime
public boolean hasDispositionTime()
Output only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.
.google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDispositionTimein interfaceDocumentOrBuilder- Returns:
- Whether the dispositionTime field is set.
-
getDispositionTime
public com.google.protobuf.Timestamp getDispositionTime()
Output only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.
.google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDispositionTimein interfaceDocumentOrBuilder- Returns:
- The dispositionTime.
-
getDispositionTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDispositionTimeOrBuilder()
Output only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.
.google.protobuf.Timestamp disposition_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDispositionTimeOrBuilderin interfaceDocumentOrBuilder
-
getLegalHold
public boolean getLegalHold()
Output only. Indicates if the document has a legal hold on it.
bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLegalHoldin interfaceDocumentOrBuilder- Returns:
- The legalHold.
-
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
-
-