Class McpTool.Builder (0.1.0)

public static final class McpTool.Builder extends GeneratedMessage.Builder<McpTool.Builder> implements McpToolOrBuilder

An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more details.

Protobuf type google.cloud.ces.v1.McpTool

Implements

McpToolOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public McpTool build()
Returns
Type Description
McpTool

buildPartial()

public McpTool buildPartial()
Returns
Type Description
McpTool

clear()

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

clearApiAuthentication()

public McpTool.Builder clearApiAuthentication()

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpTool.Builder

clearDescription()

public McpTool.Builder clearDescription()

Optional. The description of the MCP tool.

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

Returns
Type Description
McpTool.Builder

This builder for chaining.

clearInputSchema()

public McpTool.Builder clearInputSchema()

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpTool.Builder

clearName()

public McpTool.Builder clearName()

Required. The name of the MCP tool.

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

Returns
Type Description
McpTool.Builder

This builder for chaining.

clearOutputSchema()

public McpTool.Builder clearOutputSchema()

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpTool.Builder

clearServerAddress()

public McpTool.Builder clearServerAddress()

Required. The server address of the MCP server, e.g., "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. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Returns
Type Description
McpTool.Builder

This builder for chaining.

clearServiceDirectoryConfig()

public McpTool.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 = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpTool.Builder

clearTlsConfig()

public McpTool.Builder clearTlsConfig()

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

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

Returns
Type Description
McpTool.Builder

getApiAuthentication()

public ApiAuthentication getApiAuthentication()

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication

The apiAuthentication.

getApiAuthenticationBuilder()

public ApiAuthentication.Builder getApiAuthenticationBuilder()

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication.Builder

getApiAuthenticationOrBuilder()

public ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder()

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthenticationOrBuilder

getDefaultInstanceForType()

public McpTool getDefaultInstanceForType()
Returns
Type Description
McpTool

getDescription()

public String getDescription()

Optional. The description of the MCP tool.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the MCP tool.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getInputSchema()

public Schema getInputSchema()

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema

The inputSchema.

getInputSchemaBuilder()

public Schema.Builder getInputSchemaBuilder()

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema.Builder

getInputSchemaOrBuilder()

public SchemaOrBuilder getInputSchemaOrBuilder()

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchemaOrBuilder

getName()

public String getName()

Required. The name of the MCP tool.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the MCP tool.

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

Returns
Type Description
ByteString

The bytes for name.

getOutputSchema()

public Schema getOutputSchema()

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema

The outputSchema.

getOutputSchemaBuilder()

public Schema.Builder getOutputSchemaBuilder()

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema.Builder

getOutputSchemaOrBuilder()

public SchemaOrBuilder getOutputSchemaOrBuilder()

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchemaOrBuilder

getServerAddress()

public String getServerAddress()

Required. The server address of the MCP server, e.g., "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. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Returns
Type Description
String

The serverAddress.

getServerAddressBytes()

public ByteString getServerAddressBytes()

Required. The server address of the MCP server, e.g., "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. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

string server_address = 5 [(.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 = 8 [(.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 = 8 [(.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 = 8 [(.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 = 7 [(.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 = 7 [(.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TlsConfigOrBuilder

hasApiAuthentication()

public boolean hasApiAuthentication()

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiAuthentication field is set.

hasInputSchema()

public boolean hasInputSchema()

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inputSchema field is set.

hasOutputSchema()

public boolean hasOutputSchema()

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the outputSchema 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 = 8 [(.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 = 7 [(.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 McpTool.Builder mergeApiAuthentication(ApiAuthentication value)

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
McpTool.Builder

mergeFrom(McpTool other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputSchema(Schema value)

public McpTool.Builder mergeInputSchema(Schema value)

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
McpTool.Builder

mergeOutputSchema(Schema value)

public McpTool.Builder mergeOutputSchema(Schema value)

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
McpTool.Builder

mergeServiceDirectoryConfig(ServiceDirectoryConfig value)

public McpTool.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 = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
McpTool.Builder

mergeTlsConfig(TlsConfig value)

public McpTool.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TlsConfig
Returns
Type Description
McpTool.Builder

setApiAuthentication(ApiAuthentication value)

public McpTool.Builder setApiAuthentication(ApiAuthentication value)

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
McpTool.Builder

setApiAuthentication(ApiAuthentication.Builder builderForValue)

public McpTool.Builder setApiAuthentication(ApiAuthentication.Builder builderForValue)

Optional. Authentication information required to execute the 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

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

setDescription(String value)

public McpTool.Builder setDescription(String value)

Optional. The description of the MCP tool.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
McpTool.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public McpTool.Builder setDescriptionBytes(ByteString value)

Optional. The description of the MCP tool.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
McpTool.Builder

This builder for chaining.

setInputSchema(Schema value)

public McpTool.Builder setInputSchema(Schema value)

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
McpTool.Builder

setInputSchema(Schema.Builder builderForValue)

public McpTool.Builder setInputSchema(Schema.Builder builderForValue)

Optional. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
McpTool.Builder

setName(String value)

public McpTool.Builder setName(String value)

Required. The name of the MCP tool.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
McpTool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public McpTool.Builder setNameBytes(ByteString value)

Required. The name of the MCP tool.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
McpTool.Builder

This builder for chaining.

setOutputSchema(Schema value)

public McpTool.Builder setOutputSchema(Schema value)

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
McpTool.Builder

setOutputSchema(Schema.Builder builderForValue)

public McpTool.Builder setOutputSchema(Schema.Builder builderForValue)

Optional. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
McpTool.Builder

setServerAddress(String value)

public McpTool.Builder setServerAddress(String value)

Required. The server address of the MCP server, e.g., "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. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Parameter
Name Description
value String

The serverAddress to set.

Returns
Type Description
McpTool.Builder

This builder for chaining.

setServerAddressBytes(ByteString value)

public McpTool.Builder setServerAddressBytes(ByteString value)

Required. The server address of the MCP server, e.g., "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. This is the same as the server_address in the McpToolset. See https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for more details.

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

Parameter
Name Description
value ByteString

The bytes for serverAddress to set.

Returns
Type Description
McpTool.Builder

This builder for chaining.

setServiceDirectoryConfig(ServiceDirectoryConfig value)

public McpTool.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 = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServiceDirectoryConfig
Returns
Type Description
McpTool.Builder

setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)

public McpTool.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 = 8 [(.google.api.field_behavior) = OPTIONAL];

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

setTlsConfig(TlsConfig value)

public McpTool.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TlsConfig
Returns
Type Description
McpTool.Builder

setTlsConfig(TlsConfig.Builder builderForValue)

public McpTool.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 = 7 [(.google.api.field_behavior) = OPTIONAL];

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