Class Chunk (0.1.0)

public final class Chunk extends GeneratedMessage implements ChunkOrBuilder

A chunk of content within a message.

Protobuf type google.cloud.ces.v1.Chunk

Implements

ChunkOrBuilder

Static Fields

AGENT_TRANSFER_FIELD_NUMBER

public static final int AGENT_TRANSFER_FIELD_NUMBER
Field Value
Type Description
int

DEFAULT_VARIABLES_FIELD_NUMBER

public static final int DEFAULT_VARIABLES_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_FIELD_NUMBER

public static final int IMAGE_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

TOOL_CALL_FIELD_NUMBER

public static final int TOOL_CALL_FIELD_NUMBER
Field Value
Type Description
int

TOOL_RESPONSE_FIELD_NUMBER

public static final int TOOL_RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

TRANSCRIPT_FIELD_NUMBER

public static final int TRANSCRIPT_FIELD_NUMBER
Field Value
Type Description
int

UPDATED_VARIABLES_FIELD_NUMBER

public static final int UPDATED_VARIABLES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Chunk getDefaultInstance()
Returns
Type Description
Chunk

getDescriptor()

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

newBuilder()

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

newBuilder(Chunk prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAgentTransfer()

public AgentTransfer getAgentTransfer()

Optional. Agent transfer event.

.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentTransfer

The agentTransfer.

getAgentTransferOrBuilder()

public AgentTransferOrBuilder getAgentTransferOrBuilder()

Optional. Agent transfer event.

.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentTransferOrBuilder

getDataCase()

public Chunk.DataCase getDataCase()
Returns
Type Description
Chunk.DataCase

getDefaultInstanceForType()

public Chunk getDefaultInstanceForType()
Returns
Type Description
Chunk

getDefaultVariables()

public Struct getDefaultVariables()

A struct represents default variables at the start of the conversation, keyed by variable names.

.google.protobuf.Struct default_variables = 10;

Returns
Type Description
Struct

The defaultVariables.

getDefaultVariablesOrBuilder()

public StructOrBuilder getDefaultVariablesOrBuilder()

A struct represents default variables at the start of the conversation, keyed by variable names.

.google.protobuf.Struct default_variables = 10;

Returns
Type Description
StructOrBuilder

getImage()

public Image getImage()

Optional. Image data.

.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Image

The image.

getImageOrBuilder()

public ImageOrBuilder getImageOrBuilder()

Optional. Image data.

.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageOrBuilder

getParserForType()

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

getPayload()

public Struct getPayload()

Optional. Custom payload data.

.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The payload.

getPayloadOrBuilder()

public StructOrBuilder getPayloadOrBuilder()

Optional. Custom payload data.

.google.protobuf.Struct payload = 11 [(.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.

getToolCall()

public ToolCall getToolCall()

Optional. Tool execution request.

.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolCall

The toolCall.

getToolCallOrBuilder()

public ToolCallOrBuilder getToolCallOrBuilder()

Optional. Tool execution request.

.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolCallOrBuilder

getToolResponse()

public ToolResponse getToolResponse()

Optional. Tool execution response.

.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolResponse

The toolResponse.

getToolResponseOrBuilder()

public ToolResponseOrBuilder getToolResponseOrBuilder()

Optional. Tool execution response.

.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolResponseOrBuilder

getTranscript()

public String getTranscript()

Optional. Transcript associated with the audio.

string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The transcript.

getTranscriptBytes()

public ByteString getTranscriptBytes()

Optional. Transcript associated with the audio.

string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for transcript.

getUpdatedVariables()

public Struct getUpdatedVariables()

A struct represents variables that were updated in the conversation, keyed by variable names.

.google.protobuf.Struct updated_variables = 8;

Returns
Type Description
Struct

The updatedVariables.

getUpdatedVariablesOrBuilder()

public StructOrBuilder getUpdatedVariablesOrBuilder()

A struct represents variables that were updated in the conversation, keyed by variable names.

.google.protobuf.Struct updated_variables = 8;

Returns
Type Description
StructOrBuilder

hasAgentTransfer()

public boolean hasAgentTransfer()

Optional. Agent transfer event.

.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the agentTransfer field is set.

hasDefaultVariables()

public boolean hasDefaultVariables()

A struct represents default variables at the start of the conversation, keyed by variable names.

.google.protobuf.Struct default_variables = 10;

Returns
Type Description
boolean

Whether the defaultVariables field is set.

hasImage()

public boolean hasImage()

Optional. Image data.

.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the image field is set.

hasPayload()

public boolean hasPayload()

Optional. Custom payload data.

.google.protobuf.Struct payload = 11 [(.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.

hasToolCall()

public boolean hasToolCall()

Optional. Tool execution request.

.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the toolCall field is set.

hasToolResponse()

public boolean hasToolResponse()

Optional. Tool execution response.

.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the toolResponse field is set.

hasTranscript()

public boolean hasTranscript()

Optional. Transcript associated with the audio.

string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the transcript field is set.

hasUpdatedVariables()

public boolean hasUpdatedVariables()

A struct represents variables that were updated in the conversation, keyed by variable names.

.google.protobuf.Struct updated_variables = 8;

Returns
Type Description
boolean

Whether the updatedVariables 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 Chunk.Builder newBuilderForType()
Returns
Type Description
Chunk.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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