public final class Service extends GeneratedMessage implements ServiceOrBuilder
Represents a user-defined Service.
Protobuf type google.cloud.agentregistry.v1.Service
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AGENT_SPEC_FIELD_NUMBER
public static final int AGENT_SPEC_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENDPOINT_SPEC_FIELD_NUMBER
public static final int ENDPOINT_SPEC_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
INTERFACES_FIELD_NUMBER
public static final int INTERFACES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MCP_SERVER_SPEC_FIELD_NUMBER
public static final int MCP_SERVER_SPEC_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REGISTRY_RESOURCE_FIELD_NUMBER
public static final int REGISTRY_RESOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Service getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Service.Builder newBuilder()
newBuilder(Service prototype)
public static Service.Builder newBuilder(Service prototype)
| Parameter |
| Name |
Description |
prototype |
Service
|
public static Service parseDelimitedFrom(InputStream input)
public static Service parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Service parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Service parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(CodedInputStream input)
public static Service parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(InputStream input)
public static Service parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Service parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Service> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAgentSpec()
public Service.AgentSpec getAgentSpec()
Optional. The spec of the Agent. When agent_spec is set, the type of
the service is Agent.
.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
getAgentSpecOrBuilder()
public Service.AgentSpecOrBuilder getAgentSpecOrBuilder()
Optional. The spec of the Agent. When agent_spec is set, the type of
the service is Agent.
.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
getCreateTime()
public Timestamp getCreateTime()
Output only. Create time.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Service getDefaultInstanceForType()
getDescription()
public String getDescription()
Optional. User-defined description of an Service.
Can have a maximum length of 2048 characters.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. User-defined description of an Service.
Can have a maximum length of 2048 characters.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for description.
|
getDisplayName()
public String getDisplayName()
Optional. User-defined display name for the Service.
Can have a maximum length of 63 characters.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Optional. User-defined display name for the Service.
Can have a maximum length of 63 characters.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
getEndpointSpec()
public Service.EndpointSpec getEndpointSpec()
Optional. The spec of the Endpoint. When endpoint_spec is set, the type
of the service is Endpoint.
.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
getEndpointSpecOrBuilder()
public Service.EndpointSpecOrBuilder getEndpointSpecOrBuilder()
Optional. The spec of the Endpoint. When endpoint_spec is set, the type
of the service is Endpoint.
.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
getInterfaces(int index)
public Interface getInterfaces(int index)
Optional. The connection details for the Service.
repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getInterfacesCount()
public int getInterfacesCount()
Optional. The connection details for the Service.
repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getInterfacesList()
public List<Interface> getInterfacesList()
Optional. The connection details for the Service.
repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL];
getInterfacesOrBuilder(int index)
public InterfaceOrBuilder getInterfacesOrBuilder(int index)
Optional. The connection details for the Service.
repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getInterfacesOrBuilderList()
public List<? extends InterfaceOrBuilder> getInterfacesOrBuilderList()
Optional. The connection details for the Service.
repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.agentregistry.v1.InterfaceOrBuilder> |
|
getMcpServerSpec()
public Service.McpServerSpec getMcpServerSpec()
Optional. The spec of the MCP Server. When mcp_server_spec is set, the
type of the service is MCP Server.
.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
getMcpServerSpecOrBuilder()
public Service.McpServerSpecOrBuilder getMcpServerSpecOrBuilder()
Optional. The spec of the MCP Server. When mcp_server_spec is set, the
type of the service is MCP Server.
.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
getName()
Identifier. The resource name of the Service.
Format: projects/{project}/locations/{location}/services/{service}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. The resource name of the Service.
Format: projects/{project}/locations/{location}/services/{service}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Service> getParserForType()
Overrides
getRegistryResource()
public String getRegistryResource()
Output only. The resource name of the resulting Agent, MCP Server, or
Endpoint. Format:
projects/{project}/locations/{location}/mcpServers/{mcp_server}
projects/{project}/locations/{location}/agents/{agent}
projects/{project}/locations/{location}/endpoints/{endpoint}
string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The registryResource.
|
getRegistryResourceBytes()
public ByteString getRegistryResourceBytes()
Output only. The resource name of the resulting Agent, MCP Server, or
Endpoint. Format:
projects/{project}/locations/{location}/mcpServers/{mcp_server}
projects/{project}/locations/{location}/agents/{agent}
projects/{project}/locations/{location}/endpoints/{endpoint}
string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for registryResource.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSpecCase()
public Service.SpecCase getSpecCase()
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Update time.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Update time.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasAgentSpec()
public boolean hasAgentSpec()
Optional. The spec of the Agent. When agent_spec is set, the type of
the service is Agent.
.google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the agentSpec field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Create time.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the createTime field is set.
|
hasEndpointSpec()
public boolean hasEndpointSpec()
Optional. The spec of the Endpoint. When endpoint_spec is set, the type
of the service is Endpoint.
.google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the endpointSpec field is set.
|
hasMcpServerSpec()
public boolean hasMcpServerSpec()
Optional. The spec of the MCP Server. When mcp_server_spec is set, the
type of the service is MCP Server.
.google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the mcpServerSpec field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Update time.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the updateTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Service.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Service.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Service.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides