public static final class Index.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder> implements IndexOrBuilder
Datastore composite index definition.Protobuf type
google.datastore.admin.v1.Index
Modifier and Type | Method and Description |
---|---|
Index.Builder |
addAllProperties(Iterable<? extends Index.IndexedProperty> values)
Required.
|
Index.Builder |
addProperties(Index.IndexedProperty.Builder builderForValue)
Required.
|
Index.Builder |
addProperties(Index.IndexedProperty value)
Required.
|
Index.Builder |
addProperties(int index,
Index.IndexedProperty.Builder builderForValue)
Required.
|
Index.Builder |
addProperties(int index,
Index.IndexedProperty value)
Required.
|
Index.IndexedProperty.Builder |
addPropertiesBuilder()
Required.
|
Index.IndexedProperty.Builder |
addPropertiesBuilder(int index)
Required.
|
Index.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Index |
build() |
Index |
buildPartial() |
Index.Builder |
clear() |
Index.Builder |
clearAncestor()
Required.
|
Index.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Index.Builder |
clearIndexId()
Output only.
|
Index.Builder |
clearKind()
Required.
|
Index.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Index.Builder |
clearProjectId()
Output only.
|
Index.Builder |
clearProperties()
Required.
|
Index.Builder |
clearState()
Output only.
|
Index.Builder |
clone() |
Index.AncestorMode |
getAncestor()
Required.
|
int |
getAncestorValue()
Required.
|
Index |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getIndexId()
Output only.
|
com.google.protobuf.ByteString |
getIndexIdBytes()
Output only.
|
String |
getKind()
Required.
|
com.google.protobuf.ByteString |
getKindBytes()
Required.
|
String |
getProjectId()
Output only.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Output only.
|
Index.IndexedProperty |
getProperties(int index)
Required.
|
Index.IndexedProperty.Builder |
getPropertiesBuilder(int index)
Required.
|
List<Index.IndexedProperty.Builder> |
getPropertiesBuilderList()
Required.
|
int |
getPropertiesCount()
Required.
|
List<Index.IndexedProperty> |
getPropertiesList()
Required.
|
Index.IndexedPropertyOrBuilder |
getPropertiesOrBuilder(int index)
Required.
|
List<? extends Index.IndexedPropertyOrBuilder> |
getPropertiesOrBuilderList()
Required.
|
Index.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Index.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Index.Builder |
mergeFrom(Index other) |
Index.Builder |
mergeFrom(com.google.protobuf.Message other) |
Index.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Index.Builder |
removeProperties(int index)
Required.
|
Index.Builder |
setAncestor(Index.AncestorMode value)
Required.
|
Index.Builder |
setAncestorValue(int value)
Required.
|
Index.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Index.Builder |
setIndexId(String value)
Output only.
|
Index.Builder |
setIndexIdBytes(com.google.protobuf.ByteString value)
Output only.
|
Index.Builder |
setKind(String value)
Required.
|
Index.Builder |
setKindBytes(com.google.protobuf.ByteString value)
Required.
|
Index.Builder |
setProjectId(String value)
Output only.
|
Index.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
Output only.
|
Index.Builder |
setProperties(int index,
Index.IndexedProperty.Builder builderForValue)
Required.
|
Index.Builder |
setProperties(int index,
Index.IndexedProperty value)
Required.
|
Index.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Index.Builder |
setState(Index.State value)
Output only.
|
Index.Builder |
setStateValue(int value)
Output only.
|
Index.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Index build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Index buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Index.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Index.Builder>
public Index.Builder mergeFrom(Index other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public Index.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Index.Builder>
IOException
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 Index.Builder setProjectId(String value)
Output only. Project ID.
string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The projectId to set.public Index.Builder clearProjectId()
Output only. Project ID.
string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Index.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Output only. Project ID.
string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for projectId to set.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 Index.Builder setIndexId(String value)
Output only. The resource ID of the index.
string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The indexId to set.public Index.Builder clearIndexId()
Output only. The resource ID of the index.
string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Index.Builder setIndexIdBytes(com.google.protobuf.ByteString value)
Output only. The resource ID of the index.
string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for indexId to set.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 Index.Builder setKind(String value)
Required. The entity kind to which this index applies.
string kind = 4 [(.google.api.field_behavior) = REQUIRED];
value
- The kind to set.public Index.Builder clearKind()
Required. The entity kind to which this index applies.
string kind = 4 [(.google.api.field_behavior) = REQUIRED];
public Index.Builder setKindBytes(com.google.protobuf.ByteString value)
Required. The entity kind to which this index applies.
string kind = 4 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for kind to set.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.Builder setAncestorValue(int value)
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];
value
- The enum numeric value on the wire for ancestor to set.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 Index.Builder setAncestor(Index.AncestorMode value)
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];
value
- The ancestor to set.public Index.Builder clearAncestor()
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];
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 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.Builder setProperties(int index, Index.IndexedProperty value)
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];
public Index.Builder setProperties(int index, Index.IndexedProperty.Builder builderForValue)
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];
public Index.Builder addProperties(Index.IndexedProperty value)
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];
public Index.Builder addProperties(int index, Index.IndexedProperty value)
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];
public Index.Builder addProperties(Index.IndexedProperty.Builder builderForValue)
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];
public Index.Builder addProperties(int index, Index.IndexedProperty.Builder builderForValue)
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];
public Index.Builder addAllProperties(Iterable<? extends Index.IndexedProperty> values)
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];
public Index.Builder clearProperties()
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];
public Index.Builder removeProperties(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];
public Index.IndexedProperty.Builder getPropertiesBuilder(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];
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 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 Index.IndexedProperty.Builder addPropertiesBuilder()
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];
public Index.IndexedProperty.Builder addPropertiesBuilder(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];
public List<Index.IndexedProperty.Builder> getPropertiesBuilderList()
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];
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.Builder setStateValue(int value)
Output only. The state of the index.
.google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The enum numeric value on the wire for state to set.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 Index.Builder setState(Index.State value)
Output only. The state of the index.
.google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The state to set.public Index.Builder clearState()
Output only. The state of the index.
.google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final Index.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
public final Index.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Index.Builder>
Copyright © 2023 Google LLC. All rights reserved.