Interface GetServiceResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GetServiceResponse,GetServiceResponse.Builder
@Generated
public interface GetServiceResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Service metadata.getCapabilities(int index) Service capabilities.com.google.protobuf.ByteStringgetCapabilitiesBytes(int index) Service capabilities.intService capabilities.Service capabilities.getHost()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.intgetPort()Port where service accepts connections.com.google.protobuf.TimestampTimestamp when service was registered.com.google.protobuf.TimestampOrBuilderTimestamp when service was registered.Consul 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.Service tags for discovery.Service version.com.google.protobuf.ByteStringService version.booleanTimestamp of last health check.booleanTimestamp when service was registered.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getServiceName
String getServiceName()Logical service name.
string service_name = 1 [json_name = "serviceName"];- Returns:
- The serviceName.
-
getServiceNameBytes
com.google.protobuf.ByteString getServiceNameBytes()Logical service name.
string service_name = 1 [json_name = "serviceName"];- Returns:
- The bytes for serviceName.
-
getServiceId
String getServiceId()Consul service ID for this specific instance.
string service_id = 2 [json_name = "serviceId"];- Returns:
- The serviceId.
-
getServiceIdBytes
com.google.protobuf.ByteString getServiceIdBytes()Consul service ID for this specific instance.
string service_id = 2 [json_name = "serviceId"];- Returns:
- The bytes for serviceId.
-
getHost
String getHost()Host where service is running.
string host = 3 [json_name = "host"];- Returns:
- The host.
-
getHostBytes
com.google.protobuf.ByteString getHostBytes()Host where service is running.
string host = 3 [json_name = "host"];- Returns:
- The bytes for host.
-
getPort
int getPort()Port where service accepts connections.
int32 port = 4 [json_name = "port"];- Returns:
- The port.
-
getVersion
String getVersion()Service version.
string version = 5 [json_name = "version"];- Returns:
- The version.
-
getVersionBytes
com.google.protobuf.ByteString getVersionBytes()Service version.
string version = 5 [json_name = "version"];- Returns:
- The bytes for version.
-
getMetadataCount
int getMetadataCount()Service metadata.
map<string, string> metadata = 6 [json_name = "metadata"]; -
containsMetadata
Service metadata.
map<string, string> metadata = 6 [json_name = "metadata"]; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
Service metadata.
map<string, string> metadata = 6 [json_name = "metadata"]; -
getMetadataOrDefault
Service metadata.
map<string, string> metadata = 6 [json_name = "metadata"]; -
getMetadataOrThrow
Service metadata.
map<string, string> metadata = 6 [json_name = "metadata"]; -
getTagsList
Service tags for discovery.
repeated string tags = 7 [json_name = "tags"];- Returns:
- A list containing the tags.
-
getTagsCount
int getTagsCount()Service tags for discovery.
repeated string tags = 7 [json_name = "tags"];- Returns:
- The count of tags.
-
getTags
Service tags for discovery.
repeated string tags = 7 [json_name = "tags"];- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
com.google.protobuf.ByteString getTagsBytes(int index) Service tags for discovery.
repeated string tags = 7 [json_name = "tags"];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getCapabilitiesList
Service capabilities.
repeated string capabilities = 8 [json_name = "capabilities"];- Returns:
- A list containing the capabilities.
-
getCapabilitiesCount
int getCapabilitiesCount()Service capabilities.
repeated string capabilities = 8 [json_name = "capabilities"];- Returns:
- The count of capabilities.
-
getCapabilities
Service capabilities.
repeated string capabilities = 8 [json_name = "capabilities"];- Parameters:
index- The index of the element to return.- Returns:
- The capabilities at the given index.
-
getCapabilitiesBytes
com.google.protobuf.ByteString getCapabilitiesBytes(int index) Service capabilities.
repeated string capabilities = 8 [json_name = "capabilities"];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the capabilities at the given index.
-
getIsHealthy
boolean getIsHealthy()Whether this instance is currently healthy.
bool is_healthy = 9 [json_name = "isHealthy"];- Returns:
- The isHealthy.
-
hasRegisteredAt
boolean hasRegisteredAt()Timestamp when service was registered.
.google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];- Returns:
- Whether the registeredAt field is set.
-
getRegisteredAt
com.google.protobuf.Timestamp getRegisteredAt()Timestamp when service was registered.
.google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"];- Returns:
- The registeredAt.
-
getRegisteredAtOrBuilder
com.google.protobuf.TimestampOrBuilder getRegisteredAtOrBuilder()Timestamp when service was registered.
.google.protobuf.Timestamp registered_at = 10 [json_name = "registeredAt"]; -
hasLastHealthCheck
boolean hasLastHealthCheck()Timestamp of last health check.
.google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];- Returns:
- Whether the lastHealthCheck field is set.
-
getLastHealthCheck
com.google.protobuf.Timestamp getLastHealthCheck()Timestamp of last health check.
.google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];- Returns:
- The lastHealthCheck.
-
getLastHealthCheckOrBuilder
com.google.protobuf.TimestampOrBuilder getLastHealthCheckOrBuilder()Timestamp of last health check.
.google.protobuf.Timestamp last_health_check = 11 [json_name = "lastHealthCheck"];
-