public final class Agent extends GeneratedMessage implements AgentOrBuilder
Represents an Agent.
"A2A" below refers to the Agent-to-Agent protocol.
Protobuf type google.cloud.agentregistry.v1.Agent
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AGENT_ID_FIELD_NUMBER
public static final int AGENT_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CARD_FIELD_NUMBER
public static final int CARD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PROTOCOLS_FIELD_NUMBER
public static final int PROTOCOLS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SKILLS_FIELD_NUMBER
public static final int SKILLS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_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 Agent getDefaultInstance()
| Returns |
| Type |
Description |
Agent |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Agent.Builder newBuilder()
newBuilder(Agent prototype)
public static Agent.Builder newBuilder(Agent prototype)
| Parameter |
| Name |
Description |
prototype |
Agent
|
public static Agent parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Agent |
|
public static Agent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Agent |
|
parseFrom(byte[] data)
public static Agent parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Agent |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Agent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Agent |
|
parseFrom(ByteString data)
public static Agent parseFrom(ByteString data)
| Returns |
| Type |
Description |
Agent |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Agent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Agent |
|
public static Agent parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Agent |
|
public static Agent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Agent |
|
public static Agent parseFrom(InputStream input)
| Returns |
| Type |
Description |
Agent |
|
public static Agent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Agent |
|
parseFrom(ByteBuffer data)
public static Agent parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Agent |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Agent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Agent |
|
parser()
public static Parser<Agent> parser()
Methods
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
|
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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()
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];
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];
| 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];
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];
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.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.
|
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.
|
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.
|
getParserForType()
public Parser<Agent> getParserForType()
Overrides
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
|
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];
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
|
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> |
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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
|
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];
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
|
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()
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.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
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()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
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.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Agent.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Agent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Agent.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides