Class IamPolicyAnalysisResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Builder>
com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder
All Implemented Interfaces:
IamPolicyAnalysisResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IamPolicyAnalysisResult

public static final class IamPolicyAnalysisResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<IamPolicyAnalysisResult.Builder> implements IamPolicyAnalysisResultOrBuilder
 IAM Policy analysis result, consisting of one IAM policy binding and derived
 access control lists.
 
Protobuf type google.cloud.asset.v1.IamPolicyAnalysisResult
  • 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<IamPolicyAnalysisResult.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<IamPolicyAnalysisResult.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<IamPolicyAnalysisResult.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public IamPolicyAnalysisResult.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<IamPolicyAnalysisResult.Builder>
      Throws:
      IOException
    • getAttachedResourceFullName

      public String getAttachedResourceFullName()
       The [full resource
       name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       of the resource to which the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       policy attaches.
       
      string attached_resource_full_name = 1;
      Specified by:
      getAttachedResourceFullName in interface IamPolicyAnalysisResultOrBuilder
      Returns:
      The attachedResourceFullName.
    • getAttachedResourceFullNameBytes

      public com.google.protobuf.ByteString getAttachedResourceFullNameBytes()
       The [full resource
       name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       of the resource to which the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       policy attaches.
       
      string attached_resource_full_name = 1;
      Specified by:
      getAttachedResourceFullNameBytes in interface IamPolicyAnalysisResultOrBuilder
      Returns:
      The bytes for attachedResourceFullName.
    • setAttachedResourceFullName

      public IamPolicyAnalysisResult.Builder setAttachedResourceFullName(String value)
       The [full resource
       name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       of the resource to which the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       policy attaches.
       
      string attached_resource_full_name = 1;
      Parameters:
      value - The attachedResourceFullName to set.
      Returns:
      This builder for chaining.
    • clearAttachedResourceFullName

      public IamPolicyAnalysisResult.Builder clearAttachedResourceFullName()
       The [full resource
       name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       of the resource to which the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       policy attaches.
       
      string attached_resource_full_name = 1;
      Returns:
      This builder for chaining.
    • setAttachedResourceFullNameBytes

      public IamPolicyAnalysisResult.Builder setAttachedResourceFullNameBytes(com.google.protobuf.ByteString value)
       The [full resource
       name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       of the resource to which the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       policy attaches.
       
      string attached_resource_full_name = 1;
      Parameters:
      value - The bytes for attachedResourceFullName to set.
      Returns:
      This builder for chaining.
    • hasIamBinding

      public boolean hasIamBinding()
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
      Specified by:
      hasIamBinding in interface IamPolicyAnalysisResultOrBuilder
      Returns:
      Whether the iamBinding field is set.
    • getIamBinding

      public Binding getIamBinding()
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
      Specified by:
      getIamBinding in interface IamPolicyAnalysisResultOrBuilder
      Returns:
      The iamBinding.
    • setIamBinding

      public IamPolicyAnalysisResult.Builder setIamBinding(Binding value)
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
    • setIamBinding

      public IamPolicyAnalysisResult.Builder setIamBinding(Binding.Builder builderForValue)
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
    • mergeIamBinding

      public IamPolicyAnalysisResult.Builder mergeIamBinding(Binding value)
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
    • clearIamBinding

      public IamPolicyAnalysisResult.Builder clearIamBinding()
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
    • getIamBindingBuilder

      public Binding.Builder getIamBindingBuilder()
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
    • getIamBindingOrBuilder

      public BindingOrBuilder getIamBindingOrBuilder()
       The IAM policy binding under analysis.
       
      .google.iam.v1.Binding iam_binding = 2;
      Specified by:
      getIamBindingOrBuilder in interface IamPolicyAnalysisResultOrBuilder
    • getAccessControlListsList

      public List<IamPolicyAnalysisResult.AccessControlList> getAccessControlListsList()
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
      Specified by:
      getAccessControlListsList in interface IamPolicyAnalysisResultOrBuilder
    • getAccessControlListsCount

      public int getAccessControlListsCount()
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
      Specified by:
      getAccessControlListsCount in interface IamPolicyAnalysisResultOrBuilder
    • getAccessControlLists

      public IamPolicyAnalysisResult.AccessControlList getAccessControlLists(int index)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
      Specified by:
      getAccessControlLists in interface IamPolicyAnalysisResultOrBuilder
    • setAccessControlLists

      public IamPolicyAnalysisResult.Builder setAccessControlLists(int index, IamPolicyAnalysisResult.AccessControlList value)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • setAccessControlLists

      public IamPolicyAnalysisResult.Builder setAccessControlLists(int index, IamPolicyAnalysisResult.AccessControlList.Builder builderForValue)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • addAccessControlLists

       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • addAccessControlLists

      public IamPolicyAnalysisResult.Builder addAccessControlLists(int index, IamPolicyAnalysisResult.AccessControlList value)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • addAccessControlLists

       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • addAccessControlLists

      public IamPolicyAnalysisResult.Builder addAccessControlLists(int index, IamPolicyAnalysisResult.AccessControlList.Builder builderForValue)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • addAllAccessControlLists

      public IamPolicyAnalysisResult.Builder addAllAccessControlLists(Iterable<? extends IamPolicyAnalysisResult.AccessControlList> values)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • clearAccessControlLists

      public IamPolicyAnalysisResult.Builder clearAccessControlLists()
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • removeAccessControlLists

      public IamPolicyAnalysisResult.Builder removeAccessControlLists(int index)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • getAccessControlListsBuilder

      public IamPolicyAnalysisResult.AccessControlList.Builder getAccessControlListsBuilder(int index)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • getAccessControlListsOrBuilder

      public IamPolicyAnalysisResult.AccessControlListOrBuilder getAccessControlListsOrBuilder(int index)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
      Specified by:
      getAccessControlListsOrBuilder in interface IamPolicyAnalysisResultOrBuilder
    • getAccessControlListsOrBuilderList

      public List<? extends IamPolicyAnalysisResult.AccessControlListOrBuilder> getAccessControlListsOrBuilderList()
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
      Specified by:
      getAccessControlListsOrBuilderList in interface IamPolicyAnalysisResultOrBuilder
    • addAccessControlListsBuilder

      public IamPolicyAnalysisResult.AccessControlList.Builder addAccessControlListsBuilder()
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • addAccessControlListsBuilder

      public IamPolicyAnalysisResult.AccessControlList.Builder addAccessControlListsBuilder(int index)
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • getAccessControlListsBuilderList

      public List<IamPolicyAnalysisResult.AccessControlList.Builder> getAccessControlListsBuilderList()
       The access control lists derived from the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match resource and access selectors specified in
       the request.
       
      repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3;
    • hasIdentityList

      public boolean hasIdentityList()
       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
      Specified by:
      hasIdentityList in interface IamPolicyAnalysisResultOrBuilder
      Returns:
      Whether the identityList field is set.
    • getIdentityList

      public IamPolicyAnalysisResult.IdentityList getIdentityList()
       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
      Specified by:
      getIdentityList in interface IamPolicyAnalysisResultOrBuilder
      Returns:
      The identityList.
    • setIdentityList

       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
    • setIdentityList

       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
    • mergeIdentityList

       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
    • clearIdentityList

      public IamPolicyAnalysisResult.Builder clearIdentityList()
       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
    • getIdentityListBuilder

      public IamPolicyAnalysisResult.IdentityList.Builder getIdentityListBuilder()
       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
    • getIdentityListOrBuilder

      public IamPolicyAnalysisResult.IdentityListOrBuilder getIdentityListOrBuilder()
       The identity list derived from members of the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       that match or potentially match identity selector specified in the request.
       
      .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
      Specified by:
      getIdentityListOrBuilder in interface IamPolicyAnalysisResultOrBuilder
    • getFullyExplored

      public boolean getFullyExplored()
       Represents whether all analyses on the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       have successfully finished.
       
      bool fully_explored = 5;
      Specified by:
      getFullyExplored in interface IamPolicyAnalysisResultOrBuilder
      Returns:
      The fullyExplored.
    • setFullyExplored

      public IamPolicyAnalysisResult.Builder setFullyExplored(boolean value)
       Represents whether all analyses on the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       have successfully finished.
       
      bool fully_explored = 5;
      Parameters:
      value - The fullyExplored to set.
      Returns:
      This builder for chaining.
    • clearFullyExplored

      public IamPolicyAnalysisResult.Builder clearFullyExplored()
       Represents whether all analyses on the
       [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
       have successfully finished.
       
      bool fully_explored = 5;
      Returns:
      This builder for chaining.