# Interface ConditionOrBuilder (1.94.0)

1.94.0 (latest) 1.92.0 1.89.0 1.88.0 1.86.0 1.84.0 1.83.0 1.82.0 1.81.0 1.79.0 1.77.0 1.76.0 1.75.0 1.74.0 1.73.0 1.71.0 1.69.0 1.68.0 1.65.0 1.64.0 1.63.0 1.61.0 1.60.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.50.0 1.49.0 1.48.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.38.0 1.37.0 1.36.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.25.0 1.24.0 1.23.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.8.0 1.7.0 1.6.0 1.5.0 1.4.5 1.3.1 1.2.10

    public interface ConditionOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDevicePolicy()

    public abstract DevicePolicy getDevicePolicy()

Device specific restrictions, all restrictions must hold for the
Condition to be true. If not specified, all devices are allowed.

`.google.identity.accesscontextmanager.v1.DevicePolicy device_policy = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/com.google.identity.accesscontextmanager.v1.DevicePolicy` | The devicePolicy. |

### getDevicePolicyOrBuilder()

    public abstract DevicePolicyOrBuilder getDevicePolicyOrBuilder()

Device specific restrictions, all restrictions must hold for the
Condition to be true. If not specified, all devices are allowed.

`.google.identity.accesscontextmanager.v1.DevicePolicy device_policy = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/com.google.identity.accesscontextmanager.v1.DevicePolicyOrBuilder` |   |

### getIpSubnetworks(int index)

    public abstract String getIpSubnetworks(int index)

CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for
a CIDR IP address block, the specified IP address portion must be properly
truncated (i.e. all the host bits must be zero) or the input is considered
malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is
not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas
"2001:db8::1/32" is not. The originating IP of a request must be in one of
the listed subnets in order for this Condition to be true. If empty, all IP
addresses are allowed.

`repeated string ip_subnetworks = 1;`

| **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.oracle.com/javase/8/docs/api/java/lang/String.html` | The ipSubnetworks at the given index. |

### getIpSubnetworksBytes(int index)

    public abstract ByteString getIpSubnetworksBytes(int index)

CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for
a CIDR IP address block, the specified IP address portion must be properly
truncated (i.e. all the host bits must be zero) or the input is considered
malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is
not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas
"2001:db8::1/32" is not. The originating IP of a request must be in one of
the listed subnets in order for this Condition to be true. If empty, all IP
addresses are allowed.

`repeated string ip_subnetworks = 1;`

| **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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the ipSubnetworks at the given index. |

### getIpSubnetworksCount()

    public abstract int getIpSubnetworksCount()

CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for
a CIDR IP address block, the specified IP address portion must be properly
truncated (i.e. all the host bits must be zero) or the input is considered
malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is
not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas
"2001:db8::1/32" is not. The originating IP of a request must be in one of
the listed subnets in order for this Condition to be true. If empty, all IP
addresses are allowed.

`repeated string ip_subnetworks = 1;`

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

### getIpSubnetworksList()

    public abstract List<String> getIpSubnetworksList()

CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for
a CIDR IP address block, the specified IP address portion must be properly
truncated (i.e. all the host bits must be zero) or the input is considered
malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is
not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas
"2001:db8::1/32" is not. The originating IP of a request must be in one of
the listed subnets in order for this Condition to be true. If empty, all IP
addresses are allowed.

`repeated string ip_subnetworks = 1;`

| **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/String.html>` | A list containing the ipSubnetworks. |

### getMembers(int index)

    public abstract String getMembers(int index)

The request must be made by one of the provided user or service
accounts. Groups are not supported.
Syntax:
`user:{emailid}`
`serviceAccount:{emailid}`
If not specified, a request may come from any user.

`repeated string members = 6;`

| **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.oracle.com/javase/8/docs/api/java/lang/String.html` | The members at the given index. |

### getMembersBytes(int index)

    public abstract ByteString getMembersBytes(int index)

The request must be made by one of the provided user or service
accounts. Groups are not supported.
Syntax:
`user:{emailid}`
`serviceAccount:{emailid}`
If not specified, a request may come from any user.

`repeated string members = 6;`

| **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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the members at the given index. |

### getMembersCount()

    public abstract int getMembersCount()

The request must be made by one of the provided user or service
accounts. Groups are not supported.
Syntax:
`user:{emailid}`
`serviceAccount:{emailid}`
If not specified, a request may come from any user.

`repeated string members = 6;`

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

### getMembersList()

    public abstract List<String> getMembersList()

The request must be made by one of the provided user or service
accounts. Groups are not supported.
Syntax:
`user:{emailid}`
`serviceAccount:{emailid}`
If not specified, a request may come from any user.

`repeated string members = 6;`

| **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/String.html>` | A list containing the members. |

### getNegate()

    public abstract boolean getNegate()

Whether to negate the Condition. If true, the Condition becomes a NAND over
its non-empty fields, each field must be false for the Condition overall to
be satisfied. Defaults to false.

`bool negate = 5;`

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

### getRegions(int index)

    public abstract String getRegions(int index)

The request must originate from one of the provided countries/regions.
Must be valid ISO 3166-1 alpha-2 codes.

`repeated string regions = 7;`

| **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.oracle.com/javase/8/docs/api/java/lang/String.html` | The regions at the given index. |

### getRegionsBytes(int index)

    public abstract ByteString getRegionsBytes(int index)

The request must originate from one of the provided countries/regions.
Must be valid ISO 3166-1 alpha-2 codes.

`repeated string regions = 7;`

| **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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the regions at the given index. |

### getRegionsCount()

    public abstract int getRegionsCount()

The request must originate from one of the provided countries/regions.
Must be valid ISO 3166-1 alpha-2 codes.

`repeated string regions = 7;`

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

### getRegionsList()

    public abstract List<String> getRegionsList()

The request must originate from one of the provided countries/regions.
Must be valid ISO 3166-1 alpha-2 codes.

`repeated string regions = 7;`

| **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/String.html>` | A list containing the regions. |

### getRequiredAccessLevels(int index)

    public abstract String getRequiredAccessLevels(int index)

A list of other access levels defined in the same `Policy`, referenced by
resource name. Referencing an `AccessLevel` which does not exist is an
error. All access levels listed must be granted for the Condition
to be true. Example:
"`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`

`repeated string required_access_levels = 3;`

| **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.oracle.com/javase/8/docs/api/java/lang/String.html` | The requiredAccessLevels at the given index. |

### getRequiredAccessLevelsBytes(int index)

    public abstract ByteString getRequiredAccessLevelsBytes(int index)

A list of other access levels defined in the same `Policy`, referenced by
resource name. Referencing an `AccessLevel` which does not exist is an
error. All access levels listed must be granted for the Condition
to be true. Example:
"`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`

`repeated string required_access_levels = 3;`

| **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://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the requiredAccessLevels at the given index. |

### getRequiredAccessLevelsCount()

    public abstract int getRequiredAccessLevelsCount()

A list of other access levels defined in the same `Policy`, referenced by
resource name. Referencing an `AccessLevel` which does not exist is an
error. All access levels listed must be granted for the Condition
to be true. Example:
"`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`

`repeated string required_access_levels = 3;`

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

### getRequiredAccessLevelsList()

    public abstract List<String> getRequiredAccessLevelsList()

A list of other access levels defined in the same `Policy`, referenced by
resource name. Referencing an `AccessLevel` which does not exist is an
error. All access levels listed must be granted for the Condition
to be true. Example:
"`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`

`repeated string required_access_levels = 3;`

| **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/String.html>` | A list containing the requiredAccessLevels. |

### hasDevicePolicy()

    public abstract boolean hasDevicePolicy()

Device specific restrictions, all restrictions must hold for the
Condition to be true. If not specified, all devices are allowed.

`.google.identity.accesscontextmanager.v1.DevicePolicy device_policy = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the devicePolicy field is set. |