Class ExplainedAccess.Builder (0.14.0)

public static final class ExplainedAccess.Builder extends GeneratedMessageV3.Builder<ExplainedAccess.Builder> implements ExplainedAccessOrBuilder

Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState when replaying an access tuple.

Protobuf type google.cloud.policysimulator.v1.ExplainedAccess

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllErrors(Iterable<? extends Status> values)

public ExplainedAccess.Builder addAllErrors(Iterable<? extends Status> values)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
ExplainedAccess.Builder

addAllPolicies(Iterable<? extends ExplainedPolicy> values)

public ExplainedAccess.Builder addAllPolicies(Iterable<? extends ExplainedPolicy> values)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.policysimulator.v1.ExplainedPolicy>
Returns
TypeDescription
ExplainedAccess.Builder

addErrors(Status value)

public ExplainedAccess.Builder addErrors(Status value)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ExplainedAccess.Builder

addErrors(Status.Builder builderForValue)

public ExplainedAccess.Builder addErrors(Status.Builder builderForValue)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ExplainedAccess.Builder

addErrors(int index, Status value)

public ExplainedAccess.Builder addErrors(int index, Status value)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
ExplainedAccess.Builder

addErrors(int index, Status.Builder builderForValue)

public ExplainedAccess.Builder addErrors(int index, Status.Builder builderForValue)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ExplainedAccess.Builder

addErrorsBuilder()

public Status.Builder addErrorsBuilder()

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
com.google.rpc.Status.Builder

addErrorsBuilder(int index)

public Status.Builder addErrorsBuilder(int index)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

addPolicies(ExplainedPolicy value)

public ExplainedAccess.Builder addPolicies(ExplainedPolicy value)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
valueExplainedPolicy
Returns
TypeDescription
ExplainedAccess.Builder

addPolicies(ExplainedPolicy.Builder builderForValue)

public ExplainedAccess.Builder addPolicies(ExplainedPolicy.Builder builderForValue)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
builderForValueExplainedPolicy.Builder
Returns
TypeDescription
ExplainedAccess.Builder

addPolicies(int index, ExplainedPolicy value)

public ExplainedAccess.Builder addPolicies(int index, ExplainedPolicy value)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameters
NameDescription
indexint
valueExplainedPolicy
Returns
TypeDescription
ExplainedAccess.Builder

addPolicies(int index, ExplainedPolicy.Builder builderForValue)

public ExplainedAccess.Builder addPolicies(int index, ExplainedPolicy.Builder builderForValue)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameters
NameDescription
indexint
builderForValueExplainedPolicy.Builder
Returns
TypeDescription
ExplainedAccess.Builder

addPoliciesBuilder()

public ExplainedPolicy.Builder addPoliciesBuilder()

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Returns
TypeDescription
ExplainedPolicy.Builder

addPoliciesBuilder(int index)

public ExplainedPolicy.Builder addPoliciesBuilder(int index)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExplainedAccess.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

build()

public ExplainedAccess build()
Returns
TypeDescription
ExplainedAccess

buildPartial()

public ExplainedAccess buildPartial()
Returns
TypeDescription
ExplainedAccess

clear()

public ExplainedAccess.Builder clear()
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

clearAccessState()

public ExplainedAccess.Builder clearAccessState()

Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.

.google.cloud.policysimulator.v1.AccessState access_state = 1;

Returns
TypeDescription
ExplainedAccess.Builder

This builder for chaining.

clearErrors()

public ExplainedAccess.Builder clearErrors()

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
ExplainedAccess.Builder

clearField(Descriptors.FieldDescriptor field)

public ExplainedAccess.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExplainedAccess.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

clearPolicies()

public ExplainedAccess.Builder clearPolicies()

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Returns
TypeDescription
ExplainedAccess.Builder

clone()

public ExplainedAccess.Builder clone()
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

getAccessState()

public AccessState getAccessState()

Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.

.google.cloud.policysimulator.v1.AccessState access_state = 1;

Returns
TypeDescription
AccessState

The accessState.

getAccessStateValue()

public int getAccessStateValue()

Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.

.google.cloud.policysimulator.v1.AccessState access_state = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for accessState.

getDefaultInstanceForType()

public ExplainedAccess getDefaultInstanceForType()
Returns
TypeDescription
ExplainedAccess

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrors(int index)

public Status getErrors(int index)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status

getErrorsBuilder(int index)

public Status.Builder getErrorsBuilder(int index)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorsBuilderList()

public List<Status.Builder> getErrorsBuilderList()

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
List<com.google.rpc.Status.Builder>

getErrorsCount()

public int getErrorsCount()

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
int

getErrorsList()

public List<Status> getErrorsList()

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
List<com.google.rpc.Status>

getErrorsOrBuilder(int index)

public StatusOrBuilder getErrorsOrBuilder(int index)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getErrorsOrBuilderList()

public List<? extends StatusOrBuilder> getErrorsOrBuilderList()

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Returns
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

getPolicies(int index)

public ExplainedPolicy getPolicies(int index)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedPolicy

getPoliciesBuilder(int index)

public ExplainedPolicy.Builder getPoliciesBuilder(int index)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedPolicy.Builder

getPoliciesBuilderList()

public List<ExplainedPolicy.Builder> getPoliciesBuilderList()

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Returns
TypeDescription
List<Builder>

getPoliciesCount()

public int getPoliciesCount()

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Returns
TypeDescription
int

getPoliciesList()

public List<ExplainedPolicy> getPoliciesList()

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Returns
TypeDescription
List<ExplainedPolicy>

getPoliciesOrBuilder(int index)

public ExplainedPolicyOrBuilder getPoliciesOrBuilder(int index)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedPolicyOrBuilder

getPoliciesOrBuilderList()

public List<? extends ExplainedPolicyOrBuilder> getPoliciesOrBuilderList()

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Returns
TypeDescription
List<? extends com.google.cloud.policysimulator.v1.ExplainedPolicyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExplainedAccess other)

public ExplainedAccess.Builder mergeFrom(ExplainedAccess other)
Parameter
NameDescription
otherExplainedAccess
Returns
TypeDescription
ExplainedAccess.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExplainedAccess.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExplainedAccess.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExplainedAccess.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExplainedAccess.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

removeErrors(int index)

public ExplainedAccess.Builder removeErrors(int index)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedAccess.Builder

removePolicies(int index)

public ExplainedAccess.Builder removePolicies(int index)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExplainedAccess.Builder

setAccessState(AccessState value)

public ExplainedAccess.Builder setAccessState(AccessState value)

Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.

.google.cloud.policysimulator.v1.AccessState access_state = 1;

Parameter
NameDescription
valueAccessState

The accessState to set.

Returns
TypeDescription
ExplainedAccess.Builder

This builder for chaining.

setAccessStateValue(int value)

public ExplainedAccess.Builder setAccessStateValue(int value)

Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.

.google.cloud.policysimulator.v1.AccessState access_state = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for accessState to set.

Returns
TypeDescription
ExplainedAccess.Builder

This builder for chaining.

setErrors(int index, Status value)

public ExplainedAccess.Builder setErrors(int index, Status value)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
ExplainedAccess.Builder

setErrors(int index, Status.Builder builderForValue)

public ExplainedAccess.Builder setErrors(int index, Status.Builder builderForValue)

If the AccessState is UNKNOWN, this field contains a list of errors explaining why the result is UNKNOWN.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.rpc.Status errors = 3;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ExplainedAccess.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ExplainedAccess.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

setPolicies(int index, ExplainedPolicy value)

public ExplainedAccess.Builder setPolicies(int index, ExplainedPolicy value)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameters
NameDescription
indexint
valueExplainedPolicy
Returns
TypeDescription
ExplainedAccess.Builder

setPolicies(int index, ExplainedPolicy.Builder builderForValue)

public ExplainedAccess.Builder setPolicies(int index, ExplainedPolicy.Builder builderForValue)

If the AccessState is UNKNOWN, this field contains the policies that led to that result.

If the AccessState is GRANTED or NOT_GRANTED, this field is omitted.

repeated .google.cloud.policysimulator.v1.ExplainedPolicy policies = 2;

Parameters
NameDescription
indexint
builderForValueExplainedPolicy.Builder
Returns
TypeDescription
ExplainedAccess.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExplainedAccess.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExplainedAccess.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExplainedAccess.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExplainedAccess.Builder
Overrides