Class Interface (0.2.0)

public final class Interface extends GeneratedMessage implements InterfaceOrBuilder

Represents the connection details for an Agent or MCP Server.

Protobuf type google.cloud.agentregistry.v1.Interface

Implements

InterfaceOrBuilder

Static Fields

PROTOCOL_BINDING_FIELD_NUMBER

public static final int PROTOCOL_BINDING_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Interface getDefaultInstance()
Returns
Type Description
Interface

getDescriptor()

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

newBuilder()

public static Interface.Builder newBuilder()
Returns
Type Description
Interface.Builder

newBuilder(Interface prototype)

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

parseDelimitedFrom(InputStream input)

public static Interface parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Interface
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Interface parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Interface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Interface parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Interface
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Interface parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Interface
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Interface parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Interface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Interface> parser()
Returns
Type Description
Parser<Interface>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Interface getDefaultInstanceForType()
Returns
Type Description
Interface

getParserForType()

public Parser<Interface> getParserForType()
Returns
Type Description
Parser<Interface>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public Interface.Builder toBuilder()
Returns
Type Description
Interface.Builder

writeTo(CodedOutputStream output)

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