# Google Cloud Datastore Admin V1 Client - Class AncestorMode (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.8.5 0.7.5 0.6.0 0.5.8 Reference documentation and code samples for the Google Cloud Datastore Admin V1 Client class AncestorMode.

For an ordered index, specifies whether each of the entity's ancestors
will be included.

Protobuf type `google.datastore.admin.v1.Index.AncestorMode`

## Namespace

Google \\ Cloud \\ Datastore \\ Admin \\ V1 \\ Index

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### ANCESTOR_MODE_UNSPECIFIED

    Value: 0

The ancestor mode is unspecified.

Generated from protobuf enum `ANCESTOR_MODE_UNSPECIFIED = 0;`

### NONE

    Value: 1

Do not include the entity's ancestors in the index.

Generated from protobuf enum `NONE = 1;`

### ALL_ANCESTORS

    Value: 2

Include all the entity's ancestors in the index.

Generated from protobuf enum `ALL_ANCESTORS = 2;`