Class Document.Builder
-
- All Implemented Interfaces:
public abstract class Document.BuilderBuilder for Document.
-
-
Constructor Summary
Constructors Constructor Description Document.Builder()
-
Method Summary
Modifier and Type Method Description abstract Document.Buildername(String name)Setter for name. Document.BuilderclearName()Clears the value of name field. abstract Document.BuilderdisplayName(String displayName)Setter for displayName. Document.BuilderclearDisplayName()Clears the value of displayName field. abstract Document.Builderstate(DocumentState state)Setter for state. Document.BuilderclearState()Clears the value of state field. Document.Builderstate(DocumentState.Known knownType)Setter for state given a known enum. Document.Builderstate(String state)Setter for state given a string. abstract Document.BuildersizeBytes(Long sizeBytes)Setter for sizeBytes. Document.BuilderclearSizeBytes()Clears the value of sizeBytes field. abstract Document.BuildermimeType(String mimeType)Setter for mimeType. Document.BuilderclearMimeType()Clears the value of mimeType field. abstract Document.BuildercreateTime(Instant createTime)Setter for createTime. Document.BuilderclearCreateTime()Clears the value of createTime field. abstract Document.BuildercustomMetadata(List<CustomMetadata> customMetadata)Setter for customMetadata. Document.BuildercustomMetadata(Array<CustomMetadata> customMetadata)Setter for customMetadata. Document.BuildercustomMetadata(Array<CustomMetadata.Builder> customMetadataBuilders)Setter for customMetadata builder. Document.BuilderclearCustomMetadata()Clears the value of customMetadata field. abstract Document.BuilderupdateTime(Instant updateTime)Setter for updateTime. Document.BuilderclearUpdateTime()Clears the value of updateTime field. abstract Documentbuild()-
-
Method Detail
-
name
abstract Document.Builder name(String 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
@CanIgnoreReturnValue() Document.Builder clearName()
Clears the value of name field.
-
displayName
abstract Document.Builder displayName(String 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
@CanIgnoreReturnValue() Document.Builder clearDisplayName()
Clears the value of displayName field.
-
state
abstract Document.Builder state(DocumentState state)
Setter for state.
state: Output only. Current state of the `Document`.
-
clearState
@CanIgnoreReturnValue() Document.Builder clearState()
Clears the value of state field.
-
state
@CanIgnoreReturnValue() Document.Builder state(DocumentState.Known knownType)
Setter for state given a known enum.
state: Output only. Current state of the `Document`.
-
state
@CanIgnoreReturnValue() Document.Builder state(String state)
Setter for state given a string.
state: Output only. Current state of the `Document`.
-
sizeBytes
abstract Document.Builder sizeBytes(Long sizeBytes)
Setter for sizeBytes.
sizeBytes: Output only. The size of raw bytes ingested into the Document.
-
clearSizeBytes
@CanIgnoreReturnValue() Document.Builder clearSizeBytes()
Clears the value of sizeBytes field.
-
mimeType
abstract Document.Builder mimeType(String mimeType)
Setter for mimeType.
mimeType: Output only. The mime type of the Document.
-
clearMimeType
@CanIgnoreReturnValue() Document.Builder clearMimeType()
Clears the value of mimeType field.
-
createTime
abstract Document.Builder createTime(Instant createTime)
Setter for createTime.
createTime: Output only. The Timestamp of when the `Document` was created.
-
clearCreateTime
@CanIgnoreReturnValue() Document.Builder clearCreateTime()
Clears the value of createTime field.
-
customMetadata
abstract Document.Builder customMetadata(List<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() Document.Builder customMetadata(Array<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() Document.Builder customMetadata(Array<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
@CanIgnoreReturnValue() Document.Builder clearCustomMetadata()
Clears the value of customMetadata field.
-
updateTime
abstract Document.Builder updateTime(Instant updateTime)
Setter for updateTime.
updateTime: Output only. The Timestamp of when the `Document` was last updated.
-
clearUpdateTime
@CanIgnoreReturnValue() Document.Builder clearUpdateTime()
Clears the value of updateTime field.
-
-
-
-