- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class Document.Builder extends GeneratedMessageV3.Builder<Document.Builder> implements DocumentOrBuilder
Defines the structure for content warehouse document proto.
Protobuf type google.cloud.contentwarehouse.v1.Document
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Document.BuilderImplements
DocumentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllProperties(Iterable<? extends Property> values)
public Document.Builder addAllProperties(Iterable<? extends Property> values)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
values | Iterable<? extends com.google.cloud.contentwarehouse.v1.Property> |
Type | Description |
Document.Builder |
addProperties(Property value)
public Document.Builder addProperties(Property value)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
value | Property |
Type | Description |
Document.Builder |
addProperties(Property.Builder builderForValue)
public Document.Builder addProperties(Property.Builder builderForValue)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
builderForValue | Property.Builder |
Type | Description |
Document.Builder |
addProperties(int index, Property value)
public Document.Builder addProperties(int index, Property value)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
value | Property |
Type | Description |
Document.Builder |
addProperties(int index, Property.Builder builderForValue)
public Document.Builder addProperties(int index, Property.Builder builderForValue)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
builderForValue | Property.Builder |
Type | Description |
Document.Builder |
addPropertiesBuilder()
public Property.Builder addPropertiesBuilder()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Type | Description |
Property.Builder |
addPropertiesBuilder(int index)
public Property.Builder addPropertiesBuilder(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
Type | Description |
Property.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.Builder |
build()
public Document build()
Type | Description |
Document |
buildPartial()
public Document buildPartial()
Type | Description |
Document |
clear()
public Document.Builder clear()
Type | Description |
Document.Builder |
clearAsyncEnabled()
public Document.Builder clearAsyncEnabled()
If true, makes the document visible to asynchronous policies and rules.
bool async_enabled = 12;
Type | Description |
Document.Builder | This builder for chaining. |
clearCloudAiDocument()
public Document.Builder clearCloudAiDocument()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Type | Description |
Document.Builder |
clearCreateTime()
public Document.Builder clearCreateTime()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Document.Builder |
clearCreator()
public Document.Builder clearCreator()
The user who creates the document.
string creator = 13;
Type | Description |
Document.Builder | This builder for chaining. |
clearDisplayName()
public Document.Builder clearDisplayName()
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];
Type | Description |
Document.Builder | This builder for chaining. |
clearDisplayUri()
public Document.Builder clearDisplayUri()
Uri to display the document, for example, in the UI.
string display_uri = 17;
Type | Description |
Document.Builder | This builder for chaining. |
clearDocumentSchemaName()
public Document.Builder clearDocumentSchemaName()
The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string document_schema_name = 3 [(.google.api.resource_reference) = { ... }
Type | Description |
Document.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Document.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Document.Builder |
clearInlineRawDocument()
public Document.Builder clearInlineRawDocument()
Raw document content.
bytes inline_raw_document = 6;
Type | Description |
Document.Builder | This builder for chaining. |
clearName()
public Document.Builder clearName()
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;
Type | Description |
Document.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Document.Builder |
clearPlainText()
public Document.Builder clearPlainText()
Other document format, such as PPTX, XLXS
string plain_text = 15;
Type | Description |
Document.Builder | This builder for chaining. |
clearProperties()
public Document.Builder clearProperties()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Type | Description |
Document.Builder |
clearRawDocument()
public Document.Builder clearRawDocument()
Type | Description |
Document.Builder |
clearRawDocumentFileType()
public Document.Builder clearRawDocumentFileType()
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;
Type | Description |
Document.Builder | This builder for chaining. |
clearRawDocumentPath()
public Document.Builder clearRawDocumentPath()
Raw document file in Cloud Storage path.
string raw_document_path = 5;
Type | Description |
Document.Builder | This builder for chaining. |
clearReferenceId()
public Document.Builder clearReferenceId()
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;
Type | Description |
Document.Builder | This builder for chaining. |
clearStructuredContent()
public Document.Builder clearStructuredContent()
Type | Description |
Document.Builder |
clearStructuredContentUri()
public Document.Builder clearStructuredContentUri()
A path linked to structured content file.
string structured_content_uri = 16;
Type | Description |
Document.Builder | This builder for chaining. |
clearTextExtractionDisabled()
public Document.Builder clearTextExtractionDisabled()
If true, text extraction will not be performed.
bool text_extraction_disabled = 19;
Type | Description |
Document.Builder | This builder for chaining. |
clearTitle()
public Document.Builder clearTitle()
Title that describes the document. This is usually present in the top section of the document, and is a mandatory field for the question-answering feature.
string title = 18;
Type | Description |
Document.Builder | This builder for chaining. |
clearUpdateTime()
public Document.Builder clearUpdateTime()
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Document.Builder |
clearUpdater()
public Document.Builder clearUpdater()
The user who lastly updates the document.
string updater = 14;
Type | Description |
Document.Builder | This builder for chaining. |
clone()
public Document.Builder clone()
Type | Description |
Document.Builder |
getAsyncEnabled()
public boolean getAsyncEnabled()
If true, makes the document visible to asynchronous policies and rules.
bool async_enabled = 12;
Type | Description |
boolean | The asyncEnabled. |
getCloudAiDocument()
public Document getCloudAiDocument()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Type | Description |
com.google.cloud.documentai.v1.Document | The cloudAiDocument. |
getCloudAiDocumentBuilder()
public Document.Builder getCloudAiDocumentBuilder()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Type | Description |
com.google.cloud.documentai.v1.Document.Builder |
getCloudAiDocumentOrBuilder()
public DocumentOrBuilder getCloudAiDocumentOrBuilder()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Type | Description |
com.google.cloud.documentai.v1.DocumentOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getCreator()
public String getCreator()
The user who creates the document.
string creator = 13;
Type | Description |
String | The creator. |
getCreatorBytes()
public ByteString getCreatorBytes()
The user who creates the document.
string creator = 13;
Type | Description |
ByteString | The bytes for creator. |
getDefaultInstanceForType()
public Document getDefaultInstanceForType()
Type | Description |
Document |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public 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];
Type | Description |
ByteString | The bytes for displayName. |
getDisplayUri()
public String getDisplayUri()
Uri to display the document, for example, in the UI.
string display_uri = 17;
Type | Description |
String | The displayUri. |
getDisplayUriBytes()
public ByteString getDisplayUriBytes()
Uri to display the document, for example, in the UI.
string display_uri = 17;
Type | Description |
ByteString | 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) = { ... }
Type | Description |
String | The documentSchemaName. |
getDocumentSchemaNameBytes()
public 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) = { ... }
Type | Description |
ByteString | The bytes for documentSchemaName. |
getInlineRawDocument()
public ByteString getInlineRawDocument()
Raw document content.
bytes inline_raw_document = 6;
Type | Description |
ByteString | The inlineRawDocument. |
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;
Type | Description |
String | The name. |
getNameBytes()
public 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;
Type | Description |
ByteString | The bytes for name. |
getPlainText()
public String getPlainText()
Other document format, such as PPTX, XLXS
string plain_text = 15;
Type | Description |
String | The plainText. |
getPlainTextBytes()
public ByteString getPlainTextBytes()
Other document format, such as PPTX, XLXS
string plain_text = 15;
Type | Description |
ByteString | The bytes for plainText. |
getProperties(int index)
public Property getProperties(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
Type | Description |
Property |
getPropertiesBuilder(int index)
public Property.Builder getPropertiesBuilder(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
Type | Description |
Property.Builder |
getPropertiesBuilderList()
public List<Property.Builder> getPropertiesBuilderList()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Type | Description |
List<Builder> |
getPropertiesCount()
public int getPropertiesCount()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Type | Description |
int |
getPropertiesList()
public List<Property> getPropertiesList()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Type | Description |
List<Property> |
getPropertiesOrBuilder(int index)
public PropertyOrBuilder getPropertiesOrBuilder(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
Type | Description |
PropertyOrBuilder |
getPropertiesOrBuilderList()
public List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Type | Description |
List<? extends com.google.cloud.contentwarehouse.v1.PropertyOrBuilder> |
getRawDocumentCase()
public Document.RawDocumentCase getRawDocumentCase()
Type | Description |
Document.RawDocumentCase |
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;
Type | Description |
RawDocumentFileType | The rawDocumentFileType. |
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;
Type | Description |
int | The enum numeric value on the wire for rawDocumentFileType. |
getRawDocumentPath()
public String getRawDocumentPath()
Raw document file in Cloud Storage path.
string raw_document_path = 5;
Type | Description |
String | The rawDocumentPath. |
getRawDocumentPathBytes()
public ByteString getRawDocumentPathBytes()
Raw document file in Cloud Storage path.
string raw_document_path = 5;
Type | Description |
ByteString | The bytes for rawDocumentPath. |
getReferenceId()
public String getReferenceId()
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;
Type | Description |
String | The referenceId. |
getReferenceIdBytes()
public ByteString getReferenceIdBytes()
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;
Type | Description |
ByteString | The bytes for referenceId. |
getStructuredContentCase()
public Document.StructuredContentCase getStructuredContentCase()
Type | Description |
Document.StructuredContentCase |
getStructuredContentUri()
public String getStructuredContentUri()
A path linked to structured content file.
string structured_content_uri = 16;
Type | Description |
String | The structuredContentUri. |
getStructuredContentUriBytes()
public ByteString getStructuredContentUriBytes()
A path linked to structured content file.
string structured_content_uri = 16;
Type | Description |
ByteString | The bytes for structuredContentUri. |
getTextExtractionDisabled()
public boolean getTextExtractionDisabled()
If true, text extraction will not be performed.
bool text_extraction_disabled = 19;
Type | Description |
boolean | The textExtractionDisabled. |
getTitle()
public String getTitle()
Title that describes the document. This is usually present in the top section of the document, and is a mandatory field for the question-answering feature.
string title = 18;
Type | Description |
String | The title. |
getTitleBytes()
public ByteString getTitleBytes()
Title that describes the document. This is usually present in the top section of the document, and is a mandatory field for the question-answering feature.
string title = 18;
Type | Description |
ByteString | The bytes for title. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getUpdater()
public String getUpdater()
The user who lastly updates the document.
string updater = 14;
Type | Description |
String | The updater. |
getUpdaterBytes()
public ByteString getUpdaterBytes()
The user who lastly updates the document.
string updater = 14;
Type | Description |
ByteString | The bytes for updater. |
hasCloudAiDocument()
public boolean hasCloudAiDocument()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Type | Description |
boolean | Whether the cloudAiDocument field is set. |
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];
Type | Description |
boolean | Whether the createTime field is set. |
hasInlineRawDocument()
public boolean hasInlineRawDocument()
Raw document content.
bytes inline_raw_document = 6;
Type | Description |
boolean | Whether the inlineRawDocument field is set. |
hasPlainText()
public boolean hasPlainText()
Other document format, such as PPTX, XLXS
string plain_text = 15;
Type | Description |
boolean | Whether the plainText field is set. |
hasRawDocumentPath()
public boolean hasRawDocumentPath()
Raw document file in Cloud Storage path.
string raw_document_path = 5;
Type | Description |
boolean | Whether the rawDocumentPath field is set. |
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];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCloudAiDocument(Document value)
public Document.Builder mergeCloudAiDocument(Document value)
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Name | Description |
value | com.google.cloud.documentai.v1.Document |
Type | Description |
Document.Builder |
mergeCreateTime(Timestamp value)
public Document.Builder mergeCreateTime(Timestamp value)
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Document.Builder |
mergeFrom(Document other)
public Document.Builder mergeFrom(Document other)
Name | Description |
other | Document |
Type | Description |
Document.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Document.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Document.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Document.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.Builder |
mergeUpdateTime(Timestamp value)
public Document.Builder mergeUpdateTime(Timestamp value)
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Document.Builder |
removeProperties(int index)
public Document.Builder removeProperties(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
Type | Description |
Document.Builder |
setAsyncEnabled(boolean value)
public Document.Builder setAsyncEnabled(boolean value)
If true, makes the document visible to asynchronous policies and rules.
bool async_enabled = 12;
Name | Description |
value | boolean The asyncEnabled to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setCloudAiDocument(Document value)
public Document.Builder setCloudAiDocument(Document value)
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Name | Description |
value | com.google.cloud.documentai.v1.Document |
Type | Description |
Document.Builder |
setCloudAiDocument(Document.Builder builderForValue)
public Document.Builder setCloudAiDocument(Document.Builder builderForValue)
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
Name | Description |
builderForValue | com.google.cloud.documentai.v1.Document.Builder |
Type | Description |
Document.Builder |
setCreateTime(Timestamp value)
public Document.Builder setCreateTime(Timestamp value)
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Document.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Document.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Document.Builder |
setCreator(String value)
public Document.Builder setCreator(String value)
The user who creates the document.
string creator = 13;
Name | Description |
value | String The creator to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setCreatorBytes(ByteString value)
public Document.Builder setCreatorBytes(ByteString value)
The user who creates the document.
string creator = 13;
Name | Description |
value | ByteString The bytes for creator to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setDisplayName(String value)
public Document.Builder setDisplayName(String value)
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];
Name | Description |
value | String The displayName to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Document.Builder setDisplayNameBytes(ByteString value)
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];
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setDisplayUri(String value)
public Document.Builder setDisplayUri(String value)
Uri to display the document, for example, in the UI.
string display_uri = 17;
Name | Description |
value | String The displayUri to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setDisplayUriBytes(ByteString value)
public Document.Builder setDisplayUriBytes(ByteString value)
Uri to display the document, for example, in the UI.
string display_uri = 17;
Name | Description |
value | ByteString The bytes for displayUri to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setDocumentSchemaName(String value)
public Document.Builder setDocumentSchemaName(String value)
The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string document_schema_name = 3 [(.google.api.resource_reference) = { ... }
Name | Description |
value | String The documentSchemaName to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setDocumentSchemaNameBytes(ByteString value)
public Document.Builder setDocumentSchemaNameBytes(ByteString value)
The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string document_schema_name = 3 [(.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for documentSchemaName to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Document.Builder |
setInlineRawDocument(ByteString value)
public Document.Builder setInlineRawDocument(ByteString value)
Raw document content.
bytes inline_raw_document = 6;
Name | Description |
value | ByteString The inlineRawDocument to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setName(String value)
public Document.Builder setName(String value)
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;
Name | Description |
value | String The name to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Document.Builder setNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setPlainText(String value)
public Document.Builder setPlainText(String value)
Other document format, such as PPTX, XLXS
string plain_text = 15;
Name | Description |
value | String The plainText to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setPlainTextBytes(ByteString value)
public Document.Builder setPlainTextBytes(ByteString value)
Other document format, such as PPTX, XLXS
string plain_text = 15;
Name | Description |
value | ByteString The bytes for plainText to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setProperties(int index, Property value)
public Document.Builder setProperties(int index, Property value)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
value | Property |
Type | Description |
Document.Builder |
setProperties(int index, Property.Builder builderForValue)
public Document.Builder setProperties(int index, Property.Builder builderForValue)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
Name | Description |
index | int |
builderForValue | Property.Builder |
Type | Description |
Document.Builder |
setRawDocumentFileType(RawDocumentFileType value)
public Document.Builder setRawDocumentFileType(RawDocumentFileType value)
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;
Name | Description |
value | RawDocumentFileType The rawDocumentFileType to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setRawDocumentFileTypeValue(int value)
public Document.Builder setRawDocumentFileTypeValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for rawDocumentFileType to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setRawDocumentPath(String value)
public Document.Builder setRawDocumentPath(String value)
Raw document file in Cloud Storage path.
string raw_document_path = 5;
Name | Description |
value | String The rawDocumentPath to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setRawDocumentPathBytes(ByteString value)
public Document.Builder setRawDocumentPathBytes(ByteString value)
Raw document file in Cloud Storage path.
string raw_document_path = 5;
Name | Description |
value | ByteString The bytes for rawDocumentPath to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setReferenceId(String value)
public Document.Builder setReferenceId(String value)
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;
Name | Description |
value | String The referenceId to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setReferenceIdBytes(ByteString value)
public Document.Builder setReferenceIdBytes(ByteString value)
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;
Name | Description |
value | ByteString The bytes for referenceId to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Document.Builder |
setStructuredContentUri(String value)
public Document.Builder setStructuredContentUri(String value)
A path linked to structured content file.
string structured_content_uri = 16;
Name | Description |
value | String The structuredContentUri to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setStructuredContentUriBytes(ByteString value)
public Document.Builder setStructuredContentUriBytes(ByteString value)
A path linked to structured content file.
string structured_content_uri = 16;
Name | Description |
value | ByteString The bytes for structuredContentUri to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setTextExtractionDisabled(boolean value)
public Document.Builder setTextExtractionDisabled(boolean value)
If true, text extraction will not be performed.
bool text_extraction_disabled = 19;
Name | Description |
value | boolean The textExtractionDisabled to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setTitle(String value)
public Document.Builder setTitle(String value)
Title that describes the document. This is usually present in the top section of the document, and is a mandatory field for the question-answering feature.
string title = 18;
Name | Description |
value | String The title to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setTitleBytes(ByteString value)
public Document.Builder setTitleBytes(ByteString value)
Title that describes the document. This is usually present in the top section of the document, and is a mandatory field for the question-answering feature.
string title = 18;
Name | Description |
value | ByteString The bytes for title to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Document.Builder |
setUpdateTime(Timestamp value)
public Document.Builder setUpdateTime(Timestamp value)
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Document.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Document.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Document.Builder |
setUpdater(String value)
public Document.Builder setUpdater(String value)
The user who lastly updates the document.
string updater = 14;
Name | Description |
value | String The updater to set. |
Type | Description |
Document.Builder | This builder for chaining. |
setUpdaterBytes(ByteString value)
public Document.Builder setUpdaterBytes(ByteString value)
The user who lastly updates the document.
string updater = 14;
Name | Description |
value | ByteString The bytes for updater to set. |
Type | Description |
Document.Builder | This builder for chaining. |