Class McpTool
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.apiregistry.v1beta.McpTool
- All Implemented Interfaces:
McpToolOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class McpTool
extends com.google.protobuf.GeneratedMessage
implements McpToolOrBuilder
Message describing McpTool objectProtobuf type
google.cloud.apiregistry.v1beta.McpTool- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage describing McpTool objectNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.StructOptional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices.com.google.protobuf.StructOrBuilderOptional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices.static McpToolA human-readable description of the tool's functionality.com.google.protobuf.ByteStringA human-readable description of the tool's functionality.static final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.StructA JSON Schema object defining the expected parameters for invoking the tool.com.google.protobuf.StructOrBuilderA JSON Schema object defining the expected parameters for invoking the tool.getMcpServerUrls(int index) Automatically populated reference to MCP Server.com.google.protobuf.ByteStringgetMcpServerUrlsBytes(int index) Automatically populated reference to MCP Server.intAutomatically populated reference to MCP Server.com.google.protobuf.ProtocolStringListAutomatically populated reference to MCP Server.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.StructOptional.com.google.protobuf.StructOrBuilderOptional.com.google.protobuf.Parser<McpTool>intbooleanOptional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices.inthashCode()booleanA JSON Schema object defining the expected parameters for invoking the tool.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic McpTool.Builderstatic McpTool.BuildernewBuilder(McpTool prototype) protected McpTool.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static McpToolparseDelimitedFrom(InputStream input) static McpToolparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static McpToolparseFrom(byte[] data) static McpToolparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static McpToolparseFrom(com.google.protobuf.ByteString data) static McpToolparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static McpToolparseFrom(com.google.protobuf.CodedInputStream input) static McpToolparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static McpToolparseFrom(InputStream input) static McpToolparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static McpToolparseFrom(ByteBuffer data) static McpToolparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<McpTool>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
MCP_SERVER_URLS_FIELD_NUMBER
public static final int MCP_SERVER_URLS_FIELD_NUMBER- See Also:
-
INPUT_SCHEMA_FIELD_NUMBER
public static final int INPUT_SCHEMA_FIELD_NUMBER- See Also:
-
OUTPUT_SCHEMA_FIELD_NUMBER
public static final int OUTPUT_SCHEMA_FIELD_NUMBER- See Also:
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Identifier. The resource name of the McpTool. Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}/mcpTools/{mcp_tool}`. Example: projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp/mcpTools/insert_job for 1p projects/12345/locations/us-central1/mcpServers/apphub:starbucks/mcpTools/order_pizza for 2pstring name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceMcpToolOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The resource name of the McpTool. Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}/mcpTools/{mcp_tool}`. Example: projects/12345/locations/us-central1/mcpServers/google:bigquery.googleapis.com:mcp/mcpTools/insert_job for 1p projects/12345/locations/us-central1/mcpServers/apphub:starbucks/mcpTools/order_pizza for 2pstring name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceMcpToolOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Optional. A human-readable name for the tool, suitable for display.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceMcpToolOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Optional. A human-readable name for the tool, suitable for display.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceMcpToolOrBuilder- Returns:
- The bytes for displayName.
-
getDescription
A human-readable description of the tool's functionality.
string description = 3;- Specified by:
getDescriptionin interfaceMcpToolOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A human-readable description of the tool's functionality.
string description = 3;- Specified by:
getDescriptionBytesin interfaceMcpToolOrBuilder- Returns:
- The bytes for description.
-
getMcpServerUrlsList
public com.google.protobuf.ProtocolStringList getMcpServerUrlsList()Automatically populated reference to MCP Server. Helpful when multiple tools are requested across different MCP Servers.
repeated string mcp_server_urls = 4;- Specified by:
getMcpServerUrlsListin interfaceMcpToolOrBuilder- Returns:
- A list containing the mcpServerUrls.
-
getMcpServerUrlsCount
public int getMcpServerUrlsCount()Automatically populated reference to MCP Server. Helpful when multiple tools are requested across different MCP Servers.
repeated string mcp_server_urls = 4;- Specified by:
getMcpServerUrlsCountin interfaceMcpToolOrBuilder- Returns:
- The count of mcpServerUrls.
-
getMcpServerUrls
Automatically populated reference to MCP Server. Helpful when multiple tools are requested across different MCP Servers.
repeated string mcp_server_urls = 4;- Specified by:
getMcpServerUrlsin interfaceMcpToolOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The mcpServerUrls at the given index.
-
getMcpServerUrlsBytes
public com.google.protobuf.ByteString getMcpServerUrlsBytes(int index) Automatically populated reference to MCP Server. Helpful when multiple tools are requested across different MCP Servers.
repeated string mcp_server_urls = 4;- Specified by:
getMcpServerUrlsBytesin interfaceMcpToolOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the mcpServerUrls at the given index.
-
hasInputSchema
public boolean hasInputSchema()A JSON Schema object defining the expected parameters for invoking the tool.
.google.protobuf.Struct input_schema = 5;- Specified by:
hasInputSchemain interfaceMcpToolOrBuilder- Returns:
- Whether the inputSchema field is set.
-
getInputSchema
public com.google.protobuf.Struct getInputSchema()A JSON Schema object defining the expected parameters for invoking the tool.
.google.protobuf.Struct input_schema = 5;- Specified by:
getInputSchemain interfaceMcpToolOrBuilder- Returns:
- The inputSchema.
-
getInputSchemaOrBuilder
public com.google.protobuf.StructOrBuilder getInputSchemaOrBuilder()A JSON Schema object defining the expected parameters for invoking the tool.
.google.protobuf.Struct input_schema = 5;- Specified by:
getInputSchemaOrBuilderin interfaceMcpToolOrBuilder
-
hasOutputSchema
public boolean hasOutputSchema()Optional. A JSON Schema object defining the expected structure of the tool's output.
.google.protobuf.Struct output_schema = 6;- Specified by:
hasOutputSchemain interfaceMcpToolOrBuilder- Returns:
- Whether the outputSchema field is set.
-
getOutputSchema
public com.google.protobuf.Struct getOutputSchema()Optional. A JSON Schema object defining the expected structure of the tool's output.
.google.protobuf.Struct output_schema = 6;- Specified by:
getOutputSchemain interfaceMcpToolOrBuilder- Returns:
- The outputSchema.
-
getOutputSchemaOrBuilder
public com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder()Optional. A JSON Schema object defining the expected structure of the tool's output.
.google.protobuf.Struct output_schema = 6;- Specified by:
getOutputSchemaOrBuilderin interfaceMcpToolOrBuilder
-
hasAnnotations
public boolean hasAnnotations()Optional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices. Annotations or tags to facilitate semantic search across tools ("semantic tags") are not in the MVP scope. When implemented, the first set of supported annotations will likely be the standard, predefined annotations from the open-source MCP spec. These include: - title: A human-readable title for the tool, useful for UI display. - readOnlyHint: If true, indicates the tool does not modify its environment. - destructiveHint: If true, the tool may perform destructive updates (only meaningful when readOnlyHint is false). - idempotentHint: If true, calling the tool repeatedly with the same arguments has no additional effect (only meaningful when readOnlyHint is false). - openWorldHint: If true, the tool may interact with an "open world" of external entities..google.protobuf.Struct annotations = 7;- Specified by:
hasAnnotationsin interfaceMcpToolOrBuilder- Returns:
- Whether the annotations field is set.
-
getAnnotations
public com.google.protobuf.Struct getAnnotations()Optional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices. Annotations or tags to facilitate semantic search across tools ("semantic tags") are not in the MVP scope. When implemented, the first set of supported annotations will likely be the standard, predefined annotations from the open-source MCP spec. These include: - title: A human-readable title for the tool, useful for UI display. - readOnlyHint: If true, indicates the tool does not modify its environment. - destructiveHint: If true, the tool may perform destructive updates (only meaningful when readOnlyHint is false). - idempotentHint: If true, calling the tool repeatedly with the same arguments has no additional effect (only meaningful when readOnlyHint is false). - openWorldHint: If true, the tool may interact with an "open world" of external entities..google.protobuf.Struct annotations = 7;- Specified by:
getAnnotationsin interfaceMcpToolOrBuilder- Returns:
- The annotations.
-
getAnnotationsOrBuilder
public com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder()Optional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices. Annotations or tags to facilitate semantic search across tools ("semantic tags") are not in the MVP scope. When implemented, the first set of supported annotations will likely be the standard, predefined annotations from the open-source MCP spec. These include: - title: A human-readable title for the tool, useful for UI display. - readOnlyHint: If true, indicates the tool does not modify its environment. - destructiveHint: If true, the tool may perform destructive updates (only meaningful when readOnlyHint is false). - idempotentHint: If true, calling the tool repeatedly with the same arguments has no additional effect (only meaningful when readOnlyHint is false). - openWorldHint: If true, the tool may interact with an "open world" of external entities..google.protobuf.Struct annotations = 7;- Specified by:
getAnnotationsOrBuilderin interfaceMcpToolOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static McpTool parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static McpTool parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static McpTool parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static McpTool parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static McpTool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static McpTool parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static McpTool parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static McpTool parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static McpTool parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected McpTool.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-