public static final class Interface.Builder extends GeneratedMessage.Builder<Interface.Builder> implements InterfaceOrBuilderRepresents the connection details for an Agent or MCP Server.
Protobuf type google.cloud.agentregistry.v1.Interface
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Interface.BuilderImplements
InterfaceOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Interface.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Interface.Builder |
|
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.ProtocolBindingThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
Interface.Builder |
This builder for chaining. |