Class StreamAssistRequest.AgentsSpec.AgentSpec.Builder (0.95.0)

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

Specification of an agent.

Protobuf type google.cloud.discoveryengine.v1beta.StreamAssistRequest.AgentsSpec.AgentSpec

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearAgentId()

public StreamAssistRequest.AgentsSpec.AgentSpec.Builder clearAgentId()

Required. ID to identify the agent resource serving the request.

This field must conform to RFC-1034 with a length limit of 63 characters.

string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpec.Builder

This builder for chaining.

getAgentId()

public String getAgentId()

Required. ID to identify the agent resource serving the request.

This field must conform to RFC-1034 with a length limit of 63 characters.

string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The agentId.

getAgentIdBytes()

public ByteString getAgentIdBytes()

Required. ID to identify the agent resource serving the request.

This field must conform to RFC-1034 with a length limit of 63 characters.

string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for agentId.

getDefaultInstanceForType()

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

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.AgentSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAgentId(String value)

public StreamAssistRequest.AgentsSpec.AgentSpec.Builder setAgentId(String value)

Required. ID to identify the agent resource serving the request.

This field must conform to RFC-1034 with a length limit of 63 characters.

string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The agentId to set.

Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpec.Builder

This builder for chaining.

setAgentIdBytes(ByteString value)

public StreamAssistRequest.AgentsSpec.AgentSpec.Builder setAgentIdBytes(ByteString value)

Required. ID to identify the agent resource serving the request.

This field must conform to RFC-1034 with a length limit of 63 characters.

string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for agentId to set.

Returns
Type Description
StreamAssistRequest.AgentsSpec.AgentSpec.Builder

This builder for chaining.