Class Agent.Protocol.Builder (0.2.0)

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

Represents the protocol of an Agent.

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

Static Methods

getDescriptor()

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

Methods

addAllInterfaces(Iterable<? extends Interface> values)

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

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
values Iterable<? extends com.google.cloud.agentregistry.v1.Interface>
Returns
Type Description
Agent.Protocol.Builder

addInterfaces(Interface value)

public Agent.Protocol.Builder addInterfaces(Interface value)

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
value Interface
Returns
Type Description
Agent.Protocol.Builder

addInterfaces(Interface.Builder builderForValue)

public Agent.Protocol.Builder addInterfaces(Interface.Builder builderForValue)

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
builderForValue Interface.Builder
Returns
Type Description
Agent.Protocol.Builder

addInterfaces(int index, Interface value)

public Agent.Protocol.Builder addInterfaces(int index, Interface value)

Output only. The connection details for the Agent.

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

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

addInterfaces(int index, Interface.Builder builderForValue)

public Agent.Protocol.Builder addInterfaces(int index, Interface.Builder builderForValue)

Output only. The connection details for the Agent.

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

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

addInterfacesBuilder()

public Interface.Builder addInterfacesBuilder()

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
Interface.Builder

addInterfacesBuilder(int index)

public Interface.Builder addInterfacesBuilder(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.Builder

build()

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

buildPartial()

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

clear()

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

clearInterfaces()

public Agent.Protocol.Builder clearInterfaces()

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
Agent.Protocol.Builder

clearProtocolVersion()

public Agent.Protocol.Builder clearProtocolVersion()

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
Agent.Protocol.Builder

This builder for chaining.

clearType()

public Agent.Protocol.Builder clearType()

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.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

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

getInterfacesBuilder(int index)

public Interface.Builder getInterfacesBuilder(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.Builder

getInterfacesBuilderList()

public List<Interface.Builder> getInterfacesBuilderList()

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<Builder>

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>

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Agent.Protocol other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeInterfaces(int index)

public Agent.Protocol.Builder removeInterfaces(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
Agent.Protocol.Builder

setInterfaces(int index, Interface value)

public Agent.Protocol.Builder setInterfaces(int index, Interface value)

Output only. The connection details for the Agent.

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

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

setInterfaces(int index, Interface.Builder builderForValue)

public Agent.Protocol.Builder setInterfaces(int index, Interface.Builder builderForValue)

Output only. The connection details for the Agent.

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

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

setProtocolVersion(String value)

public Agent.Protocol.Builder setProtocolVersion(String value)

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

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

Parameter
Name Description
value String

The protocolVersion to set.

Returns
Type Description
Agent.Protocol.Builder

This builder for chaining.

setProtocolVersionBytes(ByteString value)

public Agent.Protocol.Builder setProtocolVersionBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for protocolVersion to set.

Returns
Type Description
Agent.Protocol.Builder

This builder for chaining.

setType(Agent.Protocol.Type value)

public Agent.Protocol.Builder setType(Agent.Protocol.Type value)

Output only. The type of the protocol.

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

Parameter
Name Description
value Agent.Protocol.Type

The type to set.

Returns
Type Description
Agent.Protocol.Builder

This builder for chaining.

setTypeValue(int value)

public Agent.Protocol.Builder setTypeValue(int value)

Output only. The type of the protocol.

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

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Agent.Protocol.Builder

This builder for chaining.