Class Interface.Builder (0.2.0)

public static final class Interface.Builder extends GeneratedMessage.Builder<Interface.Builder> implements InterfaceOrBuilder

Represents the connection details for an Agent or MCP Server.

Protobuf type google.cloud.agentregistry.v1.Interface

Implements

InterfaceOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Interface build()
Returns
Type Description
Interface

buildPartial()

public Interface buildPartial()
Returns
Type Description
Interface

clear()

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

clearProtocolBinding()

public Interface.Builder clearProtocolBinding()

Required. The protocol binding of the interface.

.google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Interface.Builder

This builder for chaining.

clearUrl()

public Interface.Builder clearUrl()

Required. The destination URL.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Interface.Builder

This builder for chaining.

getDefaultInstanceForType()

public Interface getDefaultInstanceForType()
Returns
Type Description
Interface

getDescriptorForType()

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

getProtocolBinding()

public Interface.ProtocolBinding getProtocolBinding()

Required. The protocol binding of the interface.

.google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Interface.ProtocolBinding

The protocolBinding.

getProtocolBindingValue()

public int getProtocolBindingValue()

Required. The protocol binding of the interface.

.google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for protocolBinding.

getUrl()

public String getUrl()

Required. The destination URL.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Required. The destination URL.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Interface other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setProtocolBinding(Interface.ProtocolBinding value)

public Interface.Builder setProtocolBinding(Interface.ProtocolBinding value)

Required. The protocol binding of the interface.

.google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Interface.ProtocolBinding

The protocolBinding to set.

Returns
Type Description
Interface.Builder

This builder for chaining.

setProtocolBindingValue(int value)

public Interface.Builder setProtocolBindingValue(int value)

Required. The protocol binding of the interface.

.google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
Interface.Builder

This builder for chaining.

setUrl(String value)

public Interface.Builder setUrl(String value)

Required. The destination URL.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The url to set.

Returns
Type Description
Interface.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public Interface.Builder setUrlBytes(ByteString value)

Required. The destination URL.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
Interface.Builder

This builder for chaining.