# Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::BindingExplanation::AnnotatedMembership (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.4.0 0.3.2 0.2.0 0.1.1 Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::BindingExplanation::AnnotatedMembership.

Details about whether the binding includes the principal.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #membership

    def membership() -> ::Google::Cloud::PolicySimulator::V1::BindingExplanation::Membership

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::BindingExplanation::Membership](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-BindingExplanation-Membership)) --- Indicates whether the binding includes the principal.

### #membership=

    def membership=(value) -> ::Google::Cloud::PolicySimulator::V1::BindingExplanation::Membership

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::BindingExplanation::Membership](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-BindingExplanation-Membership)) --- Indicates whether the binding includes the principal.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::BindingExplanation::Membership](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-BindingExplanation-Membership)) --- Indicates whether the binding includes the principal.

### #relevance

    def relevance() -> ::Google::Cloud::PolicySimulator::V1::HeuristicRelevance

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::HeuristicRelevance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-HeuristicRelevance)) --- The relevance of the principal's status to the overall determination for the binding.

### #relevance=

    def relevance=(value) -> ::Google::Cloud::PolicySimulator::V1::HeuristicRelevance

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::HeuristicRelevance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-HeuristicRelevance)) --- The relevance of the principal's status to the overall determination for the binding.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::HeuristicRelevance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-HeuristicRelevance)) --- The relevance of the principal's status to the overall determination for the binding.