# Interface DeployPolicyEvaluationEventOrBuilder (1.91.0)

1.91.0 (latest) 1.89.0 1.86.0 1.85.0 1.83.0 1.81.0 1.80.0 1.79.0 1.78.0 1.76.0 1.74.0 1.73.0 1.72.0 1.71.0 1.70.0 1.68.0 1.66.0 1.65.0 1.62.0 1.61.0 1.60.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.8 1.0.2

    public interface DeployPolicyEvaluationEventOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAllowed()

    public abstract boolean getAllowed()

Whether the request is allowed. Allowed is set as true if:
(1) the request complies with the policy; or
(2) the request doesn't comply with the policy but the policy was
overridden; or
(3) the request doesn't comply with the policy but the policy was suspended

`bool allowed = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The allowed. |

### getDeliveryPipeline()

    public abstract String getDeliveryPipeline()

The name of the `Delivery Pipeline`.

`string delivery_pipeline = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deliveryPipeline. |

### getDeliveryPipelineBytes()

    public abstract ByteString getDeliveryPipelineBytes()

The name of the `Delivery Pipeline`.

`string delivery_pipeline = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deliveryPipeline. |

### getDeployPolicy()

    public abstract String getDeployPolicy()

The name of the `DeployPolicy`.

`string deploy_policy = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deployPolicy. |

### getDeployPolicyBytes()

    public abstract ByteString getDeployPolicyBytes()

The name of the `DeployPolicy`.

`string deploy_policy = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deployPolicy. |

### getDeployPolicyUid()

    public abstract String getDeployPolicyUid()

Unique identifier of the `DeployPolicy`.

`string deploy_policy_uid = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deployPolicyUid. |

### getDeployPolicyUidBytes()

    public abstract ByteString getDeployPolicyUidBytes()

Unique identifier of the `DeployPolicy`.

`string deploy_policy_uid = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deployPolicyUid. |

### getInvoker()

    public abstract DeployPolicy.Invoker getInvoker()

What invoked the action (e.g. a user or automation).

`.google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-deploy/latest/com.google.cloud.deploy.v1.DeployPolicy.Invoker` | The invoker. |

### getInvokerValue()

    public abstract int getInvokerValue()

What invoked the action (e.g. a user or automation).

`.google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for invoker. |

### getMessage()

    public abstract String getMessage()

Debug message for when a deploy policy event occurs.

`string message = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The message. |

### getMessageBytes()

    public abstract ByteString getMessageBytes()

Debug message for when a deploy policy event occurs.

`string message = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for message. |

### getOverrides(int index)

    public abstract DeployPolicyEvaluationEvent.PolicyVerdictOverride getOverrides(int index)

Things that could have overridden the policy verdict. Overrides together
with verdict decide whether the request is allowed.

`
repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-deploy/latest/com.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride` | The overrides at the given index. |

### getOverridesCount()

    public abstract int getOverridesCount()

Things that could have overridden the policy verdict. Overrides together
with verdict decide whether the request is allowed.

`
repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of overrides. |

### getOverridesList()

    public abstract List<DeployPolicyEvaluationEvent.PolicyVerdictOverride> getOverridesList()

Things that could have overridden the policy verdict. Overrides together
with verdict decide whether the request is allowed.

`
repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-deploy/latest/com.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride>` | A list containing the overrides. |

### getOverridesValue(int index)

    public abstract int getOverridesValue(int index)

Things that could have overridden the policy verdict. Overrides together
with verdict decide whether the request is allowed.

`
repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire of overrides at the given index. |

### getOverridesValueList()

    public abstract List<Integer> getOverridesValueList()

Things that could have overridden the policy verdict. Overrides together
with verdict decide whether the request is allowed.

`
repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html>` | A list containing the enum numeric values on the wire for overrides. |

### getPipelineUid()

    public abstract String getPipelineUid()

Unique identifier of the `Delivery Pipeline`.

`string pipeline_uid = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The pipelineUid. |

### getPipelineUidBytes()

    public abstract ByteString getPipelineUidBytes()

Unique identifier of the `Delivery Pipeline`.

`string pipeline_uid = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for pipelineUid. |

### getRule()

    public abstract String getRule()

Rule id.

`string rule = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The rule. |

### getRuleBytes()

    public abstract ByteString getRuleBytes()

Rule id.

`string rule = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for rule. |

### getRuleType()

    public abstract String getRuleType()

Rule type (e.g. Restrict Rollouts).

`string rule_type = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ruleType. |

### getRuleTypeBytes()

    public abstract ByteString getRuleTypeBytes()

Rule type (e.g. Restrict Rollouts).

`string rule_type = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for ruleType. |

### getTarget()

    public abstract String getTarget()

The name of the `Target`. This is an optional field, as a `Target` may not
always be applicable to a policy.

`string target = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The target. |

### getTargetBytes()

    public abstract ByteString getTargetBytes()

The name of the `Target`. This is an optional field, as a `Target` may not
always be applicable to a policy.

`string target = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for target. |

### getTargetUid()

    public abstract String getTargetUid()

Unique identifier of the `Target`. This is an optional field, as a `Target`
may not always be applicable to a policy.

`string target_uid = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The targetUid. |

### getTargetUidBytes()

    public abstract ByteString getTargetUidBytes()

Unique identifier of the `Target`. This is an optional field, as a `Target`
may not always be applicable to a policy.

`string target_uid = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for targetUid. |

### getVerdict()

    public abstract DeployPolicyEvaluationEvent.PolicyVerdict getVerdict()

The policy verdict of the request.

`.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-deploy/latest/com.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict` | The verdict. |

### getVerdictValue()

    public abstract int getVerdictValue()

The policy verdict of the request.

`.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for verdict. |