public static final class Chunk.Builder extends GeneratedMessage.Builder<Chunk.Builder> implements ChunkOrBuilderA chunk of content within a message.
Protobuf type google.cloud.ces.v1.Chunk
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Chunk.BuilderImplements
ChunkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Chunk build()| Returns | |
|---|---|
| Type | Description |
Chunk |
|
buildPartial()
public Chunk buildPartial()| Returns | |
|---|---|
| Type | Description |
Chunk |
|
clear()
public Chunk.Builder clear()| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearAgentTransfer()
public Chunk.Builder clearAgentTransfer()Optional. Agent transfer event.
.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearData()
public Chunk.Builder clearData()| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearDefaultVariables()
public Chunk.Builder clearDefaultVariables()A struct represents default variables at the start of the conversation, keyed by variable names.
.google.protobuf.Struct default_variables = 10;
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearImage()
public Chunk.Builder clearImage()Optional. Image data.
.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearPayload()
public Chunk.Builder clearPayload()Optional. Custom payload data.
.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearText()
public Chunk.Builder clearText()Optional. Text data.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
This builder for chaining. |
clearToolCall()
public Chunk.Builder clearToolCall()Optional. Tool execution request.
.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearToolResponse()
public Chunk.Builder clearToolResponse()Optional. Tool execution response.
.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
clearTranscript()
public Chunk.Builder clearTranscript()Optional. Transcript associated with the audio.
string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
This builder for chaining. |
clearUpdatedVariables()
public Chunk.Builder clearUpdatedVariables()A struct represents variables that were updated in the conversation, keyed by variable names.
.google.protobuf.Struct updated_variables = 8;
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
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. |
getAgentTransferBuilder()
public AgentTransfer.Builder getAgentTransferBuilder()Optional. Agent transfer event.
.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AgentTransfer.Builder |
|
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. |
getDefaultVariablesBuilder()
public Struct.Builder getDefaultVariablesBuilder()A struct represents default variables at the start of the conversation, keyed by variable names.
.google.protobuf.Struct default_variables = 10;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getImageBuilder()
public Image.Builder getImageBuilder()Optional. Image data.
.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
getImageOrBuilder()
public ImageOrBuilder getImageOrBuilder()Optional. Image data.
.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ImageOrBuilder |
|
getPayload()
public Struct getPayload()Optional. Custom payload data.
.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The payload. |
getPayloadBuilder()
public Struct.Builder getPayloadBuilder()Optional. Custom payload data.
.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPayloadOrBuilder()
public StructOrBuilder getPayloadOrBuilder()Optional. Custom payload data.
.google.protobuf.Struct payload = 11 [(.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. |
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. |
getToolCallBuilder()
public ToolCall.Builder getToolCallBuilder()Optional. Tool execution request.
.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolCall.Builder |
|
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. |
getToolResponseBuilder()
public ToolResponse.Builder getToolResponseBuilder()Optional. Tool execution response.
.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolResponse.Builder |
|
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. |
getUpdatedVariablesBuilder()
public Struct.Builder getUpdatedVariablesBuilder()A struct represents variables that were updated in the conversation, keyed by variable names.
.google.protobuf.Struct updated_variables = 8;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAgentTransfer(AgentTransfer value)
public Chunk.Builder mergeAgentTransfer(AgentTransfer value)Optional. Agent transfer event.
.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AgentTransfer |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergeDefaultVariables(Struct value)
public Chunk.Builder mergeDefaultVariables(Struct value)A struct represents default variables at the start of the conversation, keyed by variable names.
.google.protobuf.Struct default_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergeFrom(Chunk other)
public Chunk.Builder mergeFrom(Chunk other)| Parameter | |
|---|---|
| Name | Description |
other |
Chunk |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Chunk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Chunk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergeImage(Image value)
public Chunk.Builder mergeImage(Image value)Optional. Image data.
.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Image |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergePayload(Struct value)
public Chunk.Builder mergePayload(Struct value)Optional. Custom payload data.
.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergeToolCall(ToolCall value)
public Chunk.Builder mergeToolCall(ToolCall value)Optional. Tool execution request.
.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ToolCall |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergeToolResponse(ToolResponse value)
public Chunk.Builder mergeToolResponse(ToolResponse value)Optional. Tool execution response.
.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ToolResponse |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
mergeUpdatedVariables(Struct value)
public Chunk.Builder mergeUpdatedVariables(Struct value)A struct represents variables that were updated in the conversation, keyed by variable names.
.google.protobuf.Struct updated_variables = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setAgentTransfer(AgentTransfer value)
public Chunk.Builder setAgentTransfer(AgentTransfer value)Optional. Agent transfer event.
.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AgentTransfer |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setAgentTransfer(AgentTransfer.Builder builderForValue)
public Chunk.Builder setAgentTransfer(AgentTransfer.Builder builderForValue)Optional. Agent transfer event.
.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AgentTransfer.Builder |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setDefaultVariables(Struct value)
public Chunk.Builder setDefaultVariables(Struct value)A struct represents default variables at the start of the conversation, keyed by variable names.
.google.protobuf.Struct default_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setDefaultVariables(Struct.Builder builderForValue)
public Chunk.Builder setDefaultVariables(Struct.Builder builderForValue)A struct represents default variables at the start of the conversation, keyed by variable names.
.google.protobuf.Struct default_variables = 10;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setImage(Image value)
public Chunk.Builder setImage(Image value)Optional. Image data.
.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Image |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setImage(Image.Builder builderForValue)
public Chunk.Builder setImage(Image.Builder builderForValue)Optional. Image data.
.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Image.Builder |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setPayload(Struct value)
public Chunk.Builder setPayload(Struct value)Optional. Custom payload data.
.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setPayload(Struct.Builder builderForValue)
public Chunk.Builder setPayload(Struct.Builder builderForValue)Optional. Custom payload data.
.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setText(String value)
public Chunk.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 |
Chunk.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public Chunk.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 |
Chunk.Builder |
This builder for chaining. |
setToolCall(ToolCall value)
public Chunk.Builder setToolCall(ToolCall value)Optional. Tool execution request.
.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ToolCall |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setToolCall(ToolCall.Builder builderForValue)
public Chunk.Builder setToolCall(ToolCall.Builder builderForValue)Optional. Tool execution request.
.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ToolCall.Builder |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setToolResponse(ToolResponse value)
public Chunk.Builder setToolResponse(ToolResponse value)Optional. Tool execution response.
.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ToolResponse |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setToolResponse(ToolResponse.Builder builderForValue)
public Chunk.Builder setToolResponse(ToolResponse.Builder builderForValue)Optional. Tool execution response.
.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ToolResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setTranscript(String value)
public Chunk.Builder setTranscript(String value)Optional. Transcript associated with the audio.
string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe transcript to set. |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
This builder for chaining. |
setTranscriptBytes(ByteString value)
public Chunk.Builder setTranscriptBytes(ByteString value)Optional. Transcript associated with the audio.
string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for transcript to set. |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
This builder for chaining. |
setUpdatedVariables(Struct value)
public Chunk.Builder setUpdatedVariables(Struct value)A struct represents variables that were updated in the conversation, keyed by variable names.
.google.protobuf.Struct updated_variables = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|
setUpdatedVariables(Struct.Builder builderForValue)
public Chunk.Builder setUpdatedVariables(Struct.Builder builderForValue)A struct represents variables that were updated in the conversation, keyed by variable names.
.google.protobuf.Struct updated_variables = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Chunk.Builder |
|