Class McpToolDefinition.Builder (0.9.0)

public static final class McpToolDefinition.Builder extends GeneratedMessage.Builder<McpToolDefinition.Builder> implements McpToolDefinitionOrBuilder

Container for a tool's core definition elements that are snapshot. Schemas in the snapshot are used as-is and cannot be overridden.

Protobuf type google.cloud.ces.v1beta.McpToolDefinition

Static Methods

getDescriptor()

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

Methods

build()

public McpToolDefinition build()
Returns
Type Description
McpToolDefinition

buildPartial()

public McpToolDefinition buildPartial()
Returns
Type Description
McpToolDefinition

clear()

public McpToolDefinition.Builder clear()
Returns
Type Description
McpToolDefinition.Builder
Overrides

clearDescription()

public McpToolDefinition.Builder clearDescription()

Output only. The description of the MCP tool. This can be overridden by description_override in McpToolOverride.

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

Returns
Type Description
McpToolDefinition.Builder

This builder for chaining.

clearInputSchema()

public McpToolDefinition.Builder clearInputSchema()

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpToolDefinition.Builder

clearOutputSchema()

public McpToolDefinition.Builder clearOutputSchema()

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
McpToolDefinition.Builder

getDefaultInstanceForType()

public McpToolDefinition getDefaultInstanceForType()
Returns
Type Description
McpToolDefinition

getDescription()

public String getDescription()

Output only. The description of the MCP tool. This can be overridden by description_override in McpToolOverride.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description of the MCP tool. This can be overridden by description_override in McpToolOverride.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getInputSchema()

public Schema getInputSchema()

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Schema

The inputSchema.

getInputSchemaBuilder()

public Schema.Builder getInputSchemaBuilder()

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Schema.Builder

getInputSchemaOrBuilder()

public SchemaOrBuilder getInputSchemaOrBuilder()

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SchemaOrBuilder

getOutputSchema()

public Schema getOutputSchema()

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Schema

The outputSchema.

getOutputSchemaBuilder()

public Schema.Builder getOutputSchemaBuilder()

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Schema.Builder

getOutputSchemaOrBuilder()

public SchemaOrBuilder getOutputSchemaOrBuilder()

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SchemaOrBuilder

hasInputSchema()

public boolean hasInputSchema()

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the inputSchema field is set.

hasOutputSchema()

public boolean hasOutputSchema()

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the outputSchema field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(McpToolDefinition other)

public McpToolDefinition.Builder mergeFrom(McpToolDefinition other)
Parameter
Name Description
other McpToolDefinition
Returns
Type Description
McpToolDefinition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public McpToolDefinition.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
McpToolDefinition.Builder
Overrides

mergeInputSchema(Schema value)

public McpToolDefinition.Builder mergeInputSchema(Schema value)

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Schema
Returns
Type Description
McpToolDefinition.Builder

mergeOutputSchema(Schema value)

public McpToolDefinition.Builder mergeOutputSchema(Schema value)

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Schema
Returns
Type Description
McpToolDefinition.Builder

setDescription(String value)

public McpToolDefinition.Builder setDescription(String value)

Output only. The description of the MCP tool. This can be overridden by description_override in McpToolOverride.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
McpToolDefinition.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public McpToolDefinition.Builder setDescriptionBytes(ByteString value)

Output only. The description of the MCP tool. This can be overridden by description_override in McpToolOverride.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
McpToolDefinition.Builder

This builder for chaining.

setInputSchema(Schema value)

public McpToolDefinition.Builder setInputSchema(Schema value)

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Schema
Returns
Type Description
McpToolDefinition.Builder

setInputSchema(Schema.Builder builderForValue)

public McpToolDefinition.Builder setInputSchema(Schema.Builder builderForValue)

Output only. The schema of the input arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema input_schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
McpToolDefinition.Builder

setOutputSchema(Schema value)

public McpToolDefinition.Builder setOutputSchema(Schema value)

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Schema
Returns
Type Description
McpToolDefinition.Builder

setOutputSchema(Schema.Builder builderForValue)

public McpToolDefinition.Builder setOutputSchema(Schema.Builder builderForValue)

Output only. The schema of the output arguments of the MCP tool.

.google.cloud.ces.v1beta.Schema output_schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
McpToolDefinition.Builder