Class Service.McpServerSpec (0.2.0)

public static final class Service.McpServerSpec extends GeneratedMessage implements Service.McpServerSpecOrBuilder

The spec of the MCP Server.

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

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Service.McpServerSpec getDefaultInstance()
Returns
Type Description
Service.McpServerSpec

getDescriptor()

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

newBuilder()

public static Service.McpServerSpec.Builder newBuilder()
Returns
Type Description
Service.McpServerSpec.Builder

newBuilder(Service.McpServerSpec prototype)

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

parseDelimitedFrom(InputStream input)

public static Service.McpServerSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.McpServerSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Service.McpServerSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Service.McpServerSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Service.McpServerSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Service.McpServerSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Service.McpServerSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.McpServerSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Service.McpServerSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Service.McpServerSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Service.McpServerSpec> parser()
Returns
Type Description
Parser<McpServerSpec>

Methods

equals(Object obj)

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

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.

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

getParserForType()

public Parser<Service.McpServerSpec> getParserForType()
Returns
Type Description
Parser<McpServerSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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 Service.McpServerSpec.Builder newBuilderForType()
Returns
Type Description
Service.McpServerSpec.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public Service.McpServerSpec.Builder toBuilder()
Returns
Type Description
Service.McpServerSpec.Builder

writeTo(CodedOutputStream output)

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