Class McpServer.Tool (0.2.0)

public static final class McpServer.Tool extends GeneratedMessage implements McpServer.ToolOrBuilder

Represents a single tool provided by an MCP Server.

Protobuf type google.cloud.agentregistry.v1.McpServer.Tool

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static McpServer.Tool getDefaultInstance()
Returns
Type Description
McpServer.Tool

getDescriptor()

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

newBuilder()

public static McpServer.Tool.Builder newBuilder()
Returns
Type Description
McpServer.Tool.Builder

newBuilder(McpServer.Tool prototype)

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

parseDelimitedFrom(InputStream input)

public static McpServer.Tool parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
McpServer.Tool
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static McpServer.Tool parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
McpServer.Tool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static McpServer.Tool parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
McpServer.Tool
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static McpServer.Tool parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
McpServer.Tool
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static McpServer.Tool parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
McpServer.Tool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<McpServer.Tool> parser()
Returns
Type Description
Parser<Tool>

Methods

equals(Object obj)

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

getAnnotations()

public McpServer.Tool.Annotations getAnnotations()

Output only. Annotations associated with the tool.

.google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Tool.Annotations

The annotations.

getAnnotationsOrBuilder()

public McpServer.Tool.AnnotationsOrBuilder getAnnotationsOrBuilder()

Output only. Annotations associated with the tool.

.google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpServer.Tool.AnnotationsOrBuilder

getDefaultInstanceForType()

public McpServer.Tool getDefaultInstanceForType()
Returns
Type Description
McpServer.Tool

getDescription()

public String getDescription()

Output only. Description of what the tool does.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. Description of what the tool does.

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

Returns
Type Description
ByteString

The bytes for description.

getName()

public String getName()

Output only. Human-readable name of the tool.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Human-readable name of the tool.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<McpServer.Tool> getParserForType()
Returns
Type Description
Parser<Tool>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAnnotations()

public boolean hasAnnotations()

Output only. Annotations associated with the tool.

.google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the annotations 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 McpServer.Tool.Builder newBuilderForType()
Returns
Type Description
McpServer.Tool.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public McpServer.Tool.Builder toBuilder()
Returns
Type Description
McpServer.Tool.Builder

writeTo(CodedOutputStream output)

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