Google Cloud Datastore Admin V1 Client - Class IndexedProperty (0.7.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
NameDescription
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
TypeDescription
string

setName

Required. The property name to index.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDirection

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

Returns
TypeDescription
int

setDirection

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this