Class Document.Builder
- Enclosing class:
- Document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Documentbuild()Clears the value of createTime field.Clears the value of customMetadata field.Clears the value of displayName field.Clears the value of mimeType field.Clears the value of name field.Clears the value of sizeBytes field.Clears the value of state field.Clears the value of updateTime field.abstract Document.BuildercreateTime(Instant createTime) Setter for createTime.customMetadata(CustomMetadata... customMetadata) Setter for customMetadata.customMetadata(CustomMetadata.Builder... customMetadataBuilders) Setter for customMetadata builder.abstract Document.BuildercustomMetadata(List<CustomMetadata> customMetadata) Setter for customMetadata.abstract Document.BuilderdisplayName(String displayName) Setter for displayName.abstract Document.BuilderSetter for mimeType.abstract Document.BuilderSetter for name.abstract Document.BuilderSetter for sizeBytes.abstract Document.Builderstate(DocumentState state) Setter for state.state(DocumentState.Known knownType) Setter for state given a known enum.Setter for state given a string.abstract Document.BuilderupdateTime(Instant updateTime) Setter for updateTime.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Setter for name.name: The resource name of the Document. Example: fileSearchStores/file-search-store-foo/documents/documents-bar
-
clearName
Clears the value of name field. -
displayName
Setter for displayName.displayName: The human-readable display name for the Document.
-
clearDisplayName
Clears the value of displayName field. -
state
Setter for state.state: The current state of the Document.
-
clearState
Clears the value of state field. -
state
Setter for state given a known enum.state: The current state of the Document.
-
state
Setter for state given a string.state: The current state of the Document.
-
sizeBytes
Setter for sizeBytes.sizeBytes: The size of the Document in bytes.
-
clearSizeBytes
Clears the value of sizeBytes field. -
mimeType
Setter for mimeType.mimeType: The MIME type of the Document.
-
clearMimeType
Clears the value of mimeType field. -
createTime
Setter for createTime.createTime: Output only. The Timestamp of when the `Document` was created.
-
clearCreateTime
Clears the value of createTime field. -
customMetadata
Setter for customMetadata.customMetadata: Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.
-
customMetadata
Setter for customMetadata.customMetadata: Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.
-
customMetadata
@CanIgnoreReturnValue public Document.Builder customMetadata(CustomMetadata.Builder... customMetadataBuilders) Setter for customMetadata builder.customMetadata: Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.
-
clearCustomMetadata
Clears the value of customMetadata field. -
updateTime
Setter for updateTime.updateTime: Output only. The Timestamp of when the `Document` was last updated.
-
clearUpdateTime
Clears the value of updateTime field. -
build
-