Class IamPolicySearchResult.Explanation.Builder

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

public static final class IamPolicySearchResult.Explanation.Builder extends com.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Explanation.Builder> implements IamPolicySearchResult.ExplanationOrBuilder
 Explanation about the IAM policy search result.
 
Protobuf type google.cloud.asset.v1.IamPolicySearchResult.Explanation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Explanation.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<IamPolicySearchResult.Explanation.Builder>
    • internalGetFieldAccessorTable

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

      public IamPolicySearchResult.Explanation 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 IamPolicySearchResult.Explanation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public IamPolicySearchResult.Explanation.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<IamPolicySearchResult.Explanation.Builder>
      Throws:
      IOException
    • getMatchedPermissionsCount

      public int getMatchedPermissionsCount()
      Description copied from interface: IamPolicySearchResult.ExplanationOrBuilder
       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
      Specified by:
      getMatchedPermissionsCount in interface IamPolicySearchResult.ExplanationOrBuilder
    • containsMatchedPermissions

      public boolean containsMatchedPermissions(String key)
       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
      Specified by:
      containsMatchedPermissions in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissions

      Deprecated.
      Specified by:
      getMatchedPermissions in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissionsMap

      public Map<String,IamPolicySearchResult.Explanation.Permissions> getMatchedPermissionsMap()
       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
      Specified by:
      getMatchedPermissionsMap in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissionsOrDefault

       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
      Specified by:
      getMatchedPermissionsOrDefault in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissionsOrThrow

      public IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow(String key)
       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
      Specified by:
      getMatchedPermissionsOrThrow in interface IamPolicySearchResult.ExplanationOrBuilder
    • clearMatchedPermissions

      public IamPolicySearchResult.Explanation.Builder clearMatchedPermissions()
    • removeMatchedPermissions

      public IamPolicySearchResult.Explanation.Builder removeMatchedPermissions(String key)
       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    • getMutableMatchedPermissions

      @Deprecated public Map<String,IamPolicySearchResult.Explanation.Permissions> getMutableMatchedPermissions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMatchedPermissions

       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    • putAllMatchedPermissions

       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    • putMatchedPermissionsBuilderIfAbsent

      public IamPolicySearchResult.Explanation.Permissions.Builder putMatchedPermissionsBuilderIfAbsent(String key)
       The map from roles to their included permissions that match the
       permission query (i.e., a query containing `policy.role.permissions:`).
       Example: if query `policy.role.permissions:compute.disk.get`
       matches a policy binding that contains owner role, the
       matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
       roles can also be found in the returned `policy` bindings. Note that the
       map is populated only for requests with permission queries.
       
      map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;