Interface TargetAttributeOrBuilder (1.31.0)

public interface TargetAttributeOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Target labels.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getId()

public abstract String getId()

ID of the Target. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine which target is being referred to
  • "*", all targets in a location.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

ID of the Target. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine which target is being referred to
  • "*", all targets in a location.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Target labels.

map<string, string> labels = 2;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Target labels.

map<string, string> labels = 2;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Target labels.

map<string, string> labels = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Target labels.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String