Class McpTool (0.1.0)

public final class McpTool extends GeneratedMessage 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 Fields

API_AUTHENTICATION_FIELD_NUMBER

public static final int API_AUTHENTICATION_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

INPUT_SCHEMA_FIELD_NUMBER

public static final int INPUT_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_SCHEMA_FIELD_NUMBER

public static final int OUTPUT_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

SERVER_ADDRESS_FIELD_NUMBER

public static final int SERVER_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER

public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

TLS_CONFIG_FIELD_NUMBER

public static final int TLS_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static McpTool getDefaultInstance()
Returns
Type Description
McpTool

getDescriptor()

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

newBuilder()

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

newBuilder(McpTool prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

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.

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.

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.

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

getParserForType()

public Parser<McpTool> getParserForType()
Returns
Type Description
Parser<McpTool>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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