Google Cloud Datastore Admin V1 Client - Class IndexedProperty (0.8.5)

Reference documentation and code samples for the Google Cloud Datastore Admin V1 Client class IndexedProperty.

A property of an index.

Generated from protobuf message google.datastore.admin.v1.Index.IndexedProperty

Namespace

Google \ Cloud \ Datastore \ Admin \ V1 \ Index

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The property name to index.

↳ direction int

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

getName

Required. The property name to index.

Returns
Type Description
string

setName

Required. The property name to index.

Parameter
Name Description
var string
Returns
Type Description
$this

getDirection

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

Returns
Type Description
int

setDirection

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.

Parameter
Name Description
var int
Returns
Type Description
$this