Interface LocationPolicyLocationOrBuilder (1.30.0)

public interface LocationPolicyLocationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConstraints()

public abstract LocationPolicyLocationConstraints getConstraints()

Constraints that the caller requires on the result distribution in this zone.

optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Returns
TypeDescription
LocationPolicyLocationConstraints

The constraints.

getConstraintsOrBuilder()

public abstract LocationPolicyLocationConstraintsOrBuilder getConstraintsOrBuilder()

Constraints that the caller requires on the result distribution in this zone.

optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Returns
TypeDescription
LocationPolicyLocationConstraintsOrBuilder

getPreference()

public abstract String getPreference()

Preference for a given location. Set to either ALLOW or DENY. Check the Preference enum for the list of possible values.

optional string preference = 150781147;

Returns
TypeDescription
String

The preference.

getPreferenceBytes()

public abstract ByteString getPreferenceBytes()

Preference for a given location. Set to either ALLOW or DENY. Check the Preference enum for the list of possible values.

optional string preference = 150781147;

Returns
TypeDescription
ByteString

The bytes for preference.

hasConstraints()

public abstract boolean hasConstraints()

Constraints that the caller requires on the result distribution in this zone.

optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Returns
TypeDescription
boolean

Whether the constraints field is set.

hasPreference()

public abstract boolean hasPreference()

Preference for a given location. Set to either ALLOW or DENY. Check the Preference enum for the list of possible values.

optional string preference = 150781147;

Returns
TypeDescription
boolean

Whether the preference field is set.