Class StreamAssistRequest.AgentsSpec.Builder (0.95.0)

public static final class StreamAssistRequest.AgentsSpec.Builder extends GeneratedMessage.Builder<StreamAssistRequest.AgentsSpec.Builder> implements StreamAssistRequest.AgentsSpecOrBuilder

Specification of agents that are used to serve the request.

Protobuf type google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec

Static Methods

getDescriptor()

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

Methods

addAgentSpecs(StreamAssistRequest.AgentsSpec.AgentSpec value)

public StreamAssistRequest.AgentsSpec.Builder addAgentSpecs(StreamAssistRequest.AgentsSpec.AgentSpec value)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StreamAssistRequest.AgentsSpec.AgentSpec
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

addAgentSpecs(StreamAssistRequest.AgentsSpec.AgentSpec.Builder builderForValue)

public StreamAssistRequest.AgentsSpec.Builder addAgentSpecs(StreamAssistRequest.AgentsSpec.AgentSpec.Builder builderForValue)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue StreamAssistRequest.AgentsSpec.AgentSpec.Builder
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

addAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec value)

public StreamAssistRequest.AgentsSpec.Builder addAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec value)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value StreamAssistRequest.AgentsSpec.AgentSpec
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

addAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec.Builder builderForValue)

public StreamAssistRequest.AgentsSpec.Builder addAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec.Builder builderForValue)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue StreamAssistRequest.AgentsSpec.AgentSpec.Builder
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

addAgentSpecsBuilder()

public StreamAssistRequest.AgentsSpec.AgentSpec.Builder addAgentSpecsBuilder()

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpec.Builder

addAgentSpecsBuilder(int index)

public StreamAssistRequest.AgentsSpec.AgentSpec.Builder addAgentSpecsBuilder(int index)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpec.Builder

addAllAgentSpecs(Iterable<? extends StreamAssistRequest.AgentsSpec.AgentSpec> values)

public StreamAssistRequest.AgentsSpec.Builder addAllAgentSpecs(Iterable<? extends StreamAssistRequest.AgentsSpec.AgentSpec> values)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec>
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

build()

public StreamAssistRequest.AgentsSpec build()
Returns
Type Description
StreamAssistRequest.AgentsSpec

buildPartial()

public StreamAssistRequest.AgentsSpec buildPartial()
Returns
Type Description
StreamAssistRequest.AgentsSpec

clear()

public StreamAssistRequest.AgentsSpec.Builder clear()
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder
Overrides

clearAgentSpecs()

public StreamAssistRequest.AgentsSpec.Builder clearAgentSpecs()

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

getAgentSpecs(int index)

public StreamAssistRequest.AgentsSpec.AgentSpec getAgentSpecs(int index)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpec

getAgentSpecsBuilder(int index)

public StreamAssistRequest.AgentsSpec.AgentSpec.Builder getAgentSpecsBuilder(int index)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpec.Builder

getAgentSpecsBuilderList()

public List<StreamAssistRequest.AgentsSpec.AgentSpec.Builder> getAgentSpecsBuilderList()

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAgentSpecsCount()

public int getAgentSpecsCount()

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAgentSpecsList()

public List<StreamAssistRequest.AgentsSpec.AgentSpec> getAgentSpecsList()

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AgentSpec>

getAgentSpecsOrBuilder(int index)

public StreamAssistRequest.AgentsSpec.AgentSpecOrBuilder getAgentSpecsOrBuilder(int index)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpecOrBuilder

getAgentSpecsOrBuilderList()

public List<? extends StreamAssistRequest.AgentsSpec.AgentSpecOrBuilder> getAgentSpecsOrBuilderList()

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpecOrBuilder>

getDefaultInstanceForType()

public StreamAssistRequest.AgentsSpec getDefaultInstanceForType()
Returns
Type Description
StreamAssistRequest.AgentsSpec

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamAssistRequest.AgentsSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAgentSpecs(int index)

public StreamAssistRequest.AgentsSpec.Builder removeAgentSpecs(int index)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

setAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec value)

public StreamAssistRequest.AgentsSpec.Builder setAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec value)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value StreamAssistRequest.AgentsSpec.AgentSpec
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder

setAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec.Builder builderForValue)

public StreamAssistRequest.AgentsSpec.Builder setAgentSpecs(int index, StreamAssistRequest.AgentsSpec.AgentSpec.Builder builderForValue)

Optional. Specification of agents that are used to serve the request.

repeated .google.cloud.discoveryengine.v1.StreamAssistRequest.AgentsSpec.AgentSpec agent_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue StreamAssistRequest.AgentsSpec.AgentSpec.Builder
Returns
Type Description
StreamAssistRequest.AgentsSpec.Builder