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 Details

    • getFound

      boolean getFound()
       Whether a healthy instance was found.
       
      bool found = 1 [json_name = "found"];
      Returns:
      The found.
    • getServiceName

      String getServiceName()
       Service name that was resolved.
       
      string service_name = 2 [json_name = "serviceName"];
      Returns:
      The serviceName.
    • getServiceNameBytes

      com.google.protobuf.ByteString getServiceNameBytes()
       Service name that was resolved.
       
      string service_name = 2 [json_name = "serviceName"];
      Returns:
      The bytes for serviceName.
    • getHost

      String getHost()
       Host of the selected instance.
       
      string host = 3 [json_name = "host"];
      Returns:
      The host.
    • getHostBytes

      com.google.protobuf.ByteString getHostBytes()
       Host of the selected instance.
       
      string host = 3 [json_name = "host"];
      Returns:
      The bytes for host.
    • getPort

      int getPort()
       Port of the selected instance.
       
      int32 port = 4 [json_name = "port"];
      Returns:
      The port.
    • getServiceId

      String getServiceId()
       Consul service ID of the selected instance.
       
      string service_id = 5 [json_name = "serviceId"];
      Returns:
      The serviceId.
    • getServiceIdBytes

      com.google.protobuf.ByteString getServiceIdBytes()
       Consul service ID of the selected instance.
       
      string service_id = 5 [json_name = "serviceId"];
      Returns:
      The bytes for serviceId.
    • getMetadataCount

      int getMetadataCount()
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • containsMetadata

      boolean containsMetadata(String key)
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • getMetadata

      @Deprecated Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
    • getMetadataMap

      Map<String,String> getMetadataMap()
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • getMetadataOrDefault

      String getMetadataOrDefault(String key, String defaultValue)
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • getMetadataOrThrow

      String getMetadataOrThrow(String key)
       Additional metadata from the selected instance.
       
      map<string, string> metadata = 6 [json_name = "metadata"];
    • getTagsList

      List<String> getTagsList()
       Tags associated with the selected instance.
       
      repeated string tags = 7 [json_name = "tags"];
      Returns:
      A list containing the tags.
    • getTagsCount

      int getTagsCount()
       Tags associated with the selected instance.
       
      repeated string tags = 7 [json_name = "tags"];
      Returns:
      The count of tags.
    • getTags

      String getTags(int index)
       Tags associated with the selected instance.
       
      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)
       Tags associated with the selected instance.
       
      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

      List<String> getCapabilitiesList()
       Capabilities of the selected instance.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Returns:
      A list containing the capabilities.
    • getCapabilitiesCount

      int getCapabilitiesCount()
       Capabilities of the selected instance.
       
      repeated string capabilities = 8 [json_name = "capabilities"];
      Returns:
      The count of capabilities.
    • getCapabilities

      String getCapabilities(int index)
       Capabilities of the selected instance.
       
      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)
       Capabilities of the selected instance.
       
      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.
    • getVersion

      String getVersion()
       Version of the selected instance.
       
      string version = 9 [json_name = "version"];
      Returns:
      The version.
    • getVersionBytes

      com.google.protobuf.ByteString getVersionBytes()
       Version of the selected instance.
       
      string version = 9 [json_name = "version"];
      Returns:
      The bytes for version.
    • getTotalInstances

      int getTotalInstances()
       Total number of instances found (including unhealthy).
       
      int32 total_instances = 10 [json_name = "totalInstances"];
      Returns:
      The totalInstances.
    • getHealthyInstances

      int getHealthyInstances()
       Number of healthy instances considered.
       
      int32 healthy_instances = 11 [json_name = "healthyInstances"];
      Returns:
      The healthyInstances.
    • getSelectionReason

      String getSelectionReason()
       Explanation of why this instance was selected.
       
      string selection_reason = 12 [json_name = "selectionReason"];
      Returns:
      The selectionReason.
    • getSelectionReasonBytes

      com.google.protobuf.ByteString getSelectionReasonBytes()
       Explanation of why this instance was selected.
       
      string selection_reason = 12 [json_name = "selectionReason"];
      Returns:
      The bytes for selectionReason.
    • hasResolvedAt

      boolean hasResolvedAt()
       Timestamp when resolution occurred.
       
      .google.protobuf.Timestamp resolved_at = 13 [json_name = "resolvedAt"];
      Returns:
      Whether the resolvedAt field is set.
    • getResolvedAt

      com.google.protobuf.Timestamp getResolvedAt()
       Timestamp when resolution occurred.
       
      .google.protobuf.Timestamp resolved_at = 13 [json_name = "resolvedAt"];
      Returns:
      The resolvedAt.
    • getResolvedAtOrBuilder

      com.google.protobuf.TimestampOrBuilder getResolvedAtOrBuilder()
       Timestamp when resolution occurred.
       
      .google.protobuf.Timestamp resolved_at = 13 [json_name = "resolvedAt"];