Class Document.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
- com.google.cloud.contentwarehouse.v1.Document.Builder
-
- All Implemented Interfaces:
DocumentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document
public static final class Document.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.Builder> implements DocumentOrBuilder
Defines the structure for content warehouse document proto.
Protobuf typegoogle.cloud.contentwarehouse.v1.Document
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Document.BuilderaddAllProperties(Iterable<? extends Property> values)List of values that are user supplied metadata.Document.BuilderaddProperties(int index, Property value)List of values that are user supplied metadata.Document.BuilderaddProperties(int index, Property.Builder builderForValue)List of values that are user supplied metadata.Document.BuilderaddProperties(Property value)List of values that are user supplied metadata.Document.BuilderaddProperties(Property.Builder builderForValue)List of values that are user supplied metadata.Property.BuilderaddPropertiesBuilder()List of values that are user supplied metadata.Property.BuilderaddPropertiesBuilder(int index)List of values that are user supplied metadata.Document.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Documentbuild()DocumentbuildPartial()Document.Builderclear()Document.BuilderclearAsyncEnabled()Deprecated.google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated.Document.BuilderclearCloudAiDocument()Document AI format to save the structured content, including OCR.Document.BuilderclearContentCategory()Indicates the category (image, audio, video etc.) of the original content.Document.BuilderclearCreateTime()Output only.Document.BuilderclearCreator()The user who creates the document.Document.BuilderclearDisplayName()Required.Document.BuilderclearDisplayUri()Uri to display the document, for example, in the UI.Document.BuilderclearDispositionTime()Output only.Document.BuilderclearDocumentSchemaName()The Document schema name.Document.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Document.BuilderclearInlineRawDocument()Raw document content.Document.BuilderclearLegalHold()Output only.Document.BuilderclearName()The resource name of the document.Document.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Document.BuilderclearPlainText()Other document format, such as PPTX, XLXSDocument.BuilderclearProperties()List of values that are user supplied metadata.Document.BuilderclearRawDocument()Document.BuilderclearRawDocumentFileType()This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document.Document.BuilderclearRawDocumentPath()Raw document file in Cloud Storage path.Document.BuilderclearReferenceId()The reference ID set by customers.Document.BuilderclearStructuredContent()Document.BuilderclearStructuredContentUri()Deprecated.google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated.Document.BuilderclearTextExtractionDisabled()Deprecated.google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated.Document.BuilderclearTextExtractionEnabled()If true, text extraction will be performed.Document.BuilderclearTitle()Title that describes the document.Document.BuilderclearUpdater()The user who lastly updates the document.Document.BuilderclearUpdateTime()Output only.Document.Builderclone()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.Document.BuildergetCloudAiDocumentBuilder()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.Timestamp.BuildergetCreateTimeBuilder()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.DocumentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.Timestamp.BuildergetDispositionTimeBuilder()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.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.Property.BuildergetPropertiesBuilder(int index)List of values that are user supplied metadata.List<Property.Builder>getPropertiesBuilderList()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.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.Timestamp.BuildergetUpdateTimeBuilder()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.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()Document.BuildermergeCloudAiDocument(com.google.cloud.documentai.v1.Document value)Document AI format to save the structured content, including OCR.Document.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Document.BuildermergeDispositionTime(com.google.protobuf.Timestamp value)Output only.Document.BuildermergeFrom(Document other)Document.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Document.BuildermergeFrom(com.google.protobuf.Message other)Document.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Document.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.Document.BuilderremoveProperties(int index)List of values that are user supplied metadata.Document.BuildersetAsyncEnabled(boolean value)Deprecated.google.cloud.contentwarehouse.v1.Document.async_enabled is deprecated.Document.BuildersetCloudAiDocument(com.google.cloud.documentai.v1.Document value)Document AI format to save the structured content, including OCR.Document.BuildersetCloudAiDocument(com.google.cloud.documentai.v1.Document.Builder builderForValue)Document AI format to save the structured content, including OCR.Document.BuildersetContentCategory(ContentCategory value)Indicates the category (image, audio, video etc.) of the original content.Document.BuildersetContentCategoryValue(int value)Indicates the category (image, audio, video etc.) of the original content.Document.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Document.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Document.BuildersetCreator(String value)The user who creates the document.Document.BuildersetCreatorBytes(com.google.protobuf.ByteString value)The user who creates the document.Document.BuildersetDisplayName(String value)Required.Document.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Required.Document.BuildersetDisplayUri(String value)Uri to display the document, for example, in the UI.Document.BuildersetDisplayUriBytes(com.google.protobuf.ByteString value)Uri to display the document, for example, in the UI.Document.BuildersetDispositionTime(com.google.protobuf.Timestamp value)Output only.Document.BuildersetDispositionTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Document.BuildersetDocumentSchemaName(String value)The Document schema name.Document.BuildersetDocumentSchemaNameBytes(com.google.protobuf.ByteString value)The Document schema name.Document.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Document.BuildersetInlineRawDocument(com.google.protobuf.ByteString value)Raw document content.Document.BuildersetLegalHold(boolean value)Output only.Document.BuildersetName(String value)The resource name of the document.Document.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource name of the document.Document.BuildersetPlainText(String value)Other document format, such as PPTX, XLXSDocument.BuildersetPlainTextBytes(com.google.protobuf.ByteString value)Other document format, such as PPTX, XLXSDocument.BuildersetProperties(int index, Property value)List of values that are user supplied metadata.Document.BuildersetProperties(int index, Property.Builder builderForValue)List of values that are user supplied metadata.Document.BuildersetRawDocumentFileType(RawDocumentFileType value)This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document.Document.BuildersetRawDocumentFileTypeValue(int value)This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document.Document.BuildersetRawDocumentPath(String value)Raw document file in Cloud Storage path.Document.BuildersetRawDocumentPathBytes(com.google.protobuf.ByteString value)Raw document file in Cloud Storage path.Document.BuildersetReferenceId(String value)The reference ID set by customers.Document.BuildersetReferenceIdBytes(com.google.protobuf.ByteString value)The reference ID set by customers.Document.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Document.BuildersetStructuredContentUri(String value)Deprecated.google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated.Document.BuildersetStructuredContentUriBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.contentwarehouse.v1.Document.structured_content_uri is deprecated.Document.BuildersetTextExtractionDisabled(boolean value)Deprecated.google.cloud.contentwarehouse.v1.Document.text_extraction_disabled is deprecated.Document.BuildersetTextExtractionEnabled(boolean value)If true, text extraction will be performed.Document.BuildersetTitle(String value)Title that describes the document.Document.BuildersetTitleBytes(com.google.protobuf.ByteString value)Title that describes the document.Document.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Document.BuildersetUpdater(String value)The user who lastly updates the document.Document.BuildersetUpdaterBytes(com.google.protobuf.ByteString value)The user who lastly updates the document.Document.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.Document.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Document.Builder>
-
clear
public Document.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
getDefaultInstanceForType
public Document getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Document build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Document buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Document.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
setField
public Document.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clearField
public Document.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
clearOneof
public Document.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
setRepeatedField
public Document.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
addRepeatedField
public Document.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(Document other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeFrom
public Document.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Builder>- Throws:
IOException
-
getStructuredContentCase
public Document.StructuredContentCase getStructuredContentCase()
- Specified by:
getStructuredContentCasein interfaceDocumentOrBuilder
-
clearStructuredContent
public Document.Builder clearStructuredContent()
-
getRawDocumentCase
public Document.RawDocumentCase getRawDocumentCase()
- Specified by:
getRawDocumentCasein interfaceDocumentOrBuilder
-
clearRawDocument
public Document.Builder clearRawDocument()
-
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.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
setNameBytes
public Document.Builder setNameBytes(com.google.protobuf.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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setReferenceId
public Document.Builder setReferenceId(String value)
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;- Parameters:
value- The referenceId to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
setReferenceIdBytes
public Document.Builder setReferenceIdBytes(com.google.protobuf.ByteString value)
The reference ID set by customers. Must be unique per project and location.
string reference_id = 11;- Parameters:
value- The bytes for referenceId to set.- Returns:
- This builder for chaining.
-
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.
-
setDisplayName
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];- Parameters:
value- The displayName to set.- Returns:
- 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];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Document.Builder setDisplayNameBytes(com.google.protobuf.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];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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.
-
setTitle
public Document.Builder setTitle(String value)
Title that describes the document. This can be the top heading or text that describes the document.
string title = 18;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
public Document.Builder clearTitle()
Title that describes the document. This can be the top heading or text that describes the document.
string title = 18;- Returns:
- This builder for chaining.
-
setTitleBytes
public Document.Builder setTitleBytes(com.google.protobuf.ByteString value)
Title that describes the document. This can be the top heading or text that describes the document.
string title = 18;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
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.
-
setDisplayUri
public Document.Builder setDisplayUri(String value)
Uri to display the document, for example, in the UI.
string display_uri = 17;- Parameters:
value- The displayUri to set.- Returns:
- This builder for chaining.
-
clearDisplayUri
public Document.Builder clearDisplayUri()
Uri to display the document, for example, in the UI.
string display_uri = 17;- Returns:
- This builder for chaining.
-
setDisplayUriBytes
public Document.Builder setDisplayUriBytes(com.google.protobuf.ByteString value)
Uri to display the document, for example, in the UI.
string display_uri = 17;- Parameters:
value- The bytes for displayUri to set.- Returns:
- This builder for chaining.
-
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.
-
setDocumentSchemaName
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) = { ... }- Parameters:
value- The documentSchemaName to set.- Returns:
- 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) = { ... }- Returns:
- This builder for chaining.
-
setDocumentSchemaNameBytes
public Document.Builder setDocumentSchemaNameBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for documentSchemaName to set.- Returns:
- This builder for chaining.
-
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.
-
setPlainText
public Document.Builder setPlainText(String value)
Other document format, such as PPTX, XLXS
string plain_text = 15;- Parameters:
value- The plainText to set.- Returns:
- This builder for chaining.
-
clearPlainText
public Document.Builder clearPlainText()
Other document format, such as PPTX, XLXS
string plain_text = 15;- Returns:
- This builder for chaining.
-
setPlainTextBytes
public Document.Builder setPlainTextBytes(com.google.protobuf.ByteString value)
Other document format, such as PPTX, XLXS
string plain_text = 15;- Parameters:
value- The bytes for plainText to set.- Returns:
- This builder for chaining.
-
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.
-
setCloudAiDocument
public Document.Builder setCloudAiDocument(com.google.cloud.documentai.v1.Document value)
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
-
setCloudAiDocument
public Document.Builder setCloudAiDocument(com.google.cloud.documentai.v1.Document.Builder builderForValue)
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
-
mergeCloudAiDocument
public Document.Builder mergeCloudAiDocument(com.google.cloud.documentai.v1.Document value)
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
-
clearCloudAiDocument
public Document.Builder clearCloudAiDocument()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
-
getCloudAiDocumentBuilder
public com.google.cloud.documentai.v1.Document.Builder getCloudAiDocumentBuilder()
Document AI format to save the structured content, including OCR.
.google.cloud.documentai.v1.Document cloud_ai_document = 4;
-
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.
-
setStructuredContentUri
@Deprecated public Document.Builder setStructuredContentUri(String value)
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];- Parameters:
value- The structuredContentUri to set.- Returns:
- This builder for chaining.
-
clearStructuredContentUri
@Deprecated public Document.Builder clearStructuredContentUri()
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];- Returns:
- This builder for chaining.
-
setStructuredContentUriBytes
@Deprecated public Document.Builder setStructuredContentUriBytes(com.google.protobuf.ByteString value)
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];- Parameters:
value- The bytes for structuredContentUri to set.- Returns:
- This builder for chaining.
-
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.
-
setRawDocumentPath
public Document.Builder setRawDocumentPath(String value)
Raw document file in Cloud Storage path.
string raw_document_path = 5;- Parameters:
value- The rawDocumentPath to set.- Returns:
- This builder for chaining.
-
clearRawDocumentPath
public Document.Builder clearRawDocumentPath()
Raw document file in Cloud Storage path.
string raw_document_path = 5;- Returns:
- This builder for chaining.
-
setRawDocumentPathBytes
public Document.Builder setRawDocumentPathBytes(com.google.protobuf.ByteString value)
Raw document file in Cloud Storage path.
string raw_document_path = 5;- Parameters:
value- The bytes for rawDocumentPath to set.- Returns:
- This builder for chaining.
-
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.
-
setInlineRawDocument
public Document.Builder setInlineRawDocument(com.google.protobuf.ByteString value)
Raw document content.
bytes inline_raw_document = 6;- Parameters:
value- The inlineRawDocument to set.- Returns:
- This builder for chaining.
-
clearInlineRawDocument
public Document.Builder clearInlineRawDocument()
Raw document content.
bytes inline_raw_document = 6;- Returns:
- This builder for chaining.
-
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
-
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
-
setProperties
public Document.Builder setProperties(int index, Property value)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
setProperties
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;
-
addProperties
public Document.Builder addProperties(Property value)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
addProperties
public Document.Builder addProperties(int index, Property value)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
addProperties
public Document.Builder addProperties(Property.Builder builderForValue)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
addProperties
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;
-
addAllProperties
public Document.Builder addAllProperties(Iterable<? extends Property> values)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
clearProperties
public Document.Builder clearProperties()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
removeProperties
public Document.Builder removeProperties(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
getPropertiesBuilder
public Property.Builder getPropertiesBuilder(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
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
-
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
-
addPropertiesBuilder
public Property.Builder addPropertiesBuilder()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
addPropertiesBuilder
public Property.Builder addPropertiesBuilder(int index)
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
getPropertiesBuilderList
public List<Property.Builder> getPropertiesBuilderList()
List of values that are user supplied metadata.
repeated .google.cloud.contentwarehouse.v1.Property properties = 7;
-
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.
-
setUpdateTime
public Document.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public Document.Builder setUpdateTime(com.google.protobuf.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];
-
mergeUpdateTime
public Document.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The time when the document is last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getUpdateTimeBuilder
public com.google.protobuf.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];
-
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.
-
setCreateTime
public Document.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Document.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Document.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the document is created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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.
-
setRawDocumentFileTypeValue
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;- Parameters:
value- The enum numeric value on the wire for rawDocumentFileType to set.- Returns:
- This builder for chaining.
-
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.
-
setRawDocumentFileType
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;- Parameters:
value- The rawDocumentFileType to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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.
-
setAsyncEnabled
@Deprecated public Document.Builder setAsyncEnabled(boolean value)
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];- Parameters:
value- The asyncEnabled to set.- Returns:
- This builder for chaining.
-
clearAsyncEnabled
@Deprecated public Document.Builder clearAsyncEnabled()
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];- Returns:
- This builder for chaining.
-
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.
-
setContentCategoryValue
public Document.Builder setContentCategoryValue(int value)
Indicates the category (image, audio, video etc.) of the original content.
.google.cloud.contentwarehouse.v1.ContentCategory content_category = 20;- Parameters:
value- The enum numeric value on the wire for contentCategory to set.- Returns:
- This builder for chaining.
-
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.
-
setContentCategory
public Document.Builder setContentCategory(ContentCategory value)
Indicates the category (image, audio, video etc.) of the original content.
.google.cloud.contentwarehouse.v1.ContentCategory content_category = 20;- Parameters:
value- The contentCategory to set.- Returns:
- This builder for chaining.
-
clearContentCategory
public Document.Builder clearContentCategory()
Indicates the category (image, audio, video etc.) of the original content.
.google.cloud.contentwarehouse.v1.ContentCategory content_category = 20;- Returns:
- This builder for chaining.
-
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.
-
setTextExtractionDisabled
@Deprecated public Document.Builder setTextExtractionDisabled(boolean value)
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];- Parameters:
value- The textExtractionDisabled to set.- Returns:
- This builder for chaining.
-
clearTextExtractionDisabled
@Deprecated public Document.Builder clearTextExtractionDisabled()
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];- Returns:
- This builder for chaining.
-
getTextExtractionEnabled
public boolean getTextExtractionEnabled()
If true, text extraction will be performed.
bool text_extraction_enabled = 21;- Specified by:
getTextExtractionEnabledin interfaceDocumentOrBuilder- Returns:
- The textExtractionEnabled.
-
setTextExtractionEnabled
public Document.Builder setTextExtractionEnabled(boolean value)
If true, text extraction will be performed.
bool text_extraction_enabled = 21;- Parameters:
value- The textExtractionEnabled to set.- Returns:
- This builder for chaining.
-
clearTextExtractionEnabled
public Document.Builder clearTextExtractionEnabled()
If true, text extraction will be performed.
bool text_extraction_enabled = 21;- Returns:
- This builder for chaining.
-
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.
-
setCreator
public Document.Builder setCreator(String value)
The user who creates the document.
string creator = 13;- Parameters:
value- The creator to set.- Returns:
- This builder for chaining.
-
clearCreator
public Document.Builder clearCreator()
The user who creates the document.
string creator = 13;- Returns:
- This builder for chaining.
-
setCreatorBytes
public Document.Builder setCreatorBytes(com.google.protobuf.ByteString value)
The user who creates the document.
string creator = 13;- Parameters:
value- The bytes for creator to set.- Returns:
- This builder for chaining.
-
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.
-
setUpdater
public Document.Builder setUpdater(String value)
The user who lastly updates the document.
string updater = 14;- Parameters:
value- The updater to set.- Returns:
- This builder for chaining.
-
clearUpdater
public Document.Builder clearUpdater()
The user who lastly updates the document.
string updater = 14;- Returns:
- This builder for chaining.
-
setUpdaterBytes
public Document.Builder setUpdaterBytes(com.google.protobuf.ByteString value)
The user who lastly updates the document.
string updater = 14;- Parameters:
value- The bytes for updater to set.- Returns:
- This builder for chaining.
-
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.
-
setDispositionTime
public Document.Builder setDispositionTime(com.google.protobuf.Timestamp value)
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];
-
setDispositionTime
public Document.Builder setDispositionTime(com.google.protobuf.Timestamp.Builder builderForValue)
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];
-
mergeDispositionTime
public Document.Builder mergeDispositionTime(com.google.protobuf.Timestamp value)
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];
-
clearDispositionTime
public Document.Builder clearDispositionTime()
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];
-
getDispositionTimeBuilder
public com.google.protobuf.Timestamp.Builder getDispositionTimeBuilder()
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];
-
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.
-
setLegalHold
public Document.Builder setLegalHold(boolean value)
Output only. Indicates if the document has a legal hold on it.
bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The legalHold to set.- Returns:
- This builder for chaining.
-
clearLegalHold
public Document.Builder clearLegalHold()
Output only. Indicates if the document has a legal hold on it.
bool legal_hold = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final Document.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
mergeUnknownFields
public final Document.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Document.Builder>
-
-