Class McpServer.Tool.Annotations.Builder (0.2.0)

public static final class McpServer.Tool.Annotations.Builder extends GeneratedMessage.Builder<McpServer.Tool.Annotations.Builder> 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 Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public McpServer.Tool.Annotations.Builder clear()
Returns
Type Description
McpServer.Tool.Annotations.Builder
Overrides

clearDestructiveHint()

public McpServer.Tool.Annotations.Builder clearDestructiveHint()

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
McpServer.Tool.Annotations.Builder

This builder for chaining.

clearIdempotentHint()

public McpServer.Tool.Annotations.Builder clearIdempotentHint()

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
McpServer.Tool.Annotations.Builder

This builder for chaining.

clearOpenWorldHint()

public McpServer.Tool.Annotations.Builder clearOpenWorldHint()

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
McpServer.Tool.Annotations.Builder

This builder for chaining.

clearReadOnlyHint()

public McpServer.Tool.Annotations.Builder clearReadOnlyHint()

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
McpServer.Tool.Annotations.Builder

This builder for chaining.

clearTitle()

public McpServer.Tool.Annotations.Builder clearTitle()

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

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

Returns
Type Description
McpServer.Tool.Annotations.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(McpServer.Tool.Annotations other)

public McpServer.Tool.Annotations.Builder mergeFrom(McpServer.Tool.Annotations other)
Parameter
Name Description
other McpServer.Tool.Annotations
Returns
Type Description
McpServer.Tool.Annotations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public McpServer.Tool.Annotations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServer.Tool.Annotations.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public McpServer.Tool.Annotations.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
McpServer.Tool.Annotations.Builder
Overrides

setDestructiveHint(boolean value)

public McpServer.Tool.Annotations.Builder setDestructiveHint(boolean value)

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];

Parameter
Name Description
value boolean

The destructiveHint to set.

Returns
Type Description
McpServer.Tool.Annotations.Builder

This builder for chaining.

setIdempotentHint(boolean value)

public McpServer.Tool.Annotations.Builder setIdempotentHint(boolean value)

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];

Parameter
Name Description
value boolean

The idempotentHint to set.

Returns
Type Description
McpServer.Tool.Annotations.Builder

This builder for chaining.

setOpenWorldHint(boolean value)

public McpServer.Tool.Annotations.Builder setOpenWorldHint(boolean value)

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];

Parameter
Name Description
value boolean

The openWorldHint to set.

Returns
Type Description
McpServer.Tool.Annotations.Builder

This builder for chaining.

setReadOnlyHint(boolean value)

public McpServer.Tool.Annotations.Builder setReadOnlyHint(boolean value)

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

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

Parameter
Name Description
value boolean

The readOnlyHint to set.

Returns
Type Description
McpServer.Tool.Annotations.Builder

This builder for chaining.

setTitle(String value)

public McpServer.Tool.Annotations.Builder setTitle(String value)

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

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

Parameter
Name Description
value String

The title to set.

Returns
Type Description
McpServer.Tool.Annotations.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public McpServer.Tool.Annotations.Builder setTitleBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
McpServer.Tool.Annotations.Builder

This builder for chaining.