Class Agent.Protocol (0.2.0)

public static final class Agent.Protocol extends GeneratedMessage implements Agent.ProtocolOrBuilder

Represents the protocol of an Agent.

Protobuf type google.cloud.agentregistry.v1.Agent.Protocol

Static Fields

INTERFACES_FIELD_NUMBER

public static final int INTERFACES_FIELD_NUMBER
Field Value
Type Description
int

PROTOCOL_VERSION_FIELD_NUMBER

public static final int PROTOCOL_VERSION_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Agent.Protocol getDefaultInstance()
Returns
Type Description
Agent.Protocol

getDescriptor()

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

newBuilder()

public static Agent.Protocol.Builder newBuilder()
Returns
Type Description
Agent.Protocol.Builder

newBuilder(Agent.Protocol prototype)

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

parseDelimitedFrom(InputStream input)

public static Agent.Protocol parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Agent.Protocol
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Agent.Protocol parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Agent.Protocol
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Agent.Protocol parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Agent.Protocol
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Agent.Protocol parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Agent.Protocol
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Agent.Protocol parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Agent.Protocol
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Agent.Protocol> parser()
Returns
Type Description
Parser<Protocol>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Agent.Protocol getDefaultInstanceForType()
Returns
Type Description
Agent.Protocol

getInterfaces(int index)

public Interface getInterfaces(int index)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Interface

getInterfacesCount()

public int getInterfacesCount()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getInterfacesList()

public List<Interface> getInterfacesList()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Interface>

getInterfacesOrBuilder(int index)

public InterfaceOrBuilder getInterfacesOrBuilder(int index)

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
InterfaceOrBuilder

getInterfacesOrBuilderList()

public List<? extends InterfaceOrBuilder> getInterfacesOrBuilderList()

Output only. The connection details for the Agent.

repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getParserForType()

public Parser<Agent.Protocol> getParserForType()
Returns
Type Description
Parser<Protocol>
Overrides

getProtocolVersion()

public String getProtocolVersion()

Output only. The version of the protocol, for example, the A2A Agent Card version.

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

Returns
Type Description
String

The protocolVersion.

getProtocolVersionBytes()

public ByteString getProtocolVersionBytes()

Output only. The version of the protocol, for example, the A2A Agent Card version.

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

Returns
Type Description
ByteString

The bytes for protocolVersion.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public Agent.Protocol.Type getType()

Output only. The type of the protocol.

.google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Agent.Protocol.Type

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of the protocol.

.google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public Agent.Protocol.Builder toBuilder()
Returns
Type Description
Agent.Protocol.Builder

writeTo(CodedOutputStream output)

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