Class TroubleshootIamPolicyResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.Builder>
com.google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.Builder
All Implemented Interfaces:
TroubleshootIamPolicyResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TroubleshootIamPolicyResponse

public static final class TroubleshootIamPolicyResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.Builder> implements TroubleshootIamPolicyResponseOrBuilder
 Response for
 [TroubleshootIamPolicy][google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter.TroubleshootIamPolicy].
 
Protobuf type google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.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.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.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.GeneratedMessage.Builder<TroubleshootIamPolicyResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.Builder>
    • mergeFrom

    • isInitialized

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

      public TroubleshootIamPolicyResponse.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<TroubleshootIamPolicyResponse.Builder>
      Throws:
      IOException
    • getOverallAccessStateValue

      public int getOverallAccessStateValue()
       Indicates whether the principal has the specified permission for the
       specified resource, based on evaluating all types of the applicable IAM
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.OverallAccessState overall_access_state = 1;
      Specified by:
      getOverallAccessStateValue in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      The enum numeric value on the wire for overallAccessState.
    • setOverallAccessStateValue

      public TroubleshootIamPolicyResponse.Builder setOverallAccessStateValue(int value)
       Indicates whether the principal has the specified permission for the
       specified resource, based on evaluating all types of the applicable IAM
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.OverallAccessState overall_access_state = 1;
      Parameters:
      value - The enum numeric value on the wire for overallAccessState to set.
      Returns:
      This builder for chaining.
    • getOverallAccessState

      public TroubleshootIamPolicyResponse.OverallAccessState getOverallAccessState()
       Indicates whether the principal has the specified permission for the
       specified resource, based on evaluating all types of the applicable IAM
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.OverallAccessState overall_access_state = 1;
      Specified by:
      getOverallAccessState in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      The overallAccessState.
    • setOverallAccessState

       Indicates whether the principal has the specified permission for the
       specified resource, based on evaluating all types of the applicable IAM
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.OverallAccessState overall_access_state = 1;
      Parameters:
      value - The overallAccessState to set.
      Returns:
      This builder for chaining.
    • clearOverallAccessState

      public TroubleshootIamPolicyResponse.Builder clearOverallAccessState()
       Indicates whether the principal has the specified permission for the
       specified resource, based on evaluating all types of the applicable IAM
       policies.
       
      .google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse.OverallAccessState overall_access_state = 1;
      Returns:
      This builder for chaining.
    • hasAccessTuple

      public boolean hasAccessTuple()
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
      Specified by:
      hasAccessTuple in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      Whether the accessTuple field is set.
    • getAccessTuple

      public AccessTuple getAccessTuple()
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
      Specified by:
      getAccessTuple in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      The accessTuple.
    • setAccessTuple

      public TroubleshootIamPolicyResponse.Builder setAccessTuple(AccessTuple value)
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
    • setAccessTuple

      public TroubleshootIamPolicyResponse.Builder setAccessTuple(AccessTuple.Builder builderForValue)
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
    • mergeAccessTuple

      public TroubleshootIamPolicyResponse.Builder mergeAccessTuple(AccessTuple value)
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
    • clearAccessTuple

      public TroubleshootIamPolicyResponse.Builder clearAccessTuple()
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
    • getAccessTupleBuilder

      public AccessTuple.Builder getAccessTupleBuilder()
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
    • getAccessTupleOrBuilder

      public AccessTupleOrBuilder getAccessTupleOrBuilder()
       The access tuple from the request, including any provided context used to
       evaluate the condition.
       
      .google.cloud.policytroubleshooter.iam.v3.AccessTuple access_tuple = 2;
      Specified by:
      getAccessTupleOrBuilder in interface TroubleshootIamPolicyResponseOrBuilder
    • hasAllowPolicyExplanation

      public boolean hasAllowPolicyExplanation()
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
      Specified by:
      hasAllowPolicyExplanation in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      Whether the allowPolicyExplanation field is set.
    • getAllowPolicyExplanation

      public AllowPolicyExplanation getAllowPolicyExplanation()
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
      Specified by:
      getAllowPolicyExplanation in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      The allowPolicyExplanation.
    • setAllowPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder setAllowPolicyExplanation(AllowPolicyExplanation value)
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
    • setAllowPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder setAllowPolicyExplanation(AllowPolicyExplanation.Builder builderForValue)
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
    • mergeAllowPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder mergeAllowPolicyExplanation(AllowPolicyExplanation value)
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
    • clearAllowPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder clearAllowPolicyExplanation()
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
    • getAllowPolicyExplanationBuilder

      public AllowPolicyExplanation.Builder getAllowPolicyExplanationBuilder()
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
    • getAllowPolicyExplanationOrBuilder

      public AllowPolicyExplanationOrBuilder getAllowPolicyExplanationOrBuilder()
       An explanation of how the applicable IAM allow policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.AllowPolicyExplanation allow_policy_explanation = 3;
      Specified by:
      getAllowPolicyExplanationOrBuilder in interface TroubleshootIamPolicyResponseOrBuilder
    • hasDenyPolicyExplanation

      public boolean hasDenyPolicyExplanation()
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
      Specified by:
      hasDenyPolicyExplanation in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      Whether the denyPolicyExplanation field is set.
    • getDenyPolicyExplanation

      public DenyPolicyExplanation getDenyPolicyExplanation()
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
      Specified by:
      getDenyPolicyExplanation in interface TroubleshootIamPolicyResponseOrBuilder
      Returns:
      The denyPolicyExplanation.
    • setDenyPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder setDenyPolicyExplanation(DenyPolicyExplanation value)
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
    • setDenyPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder setDenyPolicyExplanation(DenyPolicyExplanation.Builder builderForValue)
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
    • mergeDenyPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder mergeDenyPolicyExplanation(DenyPolicyExplanation value)
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
    • clearDenyPolicyExplanation

      public TroubleshootIamPolicyResponse.Builder clearDenyPolicyExplanation()
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
    • getDenyPolicyExplanationBuilder

      public DenyPolicyExplanation.Builder getDenyPolicyExplanationBuilder()
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
    • getDenyPolicyExplanationOrBuilder

      public DenyPolicyExplanationOrBuilder getDenyPolicyExplanationOrBuilder()
       An explanation of how the applicable IAM deny policies affect the final
       access state.
       
      .google.cloud.policytroubleshooter.iam.v3.DenyPolicyExplanation deny_policy_explanation = 4;
      Specified by:
      getDenyPolicyExplanationOrBuilder in interface TroubleshootIamPolicyResponseOrBuilder