Class AgentCard (0.9.0)

public final class AgentCard extends GeneratedMessage implements AgentCardOrBuilder

AgentCard conveys key information about a remote agent. It is a trimmed version of the AgentCard defined in the A2A protocol https://a2a-protocol.org/dev/specification/#441-agentcard

Protobuf type google.cloud.ces.v1beta.AgentCard

Implements

AgentCardOrBuilder

Static Fields

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

SKILLS_FIELD_NUMBER

public static final int SKILLS_FIELD_NUMBER
Field Value
Type Description
int

SUPPORTED_INTERFACES_FIELD_NUMBER

public static final int SUPPORTED_INTERFACES_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AgentCard getDefaultInstance()
Returns
Type Description
AgentCard

getDescriptor()

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

newBuilder()

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

newBuilder(AgentCard prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AgentCard getDefaultInstanceForType()
Returns
Type Description
AgentCard

getDescription()

public String getDescription()

Required. A description of the agent's domain of action/solution space.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Required. A description of the agent's domain of action/solution space.

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

Returns
Type Description
ByteString

The bytes for description.

getName()

public String getName()

Required. A human-readable name for the agent.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A human-readable name for the agent.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSkills(int index)

public AgentSkill getSkills(int index)

Required. Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at.

repeated .google.cloud.ces.v1beta.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AgentSkill

getSkillsCount()

public int getSkillsCount()

Required. Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at.

repeated .google.cloud.ces.v1beta.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getSkillsList()

public List<AgentSkill> getSkillsList()

Required. Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at.

repeated .google.cloud.ces.v1beta.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<AgentSkill>

getSkillsOrBuilder(int index)

public AgentSkillOrBuilder getSkillsOrBuilder(int index)

Required. Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at.

repeated .google.cloud.ces.v1beta.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AgentSkillOrBuilder

getSkillsOrBuilderList()

public List<? extends AgentSkillOrBuilder> getSkillsOrBuilderList()

Required. Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at.

repeated .google.cloud.ces.v1beta.AgentSkill skills = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AgentSkillOrBuilder>

getSupportedInterfaces(int index)

public AgentInterface getSupportedInterfaces(int index)

Required. Ordered list of supported interfaces. The first entry is preferred.

repeated .google.cloud.ces.v1beta.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AgentInterface

getSupportedInterfacesCount()

public int getSupportedInterfacesCount()

Required. Ordered list of supported interfaces. The first entry is preferred.

repeated .google.cloud.ces.v1beta.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getSupportedInterfacesList()

public List<AgentInterface> getSupportedInterfacesList()

Required. Ordered list of supported interfaces. The first entry is preferred.

repeated .google.cloud.ces.v1beta.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<AgentInterface>

getSupportedInterfacesOrBuilder(int index)

public AgentInterfaceOrBuilder getSupportedInterfacesOrBuilder(int index)

Required. Ordered list of supported interfaces. The first entry is preferred.

repeated .google.cloud.ces.v1beta.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AgentInterfaceOrBuilder

getSupportedInterfacesOrBuilderList()

public List<? extends AgentInterfaceOrBuilder> getSupportedInterfacesOrBuilderList()

Required. Ordered list of supported interfaces. The first entry is preferred.

repeated .google.cloud.ces.v1beta.AgentInterface supported_interfaces = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AgentInterfaceOrBuilder>

getVersion()

public String getVersion()

Required. The version of the agent.

string version = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Required. The version of the agent.

string version = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for version.

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 AgentCard.Builder newBuilderForType()
Returns
Type Description
AgentCard.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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