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 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
      • 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

        public IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault​(String key,
                                                                                            IamPolicySearchResult.Explanation.Permissions defaultValue)
         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
      • 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;
      • putMatchedPermissions

        public IamPolicySearchResult.Explanation.Builder putMatchedPermissions​(String key,
                                                                               IamPolicySearchResult.Explanation.Permissions value)
         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

        public IamPolicySearchResult.Explanation.Builder putAllMatchedPermissions​(Map<String,​IamPolicySearchResult.Explanation.Permissions> values)
         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;