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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > McpToolImplements
McpToolOrBuilderStatic Fields
API_AUTHENTICATION_FIELD_NUMBER
public
static
final
int
API_AUTHENTICATION_FIELD_NUMBER
CUSTOM_HEADERS_FIELD_NUMBER
public
static
final
int
CUSTOM_HEADERS_FIELD_NUMBER
DESCRIPTION_FIELD_NUMBER
public
static
final
int
DESCRIPTION_FIELD_NUMBER
INPUT_SCHEMA_FIELD_NUMBER
public
static
final
int
INPUT_SCHEMA_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
OUTPUT_SCHEMA_FIELD_NUMBER
public
static
final
int
OUTPUT_SCHEMA_FIELD_NUMBER
SERVER_ADDRESS_FIELD_NUMBER
public
static
final
int
SERVER_ADDRESS_FIELD_NUMBER
SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER
public
static
final
int
SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER
TLS_CONFIG_FIELD_NUMBER
public
static
final
int
TLS_CONFIG_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
McpTool
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
McpTool
.
Builder
newBuilder
()
newBuilder(McpTool prototype)
public
static
McpTool
.
Builder
newBuilder
(
McpTool
prototype
)
parseDelimitedFrom(InputStream input)
public
static
McpTool
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
McpTool
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
McpTool
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
McpTool
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
McpTool
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
McpTool
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
McpTool
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
McpTool
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
McpTool
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
McpTool
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
McpTool
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
McpTool
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<McpTool>
parser
()
Methods
containsCustomHeaders(String key)
public
boolean
containsCustomHeaders
(
String
key
)
Optional. The custom headers to send in the request to the MCP server. The
values must be in the format $context.variables.<name_of_variable>
and
can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
for more details.
map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL];
equals(Object obj)
public
boolean
equals
(
Object
obj
)
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];
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];
getCustomHeaders() (deprecated)
public
Map<String
,
String
>
getCustomHeaders
()
Use #getCustomHeadersMap() instead.
getCustomHeadersCount()
public
int
getCustomHeadersCount
()
Optional. The custom headers to send in the request to the MCP server. The
values must be in the format $context.variables.<name_of_variable>
and
can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
for more details.
map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL];
getCustomHeadersMap()
public
Map<String
,
String
>
getCustomHeadersMap
()
Optional. The custom headers to send in the request to the MCP server. The
values must be in the format $context.variables.<name_of_variable>
and
can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
for more details.
map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL];
getCustomHeadersOrDefault(String key, String defaultValue)
public
String
getCustomHeadersOrDefault
(
String
key
,
String
defaultValue
)
Optional. The custom headers to send in the request to the MCP server. The
values must be in the format $context.variables.<name_of_variable>
and
can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
for more details.
map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL];
getCustomHeadersOrThrow(String key)
public
String
getCustomHeadersOrThrow
(
String
key
)
Optional. The custom headers to send in the request to the MCP server. The
values must be in the format $context.variables.<name_of_variable>
and
can be set in the session variables. See https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection
for more details.
map<string, string> custom_headers = 9 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public
McpTool
getDefaultInstanceForType
()
getDescription()
public
String
getDescription
()
Optional. The description of the MCP tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
getDescriptionBytes()
public
ByteString
getDescriptionBytes
()
Optional. The description of the MCP tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
getName()
public
String
getName
()
Required. The name of the MCP tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getNameBytes()
public
ByteString
getNameBytes
()
Required. The name of the MCP tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
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];
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];
getParserForType()
public
Parser<McpTool>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessage
.
FieldAccessorTable
internalGetFieldAccessorTable
()
internalGetMapFieldReflection(int number)
protected
MapFieldReflectionAccessor
internalGetMapFieldReflection
(
int
number
)
com.google.protobuf.MapFieldReflectionAccessor
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
McpTool
.
Builder
newBuilderForType
()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected
McpTool
.
Builder
newBuilderForType
(
AbstractMessage
.
BuilderParent
parent
)
toBuilder()
public
McpTool
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)

