Class McpToolset.Builder (0.1.0)

public static final class McpToolset.Builder extends GeneratedMessage.Builder<McpToolset.Builder> implements McpToolsetOrBuilder

A toolset that contains a list of tools that are offered by the MCP server.

Protobuf type google.cloud.ces.v1.McpToolset

Implements

McpToolsetOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public McpToolset build()
Returns
Type Description
McpToolset

buildPartial()

public McpToolset buildPartial()
Returns
Type Description
McpToolset

clear()

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

clearApiAuthentication()

public McpToolset.Builder clearApiAuthentication()

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpToolset.Builder

clearServerAddress()

public McpToolset.Builder clearServerAddress()

Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Returns
Type Description
McpToolset.Builder

This builder for chaining.

clearServiceDirectoryConfig()

public McpToolset.Builder clearServiceDirectoryConfig()

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpToolset.Builder

clearTlsConfig()

public McpToolset.Builder clearTlsConfig()

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpToolset.Builder

getApiAuthentication()

public ApiAuthentication getApiAuthentication()

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication

The apiAuthentication.

getApiAuthenticationBuilder()

public ApiAuthentication.Builder getApiAuthenticationBuilder()

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication.Builder

getApiAuthenticationOrBuilder()

public ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder()

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthenticationOrBuilder

getDefaultInstanceForType()

public McpToolset getDefaultInstanceForType()
Returns
Type Description
McpToolset

getDescriptorForType()

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

getServerAddress()

public String getServerAddress()

Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Returns
Type Description
String

The serverAddress.

getServerAddressBytes()

public ByteString getServerAddressBytes()

Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Returns
Type Description
ByteString

The bytes for serverAddress.

getServiceDirectoryConfig()

public ServiceDirectoryConfig getServiceDirectoryConfig()

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfig

The serviceDirectoryConfig.

getServiceDirectoryConfigBuilder()

public ServiceDirectoryConfig.Builder getServiceDirectoryConfigBuilder()

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfig.Builder

getServiceDirectoryConfigOrBuilder()

public ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceDirectoryConfigOrBuilder

getTlsConfig()

public TlsConfig getTlsConfig()

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TlsConfig

The tlsConfig.

getTlsConfigBuilder()

public TlsConfig.Builder getTlsConfigBuilder()

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TlsConfig.Builder

getTlsConfigOrBuilder()

public TlsConfigOrBuilder getTlsConfigOrBuilder()

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TlsConfigOrBuilder

hasApiAuthentication()

public boolean hasApiAuthentication()

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiAuthentication field is set.

hasServiceDirectoryConfig()

public boolean hasServiceDirectoryConfig()

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serviceDirectoryConfig field is set.

hasTlsConfig()

public boolean hasTlsConfig()

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the tlsConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiAuthentication(ApiAuthentication value)

public McpToolset.Builder mergeApiAuthentication(ApiAuthentication value)

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
McpToolset.Builder

mergeFrom(McpToolset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

public McpToolset.Builder mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
McpToolset.Builder

mergeTlsConfig(TlsConfig value)

public McpToolset.Builder mergeTlsConfig(TlsConfig value)

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TlsConfig
Returns
Type Description
McpToolset.Builder

setApiAuthentication(ApiAuthentication value)

public McpToolset.Builder setApiAuthentication(ApiAuthentication value)

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
McpToolset.Builder

setApiAuthentication(ApiAuthentication.Builder builderForValue)

public McpToolset.Builder setApiAuthentication(ApiAuthentication.Builder builderForValue)

Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ApiAuthentication.Builder
Returns
Type Description
McpToolset.Builder

setServerAddress(String value)

public McpToolset.Builder setServerAddress(String value)

Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Parameter
Name Description
value String

The serverAddress to set.

Returns
Type Description
McpToolset.Builder

This builder for chaining.

setServerAddressBytes(ByteString value)

public McpToolset.Builder setServerAddressBytes(ByteString value)

Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Parameter
Name Description
value ByteString

The bytes for serverAddress to set.

Returns
Type Description
McpToolset.Builder

This builder for chaining.

setServiceDirectoryConfig(ServiceDirectoryConfig value)

public McpToolset.Builder setServiceDirectoryConfig(ServiceDirectoryConfig value)

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
McpToolset.Builder

setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

public McpToolset.Builder setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter.

.google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ServiceDirectoryConfig.Builder
Returns
Type Description
McpToolset.Builder

setTlsConfig(TlsConfig value)

public McpToolset.Builder setTlsConfig(TlsConfig value)

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TlsConfig
Returns
Type Description
McpToolset.Builder

setTlsConfig(TlsConfig.Builder builderForValue)

public McpToolset.Builder setTlsConfig(TlsConfig.Builder builderForValue)

Optional. The TLS configuration. Includes the custom server certificates that the client should trust.

.google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TlsConfig.Builder
Returns
Type Description
McpToolset.Builder