Class ExplainedAccess.Builder

  • All Implemented Interfaces:
    ExplainedAccessOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ExplainedAccess

    public static final class ExplainedAccess.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
    implements ExplainedAccessOrBuilder
     Details about how a set of policies, listed in
     [ExplainedPolicy][google.cloud.policysimulator.v1.ExplainedPolicy], resulted
     in a certain [AccessState][google.cloud.policysimulator.v1.AccessState] when
     replaying an access tuple.
     
    Protobuf type google.cloud.policysimulator.v1.ExplainedAccess
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ExplainedAccess.Builder addAllErrors​(Iterable<? extends com.google.rpc.Status> values)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder addAllPolicies​(Iterable<? extends ExplainedPolicy> values)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder addErrors​(int index, com.google.rpc.Status value)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder addErrors​(int index, com.google.rpc.Status.Builder builderForValue)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder addErrors​(com.google.rpc.Status value)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder addErrors​(com.google.rpc.Status.Builder builderForValue)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      com.google.rpc.Status.Builder addErrorsBuilder()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      com.google.rpc.Status.Builder addErrorsBuilder​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder addPolicies​(int index, ExplainedPolicy value)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder addPolicies​(int index, ExplainedPolicy.Builder builderForValue)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder addPolicies​(ExplainedPolicy value)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder addPolicies​(ExplainedPolicy.Builder builderForValue)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedPolicy.Builder addPoliciesBuilder()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedPolicy.Builder addPoliciesBuilder​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      ExplainedAccess build()  
      ExplainedAccess buildPartial()  
      ExplainedAccess.Builder clear()  
      ExplainedAccess.Builder clearAccessState()
      Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
      ExplainedAccess.Builder clearErrors()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      ExplainedAccess.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      ExplainedAccess.Builder clearPolicies()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder clone()  
      AccessState getAccessState()
      Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
      int getAccessStateValue()
      Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
      ExplainedAccess getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      com.google.rpc.Status getErrors​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      com.google.rpc.Status.Builder getErrorsBuilder​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      List<com.google.rpc.Status.Builder> getErrorsBuilderList()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      int getErrorsCount()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      List<com.google.rpc.Status> getErrorsList()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      com.google.rpc.StatusOrBuilder getErrorsOrBuilder​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      List<? extends com.google.rpc.StatusOrBuilder> getErrorsOrBuilderList()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedPolicy getPolicies​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedPolicy.Builder getPoliciesBuilder​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      List<ExplainedPolicy.Builder> getPoliciesBuilderList()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      int getPoliciesCount()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      List<ExplainedPolicy> getPoliciesList()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedPolicyOrBuilder getPoliciesOrBuilder​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      List<? extends ExplainedPolicyOrBuilder> getPoliciesOrBuilderList()
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      ExplainedAccess.Builder mergeFrom​(ExplainedAccess other)  
      ExplainedAccess.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      ExplainedAccess.Builder mergeFrom​(com.google.protobuf.Message other)  
      ExplainedAccess.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      ExplainedAccess.Builder removeErrors​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder removePolicies​(int index)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      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.
      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.
      ExplainedAccess.Builder setErrors​(int index, com.google.rpc.Status value)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder setErrors​(int index, com.google.rpc.Status.Builder builderForValue)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.
      ExplainedAccess.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      ExplainedAccess.Builder setPolicies​(int index, ExplainedPolicy value)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder setPolicies​(int index, ExplainedPolicy.Builder builderForValue)
      If the [AccessState][google.cloud.policysimulator.v1.AccessState] is `UNKNOWN`, this field contains the policies that led to that result.
      ExplainedAccess.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      ExplainedAccess.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • clear

        public ExplainedAccess.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • getDefaultInstanceForType

        public ExplainedAccess getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ExplainedAccess build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExplainedAccess buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ExplainedAccess.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • setField

        public ExplainedAccess.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • clearField

        public ExplainedAccess.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • clearOneof

        public ExplainedAccess.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • setRepeatedField

        public ExplainedAccess.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • addRepeatedField

        public ExplainedAccess.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • mergeFrom

        public ExplainedAccess.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplainedAccess.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • mergeFrom

        public ExplainedAccess.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplainedAccess.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getAccessStateValue in interface ExplainedAccessOrBuilder
        Returns:
        The enum numeric value on the wire for accessState.
      • setAccessStateValue

        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;
        Parameters:
        value - The enum numeric value on the wire for accessState to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getAccessState in interface ExplainedAccessOrBuilder
        Returns:
        The accessState.
      • setAccessState

        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;
        Parameters:
        value - The accessState to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • getPoliciesList

        public List<ExplainedPolicy> getPoliciesList()
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getPoliciesList in interface ExplainedAccessOrBuilder
      • getPoliciesCount

        public int getPoliciesCount()
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getPoliciesCount in interface ExplainedAccessOrBuilder
      • getPolicies

        public ExplainedPolicy getPolicies​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getPolicies in interface ExplainedAccessOrBuilder
      • setPolicies

        public ExplainedAccess.Builder setPolicies​(int index,
                                                   ExplainedPolicy value)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • setPolicies

        public ExplainedAccess.Builder setPolicies​(int index,
                                                   ExplainedPolicy.Builder builderForValue)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addPolicies

        public ExplainedAccess.Builder addPolicies​(ExplainedPolicy value)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addPolicies

        public ExplainedAccess.Builder addPolicies​(int index,
                                                   ExplainedPolicy value)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addPolicies

        public ExplainedAccess.Builder addPolicies​(ExplainedPolicy.Builder builderForValue)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addPolicies

        public ExplainedAccess.Builder addPolicies​(int index,
                                                   ExplainedPolicy.Builder builderForValue)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addAllPolicies

        public ExplainedAccess.Builder addAllPolicies​(Iterable<? extends ExplainedPolicy> values)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • clearPolicies

        public ExplainedAccess.Builder clearPolicies()
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • removePolicies

        public ExplainedAccess.Builder removePolicies​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • getPoliciesBuilder

        public ExplainedPolicy.Builder getPoliciesBuilder​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • getPoliciesOrBuilder

        public ExplainedPolicyOrBuilder getPoliciesOrBuilder​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getPoliciesOrBuilder in interface ExplainedAccessOrBuilder
      • getPoliciesOrBuilderList

        public List<? extends ExplainedPolicyOrBuilder> getPoliciesOrBuilderList()
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getPoliciesOrBuilderList in interface ExplainedAccessOrBuilder
      • addPoliciesBuilder

        public ExplainedPolicy.Builder addPoliciesBuilder()
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addPoliciesBuilder

        public ExplainedPolicy.Builder addPoliciesBuilder​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • getPoliciesBuilderList

        public List<ExplainedPolicy.Builder> getPoliciesBuilderList()
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • getErrorsList

        public List<com.google.rpc.Status> getErrorsList()
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getErrorsList in interface ExplainedAccessOrBuilder
      • getErrorsCount

        public int getErrorsCount()
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getErrorsCount in interface ExplainedAccessOrBuilder
      • getErrors

        public com.google.rpc.Status getErrors​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getErrors in interface ExplainedAccessOrBuilder
      • setErrors

        public ExplainedAccess.Builder setErrors​(int index,
                                                 com.google.rpc.Status value)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • setErrors

        public ExplainedAccess.Builder setErrors​(int index,
                                                 com.google.rpc.Status.Builder builderForValue)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addErrors

        public ExplainedAccess.Builder addErrors​(com.google.rpc.Status value)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addErrors

        public ExplainedAccess.Builder addErrors​(int index,
                                                 com.google.rpc.Status value)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addErrors

        public ExplainedAccess.Builder addErrors​(com.google.rpc.Status.Builder builderForValue)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addErrors

        public ExplainedAccess.Builder addErrors​(int index,
                                                 com.google.rpc.Status.Builder builderForValue)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addAllErrors

        public ExplainedAccess.Builder addAllErrors​(Iterable<? extends com.google.rpc.Status> values)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • clearErrors

        public ExplainedAccess.Builder clearErrors()
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • removeErrors

        public ExplainedAccess.Builder removeErrors​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • getErrorsBuilder

        public com.google.rpc.Status.Builder getErrorsBuilder​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • getErrorsOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorsOrBuilder​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getErrorsOrBuilder in interface ExplainedAccessOrBuilder
      • getErrorsOrBuilderList

        public List<? extends com.google.rpc.StatusOrBuilder> getErrorsOrBuilderList()
         If the [AccessState][google.cloud.policysimulator.v1.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;
        Specified by:
        getErrorsOrBuilderList in interface ExplainedAccessOrBuilder
      • addErrorsBuilder

        public com.google.rpc.Status.Builder addErrorsBuilder()
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • addErrorsBuilder

        public com.google.rpc.Status.Builder addErrorsBuilder​(int index)
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • getErrorsBuilderList

        public List<com.google.rpc.Status.Builder> getErrorsBuilderList()
         If the [AccessState][google.cloud.policysimulator.v1.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;
      • setUnknownFields

        public final ExplainedAccess.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>
      • mergeUnknownFields

        public final ExplainedAccess.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplainedAccess.Builder>