Class McpServer.Tool.Annotations (0.2.0)

public static final class McpServer.Tool.Annotations extends GeneratedMessage implements McpServer.Tool.AnnotationsOrBuilder

Annotations describing the characteristics and behavior of a tool or operation.

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

Static Fields

DESTRUCTIVE_HINT_FIELD_NUMBER

public static final int DESTRUCTIVE_HINT_FIELD_NUMBER
Field Value
Type Description
int

IDEMPOTENT_HINT_FIELD_NUMBER

public static final int IDEMPOTENT_HINT_FIELD_NUMBER
Field Value
Type Description
int

OPEN_WORLD_HINT_FIELD_NUMBER

public static final int OPEN_WORLD_HINT_FIELD_NUMBER
Field Value
Type Description
int

READ_ONLY_HINT_FIELD_NUMBER

public static final int READ_ONLY_HINT_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(McpServer.Tool.Annotations prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getDestructiveHint()

public boolean getDestructiveHint()

Output only. If true, the tool may perform destructive updates to its environment. If false, the tool performs only additive updates. NOTE: This property is meaningful only when read_only_hint == false Default: true

bool destructive_hint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The destructiveHint.

getIdempotentHint()

public boolean getIdempotentHint()

Output only. If true, calling the tool repeatedly with the same arguments will have no additional effect on its environment. NOTE: This property is meaningful only when read_only_hint == false Default: false

bool idempotent_hint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The idempotentHint.

getOpenWorldHint()

public boolean getOpenWorldHint()

Output only. If true, this tool may interact with an "open world" of external entities. If false, the tool's domain of interaction is closed. For example, the world of a web search tool is open, whereas that of a memory tool is not. Default: true

bool open_world_hint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The openWorldHint.

getParserForType()

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

getReadOnlyHint()

public boolean getReadOnlyHint()

Output only. If true, the tool does not modify its environment. Default: false

bool read_only_hint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The readOnlyHint.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTitle()

public String getTitle()

Output only. A human-readable title for the tool.

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

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. A human-readable title for the tool.

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

Returns
Type Description
ByteString

The bytes for title.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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