# Google Cloud Policy Troubleshooter Iam V3 Client - Class ConditionContext (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 ConditionContext.

Additional context for troubleshooting conditional role bindings and deny
rules.

Generated from protobuf message `google.cloud.policytroubleshooter.iam.v3.ConditionContext`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource` | `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Resource` Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one. |
| `↳ destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Peer` The destination of a network activity, such as accepting a TCP connection. In a multi-hop network activity, the destination represents the receiver of the last hop. |
| `↳ request` | `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Request` Represents a network request, such as an HTTP request. |
| `↳ effective_tags` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.EffectiveTag>` Output only. The effective tags on the resource. The effective tags are fetched during troubleshooting. |

### getResource

Represents a target resource that is involved with a network activity.

If multiple resources are involved with an activity, this must be the
primary one.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Resource|null` |   |

### hasResource

### clearResource

### setResource

Represents a target resource that is involved with a network activity.

If multiple resources are involved with an activity, this must be the
primary one.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Resource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDestination

The destination of a network activity, such as accepting a TCP connection.

In a multi-hop network activity, the destination represents the receiver of
the last hop.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Peer|null` |   |

### hasDestination

### clearDestination

### setDestination

The destination of a network activity, such as accepting a TCP connection.

In a multi-hop network activity, the destination represents the receiver of
the last hop.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Peer` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequest

Represents a network request, such as an HTTP request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Request|null` |   |

### hasRequest

### clearRequest

### setRequest

Represents a network request, such as an HTTP request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.Request` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEffectiveTags

Output only. The effective tags on the resource. The effective tags are
fetched during troubleshooting.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.EffectiveTag>` |   |

### setEffectiveTags

Output only. The effective tags on the resource. The effective tags are
fetched during troubleshooting.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ConditionContext.EffectiveTag>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |