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.v1p1beta1.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.v1p1beta1.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 permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
      Specified by:
      getMatchedPermissionsCount in interface IamPolicySearchResult.ExplanationOrBuilder
    • containsMatchedPermissions

      public boolean containsMatchedPermissions(String key)
       The map from roles to their included permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
      Specified by:
      containsMatchedPermissions in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissions

      @Deprecated public Map<String,Permissions> getMatchedPermissions()
      Deprecated.
      Specified by:
      getMatchedPermissions in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissionsMap

      public Map<String,Permissions> getMatchedPermissionsMap()
       The map from roles to their included permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
      Specified by:
      getMatchedPermissionsMap in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissionsOrDefault

      public Permissions getMatchedPermissionsOrDefault(String key, Permissions defaultValue)
       The map from roles to their included permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
      Specified by:
      getMatchedPermissionsOrDefault in interface IamPolicySearchResult.ExplanationOrBuilder
    • getMatchedPermissionsOrThrow

      public Permissions getMatchedPermissionsOrThrow(String key)
       The map from roles to their included permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.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 permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    • getMutableMatchedPermissions

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

      public IamPolicySearchResult.Explanation.Builder putMatchedPermissions(String key, Permissions value)
       The map from roles to their included permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    • putAllMatchedPermissions

      public IamPolicySearchResult.Explanation.Builder putAllMatchedPermissions(Map<String,Permissions> values)
       The map from roles to their included permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    • putMatchedPermissionsBuilderIfAbsent

      public Permissions.Builder putMatchedPermissionsBuilderIfAbsent(String key)
       The map from roles to their included permission matching the permission
       query (e.g. containing `policy.role.permissions:`). Example role string:
       "roles/compute.instanceAdmin". The roles can also be found in the
       returned `policy` bindings. Note that the map is populated only if
       requesting with a permission query.
       
      map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;