public final class Index extends com.google.protobuf.GeneratedMessageV3 implements IndexOrBuilder
Datastore composite index definition.Protobuf type
google.datastore.admin.v1.Index
Modifier and Type | Class and Description |
---|---|
static class |
Index.AncestorMode
For an ordered index, specifies whether each of the entity's ancestors
will be included.
|
static class |
Index.Builder
Datastore composite index definition.
|
static class |
Index.Direction
The direction determines how a property is indexed.
|
static class |
Index.IndexedProperty
A property of an index.
|
static interface |
Index.IndexedPropertyOrBuilder |
static class |
Index.State
The possible set of states of an index.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
ANCESTOR_FIELD_NUMBER |
static int |
INDEX_ID_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
PROJECT_ID_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Index.AncestorMode |
getAncestor()
Required.
|
int |
getAncestorValue()
Required.
|
static Index |
getDefaultInstance() |
Index |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getIndexId()
Output only.
|
com.google.protobuf.ByteString |
getIndexIdBytes()
Output only.
|
String |
getKind()
Required.
|
com.google.protobuf.ByteString |
getKindBytes()
Required.
|
com.google.protobuf.Parser<Index> |
getParserForType() |
String |
getProjectId()
Output only.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Output only.
|
Index.IndexedProperty |
getProperties(int index)
Required.
|
int |
getPropertiesCount()
Required.
|
List<Index.IndexedProperty> |
getPropertiesList()
Required.
|
Index.IndexedPropertyOrBuilder |
getPropertiesOrBuilder(int index)
Required.
|
List<? extends Index.IndexedPropertyOrBuilder> |
getPropertiesOrBuilderList()
Required.
|
int |
getSerializedSize() |
Index.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Index.Builder |
newBuilder() |
static Index.Builder |
newBuilder(Index prototype) |
Index.Builder |
newBuilderForType() |
protected Index.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Index |
parseDelimitedFrom(InputStream input) |
static Index |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Index |
parseFrom(byte[] data) |
static Index |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Index |
parseFrom(ByteBuffer data) |
static Index |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Index |
parseFrom(com.google.protobuf.ByteString data) |
static Index |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Index |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Index |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Index |
parseFrom(InputStream input) |
static Index |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Index> |
parser() |
Index.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int PROJECT_ID_FIELD_NUMBER
public static final int INDEX_ID_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int ANCESTOR_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public String getProjectId()
Output only. Project ID.
string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getProjectId
in interface IndexOrBuilder
public com.google.protobuf.ByteString getProjectIdBytes()
Output only. Project ID.
string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getProjectIdBytes
in interface IndexOrBuilder
public String getIndexId()
Output only. The resource ID of the index.
string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getIndexId
in interface IndexOrBuilder
public com.google.protobuf.ByteString getIndexIdBytes()
Output only. The resource ID of the index.
string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getIndexIdBytes
in interface IndexOrBuilder
public String getKind()
Required. The entity kind to which this index applies.
string kind = 4 [(.google.api.field_behavior) = REQUIRED];
getKind
in interface IndexOrBuilder
public com.google.protobuf.ByteString getKindBytes()
Required. The entity kind to which this index applies.
string kind = 4 [(.google.api.field_behavior) = REQUIRED];
getKindBytes
in interface IndexOrBuilder
public int getAncestorValue()
Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
.google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED];
getAncestorValue
in interface IndexOrBuilder
public Index.AncestorMode getAncestor()
Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
.google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED];
getAncestor
in interface IndexOrBuilder
public List<Index.IndexedProperty> getPropertiesList()
Required. An ordered sequence of property names and their index attributes.
repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
getPropertiesList
in interface IndexOrBuilder
public List<? extends Index.IndexedPropertyOrBuilder> getPropertiesOrBuilderList()
Required. An ordered sequence of property names and their index attributes.
repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
getPropertiesOrBuilderList
in interface IndexOrBuilder
public int getPropertiesCount()
Required. An ordered sequence of property names and their index attributes.
repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
getPropertiesCount
in interface IndexOrBuilder
public Index.IndexedProperty getProperties(int index)
Required. An ordered sequence of property names and their index attributes.
repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
getProperties
in interface IndexOrBuilder
public Index.IndexedPropertyOrBuilder getPropertiesOrBuilder(int index)
Required. An ordered sequence of property names and their index attributes.
repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED];
getPropertiesOrBuilder
in interface IndexOrBuilder
public int getStateValue()
Output only. The state of the index.
.google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue
in interface IndexOrBuilder
public Index.State getState()
Output only. The state of the index.
.google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState
in interface IndexOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Index parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Index parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Index parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Index parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Index parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Index parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Index parseFrom(InputStream input) throws IOException
IOException
public static Index parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Index parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Index parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Index parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Index parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Index.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Index.Builder newBuilder()
public static Index.Builder newBuilder(Index prototype)
public Index.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Index.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Index getDefaultInstance()
public static com.google.protobuf.Parser<Index> parser()
public com.google.protobuf.Parser<Index> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Index getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.