Class IamPolicySearchResult.Explanation

    • Field Detail

      • MATCHED_PERMISSIONS_FIELD_NUMBER

        public static final int MATCHED_PERMISSIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • internalGetFieldAccessorTable

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static IamPolicySearchResult.Explanation parseFrom​(ByteBuffer data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static IamPolicySearchResult.Explanation parseFrom​(com.google.protobuf.ByteString data)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static IamPolicySearchResult.Explanation parseFrom​(com.google.protobuf.ByteString data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static IamPolicySearchResult.Explanation parseFrom​(byte[] data)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static IamPolicySearchResult.Explanation parseFrom​(byte[] data,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public IamPolicySearchResult.Explanation.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public IamPolicySearchResult.Explanation.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected IamPolicySearchResult.Explanation.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<IamPolicySearchResult.Explanation> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public IamPolicySearchResult.Explanation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder