Class GetServiceResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.platform.registration.v1.GetServiceResponse
- All Implemented Interfaces:
GetServiceResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class GetServiceResponse
extends com.google.protobuf.GeneratedMessage
implements GetServiceResponseOrBuilder
Complete details for a registered service instance. Includes connection information, metadata, health status, and registration timestamps.Protobuf type
ai.pipestream.platform.registration.v1.GetServiceResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classComplete details for a registered service instance.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Service metadata.booleangetCapabilities(int index) Service capabilities.com.google.protobuf.ByteStringgetCapabilitiesBytes(int index) Service capabilities.intService capabilities.com.google.protobuf.ProtocolStringListService capabilities.static GetServiceResponsestatic final com.google.protobuf.Descriptors.DescriptorgetHost()Host where service is running.com.google.protobuf.ByteStringHost where service is running.booleanWhether this instance is currently healthy.com.google.protobuf.TimestampTimestamp of last health check.com.google.protobuf.TimestampOrBuilderTimestamp of last health check.Deprecated.intService metadata.Service metadata.getMetadataOrDefault(String key, String defaultValue) Service metadata.getMetadataOrThrow(String key) Service metadata.com.google.protobuf.Parser<GetServiceResponse> intgetPort()Port where service accepts connections.com.google.protobuf.TimestampTimestamp when service was registered.com.google.protobuf.TimestampOrBuilderTimestamp when service was registered.intConsul service ID for this specific instance.com.google.protobuf.ByteStringConsul service ID for this specific instance.Logical service name.com.google.protobuf.ByteStringLogical service name.getTags(int index) Service tags for discovery.com.google.protobuf.ByteStringgetTagsBytes(int index) Service tags for discovery.intService tags for discovery.com.google.protobuf.ProtocolStringListService tags for discovery.Service version.com.google.protobuf.ByteStringService version.inthashCode()booleanTimestamp of last health check.booleanTimestamp when service was registered.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic GetServiceResponse.Builderstatic GetServiceResponse.BuildernewBuilder(GetServiceResponse prototype) protected GetServiceResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GetServiceResponseparseDelimitedFrom(InputStream input) static GetServiceResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GetServiceResponseparseFrom(byte[] data) static GetServiceResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GetServiceResponseparseFrom(com.google.protobuf.ByteString data) static GetServiceResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GetServiceResponseparseFrom(com.google.protobuf.CodedInputStream input) static GetServiceResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GetServiceResponseparseFrom(InputStream input) static GetServiceResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GetServiceResponseparseFrom(ByteBuffer data) static GetServiceResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GetServiceResponse> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SERVICE_NAME_FIELD_NUMBER
public static final int SERVICE_NAME_FIELD_NUMBER- See Also:
-
SERVICE_ID_FIELD_NUMBER
public static final int SERVICE_ID_FIELD_NUMBER- See Also:
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
CAPABILITIES_FIELD_NUMBER
public static final int CAPABILITIES_FIELD_NUMBER- See Also:
-
IS_HEALTHY_FIELD_NUMBER
public static final int IS_HEALTHY_FIELD_NUMBER- See Also:
-
REGISTERED_AT_FIELD_NUMBER
public static final int REGISTERED_AT_FIELD_NUMBER- See Also:
-
LAST_HEALTH_CHECK_FIELD_NUMBER
public static final int LAST_HEALTH_CHECK_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getServiceName
Logical service name.
string service_name = 1;- Specified by:
getServiceNamein interfaceGetServiceResponseOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()Logical service name.
string service_name = 1;- Specified by:
getServiceNameBytesin interfaceGetServiceResponseOrBuilder- Returns:
- The bytes for serviceName.
-
getServiceId
Consul service ID for this specific instance.
string service_id = 2;- Specified by:
getServiceIdin interfaceGetServiceResponseOrBuilder- Returns:
- The serviceId.
-
getServiceIdBytes
public com.google.protobuf.ByteString getServiceIdBytes()Consul service ID for this specific instance.
string service_id = 2;- Specified by:
getServiceIdBytesin interfaceGetServiceResponseOrBuilder- Returns:
- The bytes for serviceId.
-
getHost
Host where service is running.
string host = 3;- Specified by:
getHostin interfaceGetServiceResponseOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()Host where service is running.
string host = 3;- Specified by:
getHostBytesin interfaceGetServiceResponseOrBuilder- Returns:
- The bytes for host.
-
getPort
public int getPort()Port where service accepts connections.
int32 port = 4;- Specified by:
getPortin interfaceGetServiceResponseOrBuilder- Returns:
- The port.
-
getVersion
Service version.
string version = 5;- Specified by:
getVersionin interfaceGetServiceResponseOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Service version.
string version = 5;- Specified by:
getVersionBytesin interfaceGetServiceResponseOrBuilder- Returns:
- The bytes for version.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:GetServiceResponseOrBuilderService metadata.
map<string, string> metadata = 6;- Specified by:
getMetadataCountin interfaceGetServiceResponseOrBuilder
-
containsMetadata
Service metadata.
map<string, string> metadata = 6;- Specified by:
containsMetadatain interfaceGetServiceResponseOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceGetServiceResponseOrBuilder
-
getMetadataMap
Service metadata.
map<string, string> metadata = 6;- Specified by:
getMetadataMapin interfaceGetServiceResponseOrBuilder
-
getMetadataOrDefault
Service metadata.
map<string, string> metadata = 6;- Specified by:
getMetadataOrDefaultin interfaceGetServiceResponseOrBuilder
-
getMetadataOrThrow
Service metadata.
map<string, string> metadata = 6;- Specified by:
getMetadataOrThrowin interfaceGetServiceResponseOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Service tags for discovery.
repeated string tags = 7;- Specified by:
getTagsListin interfaceGetServiceResponseOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Service tags for discovery.
repeated string tags = 7;- Specified by:
getTagsCountin interfaceGetServiceResponseOrBuilder- Returns:
- The count of tags.
-
getTags
Service tags for discovery.
repeated string tags = 7;- Specified by:
getTagsin interfaceGetServiceResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Service tags for discovery.
repeated string tags = 7;- Specified by:
getTagsBytesin interfaceGetServiceResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getCapabilitiesList
public com.google.protobuf.ProtocolStringList getCapabilitiesList()Service capabilities.
repeated string capabilities = 8;- Specified by:
getCapabilitiesListin interfaceGetServiceResponseOrBuilder- Returns:
- A list containing the capabilities.
-
getCapabilitiesCount
public int getCapabilitiesCount()Service capabilities.
repeated string capabilities = 8;- Specified by:
getCapabilitiesCountin interfaceGetServiceResponseOrBuilder- Returns:
- The count of capabilities.
-
getCapabilities
Service capabilities.
repeated string capabilities = 8;- Specified by:
getCapabilitiesin interfaceGetServiceResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The capabilities at the given index.
-
getCapabilitiesBytes
public com.google.protobuf.ByteString getCapabilitiesBytes(int index) Service capabilities.
repeated string capabilities = 8;- Specified by:
getCapabilitiesBytesin interfaceGetServiceResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the capabilities at the given index.
-
getIsHealthy
public boolean getIsHealthy()Whether this instance is currently healthy.
bool is_healthy = 9;- Specified by:
getIsHealthyin interfaceGetServiceResponseOrBuilder- Returns:
- The isHealthy.
-
hasRegisteredAt
public boolean hasRegisteredAt()Timestamp when service was registered.
.google.protobuf.Timestamp registered_at = 10;- Specified by:
hasRegisteredAtin interfaceGetServiceResponseOrBuilder- Returns:
- Whether the registeredAt field is set.
-
getRegisteredAt
public com.google.protobuf.Timestamp getRegisteredAt()Timestamp when service was registered.
.google.protobuf.Timestamp registered_at = 10;- Specified by:
getRegisteredAtin interfaceGetServiceResponseOrBuilder- Returns:
- The registeredAt.
-
getRegisteredAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getRegisteredAtOrBuilder()Timestamp when service was registered.
.google.protobuf.Timestamp registered_at = 10;- Specified by:
getRegisteredAtOrBuilderin interfaceGetServiceResponseOrBuilder
-
hasLastHealthCheck
public boolean hasLastHealthCheck()Timestamp of last health check.
.google.protobuf.Timestamp last_health_check = 11;- Specified by:
hasLastHealthCheckin interfaceGetServiceResponseOrBuilder- Returns:
- Whether the lastHealthCheck field is set.
-
getLastHealthCheck
public com.google.protobuf.Timestamp getLastHealthCheck()Timestamp of last health check.
.google.protobuf.Timestamp last_health_check = 11;- Specified by:
getLastHealthCheckin interfaceGetServiceResponseOrBuilder- Returns:
- The lastHealthCheck.
-
getLastHealthCheckOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastHealthCheckOrBuilder()Timestamp of last health check.
.google.protobuf.Timestamp last_health_check = 11;- Specified by:
getLastHealthCheckOrBuilderin interfaceGetServiceResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GetServiceResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GetServiceResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GetServiceResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GetServiceResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GetServiceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GetServiceResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GetServiceResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GetServiceResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GetServiceResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GetServiceResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GetServiceResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-