Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::ArtifactChunk.
A streamed fragment of a document artifact (e.g. a markdown TDD) that the assistant is generating. Content deltas stream while the document is being written so clients can render a live preview; the FINALIZED chunk carries the GCS URI once the file has been persisted.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#artifact_id
def artifact_id() -> ::String
Returns
- (::String) — Identifier of the artifact, stable across all chunks of one artifact within the stream.
#artifact_id=
def artifact_id=(value) -> ::String
Parameter
- value (::String) — Identifier of the artifact, stable across all chunks of one artifact within the stream.
Returns
- (::String) — Identifier of the artifact, stable across all chunks of one artifact within the stream.
#content_delta
def content_delta() -> ::String
Returns
- (::String) — Incremental artifact content. Set on DELTA chunks.
#content_delta=
def content_delta=(value) -> ::String
Parameter
- value (::String) — Incremental artifact content. Set on DELTA chunks.
Returns
- (::String) — Incremental artifact content. Set on DELTA chunks.
#display_name
def display_name() -> ::String
Returns
- (::String) — The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on STARTED (and repeated on FINALIZED).
#display_name=
def display_name=(value) -> ::String
Parameter
- value (::String) — The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on STARTED (and repeated on FINALIZED).
Returns
- (::String) — The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on STARTED (and repeated on FINALIZED).
#gcs_uri
def gcs_uri() -> ::String
Returns
- (::String) — The GCS object the artifact was persisted to. Set on FINALIZED chunks.
#gcs_uri=
def gcs_uri=(value) -> ::String
Parameter
- value (::String) — The GCS object the artifact was persisted to. Set on FINALIZED chunks.
Returns
- (::String) — The GCS object the artifact was persisted to. Set on FINALIZED chunks.
#mime_type
def mime_type() -> ::String
Returns
- (::String) — The IANA media type of the artifact content, e.g. "text/markdown".
#mime_type=
def mime_type=(value) -> ::String
Parameter
- value (::String) — The IANA media type of the artifact content, e.g. "text/markdown".
Returns
- (::String) — The IANA media type of the artifact content, e.g. "text/markdown".
#state
def state() -> ::Google::Cloud::Ces::V1beta::ArtifactChunk::State
Returns
- (::Google::Cloud::Ces::V1beta::ArtifactChunk::State) — Lifecycle position of this chunk.
#state=
def state=(value) -> ::Google::Cloud::Ces::V1beta::ArtifactChunk::State
Parameter
- value (::Google::Cloud::Ces::V1beta::ArtifactChunk::State) — Lifecycle position of this chunk.
Returns
- (::Google::Cloud::Ces::V1beta::ArtifactChunk::State) — Lifecycle position of this chunk.