# Google Cloud Policy Troubleshooter Iam V3 Client - Class MembershipMatchingState (0.4.4)

0.4.4 (latest) 0.4.3 0.3.1 0.2.9 0.1.2 Reference documentation and code samples for the Google Cloud Policy Troubleshooter Iam V3 Client class MembershipMatchingState.

Whether the principal in the request matches the principal in the policy.

Protobuf type `google.cloud.policytroubleshooter.iam.v3.MembershipMatchingState`

## Namespace

Google \\ Cloud \\ PolicyTroubleshooter \\ Iam \\ V3

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### MEMBERSHIP_MATCHING_STATE_UNSPECIFIED

    Value: 0

Not specified.

Generated from protobuf enum `MEMBERSHIP_MATCHING_STATE_UNSPECIFIED = 0;`

### MEMBERSHIP_MATCHED

    Value: 1

The principal in the request matches the principal in the policy. The
principal can be included directly or indirectly:

- A principal is included directly if that principal is listed in the
  role binding.

- A principal is included indirectly if that principal is in a Google
  group, Google Workspace account, or Cloud Identity domain that is listed
  in the policy.

Generated from protobuf enum `MEMBERSHIP_MATCHED = 1;`

### MEMBERSHIP_NOT_MATCHED

    Value: 2

The principal in the request doesn't match the principal in the policy.

Generated from protobuf enum `MEMBERSHIP_NOT_MATCHED = 2;`

### MEMBERSHIP_UNKNOWN_INFO

    Value: 3

The principal in the policy is a group or domain, and the sender of the
request doesn't have permission to view whether the principal in the
request is a member of the group or domain.

Generated from protobuf enum `MEMBERSHIP_UNKNOWN_INFO = 3;`

### MEMBERSHIP_UNKNOWN_UNSUPPORTED

    Value: 4

The principal is an unsupported type.

Generated from protobuf enum `MEMBERSHIP_UNKNOWN_UNSUPPORTED = 4;`