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: Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`
-
clearName
Clears the value of name field. -
displayName
Setter for displayName.displayName: Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation".
-
clearDisplayName
Clears the value of displayName field. -
state
Setter for state.state: Output only. Current state of the `Document`.
-
clearState
Clears the value of state field. -
state
Setter for state given a known enum.state: Output only. Current state of the `Document`.
-
state
Setter for state given a string.state: Output only. Current state of the `Document`.
-
sizeBytes
Setter for sizeBytes.sizeBytes: Output only. The size of raw bytes ingested into the Document.
-
clearSizeBytes
Clears the value of sizeBytes field. -
mimeType
Setter for mimeType.mimeType: Output only. 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
-