Interface BackendServiceCustomMetricOrBuilder (1.70.0)

public interface BackendServiceCustomMetricOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDryRun()

public abstract boolean getDryRun()

If true, the metric data is not used for load balancing.

optional bool dry_run = 323854839;

Returns
Type Description
boolean

The dryRun.

getName()

public abstract String getName()

Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

hasDryRun()

public abstract boolean hasDryRun()

If true, the metric data is not used for load balancing.

optional bool dry_run = 323854839;

Returns
Type Description
boolean

Whether the dryRun field is set.

hasName()

public abstract boolean hasName()

Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.