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 object
 
Protobuf type google.cloud.apiregistry.v1beta.McpTool
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Message describing McpTool object

    Nested 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.google.protobuf.Struct
    Optional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices.
    com.google.protobuf.StructOrBuilder
    Optional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices.
    static McpTool
     
     
    A human-readable description of the tool's functionality.
    com.google.protobuf.ByteString
    A human-readable description of the tool's functionality.
    static final com.google.protobuf.Descriptors.Descriptor
     
    Optional.
    com.google.protobuf.ByteString
    Optional.
    com.google.protobuf.Struct
    A JSON Schema object defining the expected parameters for invoking the tool.
    com.google.protobuf.StructOrBuilder
    A JSON Schema object defining the expected parameters for invoking the tool.
    getMcpServerUrls(int index)
    Automatically populated reference to MCP Server.
    com.google.protobuf.ByteString
    Automatically populated reference to MCP Server.
    int
    Automatically populated reference to MCP Server.
    com.google.protobuf.ProtocolStringList
    Automatically populated reference to MCP Server.
    Identifier.
    com.google.protobuf.ByteString
    Identifier.
    com.google.protobuf.Struct
    Optional.
    com.google.protobuf.StructOrBuilder
    Optional.
    com.google.protobuf.Parser<McpTool>
     
    int
     
    boolean
    Optional key-value object that allows developers to provide additional information regarding tool properties, behavior, and usage best practices.
    int
     
    boolean
    A JSON Schema object defining the expected parameters for invoking the tool.
    boolean
    Optional.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(McpTool prototype)
     
     
    protected McpTool.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static McpTool
     
    static McpTool
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static McpTool
    parseFrom(byte[] data)
     
    static McpTool
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static McpTool
    parseFrom(com.google.protobuf.ByteString data)
     
    static McpTool
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static McpTool
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static McpTool
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static McpTool
     
    static McpTool
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static McpTool
     
    static McpTool
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<McpTool>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String 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 2p
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface McpToolOrBuilder
      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 2p
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface McpToolOrBuilder
      Returns:
      The bytes for name.
    • getDisplayName

      public String getDisplayName()
       Optional. A human-readable name for the tool, suitable for display.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface McpToolOrBuilder
      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:
      getDisplayNameBytes in interface McpToolOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       A human-readable description of the tool's functionality.
       
      string description = 3;
      Specified by:
      getDescription in interface McpToolOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A human-readable description of the tool's functionality.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface McpToolOrBuilder
      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:
      getMcpServerUrlsList in interface McpToolOrBuilder
      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:
      getMcpServerUrlsCount in interface McpToolOrBuilder
      Returns:
      The count of mcpServerUrls.
    • getMcpServerUrls

      public String getMcpServerUrls(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:
      getMcpServerUrls in interface McpToolOrBuilder
      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:
      getMcpServerUrlsBytes in interface McpToolOrBuilder
      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:
      hasInputSchema in interface McpToolOrBuilder
      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:
      getInputSchema in interface McpToolOrBuilder
      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:
      getInputSchemaOrBuilder in interface McpToolOrBuilder
    • 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:
      hasOutputSchema in interface McpToolOrBuilder
      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:
      getOutputSchema in interface McpToolOrBuilder
      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:
      getOutputSchemaOrBuilder in interface McpToolOrBuilder
    • 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:
      hasAnnotations in interface McpToolOrBuilder
      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:
      getAnnotations in interface McpToolOrBuilder
      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:
      getAnnotationsOrBuilder in interface McpToolOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static McpTool parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static McpTool parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static McpTool parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static McpTool parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static McpTool parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static McpTool parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public McpTool.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static McpTool.Builder newBuilder()
    • newBuilder

      public static McpTool.Builder newBuilder(McpTool prototype)
    • toBuilder

      public McpTool.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected McpTool.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static McpTool getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<McpTool> parser()
    • getParserForType

      public com.google.protobuf.Parser<McpTool> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public McpTool getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder