Class McpToolOverride (0.9.0)

public final class McpToolOverride extends GeneratedMessage implements McpToolOverrideOrBuilder

Overrides associated with a given tool in a Toolset. This enables "pinning" or "overriding" of tool definitions from the external dynamic server.

Protobuf type google.cloud.ces.v1beta.McpToolOverride

Static Fields

DESCRIPTION_OVERRIDE_FIELD_NUMBER

public static final int DESCRIPTION_OVERRIDE_FIELD_NUMBER
Field Value
Type Description
int

NAME_OVERRIDE_FIELD_NUMBER

public static final int NAME_OVERRIDE_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_FIELD_NUMBER

public static final int SNAPSHOT_FIELD_NUMBER
Field Value
Type Description
int

TOOL_FIELD_NUMBER

public static final int TOOL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static McpToolOverride getDefaultInstance()
Returns
Type Description
McpToolOverride

getDescriptor()

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

newBuilder()

public static McpToolOverride.Builder newBuilder()
Returns
Type Description
McpToolOverride.Builder

newBuilder(McpToolOverride prototype)

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

parseDelimitedFrom(InputStream input)

public static McpToolOverride parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
McpToolOverride
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static McpToolOverride parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
McpToolOverride
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static McpToolOverride parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
McpToolOverride
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static McpToolOverride parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
McpToolOverride
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static McpToolOverride parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
McpToolOverride
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<McpToolOverride> parser()
Returns
Type Description
Parser<McpToolOverride>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public McpToolOverride getDefaultInstanceForType()
Returns
Type Description
McpToolOverride

getDescriptionOverride()

public String getDescriptionOverride()

Optional. If present, this tool uses this description instead of the original description from the server.

string description_override = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The descriptionOverride.

getDescriptionOverrideBytes()

public ByteString getDescriptionOverrideBytes()

Optional. If present, this tool uses this description instead of the original description from the server.

string description_override = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for descriptionOverride.

getNameOverride()

public String getNameOverride()

Optional. If present, this tool uses this name in the Agent instead of the original name. This is primarily used as an alias if the MCP server offers poorly named tools.

string name_override = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nameOverride.

getNameOverrideBytes()

public ByteString getNameOverrideBytes()

Optional. If present, this tool uses this name in the Agent instead of the original name. This is primarily used as an alias if the MCP server offers poorly named tools.

string name_override = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nameOverride.

getParserForType()

public Parser<McpToolOverride> getParserForType()
Returns
Type Description
Parser<McpToolOverride>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSnapshot()

public McpToolDefinition getSnapshot()

Output only. If present, this tool is "Pinned" and uses the snapshot values as fallbacks if the server becomes temporarily unavailable or if no Override is present.

.google.cloud.ces.v1beta.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpToolDefinition

The snapshot.

getSnapshotOrBuilder()

public McpToolDefinitionOrBuilder getSnapshotOrBuilder()

Output only. If present, this tool is "Pinned" and uses the snapshot values as fallbacks if the server becomes temporarily unavailable or if no Override is present.

.google.cloud.ces.v1beta.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpToolDefinitionOrBuilder

getTool()

public String getTool()

Required. The original name of the tool as it is emitted by the MCP server.

string tool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tool.

getToolBytes()

public ByteString getToolBytes()

Required. The original name of the tool as it is emitted by the MCP server.

string tool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tool.

hasSnapshot()

public boolean hasSnapshot()

Output only. If present, this tool is "Pinned" and uses the snapshot values as fallbacks if the server becomes temporarily unavailable or if no Override is present.

.google.cloud.ces.v1beta.McpToolDefinition snapshot = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the snapshot 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 McpToolOverride.Builder newBuilderForType()
Returns
Type Description
McpToolOverride.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public McpToolOverride.Builder toBuilder()
Returns
Type Description
McpToolOverride.Builder

writeTo(CodedOutputStream output)

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