Class ToolCallEvents.Builder (4.105.0)

public static final class ToolCallEvents.Builder extends GeneratedMessage.Builder<ToolCallEvents.Builder> implements ToolCallEventsOrBuilder

Represents events containing tool call execution progress.

Protobuf type google.cloud.dialogflow.v2.ToolCallEvents

Static Methods

getDescriptor()

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

Methods

addAllToolCallSuggestions(Iterable<? extends ToolCallSuggestion> values)

public ToolCallEvents.Builder addAllToolCallSuggestions(Iterable<? extends ToolCallSuggestion> values)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.ToolCallSuggestion>
Returns
Type Description
ToolCallEvents.Builder

addToolCallSuggestions(ToolCallSuggestion value)

public ToolCallEvents.Builder addToolCallSuggestions(ToolCallSuggestion value)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ToolCallSuggestion
Returns
Type Description
ToolCallEvents.Builder

addToolCallSuggestions(ToolCallSuggestion.Builder builderForValue)

public ToolCallEvents.Builder addToolCallSuggestions(ToolCallSuggestion.Builder builderForValue)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ToolCallSuggestion.Builder
Returns
Type Description
ToolCallEvents.Builder

addToolCallSuggestions(int index, ToolCallSuggestion value)

public ToolCallEvents.Builder addToolCallSuggestions(int index, ToolCallSuggestion value)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ToolCallSuggestion
Returns
Type Description
ToolCallEvents.Builder

addToolCallSuggestions(int index, ToolCallSuggestion.Builder builderForValue)

public ToolCallEvents.Builder addToolCallSuggestions(int index, ToolCallSuggestion.Builder builderForValue)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ToolCallSuggestion.Builder
Returns
Type Description
ToolCallEvents.Builder

addToolCallSuggestionsBuilder()

public ToolCallSuggestion.Builder addToolCallSuggestionsBuilder()

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolCallSuggestion.Builder

addToolCallSuggestionsBuilder(int index)

public ToolCallSuggestion.Builder addToolCallSuggestionsBuilder(int index)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallSuggestion.Builder

build()

public ToolCallEvents build()
Returns
Type Description
ToolCallEvents

buildPartial()

public ToolCallEvents buildPartial()
Returns
Type Description
ToolCallEvents

clear()

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

clearToolCallSuggestions()

public ToolCallEvents.Builder clearToolCallSuggestions()

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolCallEvents.Builder

getDefaultInstanceForType()

public ToolCallEvents getDefaultInstanceForType()
Returns
Type Description
ToolCallEvents

getDescriptorForType()

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

getToolCallSuggestions(int index)

public ToolCallSuggestion getToolCallSuggestions(int index)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallSuggestion

getToolCallSuggestionsBuilder(int index)

public ToolCallSuggestion.Builder getToolCallSuggestionsBuilder(int index)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallSuggestion.Builder

getToolCallSuggestionsBuilderList()

public List<ToolCallSuggestion.Builder> getToolCallSuggestionsBuilderList()

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getToolCallSuggestionsCount()

public int getToolCallSuggestionsCount()

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getToolCallSuggestionsList()

public List<ToolCallSuggestion> getToolCallSuggestionsList()

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ToolCallSuggestion>

getToolCallSuggestionsOrBuilder(int index)

public ToolCallSuggestionOrBuilder getToolCallSuggestionsOrBuilder(int index)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallSuggestionOrBuilder

getToolCallSuggestionsOrBuilderList()

public List<? extends ToolCallSuggestionOrBuilder> getToolCallSuggestionsOrBuilderList()

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.ToolCallSuggestionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolCallEvents other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeToolCallSuggestions(int index)

public ToolCallEvents.Builder removeToolCallSuggestions(int index)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolCallEvents.Builder

setToolCallSuggestions(int index, ToolCallSuggestion value)

public ToolCallEvents.Builder setToolCallSuggestions(int index, ToolCallSuggestion value)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ToolCallSuggestion
Returns
Type Description
ToolCallEvents.Builder

setToolCallSuggestions(int index, ToolCallSuggestion.Builder builderForValue)

public ToolCallEvents.Builder setToolCallSuggestions(int index, ToolCallSuggestion.Builder builderForValue)

Optional. Tool call suggestions associated with these events.

repeated .google.cloud.dialogflow.v2.ToolCallSuggestion tool_call_suggestions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ToolCallSuggestion.Builder
Returns
Type Description
ToolCallEvents.Builder