Class AssistantChunk (0.19.0)

public final class AssistantChunk extends GeneratedMessage implements AssistantChunkOrBuilder

A chunk of data in an assistant message.

Protobuf type google.cloud.ces.v1beta.AssistantChunk

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

PAYLOAD_FIELD_NUMBER

public static final int PAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

THOUGHT_FIELD_NUMBER

public static final int THOUGHT_FIELD_NUMBER
Field Value
Type Description
int

TYPED_PAYLOAD_FIELD_NUMBER

public static final int TYPED_PAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AssistantChunk getDefaultInstance()
Returns
Type Description
AssistantChunk

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AssistantChunk.Builder newBuilder()
Returns
Type Description
AssistantChunk.Builder

newBuilder(AssistantChunk prototype)

public static AssistantChunk.Builder newBuilder(AssistantChunk prototype)
Parameter
Name Description
prototype AssistantChunk
Returns
Type Description
AssistantChunk.Builder

parseDelimitedFrom(InputStream input)

public static AssistantChunk parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssistantChunk
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistantChunk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantChunk
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AssistantChunk parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AssistantChunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssistantChunk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantChunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssistantChunk parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AssistantChunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssistantChunk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantChunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssistantChunk parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AssistantChunk
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistantChunk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantChunk
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AssistantChunk parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssistantChunk
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssistantChunk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantChunk
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AssistantChunk parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AssistantChunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssistantChunk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantChunk
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AssistantChunk> parser()
Returns
Type Description
Parser<AssistantChunk>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

getParserForType()

public Parser<AssistantChunk> getParserForType()
Returns
Type Description
Parser<AssistantChunk>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AssistantChunk.Builder newBuilderForType()
Returns
Type Description
AssistantChunk.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AssistantChunk.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AssistantChunk.Builder
Overrides

toBuilder()

public AssistantChunk.Builder toBuilder()
Returns
Type Description
AssistantChunk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException