Interface TargetAttributeOrBuilder (1.45.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
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for id.

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Target labels.

map<string, string> labels = 2;

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Target labels.

map<string, string> labels = 2;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Target labels.

map<string, string> labels = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Target labels.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
String