Class ToolCalls.Builder (0.1.0)

public static final class ToolCalls.Builder extends GeneratedMessage.Builder<ToolCalls.Builder> implements ToolCallsOrBuilder

Request for the client to execute the tools and return the execution results before continuing the session.

Protobuf type google.cloud.ces.v1.ToolCalls

Implements

ToolCallsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllToolCalls(Iterable<? extends ToolCall> values)

public ToolCalls.Builder addAllToolCalls(Iterable<? extends ToolCall> values)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1.ToolCall>
Returns
Type Description
ToolCalls.Builder

addToolCalls(ToolCall value)

public ToolCalls.Builder addToolCalls(ToolCall value)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ToolCall
Returns
Type Description
ToolCalls.Builder

addToolCalls(ToolCall.Builder builderForValue)

public ToolCalls.Builder addToolCalls(ToolCall.Builder builderForValue)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ToolCall.Builder
Returns
Type Description
ToolCalls.Builder

addToolCalls(int index, ToolCall value)

public ToolCalls.Builder addToolCalls(int index, ToolCall value)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ToolCall
Returns
Type Description
ToolCalls.Builder

addToolCalls(int index, ToolCall.Builder builderForValue)

public ToolCalls.Builder addToolCalls(int index, ToolCall.Builder builderForValue)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ToolCall.Builder
Returns
Type Description
ToolCalls.Builder

addToolCallsBuilder()

public ToolCall.Builder addToolCallsBuilder()

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolCall.Builder

addToolCallsBuilder(int index)

public ToolCall.Builder addToolCallsBuilder(int index)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCall.Builder

build()

public ToolCalls build()
Returns
Type Description
ToolCalls

buildPartial()

public ToolCalls buildPartial()
Returns
Type Description
ToolCalls

clear()

public ToolCalls.Builder clear()
Returns
Type Description
ToolCalls.Builder
Overrides

clearToolCalls()

public ToolCalls.Builder clearToolCalls()

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolCalls.Builder

getDefaultInstanceForType()

public ToolCalls getDefaultInstanceForType()
Returns
Type Description
ToolCalls

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getToolCalls(int index)

public ToolCall getToolCalls(int index)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCall

getToolCallsBuilder(int index)

public ToolCall.Builder getToolCallsBuilder(int index)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCall.Builder

getToolCallsBuilderList()

public List<ToolCall.Builder> getToolCallsBuilderList()

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getToolCallsCount()

public int getToolCallsCount()

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getToolCallsList()

public List<ToolCall> getToolCallsList()

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ToolCall>

getToolCallsOrBuilder(int index)

public ToolCallOrBuilder getToolCallsOrBuilder(int index)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallOrBuilder

getToolCallsOrBuilderList()

public List<? extends ToolCallOrBuilder> getToolCallsOrBuilderList()

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.ces.v1.ToolCallOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolCalls other)

public ToolCalls.Builder mergeFrom(ToolCalls other)
Parameter
Name Description
other ToolCalls
Returns
Type Description
ToolCalls.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ToolCalls.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolCalls.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ToolCalls.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ToolCalls.Builder
Overrides

removeToolCalls(int index)

public ToolCalls.Builder removeToolCalls(int index)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCalls.Builder

setToolCalls(int index, ToolCall value)

public ToolCalls.Builder setToolCalls(int index, ToolCall value)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ToolCall
Returns
Type Description
ToolCalls.Builder

setToolCalls(int index, ToolCall.Builder builderForValue)

public ToolCalls.Builder setToolCalls(int index, ToolCall.Builder builderForValue)

Optional. The list of tool calls to execute.

repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ToolCall.Builder
Returns
Type Description
ToolCalls.Builder