public static final class AgentCard.Builder extends GeneratedMessage.Builder<AgentCard.Builder> implements AgentCardOrBuilderAgentCard 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AgentCard.BuilderImplements
AgentCardOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSkills(Iterable<? extends AgentSkill> values)
public AgentCard.Builder addAllSkills(Iterable<? extends AgentSkill> values)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 |
values |
Iterable<? extends com.google.cloud.ces.v1beta.AgentSkill> |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addAllSupportedInterfaces(Iterable<? extends AgentInterface> values)
public AgentCard.Builder addAllSupportedInterfaces(Iterable<? extends AgentInterface> values)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 |
values |
Iterable<? extends com.google.cloud.ces.v1beta.AgentInterface> |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSkills(AgentSkill value)
public AgentCard.Builder addSkills(AgentSkill value)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 |
value |
AgentSkill |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSkills(AgentSkill.Builder builderForValue)
public AgentCard.Builder addSkills(AgentSkill.Builder builderForValue)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 |
builderForValue |
AgentSkill.Builder |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSkills(int index, AgentSkill value)
public AgentCard.Builder addSkills(int index, AgentSkill value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AgentSkill |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSkills(int index, AgentSkill.Builder builderForValue)
public AgentCard.Builder addSkills(int index, AgentSkill.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AgentSkill.Builder |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSkillsBuilder()
public AgentSkill.Builder addSkillsBuilder()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 |
AgentSkill.Builder |
|
addSkillsBuilder(int index)
public AgentSkill.Builder addSkillsBuilder(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.Builder |
|
addSupportedInterfaces(AgentInterface value)
public AgentCard.Builder addSupportedInterfaces(AgentInterface value)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 |
value |
AgentInterface |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSupportedInterfaces(AgentInterface.Builder builderForValue)
public AgentCard.Builder addSupportedInterfaces(AgentInterface.Builder builderForValue)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 |
builderForValue |
AgentInterface.Builder |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSupportedInterfaces(int index, AgentInterface value)
public AgentCard.Builder addSupportedInterfaces(int index, AgentInterface value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AgentInterface |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSupportedInterfaces(int index, AgentInterface.Builder builderForValue)
public AgentCard.Builder addSupportedInterfaces(int index, AgentInterface.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AgentInterface.Builder |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
addSupportedInterfacesBuilder()
public AgentInterface.Builder addSupportedInterfacesBuilder()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 |
AgentInterface.Builder |
|
addSupportedInterfacesBuilder(int index)
public AgentInterface.Builder addSupportedInterfacesBuilder(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.Builder |
|
build()
public AgentCard build()| Returns | |
|---|---|
| Type | Description |
AgentCard |
|
buildPartial()
public AgentCard buildPartial()| Returns | |
|---|---|
| Type | Description |
AgentCard |
|
clear()
public AgentCard.Builder clear()| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
clearDescription()
public AgentCard.Builder clearDescription()Required. A description of the agent's domain of action/solution space.
string description = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
clearName()
public AgentCard.Builder clearName()Required. A human-readable name for the agent.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
clearSkills()
public AgentCard.Builder clearSkills()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 |
AgentCard.Builder |
|
clearSupportedInterfaces()
public AgentCard.Builder clearSupportedInterfaces()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 |
AgentCard.Builder |
|
clearVersion()
public AgentCard.Builder clearVersion()Required. The version of the agent.
string version = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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 |
|
getSkillsBuilder(int index)
public AgentSkill.Builder getSkillsBuilder(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.Builder |
|
getSkillsBuilderList()
public List<AgentSkill.Builder> getSkillsBuilderList()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<Builder> |
|
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 |
|
getSupportedInterfacesBuilder(int index)
public AgentInterface.Builder getSupportedInterfacesBuilder(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.Builder |
|
getSupportedInterfacesBuilderList()
public List<AgentInterface.Builder> getSupportedInterfacesBuilderList()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<Builder> |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AgentCard other)
public AgentCard.Builder mergeFrom(AgentCard other)| Parameter | |
|---|---|
| Name | Description |
other |
AgentCard |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AgentCard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AgentCard.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
removeSkills(int index)
public AgentCard.Builder removeSkills(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 |
AgentCard.Builder |
|
removeSupportedInterfaces(int index)
public AgentCard.Builder removeSupportedInterfaces(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 |
AgentCard.Builder |
|
setDescription(String value)
public AgentCard.Builder setDescription(String value)Required. A description of the agent's domain of action/solution space.
string description = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public AgentCard.Builder setDescriptionBytes(ByteString value)Required. A description of the agent's domain of action/solution space.
string description = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
setName(String value)
public AgentCard.Builder setName(String value)Required. A human-readable name for the agent.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AgentCard.Builder setNameBytes(ByteString value)Required. A human-readable name for the agent.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
setSkills(int index, AgentSkill value)
public AgentCard.Builder setSkills(int index, AgentSkill value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AgentSkill |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
setSkills(int index, AgentSkill.Builder builderForValue)
public AgentCard.Builder setSkills(int index, AgentSkill.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AgentSkill.Builder |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
setSupportedInterfaces(int index, AgentInterface value)
public AgentCard.Builder setSupportedInterfaces(int index, AgentInterface value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AgentInterface |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
setSupportedInterfaces(int index, AgentInterface.Builder builderForValue)
public AgentCard.Builder setSupportedInterfaces(int index, AgentInterface.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AgentInterface.Builder |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
|
setVersion(String value)
public AgentCard.Builder setVersion(String value)Required. The version of the agent.
string version = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe version to set. |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |
setVersionBytes(ByteString value)
public AgentCard.Builder setVersionBytes(ByteString value)Required. The version of the agent.
string version = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for version to set. |
| Returns | |
|---|---|
| Type | Description |
AgentCard.Builder |
This builder for chaining. |