public static final class AssistantChunk.Builder extends GeneratedMessage.Builder<AssistantChunk.Builder> implements AssistantChunkOrBuilderA chunk of data in an assistant message.
Protobuf type google.cloud.ces.v1beta.AssistantChunk
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AssistantChunk.BuilderImplements
AssistantChunkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AssistantChunk build()| Returns | |
|---|---|
| Type | Description |
AssistantChunk |
|
buildPartial()
public AssistantChunk buildPartial()| Returns | |
|---|---|
| Type | Description |
AssistantChunk |
|
clear()
public AssistantChunk.Builder clear()| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
clearCreateTime()
public AssistantChunk.Builder clearCreateTime()Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
clearData()
public AssistantChunk.Builder clearData()| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
clearPayload()
public AssistantChunk.Builder clearPayload()Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
clearText()
public AssistantChunk.Builder clearText()Optional. Text data.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
This builder for chaining. |
clearThought()
public AssistantChunk.Builder clearThought()Optional. Thought generated by the model.
string thought = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
This builder for chaining. |
clearTypedPayload()
public AssistantChunk.Builder clearTypedPayload()Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
getCreateTime()
public Timestamp getCreateTime()Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDataCase()
public AssistantChunk.DataCase getDataCase()| Returns | |
|---|---|
| Type | Description |
AssistantChunk.DataCase |
|
getDefaultInstanceForType()
public AssistantChunk getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AssistantChunk |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPayload()
public Struct getPayload()Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The payload. |
getPayloadBuilder()
public Struct.Builder getPayloadBuilder()Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPayloadOrBuilder()
public StructOrBuilder getPayloadOrBuilder()Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getText()
public String getText()Optional. Text data.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()Optional. Text data.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
getThought()
public String getThought()Optional. Thought generated by the model.
string thought = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The thought. |
getThoughtBytes()
public ByteString getThoughtBytes()Optional. Thought generated by the model.
string thought = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for thought. |
getTypedPayload()
public TypedPayload getTypedPayload()Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TypedPayload |
The typedPayload. |
getTypedPayloadBuilder()
public TypedPayload.Builder getTypedPayloadBuilder()Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TypedPayload.Builder |
|
getTypedPayloadOrBuilder()
public TypedPayloadOrBuilder getTypedPayloadOrBuilder()Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TypedPayloadOrBuilder |
|
hasCreateTime()
public boolean hasCreateTime()Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasPayload()
public boolean hasPayload()Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the payload field is set. |
hasText()
public boolean hasText()Optional. Text data.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the text field is set. |
hasThought()
public boolean hasThought()Optional. Thought generated by the model.
string thought = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the thought field is set. |
hasTypedPayload()
public boolean hasTypedPayload()Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the typedPayload 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 AssistantChunk.Builder mergeCreateTime(Timestamp value)Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
mergeFrom(AssistantChunk other)
public AssistantChunk.Builder mergeFrom(AssistantChunk other)| Parameter | |
|---|---|
| Name | Description |
other |
AssistantChunk |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AssistantChunk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AssistantChunk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
mergePayload(Struct value)
public AssistantChunk.Builder mergePayload(Struct value)Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
mergeTypedPayload(TypedPayload value)
public AssistantChunk.Builder mergeTypedPayload(TypedPayload value)Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TypedPayload |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
setCreateTime(Timestamp value)
public AssistantChunk.Builder setCreateTime(Timestamp value)Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public AssistantChunk.Builder setCreateTime(Timestamp.Builder builderForValue)Optional. Timestamp when the chunk was created or emitted.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
setPayload(Struct value)
public AssistantChunk.Builder setPayload(Struct value)Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
setPayload(Struct.Builder builderForValue)
public AssistantChunk.Builder setPayload(Struct.Builder builderForValue)Optional. Payload which contains structured responses like the quality report, agent version name, suggested responses etc.
.google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
setText(String value)
public AssistantChunk.Builder setText(String value)Optional. Text data.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public AssistantChunk.Builder setTextBytes(ByteString value)Optional. Text data.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
This builder for chaining. |
setThought(String value)
public AssistantChunk.Builder setThought(String value)Optional. Thought generated by the model.
string thought = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe thought to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
This builder for chaining. |
setThoughtBytes(ByteString value)
public AssistantChunk.Builder setThoughtBytes(ByteString value)Optional. Thought generated by the model.
string thought = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for thought to set. |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
This builder for chaining. |
setTypedPayload(TypedPayload value)
public AssistantChunk.Builder setTypedPayload(TypedPayload value)Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TypedPayload |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|
setTypedPayload(TypedPayload.Builder builderForValue)
public AssistantChunk.Builder setTypedPayload(TypedPayload.Builder builderForValue)Optional. Typed payload which contains structured responses.
.google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TypedPayload.Builder |
| Returns | |
|---|---|
| Type | Description |
AssistantChunk.Builder |
|