public static final class AssistantSessionArtifact.Builder extends GeneratedMessage.Builder<AssistantSessionArtifact.Builder> implements AssistantSessionArtifactOrBuilderA document artifact generated by the assistant within a session, stored as a file in the customer's Cloud Storage bucket.
Protobuf type google.cloud.ces.v1beta.AssistantSessionArtifact
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AssistantSessionArtifact.BuilderImplements
AssistantSessionArtifactOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AssistantSessionArtifact build()| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact |
|
buildPartial()
public AssistantSessionArtifact buildPartial()| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact |
|
clear()
public AssistantSessionArtifact.Builder clear()| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
clearCreateTime()
public AssistantSessionArtifact.Builder clearCreateTime()Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
clearDisplayName()
public AssistantSessionArtifact.Builder clearDisplayName()Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
clearGcsUri()
public AssistantSessionArtifact.Builder clearGcsUri()Output only. The Cloud Storage object holding the artifact content. Example: "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
clearId()
public AssistantSessionArtifact.Builder clearId()Output only. The unique identifier of the artifact within the session.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
clearMimeType()
public AssistantSessionArtifact.Builder clearMimeType()Output only. The IANA media type of the artifact content, e.g. "text/markdown".
string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
clearTurnIndex()
public AssistantSessionArtifact.Builder clearTurnIndex()Output only. Index of the message in [AssistantSession.messages] whose turn produced the artifact, for placing the artifact chip when history is restored.
int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
getCreateTime()
public Timestamp getCreateTime()Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public AssistantSessionArtifact getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getGcsUri()
public String getGcsUri()Output only. The Cloud Storage object holding the artifact content. Example: "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The gcsUri. |
getGcsUriBytes()
public ByteString getGcsUriBytes()Output only. The Cloud Storage object holding the artifact content. Example: "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcsUri. |
getId()
public String getId()Output only. The unique identifier of the artifact within the session.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()Output only. The unique identifier of the artifact within the session.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
getMimeType()
public String getMimeType()Output only. The IANA media type of the artifact content, e.g. "text/markdown".
string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()Output only. The IANA media type of the artifact content, e.g. "text/markdown".
string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mimeType. |
getTurnIndex()
public int getTurnIndex()Output only. Index of the message in [AssistantSession.messages] whose turn produced the artifact, for placing the artifact chip when history is restored.
int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The turnIndex. |
hasCreateTime()
public boolean hasCreateTime()Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public AssistantSessionArtifact.Builder mergeCreateTime(Timestamp value)Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
mergeFrom(AssistantSessionArtifact other)
public AssistantSessionArtifact.Builder mergeFrom(AssistantSessionArtifact other)| Parameter | |
|---|---|
| Name | Description |
other |
AssistantSessionArtifact |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AssistantSessionArtifact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AssistantSessionArtifact.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
setCreateTime(Timestamp value)
public AssistantSessionArtifact.Builder setCreateTime(Timestamp value)Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public AssistantSessionArtifact.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. When the artifact was persisted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
|
setDisplayName(String value)
public AssistantSessionArtifact.Builder setDisplayName(String value)Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public AssistantSessionArtifact.Builder setDisplayNameBytes(ByteString value)Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setGcsUri(String value)
public AssistantSessionArtifact.Builder setGcsUri(String value)Output only. The Cloud Storage object holding the artifact content. Example: "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gcsUri to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setGcsUriBytes(ByteString value)
public AssistantSessionArtifact.Builder setGcsUriBytes(ByteString value)Output only. The Cloud Storage object holding the artifact content. Example: "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gcsUri to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setId(String value)
public AssistantSessionArtifact.Builder setId(String value)Output only. The unique identifier of the artifact within the session.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public AssistantSessionArtifact.Builder setIdBytes(ByteString value)Output only. The unique identifier of the artifact within the session.
string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setMimeType(String value)
public AssistantSessionArtifact.Builder setMimeType(String value)Output only. The IANA media type of the artifact content, e.g. "text/markdown".
string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public AssistantSessionArtifact.Builder setMimeTypeBytes(ByteString value)Output only. The IANA media type of the artifact content, e.g. "text/markdown".
string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |
setTurnIndex(int value)
public AssistantSessionArtifact.Builder setTurnIndex(int value)Output only. Index of the message in [AssistantSession.messages] whose turn produced the artifact, for placing the artifact chip when history is restored.
int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe turnIndex to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantSessionArtifact.Builder |
This builder for chaining. |