Class Document.Builder

  • All Implemented Interfaces:

    
    public abstract class Document.Builder
    
                        

    Builder for Document.

    • Constructor Detail

      • Document.Builder

        Document.Builder()
    • 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`

      • 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".

      • 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.

      • createTime

         abstract Document.Builder createTime(Instant createTime)

        Setter for createTime.

        createTime: Output only. The Timestamp of when the `Document` was created.

      • 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`.

      • updateTime

         abstract Document.Builder updateTime(Instant updateTime)

        Setter for updateTime.

        updateTime: Output only. The Timestamp of when the `Document` was last updated.