public static final class McpToolOverride.Builder extends GeneratedMessage.Builder<McpToolOverride.Builder> implements McpToolOverrideOrBuilderOverrides 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > McpToolOverride.BuilderImplements
McpToolOverrideOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public McpToolOverride build()| Returns | |
|---|---|
| Type | Description |
McpToolOverride |
|
buildPartial()
public McpToolOverride buildPartial()| Returns | |
|---|---|
| Type | Description |
McpToolOverride |
|
clear()
public McpToolOverride.Builder clear()| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
|
clearDescriptionOverride()
public McpToolOverride.Builder clearDescriptionOverride()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 |
McpToolOverride.Builder |
This builder for chaining. |
clearNameOverride()
public McpToolOverride.Builder clearNameOverride()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 |
McpToolOverride.Builder |
This builder for chaining. |
clearSnapshot()
public McpToolOverride.Builder clearSnapshot()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 |
McpToolOverride.Builder |
|
clearTool()
public McpToolOverride.Builder clearTool()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 |
McpToolOverride.Builder |
This builder for chaining. |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
getSnapshotBuilder()
public McpToolDefinition.Builder getSnapshotBuilder()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.Builder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(McpToolOverride other)
public McpToolOverride.Builder mergeFrom(McpToolOverride other)| Parameter | |
|---|---|
| Name | Description |
other |
McpToolOverride |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public McpToolOverride.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public McpToolOverride.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
|
mergeSnapshot(McpToolDefinition value)
public McpToolOverride.Builder mergeSnapshot(McpToolDefinition value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
McpToolDefinition |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
|
setDescriptionOverride(String value)
public McpToolOverride.Builder setDescriptionOverride(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe descriptionOverride to set. |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
This builder for chaining. |
setDescriptionOverrideBytes(ByteString value)
public McpToolOverride.Builder setDescriptionOverrideBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for descriptionOverride to set. |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
This builder for chaining. |
setNameOverride(String value)
public McpToolOverride.Builder setNameOverride(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe nameOverride to set. |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
This builder for chaining. |
setNameOverrideBytes(ByteString value)
public McpToolOverride.Builder setNameOverrideBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for nameOverride to set. |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
This builder for chaining. |
setSnapshot(McpToolDefinition value)
public McpToolOverride.Builder setSnapshot(McpToolDefinition value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
McpToolDefinition |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
|
setSnapshot(McpToolDefinition.Builder builderForValue)
public McpToolOverride.Builder setSnapshot(McpToolDefinition.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
McpToolDefinition.Builder |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
|
setTool(String value)
public McpToolOverride.Builder setTool(String value)Required. The original name of the tool as it is emitted by the MCP server.
string tool = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tool to set. |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
This builder for chaining. |
setToolBytes(ByteString value)
public McpToolOverride.Builder setToolBytes(ByteString value)Required. The original name of the tool as it is emitted by the MCP server.
string tool = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tool to set. |
| Returns | |
|---|---|
| Type | Description |
McpToolOverride.Builder |
This builder for chaining. |