Class Service.Builder (0.2.0)

public static final class Service.Builder extends GeneratedMessage.Builder<Service.Builder> implements ServiceOrBuilder

Represents a user-defined Service.

Protobuf type google.cloud.agentregistry.v1.Service

Implements

ServiceOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInterfaces(Iterable<? extends Interface> values)

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

Optional. The connection details for the Service.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.agentregistry.v1.Interface>
Returns
Type Description
Service.Builder

addInterfaces(Interface value)

public Service.Builder addInterfaces(Interface value)

Optional. The connection details for the Service.

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

Parameter
Name Description
value Interface
Returns
Type Description
Service.Builder

addInterfaces(Interface.Builder builderForValue)

public Service.Builder addInterfaces(Interface.Builder builderForValue)

Optional. The connection details for the Service.

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

Parameter
Name Description
builderForValue Interface.Builder
Returns
Type Description
Service.Builder

addInterfaces(int index, Interface value)

public Service.Builder addInterfaces(int index, Interface value)

Optional. The connection details for the Service.

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

Parameters
Name Description
index int
value Interface
Returns
Type Description
Service.Builder

addInterfaces(int index, Interface.Builder builderForValue)

public Service.Builder addInterfaces(int index, Interface.Builder builderForValue)

Optional. The connection details for the Service.

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

Parameters
Name Description
index int
builderForValue Interface.Builder
Returns
Type Description
Service.Builder

addInterfacesBuilder()

public Interface.Builder addInterfacesBuilder()

Optional. The connection details for the Service.

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

Returns
Type Description
Interface.Builder

addInterfacesBuilder(int index)

public Interface.Builder addInterfacesBuilder(int index)

Optional. The connection details for the Service.

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

Parameter
Name Description
index int
Returns
Type Description
Interface.Builder

build()

public Service build()
Returns
Type Description
Service

buildPartial()

public Service buildPartial()
Returns
Type Description
Service

clear()

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

clearAgentSpec()

public Service.Builder clearAgentSpec()

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.Builder

clearCreateTime()

public Service.Builder clearCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.Builder

clearDescription()

public Service.Builder clearDescription()

Optional. User-defined description of an Service. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.Builder

This builder for chaining.

clearDisplayName()

public Service.Builder clearDisplayName()

Optional. User-defined display name for the Service. Can have a maximum length of 63 characters.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.Builder

This builder for chaining.

clearEndpointSpec()

public Service.Builder clearEndpointSpec()

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.Builder

clearInterfaces()

public Service.Builder clearInterfaces()

Optional. The connection details for the Service.

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

Returns
Type Description
Service.Builder

clearMcpServerSpec()

public Service.Builder clearMcpServerSpec()

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.Builder

clearName()

public Service.Builder clearName()

Identifier. The resource name of the Service. Format: projects/{project}/locations/{location}/services/{service}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Service.Builder

This builder for chaining.

clearRegistryResource()

public Service.Builder clearRegistryResource()

Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format:

  • projects/{project}/locations/{location}/mcpServers/{mcp_server}
  • projects/{project}/locations/{location}/agents/{agent}
  • projects/{project}/locations/{location}/endpoints/{endpoint}

string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.Builder

This builder for chaining.

clearSpec()

public Service.Builder clearSpec()
Returns
Type Description
Service.Builder

clearUpdateTime()

public Service.Builder clearUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Service.Builder

getAgentSpec()

public Service.AgentSpec getAgentSpec()

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.AgentSpec

The agentSpec.

getAgentSpecBuilder()

public Service.AgentSpec.Builder getAgentSpecBuilder()

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.AgentSpec.Builder

getAgentSpecOrBuilder()

public Service.AgentSpecOrBuilder getAgentSpecOrBuilder()

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.AgentSpecOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
Type Description
Service

getDescription()

public String getDescription()

Optional. User-defined description of an Service. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-defined description of an Service. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. User-defined display name for the Service. Can have a maximum length of 63 characters.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. User-defined display name for the Service. Can have a maximum length of 63 characters.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getEndpointSpec()

public Service.EndpointSpec getEndpointSpec()

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.EndpointSpec

The endpointSpec.

getEndpointSpecBuilder()

public Service.EndpointSpec.Builder getEndpointSpecBuilder()

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.EndpointSpec.Builder

getEndpointSpecOrBuilder()

public Service.EndpointSpecOrBuilder getEndpointSpecOrBuilder()

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.EndpointSpecOrBuilder

getInterfaces(int index)

public Interface getInterfaces(int index)

Optional. The connection details for the Service.

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

Parameter
Name Description
index int
Returns
Type Description
Interface

getInterfacesBuilder(int index)

public Interface.Builder getInterfacesBuilder(int index)

Optional. The connection details for the Service.

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

Parameter
Name Description
index int
Returns
Type Description
Interface.Builder

getInterfacesBuilderList()

public List<Interface.Builder> getInterfacesBuilderList()

Optional. The connection details for the Service.

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

Returns
Type Description
List<Builder>

getInterfacesCount()

public int getInterfacesCount()

Optional. The connection details for the Service.

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

Returns
Type Description
int

getInterfacesList()

public List<Interface> getInterfacesList()

Optional. The connection details for the Service.

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

Returns
Type Description
List<Interface>

getInterfacesOrBuilder(int index)

public InterfaceOrBuilder getInterfacesOrBuilder(int index)

Optional. The connection details for the Service.

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

Parameter
Name Description
index int
Returns
Type Description
InterfaceOrBuilder

getInterfacesOrBuilderList()

public List<? extends InterfaceOrBuilder> getInterfacesOrBuilderList()

Optional. The connection details for the Service.

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

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

getMcpServerSpec()

public Service.McpServerSpec getMcpServerSpec()

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.McpServerSpec

The mcpServerSpec.

getMcpServerSpecBuilder()

public Service.McpServerSpec.Builder getMcpServerSpecBuilder()

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.McpServerSpec.Builder

getMcpServerSpecOrBuilder()

public Service.McpServerSpecOrBuilder getMcpServerSpecOrBuilder()

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.McpServerSpecOrBuilder

getName()

public String getName()

Identifier. The resource name of the Service. Format: projects/{project}/locations/{location}/services/{service}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the Service. Format: projects/{project}/locations/{location}/services/{service}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getRegistryResource()

public String getRegistryResource()

Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format:

  • projects/{project}/locations/{location}/mcpServers/{mcp_server}
  • projects/{project}/locations/{location}/agents/{agent}
  • projects/{project}/locations/{location}/endpoints/{endpoint}

string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The registryResource.

getRegistryResourceBytes()

public ByteString getRegistryResourceBytes()

Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format:

  • projects/{project}/locations/{location}/mcpServers/{mcp_server}
  • projects/{project}/locations/{location}/agents/{agent}
  • projects/{project}/locations/{location}/endpoints/{endpoint}

string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for registryResource.

getSpecCase()

public Service.SpecCase getSpecCase()
Returns
Type Description
Service.SpecCase

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAgentSpec()

public boolean hasAgentSpec()

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the agentSpec field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasEndpointSpec()

public boolean hasEndpointSpec()

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the endpointSpec field is set.

hasMcpServerSpec()

public boolean hasMcpServerSpec()

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the mcpServerSpec field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAgentSpec(Service.AgentSpec value)

public Service.Builder mergeAgentSpec(Service.AgentSpec value)

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Service.AgentSpec
Returns
Type Description
Service.Builder

mergeCreateTime(Timestamp value)

public Service.Builder mergeCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Service.Builder

mergeEndpointSpec(Service.EndpointSpec value)

public Service.Builder mergeEndpointSpec(Service.EndpointSpec value)

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Service.EndpointSpec
Returns
Type Description
Service.Builder

mergeFrom(Service other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMcpServerSpec(Service.McpServerSpec value)

public Service.Builder mergeMcpServerSpec(Service.McpServerSpec value)

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Service.McpServerSpec
Returns
Type Description
Service.Builder

mergeUpdateTime(Timestamp value)

public Service.Builder mergeUpdateTime(Timestamp value)

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Service.Builder

removeInterfaces(int index)

public Service.Builder removeInterfaces(int index)

Optional. The connection details for the Service.

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

Parameter
Name Description
index int
Returns
Type Description
Service.Builder

setAgentSpec(Service.AgentSpec value)

public Service.Builder setAgentSpec(Service.AgentSpec value)

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Service.AgentSpec
Returns
Type Description
Service.Builder

setAgentSpec(Service.AgentSpec.Builder builderForValue)

public Service.Builder setAgentSpec(Service.AgentSpec.Builder builderForValue)

Optional. The spec of the Agent. When agent_spec is set, the type of the service is Agent.

.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Service.AgentSpec.Builder
Returns
Type Description
Service.Builder

setCreateTime(Timestamp value)

public Service.Builder setCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Service.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Service.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Service.Builder

setDescription(String value)

public Service.Builder setDescription(String value)

Optional. User-defined description of an Service. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Service.Builder setDescriptionBytes(ByteString value)

Optional. User-defined description of an Service. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setDisplayName(String value)

public Service.Builder setDisplayName(String value)

Optional. User-defined display name for the Service. Can have a maximum length of 63 characters.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Service.Builder setDisplayNameBytes(ByteString value)

Optional. User-defined display name for the Service. Can have a maximum length of 63 characters.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setEndpointSpec(Service.EndpointSpec value)

public Service.Builder setEndpointSpec(Service.EndpointSpec value)

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Service.EndpointSpec
Returns
Type Description
Service.Builder

setEndpointSpec(Service.EndpointSpec.Builder builderForValue)

public Service.Builder setEndpointSpec(Service.EndpointSpec.Builder builderForValue)

Optional. The spec of the Endpoint. When endpoint_spec is set, the type of the service is Endpoint.

.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Service.EndpointSpec.Builder
Returns
Type Description
Service.Builder

setInterfaces(int index, Interface value)

public Service.Builder setInterfaces(int index, Interface value)

Optional. The connection details for the Service.

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

Parameters
Name Description
index int
value Interface
Returns
Type Description
Service.Builder

setInterfaces(int index, Interface.Builder builderForValue)

public Service.Builder setInterfaces(int index, Interface.Builder builderForValue)

Optional. The connection details for the Service.

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

Parameters
Name Description
index int
builderForValue Interface.Builder
Returns
Type Description
Service.Builder

setMcpServerSpec(Service.McpServerSpec value)

public Service.Builder setMcpServerSpec(Service.McpServerSpec value)

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Service.McpServerSpec
Returns
Type Description
Service.Builder

setMcpServerSpec(Service.McpServerSpec.Builder builderForValue)

public Service.Builder setMcpServerSpec(Service.McpServerSpec.Builder builderForValue)

Optional. The spec of the MCP Server. When mcp_server_spec is set, the type of the service is MCP Server.

.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Service.McpServerSpec.Builder
Returns
Type Description
Service.Builder

setName(String value)

public Service.Builder setName(String value)

Identifier. The resource name of the Service. Format: projects/{project}/locations/{location}/services/{service}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Service.Builder setNameBytes(ByteString value)

Identifier. The resource name of the Service. Format: projects/{project}/locations/{location}/services/{service}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setRegistryResource(String value)

public Service.Builder setRegistryResource(String value)

Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format:

  • projects/{project}/locations/{location}/mcpServers/{mcp_server}
  • projects/{project}/locations/{location}/agents/{agent}
  • projects/{project}/locations/{location}/endpoints/{endpoint}

string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The registryResource to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setRegistryResourceBytes(ByteString value)

public Service.Builder setRegistryResourceBytes(ByteString value)

Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format:

  • projects/{project}/locations/{location}/mcpServers/{mcp_server}
  • projects/{project}/locations/{location}/agents/{agent}
  • projects/{project}/locations/{location}/endpoints/{endpoint}

string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for registryResource to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Service.Builder setUpdateTime(Timestamp value)

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Service.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Service.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Service.Builder