Class Service.McpServerSpec.Builder (0.2.0)

public static final class Service.McpServerSpec.Builder extends GeneratedMessage.Builder<Service.McpServerSpec.Builder> implements Service.McpServerSpecOrBuilder

The spec of the MCP Server.

Protobuf type google.cloud.agentregistry.v1.Service.McpServerSpec

Static Methods

getDescriptor()

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

Methods

build()

public Service.McpServerSpec build()
Returns
Type Description
Service.McpServerSpec

buildPartial()

public Service.McpServerSpec buildPartial()
Returns
Type Description
Service.McpServerSpec

clear()

public Service.McpServerSpec.Builder clear()
Returns
Type Description
Service.McpServerSpec.Builder
Overrides

clearContent()

public Service.McpServerSpec.Builder clearContent()

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.McpServerSpec.Builder

clearType()

public Service.McpServerSpec.Builder clearType()

Required. The type of the MCP Server spec content.

.google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.McpServerSpec.Builder

This builder for chaining.

getContent()

public Struct getContent()

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The content.

getContentBuilder()

public Struct.Builder getContentBuilder()

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getContentOrBuilder()

public StructOrBuilder getContentOrBuilder()

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public Service.McpServerSpec getDefaultInstanceForType()
Returns
Type Description
Service.McpServerSpec

getDescriptorForType()

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

getType()

public Service.McpServerSpec.Type getType()

Required. The type of the MCP Server spec content.

.google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.McpServerSpec.Type

The type.

getTypeValue()

public int getTypeValue()

Required. The type of the MCP Server spec content.

.google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasContent()

public boolean hasContent()

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the content field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContent(Struct value)

public Service.McpServerSpec.Builder mergeContent(Struct value)

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
Service.McpServerSpec.Builder

mergeFrom(Service.McpServerSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContent(Struct value)

public Service.McpServerSpec.Builder setContent(Struct value)

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
Service.McpServerSpec.Builder

setContent(Struct.Builder builderForValue)

public Service.McpServerSpec.Builder setContent(Struct.Builder builderForValue)

Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to 10KB.

.google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Service.McpServerSpec.Builder

setType(Service.McpServerSpec.Type value)

public Service.McpServerSpec.Builder setType(Service.McpServerSpec.Type value)

Required. The type of the MCP Server spec content.

.google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Service.McpServerSpec.Type

The type to set.

Returns
Type Description
Service.McpServerSpec.Builder

This builder for chaining.

setTypeValue(int value)

public Service.McpServerSpec.Builder setTypeValue(int value)

Required. The type of the MCP Server spec content.

.google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Service.McpServerSpec.Builder

This builder for chaining.