Interface ResolveServiceResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResolveServiceResponse,ResolveServiceResponse.Builder
@Generated
public interface ResolveServiceResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Additional metadata from the selected instance.getCapabilities(int index) Capabilities of the selected instance.com.google.protobuf.ByteStringgetCapabilitiesBytes(int index) Capabilities of the selected instance.intCapabilities of the selected instance.Capabilities of the selected instance.booleangetFound()Whether a healthy instance was found.intNumber of healthy instances considered.getHost()Host of the selected instance.com.google.protobuf.ByteStringHost of the selected instance.Deprecated.intAdditional metadata from the selected instance.Additional metadata from the selected instance.getMetadataOrDefault(String key, String defaultValue) Additional metadata from the selected instance.getMetadataOrThrow(String key) Additional metadata from the selected instance.intgetPort()Port of the selected instance.com.google.protobuf.TimestampTimestamp when resolution occurred.com.google.protobuf.TimestampOrBuilderTimestamp when resolution occurred.Explanation of why this instance was selected.com.google.protobuf.ByteStringExplanation of why this instance was selected.Consul service ID of the selected instance.com.google.protobuf.ByteStringConsul service ID of the selected instance.Service name that was resolved.com.google.protobuf.ByteStringService name that was resolved.getTags(int index) Tags associated with the selected instance.com.google.protobuf.ByteStringgetTagsBytes(int index) Tags associated with the selected instance.intTags associated with the selected instance.Tags associated with the selected instance.intTotal number of instances found (including unhealthy).Version of the selected instance.com.google.protobuf.ByteStringVersion of the selected instance.booleanTimestamp when resolution occurred.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
-
getFound
boolean getFound()Whether a healthy instance was found.
bool found = 1;- Returns:
- The found.
-
getServiceName
String getServiceName()Service name that was resolved.
string service_name = 2;- Returns:
- The serviceName.
-
getServiceNameBytes
com.google.protobuf.ByteString getServiceNameBytes()Service name that was resolved.
string service_name = 2;- Returns:
- The bytes for serviceName.
-
getHost
String getHost()Host of the selected instance.
string host = 3;- Returns:
- The host.
-
getHostBytes
com.google.protobuf.ByteString getHostBytes()Host of the selected instance.
string host = 3;- Returns:
- The bytes for host.
-
getPort
int getPort()Port of the selected instance.
int32 port = 4;- Returns:
- The port.
-
getServiceId
String getServiceId()Consul service ID of the selected instance.
string service_id = 5;- Returns:
- The serviceId.
-
getServiceIdBytes
com.google.protobuf.ByteString getServiceIdBytes()Consul service ID of the selected instance.
string service_id = 5;- Returns:
- The bytes for serviceId.
-
getMetadataCount
int getMetadataCount()Additional metadata from the selected instance.
map<string, string> metadata = 6; -
containsMetadata
Additional metadata from the selected instance.
map<string, string> metadata = 6; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
Additional metadata from the selected instance.
map<string, string> metadata = 6; -
getMetadataOrDefault
Additional metadata from the selected instance.
map<string, string> metadata = 6; -
getMetadataOrThrow
Additional metadata from the selected instance.
map<string, string> metadata = 6; -
getTagsList
Tags associated with the selected instance.
repeated string tags = 7;- Returns:
- A list containing the tags.
-
getTagsCount
int getTagsCount()Tags associated with the selected instance.
repeated string tags = 7;- Returns:
- The count of tags.
-
getTags
Tags associated with the selected instance.
repeated string tags = 7;- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
com.google.protobuf.ByteString getTagsBytes(int index) Tags associated with the selected instance.
repeated string tags = 7;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getCapabilitiesList
Capabilities of the selected instance.
repeated string capabilities = 8;- Returns:
- A list containing the capabilities.
-
getCapabilitiesCount
int getCapabilitiesCount()Capabilities of the selected instance.
repeated string capabilities = 8;- Returns:
- The count of capabilities.
-
getCapabilities
Capabilities of the selected instance.
repeated string capabilities = 8;- Parameters:
index- The index of the element to return.- Returns:
- The capabilities at the given index.
-
getCapabilitiesBytes
com.google.protobuf.ByteString getCapabilitiesBytes(int index) Capabilities of the selected instance.
repeated string capabilities = 8;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the capabilities at the given index.
-
getVersion
String getVersion()Version of the selected instance.
string version = 9;- Returns:
- The version.
-
getVersionBytes
com.google.protobuf.ByteString getVersionBytes()Version of the selected instance.
string version = 9;- Returns:
- The bytes for version.
-
getTotalInstances
int getTotalInstances()Total number of instances found (including unhealthy).
int32 total_instances = 10;- Returns:
- The totalInstances.
-
getHealthyInstances
int getHealthyInstances()Number of healthy instances considered.
int32 healthy_instances = 11;- Returns:
- The healthyInstances.
-
getSelectionReason
String getSelectionReason()Explanation of why this instance was selected.
string selection_reason = 12;- Returns:
- The selectionReason.
-
getSelectionReasonBytes
com.google.protobuf.ByteString getSelectionReasonBytes()Explanation of why this instance was selected.
string selection_reason = 12;- Returns:
- The bytes for selectionReason.
-
hasResolvedAt
boolean hasResolvedAt()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13;- Returns:
- Whether the resolvedAt field is set.
-
getResolvedAt
com.google.protobuf.Timestamp getResolvedAt()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13;- Returns:
- The resolvedAt.
-
getResolvedAtOrBuilder
com.google.protobuf.TimestampOrBuilder getResolvedAtOrBuilder()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13;
-