# Compute V1 Client - Class PublicDelegatedPrefixPublicDelegatedSubPrefix (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.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.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class PublicDelegatedPrefixPublicDelegatedSubPrefix.

Represents a sub PublicDelegatedPrefix.

Generated from protobuf message `google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ allocatable_prefix_length` | `int` The allocatable prefix length supported by this PublicDelegatedSubPrefix. |
| `↳ delegatee_project` | `string` Name of the project scoping this PublicDelegatedSubPrefix. |
| `↳ description` | `string` An optional description of this resource. Provide this property when you create the resource. |
| `↳ enable_enhanced_ipv4_allocation` | `bool` Output only. \[Output Only\] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs only. |
| `↳ ip_cidr_range` | `string` The IP address range, in CIDR format, represented by this sub public delegated prefix. |
| `↳ ipv6_access_type` | `string` Output only. \[Output Only\] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from parent prefix. Check the Ipv6AccessType enum for the list of possible values. |
| `↳ is_address` | `bool` Whether the sub prefix is delegated to create Address resources in the delegatee project. |
| `↳ mode` | `string` The PublicDelegatedSubPrefix mode for IPv6 only. Check the Mode enum for the list of possible values. |
| `↳ name` | `string` The name of the sub public delegated prefix. |
| `↳ region` | `string` Output only. \[Output Only\] The region of the sub public delegated prefix if it is regional. If absent, the sub prefix is global. |
| `↳ status` | `string` Output only. \[Output Only\] The status of the sub public delegated prefix. Check the Status enum for the list of possible values. |

### getAllocatablePrefixLength

The allocatable prefix length supported by this PublicDelegatedSubPrefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasAllocatablePrefixLength

### clearAllocatablePrefixLength

### setAllocatablePrefixLength

The allocatable prefix length supported by this PublicDelegatedSubPrefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getDelegateeProject

Name of the project scoping this PublicDelegatedSubPrefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDelegateeProject

### clearDelegateeProject

### setDelegateeProject

Name of the project scoping this PublicDelegatedSubPrefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getDescription

An optional description of this resource. Provide this property when you
create the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDescription

### clearDescription

### setDescription

An optional description of this resource. Provide this property when you
create the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getEnableEnhancedIpv4Allocation

Output only. \[Output Only\] Whether this PDP supports enhanced IPv4 allocations.

Applicable for IPv4 PDPs only.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasEnableEnhancedIpv4Allocation

### clearEnableEnhancedIpv4Allocation

### setEnableEnhancedIpv4Allocation

Output only. \[Output Only\] Whether this PDP supports enhanced IPv4 allocations.

Applicable for IPv4 PDPs only.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getIpCidrRange

The IP address range, in CIDR format, represented by this sub public
delegated prefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasIpCidrRange

### clearIpCidrRange

### setIpCidrRange

The IP address range, in CIDR format, represented by this sub public
delegated prefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getIpv6AccessType

Output only. \[Output Only\] The internet access type for IPv6 Public Delegated Sub
Prefixes. Inherited from parent prefix.

Check the Ipv6AccessType enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasIpv6AccessType

### clearIpv6AccessType

### setIpv6AccessType

Output only. \[Output Only\] The internet access type for IPv6 Public Delegated Sub
Prefixes. Inherited from parent prefix.

Check the Ipv6AccessType enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getIsAddress

Whether the sub prefix is delegated to create Address resources in the
delegatee project.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasIsAddress

### clearIsAddress

### setIsAddress

Whether the sub prefix is delegated to create Address resources in the
delegatee project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getMode

The PublicDelegatedSubPrefix mode for IPv6 only.

Check the Mode enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasMode

### clearMode

### setMode

The PublicDelegatedSubPrefix mode for IPv6 only.

Check the Mode enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getName

The name of the sub public delegated prefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasName

### clearName

### setName

The name of the sub public delegated prefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getRegion

Output only. \[Output Only\] The region of the sub public delegated prefix if it is
regional. If absent, the sub prefix is global.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasRegion

### clearRegion

### setRegion

Output only. \[Output Only\] The region of the sub public delegated prefix if it is
regional. If absent, the sub prefix is global.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getStatus

Output only. \[Output Only\] The status of the sub public delegated prefix.

Check the Status enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasStatus

### clearStatus

### setStatus

Output only. \[Output Only\] The status of the sub public delegated prefix.

Check the Status enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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