Cloud Datastore v1 API - Class Index (2.2.0)

public sealed class Index : IMessage<Index>, IEquatable<Index>, IDeepCloneable<Index>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Datastore v1 API class Index.

Datastore composite index definition.

Inheritance

object > Index

Namespace

Google.Cloud.Datastore.Admin.V1

Assembly

Google.Cloud.Datastore.Admin.V1.dll

Constructors

Index()

public Index()

Index(Index)

public Index(Index other)
Parameter
NameDescription
otherIndex

Properties

Ancestor

public Index.Types.AncestorMode Ancestor { get; set; }

Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.

Property Value
TypeDescription
IndexTypesAncestorMode

IndexId

public string IndexId { get; set; }

Output only. The resource ID of the index.

Property Value
TypeDescription
string

Kind

public string Kind { get; set; }

Required. The entity kind to which this index applies.

Property Value
TypeDescription
string

ProjectId

public string ProjectId { get; set; }

Output only. Project ID.

Property Value
TypeDescription
string

Properties

public RepeatedField<Index.Types.IndexedProperty> Properties { get; }

Required. An ordered sequence of property names and their index attributes.

Requires:

  • A maximum of 100 properties.
Property Value
TypeDescription
RepeatedFieldIndexTypesIndexedProperty

State

public Index.Types.State State { get; set; }

Output only. The state of the index.

Property Value
TypeDescription
IndexTypesState