# Stackdriver Logging V2 Client - Class IndexType (2.1.0)

2.1.0 (latest) 2.0.0 1.34.5 1.33.0 1.32.3 1.31.3 1.30.3 1.29.0 1.28.5 1.27.1 1.26.0 1.25.5 1.24.10 Reference documentation and code samples for the Stackdriver Logging V2 Client class IndexType.

IndexType is used for custom indexing. It describes the type of an indexed
field.

Protobuf type `google.logging.v2.IndexType`

## Namespace

Google \\ Cloud \\ Logging \\ V2

## Methods

### static::name

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

### static::value

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

## Constants

### INDEX_TYPE_UNSPECIFIED

    Value: 0

The index's type is unspecified.

Generated from protobuf enum `INDEX_TYPE_UNSPECIFIED = 0;`

### INDEX_TYPE_STRING

    Value: 1

The index is a string-type index.

Generated from protobuf enum `INDEX_TYPE_STRING = 1;`

### INDEX_TYPE_INTEGER

    Value: 2

The index is a integer-type index.

Generated from protobuf enum `INDEX_TYPE_INTEGER = 2;`