Class IamPolicySearchResult.Explanation.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Explanation.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Explanation.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<IamPolicySearchResult.Explanation.Builder>
      • 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
      • 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
      • 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;