Interface DocumentOrBuilder (0.11.0)

public interface DocumentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAsyncEnabled() (deprecated)

public abstract boolean getAsyncEnabled()

Deprecated. google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=108

If true, makes the document visible to asynchronous policies and rules.

bool async_enabled = 12 [deprecated = true];

Returns
TypeDescription
boolean

The asyncEnabled.

getCloudAiDocument()

public abstract Document getCloudAiDocument()

Document AI format to save the structured content, including OCR.

.google.cloud.documentai.v1.Document cloud_ai_document = 4;

Returns
TypeDescription
com.google.cloud.documentai.v1.Document

The cloudAiDocument.

getCloudAiDocumentOrBuilder()

public abstract DocumentOrBuilder getCloudAiDocumentOrBuilder()

Document AI format to save the structured content, including OCR.

.google.cloud.documentai.v1.Document cloud_ai_document = 4;

Returns
TypeDescription
com.google.cloud.documentai.v1.DocumentOrBuilder

getContentCategory()

public abstract ContentCategory getContentCategory()

Indicates the category (image, audio, video etc.) of the original content.

.google.cloud.contentwarehouse.v1.ContentCategory content_category = 20;

Returns
TypeDescription
ContentCategory

The contentCategory.

getContentCategoryValue()

public abstract int getContentCategoryValue()

Indicates the category (image, audio, video etc.) of the original content.

.google.cloud.contentwarehouse.v1.ContentCategory content_category = 20;

Returns
TypeDescription
int

The enum numeric value on the wire for contentCategory.

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. The time when the document is created.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the document is created.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getCreator()

public abstract String getCreator()

The user who creates the document.

string creator = 13;

Returns
TypeDescription
String

The creator.

getCreatorBytes()

public abstract ByteString getCreatorBytes()

The user who creates the document.

string creator = 13;

Returns
TypeDescription
ByteString

The bytes for creator.

getDisplayName()

public abstract 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];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract 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];

Returns
TypeDescription
ByteString

The bytes for displayName.

getDisplayUri()

public abstract String getDisplayUri()

Uri to display the document, for example, in the UI.

string display_uri = 17;

Returns
TypeDescription
String

The displayUri.

getDisplayUriBytes()

public abstract ByteString getDisplayUriBytes()

Uri to display the document, for example, in the UI.

string display_uri = 17;

Returns
TypeDescription
ByteString

The bytes for displayUri.

getDocumentSchemaName()

public abstract 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) = { ... }

Returns
TypeDescription
String

The documentSchemaName.

getDocumentSchemaNameBytes()

public abstract 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for documentSchemaName.

getInlineRawDocument()

public abstract ByteString getInlineRawDocument()

Raw document content.

bytes inline_raw_document = 6;

Returns
TypeDescription
ByteString

The inlineRawDocument.

getName()

public abstract 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;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for name.

getPlainText()

public abstract String getPlainText()

Other document format, such as PPTX, XLXS

string plain_text = 15;

Returns
TypeDescription
String

The plainText.

getPlainTextBytes()

public abstract ByteString getPlainTextBytes()

Other document format, such as PPTX, XLXS

string plain_text = 15;

Returns
TypeDescription
ByteString

The bytes for plainText.

getProperties(int index)

public abstract Property getProperties(int index)

List of values that are user supplied metadata.

repeated .google.cloud.contentwarehouse.v1.Property properties = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
Property

getPropertiesCount()

public abstract int getPropertiesCount()

List of values that are user supplied metadata.

repeated .google.cloud.contentwarehouse.v1.Property properties = 7;

Returns
TypeDescription
int

getPropertiesList()

public abstract List<Property> getPropertiesList()

List of values that are user supplied metadata.

repeated .google.cloud.contentwarehouse.v1.Property properties = 7;

Returns
TypeDescription
List<Property>

getPropertiesOrBuilder(int index)

public abstract PropertyOrBuilder getPropertiesOrBuilder(int index)

List of values that are user supplied metadata.

repeated .google.cloud.contentwarehouse.v1.Property properties = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertyOrBuilder

getPropertiesOrBuilderList()

public abstract List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()

List of values that are user supplied metadata.

repeated .google.cloud.contentwarehouse.v1.Property properties = 7;

Returns
TypeDescription
List<? extends com.google.cloud.contentwarehouse.v1.PropertyOrBuilder>

getRawDocumentCase()

public abstract Document.RawDocumentCase getRawDocumentCase()
Returns
TypeDescription
Document.RawDocumentCase

getRawDocumentFileType()

public abstract 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;

Returns
TypeDescription
RawDocumentFileType

The rawDocumentFileType.

getRawDocumentFileTypeValue()

public abstract 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;

Returns
TypeDescription
int

The enum numeric value on the wire for rawDocumentFileType.

getRawDocumentPath()

public abstract String getRawDocumentPath()

Raw document file in Cloud Storage path.

string raw_document_path = 5;

Returns
TypeDescription
String

The rawDocumentPath.

getRawDocumentPathBytes()

public abstract ByteString getRawDocumentPathBytes()

Raw document file in Cloud Storage path.

string raw_document_path = 5;

Returns
TypeDescription
ByteString

The bytes for rawDocumentPath.

getReferenceId()

public abstract String getReferenceId()

The reference ID set by customers. Must be unique per project and location.

string reference_id = 11;

Returns
TypeDescription
String

The referenceId.

getReferenceIdBytes()

public abstract ByteString getReferenceIdBytes()

The reference ID set by customers. Must be unique per project and location.

string reference_id = 11;

Returns
TypeDescription
ByteString

The bytes for referenceId.

getStructuredContentCase()

public abstract Document.StructuredContentCase getStructuredContentCase()
Returns
TypeDescription
Document.StructuredContentCase

getStructuredContentUri() (deprecated)

public abstract String getStructuredContentUri()

Deprecated. google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=79

A path linked to structured content file.

string structured_content_uri = 16 [deprecated = true];

Returns
TypeDescription
String

The structuredContentUri.

getStructuredContentUriBytes() (deprecated)

public abstract ByteString getStructuredContentUriBytes()

Deprecated. google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=79

A path linked to structured content file.

string structured_content_uri = 16 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for structuredContentUri.

getTextExtractionDisabled() (deprecated)

public abstract boolean getTextExtractionDisabled()

Deprecated. google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated. See google/cloud/contentwarehouse/v1/document.proto;l=114

If true, text extraction will not be performed.

bool text_extraction_disabled = 19 [deprecated = true];

Returns
TypeDescription
boolean

The textExtractionDisabled.

getTextExtractionEnabled()

public abstract boolean getTextExtractionEnabled()

If true, text extraction will be performed.

bool text_extraction_enabled = 21;

Returns
TypeDescription
boolean

The textExtractionEnabled.

getTitle()

public abstract String getTitle()

Title that describes the document. This can be the top heading or text that describes the document.

string title = 18;

Returns
TypeDescription
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

Title that describes the document. This can be the top heading or text that describes the document.

string title = 18;

Returns
TypeDescription
ByteString

The bytes for title.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. The time when the document is last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the document is last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getUpdater()

public abstract String getUpdater()

The user who lastly updates the document.

string updater = 14;

Returns
TypeDescription
String

The updater.

getUpdaterBytes()

public abstract ByteString getUpdaterBytes()

The user who lastly updates the document.

string updater = 14;

Returns
TypeDescription
ByteString

The bytes for updater.

hasCloudAiDocument()

public abstract boolean hasCloudAiDocument()

Document AI format to save the structured content, including OCR.

.google.cloud.documentai.v1.Document cloud_ai_document = 4;

Returns
TypeDescription
boolean

Whether the cloudAiDocument field is set.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. The time when the document is created.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasInlineRawDocument()

public abstract boolean hasInlineRawDocument()

Raw document content.

bytes inline_raw_document = 6;

Returns
TypeDescription
boolean

Whether the inlineRawDocument field is set.

hasPlainText()

public abstract boolean hasPlainText()

Other document format, such as PPTX, XLXS

string plain_text = 15;

Returns
TypeDescription
boolean

Whether the plainText field is set.

hasRawDocumentPath()

public abstract boolean hasRawDocumentPath()

Raw document file in Cloud Storage path.

string raw_document_path = 5;

Returns
TypeDescription
boolean

Whether the rawDocumentPath field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. The time when the document is last updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.