Class Agent.Builder (0.2.0)

public static final class Agent.Builder extends GeneratedMessage.Builder<Agent.Builder> implements AgentOrBuilder

Represents an Agent. "A2A" below refers to the Agent-to-Agent protocol.

Protobuf type google.cloud.agentregistry.v1.Agent

Implements

AgentOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllProtocols(Iterable<? extends Agent.Protocol> values)

public Agent.Builder addAllProtocols(Iterable<? extends Agent.Protocol> values)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.agentregistry.v1.Agent.Protocol>
Returns
Type Description
Agent.Builder

addAllSkills(Iterable<? extends Agent.Skill> values)

public Agent.Builder addAllSkills(Iterable<? extends Agent.Skill> values)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.agentregistry.v1.Agent.Skill>
Returns
Type Description
Agent.Builder

addProtocols(Agent.Protocol value)

public Agent.Builder addProtocols(Agent.Protocol value)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Agent.Protocol
Returns
Type Description
Agent.Builder

addProtocols(Agent.Protocol.Builder builderForValue)

public Agent.Builder addProtocols(Agent.Protocol.Builder builderForValue)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Agent.Protocol.Builder
Returns
Type Description
Agent.Builder

addProtocols(int index, Agent.Protocol value)

public Agent.Builder addProtocols(int index, Agent.Protocol value)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Agent.Protocol
Returns
Type Description
Agent.Builder

addProtocols(int index, Agent.Protocol.Builder builderForValue)

public Agent.Builder addProtocols(int index, Agent.Protocol.Builder builderForValue)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Agent.Protocol.Builder
Returns
Type Description
Agent.Builder

addProtocolsBuilder()

public Agent.Protocol.Builder addProtocolsBuilder()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Protocol.Builder

addProtocolsBuilder(int index)

public Agent.Protocol.Builder addProtocolsBuilder(int index)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Protocol.Builder

addSkills(Agent.Skill value)

public Agent.Builder addSkills(Agent.Skill value)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Agent.Skill
Returns
Type Description
Agent.Builder

addSkills(Agent.Skill.Builder builderForValue)

public Agent.Builder addSkills(Agent.Skill.Builder builderForValue)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Agent.Skill.Builder
Returns
Type Description
Agent.Builder

addSkills(int index, Agent.Skill value)

public Agent.Builder addSkills(int index, Agent.Skill value)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Agent.Skill
Returns
Type Description
Agent.Builder

addSkills(int index, Agent.Skill.Builder builderForValue)

public Agent.Builder addSkills(int index, Agent.Skill.Builder builderForValue)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Agent.Skill.Builder
Returns
Type Description
Agent.Builder

addSkillsBuilder()

public Agent.Skill.Builder addSkillsBuilder()

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Skill.Builder

addSkillsBuilder(int index)

public Agent.Skill.Builder addSkillsBuilder(int index)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Skill.Builder

build()

public Agent build()
Returns
Type Description
Agent

buildPartial()

public Agent buildPartial()
Returns
Type Description
Agent

clear()

public Agent.Builder clear()
Returns
Type Description
Agent.Builder
Overrides

clearAgentId()

public Agent.Builder clearAgentId()

Output only. A stable, globally unique identifier for agents.

string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

This builder for chaining.

clearAttributes()

public Agent.Builder clearAttributes()
Returns
Type Description
Agent.Builder

clearCard()

public Agent.Builder clearCard()

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

clearCreateTime()

public Agent.Builder clearCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

clearDescription()

public Agent.Builder clearDescription()

Output only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

This builder for chaining.

clearDisplayName()

public Agent.Builder clearDisplayName()

Output only. The display name of the agent, often obtained from the A2A Agent Card.

string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

This builder for chaining.

clearLocation()

public Agent.Builder clearLocation()

Output only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).

string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

This builder for chaining.

clearName()

public Agent.Builder clearName()

Identifier. The resource name of an Agent. Format: projects/{project}/locations/{location}/agents/{agent}.

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

Returns
Type Description
Agent.Builder

This builder for chaining.

clearProtocols()

public Agent.Builder clearProtocols()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

clearSkills()

public Agent.Builder clearSkills()

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

clearUid()

public Agent.Builder clearUid()

Output only. A universally unique identifier for the Agent.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
Agent.Builder

This builder for chaining.

clearUpdateTime()

public Agent.Builder clearUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

clearVersion()

public Agent.Builder clearVersion()

Output only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Builder

This builder for chaining.

containsAttributes(String key)

public boolean containsAttributes(String key)

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAgentId()

public String getAgentId()

Output only. A stable, globally unique identifier for agents.

string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The agentId.

getAgentIdBytes()

public ByteString getAgentIdBytes()

Output only. A stable, globally unique identifier for agents.

string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for agentId.

getAttributes() (deprecated)

public Map<String,Struct> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,Struct>

getAttributesCount()

public int getAttributesCount()

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAttributesMap()

public Map<String,Struct> getAttributesMap()

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,Struct>

getAttributesOrDefault(String key, Struct defaultValue)

public Struct getAttributesOrDefault(String key, Struct defaultValue)

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue Struct
Returns
Type Description
Struct

getAttributesOrThrow(String key)

public Struct getAttributesOrThrow(String key)

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Struct

getCard()

public Agent.Card getCard()

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Card

The card.

getCardBuilder()

public Agent.Card.Builder getCardBuilder()

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Card.Builder

getCardOrBuilder()

public Agent.CardOrBuilder getCardOrBuilder()

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.CardOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Agent getDefaultInstanceForType()
Returns
Type Description
Agent

getDescription()

public String getDescription()

Output only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The display name of the agent, often obtained from the A2A Agent Card.

string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the agent, often obtained from the A2A Agent Card.

string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getLocation()

public String getLocation()

Output only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).

string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).

string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for location.

getMutableAttributes() (deprecated)

public Map<String,Struct> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Struct>

getName()

public String getName()

Identifier. The resource name of an Agent. Format: projects/{project}/locations/{location}/agents/{agent}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of an Agent. Format: projects/{project}/locations/{location}/agents/{agent}.

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

Returns
Type Description
ByteString

The bytes for name.

getProtocols(int index)

public Agent.Protocol getProtocols(int index)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Protocol

getProtocolsBuilder(int index)

public Agent.Protocol.Builder getProtocolsBuilder(int index)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Protocol.Builder

getProtocolsBuilderList()

public List<Agent.Protocol.Builder> getProtocolsBuilderList()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getProtocolsCount()

public int getProtocolsCount()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getProtocolsList()

public List<Agent.Protocol> getProtocolsList()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Protocol>

getProtocolsOrBuilder(int index)

public Agent.ProtocolOrBuilder getProtocolsOrBuilder(int index)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.ProtocolOrBuilder

getProtocolsOrBuilderList()

public List<? extends Agent.ProtocolOrBuilder> getProtocolsOrBuilderList()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder>

getSkills(int index)

public Agent.Skill getSkills(int index)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Skill

getSkillsBuilder(int index)

public Agent.Skill.Builder getSkillsBuilder(int index)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Skill.Builder

getSkillsBuilderList()

public List<Agent.Skill.Builder> getSkillsBuilderList()

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getSkillsCount()

public int getSkillsCount()

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getSkillsList()

public List<Agent.Skill> getSkillsList()

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Skill>

getSkillsOrBuilder(int index)

public Agent.SkillOrBuilder getSkillsOrBuilder(int index)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.SkillOrBuilder

getSkillsOrBuilderList()

public List<? extends Agent.SkillOrBuilder> getSkillsOrBuilderList()

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder>

getUid()

public String getUid()

Output only. A universally unique identifier for the Agent.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A universally unique identifier for the Agent.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVersion()

public String getVersion()

Output only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Output only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for version.

hasCard()

public boolean hasCard()

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the card field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCard(Agent.Card value)

public Agent.Builder mergeCard(Agent.Card value)

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Agent.Card
Returns
Type Description
Agent.Builder

mergeCreateTime(Timestamp value)

public Agent.Builder mergeCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Agent.Builder

mergeFrom(Agent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public Agent.Builder mergeUpdateTime(Timestamp value)

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Agent.Builder

putAllAttributes(Map<String,Struct> values)

public Agent.Builder putAllAttributes(Map<String,Struct> values)

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,Struct>
Returns
Type Description
Agent.Builder

putAttributes(String key, Struct value)

public Agent.Builder putAttributes(String key, Struct value)

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value Struct
Returns
Type Description
Agent.Builder

putAttributesBuilderIfAbsent(String key)

public Struct.Builder putAttributesBuilderIfAbsent(String key)

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Builder

removeAttributes(String key)

public Agent.Builder removeAttributes(String key)

Output only. Attributes of the Agent. Valid values:

  • agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom".
  • agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent.
  • agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."}
  • the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.

map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Agent.Builder

removeProtocols(int index)

public Agent.Builder removeProtocols(int index)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Builder

removeSkills(int index)

public Agent.Builder removeSkills(int index)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Agent.Builder

setAgentId(String value)

public Agent.Builder setAgentId(String value)

Output only. A stable, globally unique identifier for agents.

string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The agentId to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setAgentIdBytes(ByteString value)

public Agent.Builder setAgentIdBytes(ByteString value)

Output only. A stable, globally unique identifier for agents.

string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for agentId to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setCard(Agent.Card value)

public Agent.Builder setCard(Agent.Card value)

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Agent.Card
Returns
Type Description
Agent.Builder

setCard(Agent.Card.Builder builderForValue)

public Agent.Builder setCard(Agent.Card.Builder builderForValue)

Output only. Full Agent Card payload, when available.

.google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Agent.Card.Builder
Returns
Type Description
Agent.Builder

setCreateTime(Timestamp value)

public Agent.Builder setCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Agent.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Agent.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Agent.Builder

setDescription(String value)

public Agent.Builder setDescription(String value)

Output only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Agent.Builder setDescriptionBytes(ByteString value)

Output only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setDisplayName(String value)

public Agent.Builder setDisplayName(String value)

Output only. The display name of the agent, often obtained from the A2A Agent Card.

string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Agent.Builder setDisplayNameBytes(ByteString value)

Output only. The display name of the agent, often obtained from the A2A Agent Card.

string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setLocation(String value)

public Agent.Builder setLocation(String value)

Output only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).

string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public Agent.Builder setLocationBytes(ByteString value)

Output only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).

string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setName(String value)

public Agent.Builder setName(String value)

Identifier. The resource name of an Agent. Format: projects/{project}/locations/{location}/agents/{agent}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Agent.Builder setNameBytes(ByteString value)

Identifier. The resource name of an Agent. Format: projects/{project}/locations/{location}/agents/{agent}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setProtocols(int index, Agent.Protocol value)

public Agent.Builder setProtocols(int index, Agent.Protocol value)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Agent.Protocol
Returns
Type Description
Agent.Builder

setProtocols(int index, Agent.Protocol.Builder builderForValue)

public Agent.Builder setProtocols(int index, Agent.Protocol.Builder builderForValue)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Agent.Protocol.Builder
Returns
Type Description
Agent.Builder

setSkills(int index, Agent.Skill value)

public Agent.Builder setSkills(int index, Agent.Skill value)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Agent.Skill
Returns
Type Description
Agent.Builder

setSkills(int index, Agent.Skill.Builder builderForValue)

public Agent.Builder setSkills(int index, Agent.Skill.Builder builderForValue)

Output only. Skills the agent possesses, often obtained from the A2A Agent Card.

repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Agent.Skill.Builder
Returns
Type Description
Agent.Builder

setUid(String value)

public Agent.Builder setUid(String value)

Output only. A universally unique identifier for the Agent.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Agent.Builder setUidBytes(ByteString value)

Output only. A universally unique identifier for the Agent.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Agent.Builder setUpdateTime(Timestamp value)

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Agent.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Agent.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Agent.Builder

setVersion(String value)

public Agent.Builder setVersion(String value)

Output only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Agent.Builder setVersionBytes(ByteString value)

Output only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Agent.Builder

This builder for chaining.