Class RemoteAgentTool (0.9.0)

public final class RemoteAgentTool extends GeneratedMessage implements RemoteAgentToolOrBuilder

Represents a tool that allows the agent to call another remote agent.

Protobuf type google.cloud.ces.v1beta.RemoteAgentTool

Static Fields

AGENT_CARD_FIELD_NUMBER

public static final int AGENT_CARD_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RemoteAgentTool getDefaultInstance()
Returns
Type Description
RemoteAgentTool

getDescriptor()

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

newBuilder()

public static RemoteAgentTool.Builder newBuilder()
Returns
Type Description
RemoteAgentTool.Builder

newBuilder(RemoteAgentTool prototype)

public static RemoteAgentTool.Builder newBuilder(RemoteAgentTool prototype)
Parameter
Name Description
prototype RemoteAgentTool
Returns
Type Description
RemoteAgentTool.Builder

parseDelimitedFrom(InputStream input)

public static RemoteAgentTool parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoteAgentTool parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RemoteAgentTool parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RemoteAgentTool parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RemoteAgentTool parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RemoteAgentTool parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RemoteAgentTool parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoteAgentTool parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RemoteAgentTool parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoteAgentTool parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RemoteAgentTool parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RemoteAgentTool parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoteAgentTool
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RemoteAgentTool> parser()
Returns
Type Description
Parser<RemoteAgentTool>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAgentCard()

public AgentCard getAgentCard()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1beta.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AgentCard

The agentCard.

getAgentCardOrBuilder()

public AgentCardOrBuilder getAgentCardOrBuilder()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1beta.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AgentCardOrBuilder

getDefaultInstanceForType()

public RemoteAgentTool getDefaultInstanceForType()
Returns
Type Description
RemoteAgentTool

getDescription()

public String getDescription()

Required. The description of the tool.

string description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Required. The description of the tool.

string description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for description.

getName()

public String getName()

Required. The name of the tool.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the tool.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<RemoteAgentTool> getParserForType()
Returns
Type Description
Parser<RemoteAgentTool>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAgentCard()

public boolean hasAgentCard()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1beta.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the agentCard field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RemoteAgentTool.Builder newBuilderForType()
Returns
Type Description
RemoteAgentTool.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RemoteAgentTool.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RemoteAgentTool.Builder
Overrides

toBuilder()

public RemoteAgentTool.Builder toBuilder()
Returns
Type Description
RemoteAgentTool.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException