Interface PolicyOrBuilder (1.2.12)

public interface PolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBindings(int index)

public abstract Binding getBindings(int index)

Associates a list of members to a role. Optionally may specify a condition that determines when binding is in effect. bindings with no members will result in an error.

repeated .google.iam.v1.Binding bindings = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Binding

getBindingsCount()

public abstract int getBindingsCount()

Associates a list of members to a role. Optionally may specify a condition that determines when binding is in effect. bindings with no members will result in an error.

repeated .google.iam.v1.Binding bindings = 4;

Returns
TypeDescription
int

getBindingsList()

public abstract List<Binding> getBindingsList()

Associates a list of members to a role. Optionally may specify a condition that determines when binding is in effect. bindings with no members will result in an error.

repeated .google.iam.v1.Binding bindings = 4;

Returns
TypeDescription
List<Binding>

getBindingsOrBuilder(int index)

public abstract BindingOrBuilder getBindingsOrBuilder(int index)

Associates a list of members to a role. Optionally may specify a condition that determines when binding is in effect. bindings with no members will result in an error.

repeated .google.iam.v1.Binding bindings = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
BindingOrBuilder

getBindingsOrBuilderList()

public abstract List<? extends BindingOrBuilder> getBindingsOrBuilderList()

Associates a list of members to a role. Optionally may specify a condition that determines when binding is in effect. bindings with no members will result in an error.

repeated .google.iam.v1.Binding bindings = 4;

Returns
TypeDescription
List<? extends com.google.iam.v1.BindingOrBuilder>

getEtag()

public abstract ByteString getEtag()

etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy. If no etag is provided in the call to setIamPolicy, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy.

bytes etag = 3;

Returns
TypeDescription
ByteString

The etag.

getVersion()

public abstract int getVersion()

Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to setIamPolicy, version compliance checks against the stored policy is skipped.

int32 version = 1;

Returns
TypeDescription
int

The version.