Class Agent.AgentToolset.Builder (0.1.0)

public static final class Agent.AgentToolset.Builder extends GeneratedMessage.Builder<Agent.AgentToolset.Builder> implements Agent.AgentToolsetOrBuilder

A toolset with a selection of its tools.

Protobuf type google.cloud.ces.v1.Agent.AgentToolset

Static Methods

getDescriptor()

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

Methods

addAllToolIds(Iterable<String> values)

public Agent.AgentToolset.Builder addAllToolIds(Iterable<String> values)

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The toolIds to add.

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.

addToolIds(String value)

public Agent.AgentToolset.Builder addToolIds(String value)

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The toolIds to add.

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.

addToolIdsBytes(ByteString value)

public Agent.AgentToolset.Builder addToolIdsBytes(ByteString value)

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the toolIds to add.

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.

build()

public Agent.AgentToolset build()
Returns
Type Description
Agent.AgentToolset

buildPartial()

public Agent.AgentToolset buildPartial()
Returns
Type Description
Agent.AgentToolset

clear()

public Agent.AgentToolset.Builder clear()
Returns
Type Description
Agent.AgentToolset.Builder
Overrides

clearToolIds()

public Agent.AgentToolset.Builder clearToolIds()

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.

clearToolset()

public Agent.AgentToolset.Builder clearToolset()

Required. The resource name of the toolset. Format: projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}

string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.

getDefaultInstanceForType()

public Agent.AgentToolset getDefaultInstanceForType()
Returns
Type Description
Agent.AgentToolset

getDescriptorForType()

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

getToolIds(int index)

public String getToolIds(int index)

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The toolIds at the given index.

getToolIdsBytes(int index)

public ByteString getToolIdsBytes(int index)

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the toolIds at the given index.

getToolIdsCount()

public int getToolIdsCount()

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of toolIds.

getToolIdsList()

public ProtocolStringList getToolIdsList()

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the toolIds.

getToolset()

public String getToolset()

Required. The resource name of the toolset. Format: projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}

string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The toolset.

getToolsetBytes()

public ByteString getToolsetBytes()

Required. The resource name of the toolset. Format: projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}

string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for toolset.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Agent.AgentToolset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setToolIds(int index, String value)

public Agent.AgentToolset.Builder setToolIds(int index, String value)

Optional. The tools IDs to filter the toolset.

repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The toolIds to set.

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.

setToolset(String value)

public Agent.AgentToolset.Builder setToolset(String value)

Required. The resource name of the toolset. Format: projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}

string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The toolset to set.

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.

setToolsetBytes(ByteString value)

public Agent.AgentToolset.Builder setToolsetBytes(ByteString value)

Required. The resource name of the toolset. Format: projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}

string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for toolset to set.

Returns
Type Description
Agent.AgentToolset.Builder

This builder for chaining.