Package com.google.firestore.admin.v1
Class Field.IndexConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
com.google.firestore.admin.v1.Field.IndexConfig.Builder
- All Implemented Interfaces:
Field.IndexConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Field.IndexConfig
public static final class Field.IndexConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
implements Field.IndexConfigOrBuilder
The index configuration for this field.Protobuf type
google.firestore.admin.v1.Field.IndexConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllIndexes(Iterable<? extends Index> values) The indexes supported for this field.addIndexes(int index, Index value) The indexes supported for this field.addIndexes(int index, Index.Builder builderForValue) The indexes supported for this field.addIndexes(Index value) The indexes supported for this field.addIndexes(Index.Builder builderForValue) The indexes supported for this field.The indexes supported for this field.addIndexesBuilder(int index) The indexes supported for this field.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The indexes supported for this field.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only When true, the `Field`'s index configuration is in the process of being reverted.Output only.clone()Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIndexes(int index) The indexes supported for this field.getIndexesBuilder(int index) The indexes supported for this field.The indexes supported for this field.intThe indexes supported for this field.The indexes supported for this field.getIndexesOrBuilder(int index) The indexes supported for this field.List<? extends IndexOrBuilder>The indexes supported for this field.booleanOutput only When true, the `Field`'s index configuration is in the process of being reverted.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Field.IndexConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeIndexes(int index) The indexes supported for this field.setAncestorField(String value) Output only.setAncestorFieldBytes(com.google.protobuf.ByteString value) Output only.setIndexes(int index, Index value) The indexes supported for this field.setIndexes(int index, Index.Builder builderForValue) The indexes supported for this field.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setReverting(boolean value) Output only When true, the `Field`'s index configuration is in the process of being reverted.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUsesAncestorConfig(boolean value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
setField
public Field.IndexConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
setRepeatedField
public Field.IndexConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
addRepeatedField
public Field.IndexConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Field.IndexConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
mergeFrom
public Field.IndexConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Field.IndexConfig.Builder>- Throws:
IOException
-
getIndexesList
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1;- Specified by:
getIndexesListin interfaceField.IndexConfigOrBuilder
-
getIndexesCount
public int getIndexesCount()The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1;- Specified by:
getIndexesCountin interfaceField.IndexConfigOrBuilder
-
getIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1;- Specified by:
getIndexesin interfaceField.IndexConfigOrBuilder
-
setIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
setIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
addIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
addIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
addIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
addIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
addAllIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
clearIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
removeIndexes
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
getIndexesBuilder
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
getIndexesOrBuilder
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1;- Specified by:
getIndexesOrBuilderin interfaceField.IndexConfigOrBuilder
-
getIndexesOrBuilderList
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1;- Specified by:
getIndexesOrBuilderListin interfaceField.IndexConfigOrBuilder
-
addIndexesBuilder
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
addIndexesBuilder
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
getIndexesBuilderList
The indexes supported for this field.
repeated .google.firestore.admin.v1.Index indexes = 1; -
getUsesAncestorConfig
public boolean getUsesAncestorConfig()Output only. When true, the `Field`'s index configuration is set from the configuration specified by the `ancestor_field`. When false, the `Field`'s index configuration is defined explicitly.
bool uses_ancestor_config = 2;- Specified by:
getUsesAncestorConfigin interfaceField.IndexConfigOrBuilder- Returns:
- The usesAncestorConfig.
-
setUsesAncestorConfig
Output only. When true, the `Field`'s index configuration is set from the configuration specified by the `ancestor_field`. When false, the `Field`'s index configuration is defined explicitly.
bool uses_ancestor_config = 2;- Parameters:
value- The usesAncestorConfig to set.- Returns:
- This builder for chaining.
-
clearUsesAncestorConfig
Output only. When true, the `Field`'s index configuration is set from the configuration specified by the `ancestor_field`. When false, the `Field`'s index configuration is defined explicitly.
bool uses_ancestor_config = 2;- Returns:
- This builder for chaining.
-
getAncestorField
Output only. Specifies the resource name of the `Field` from which this field's index configuration is set (when `uses_ancestor_config` is true), or from which it *would* be set if this field had no index configuration (when `uses_ancestor_config` is false).
string ancestor_field = 3;- Specified by:
getAncestorFieldin interfaceField.IndexConfigOrBuilder- Returns:
- The ancestorField.
-
getAncestorFieldBytes
public com.google.protobuf.ByteString getAncestorFieldBytes()Output only. Specifies the resource name of the `Field` from which this field's index configuration is set (when `uses_ancestor_config` is true), or from which it *would* be set if this field had no index configuration (when `uses_ancestor_config` is false).
string ancestor_field = 3;- Specified by:
getAncestorFieldBytesin interfaceField.IndexConfigOrBuilder- Returns:
- The bytes for ancestorField.
-
setAncestorField
Output only. Specifies the resource name of the `Field` from which this field's index configuration is set (when `uses_ancestor_config` is true), or from which it *would* be set if this field had no index configuration (when `uses_ancestor_config` is false).
string ancestor_field = 3;- Parameters:
value- The ancestorField to set.- Returns:
- This builder for chaining.
-
clearAncestorField
Output only. Specifies the resource name of the `Field` from which this field's index configuration is set (when `uses_ancestor_config` is true), or from which it *would* be set if this field had no index configuration (when `uses_ancestor_config` is false).
string ancestor_field = 3;- Returns:
- This builder for chaining.
-
setAncestorFieldBytes
Output only. Specifies the resource name of the `Field` from which this field's index configuration is set (when `uses_ancestor_config` is true), or from which it *would* be set if this field had no index configuration (when `uses_ancestor_config` is false).
string ancestor_field = 3;- Parameters:
value- The bytes for ancestorField to set.- Returns:
- This builder for chaining.
-
getReverting
public boolean getReverting()Output only When true, the `Field`'s index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by `ancestor_field`, at which point `uses_ancestor_config` will be `true` and `reverting` will be `false`.
bool reverting = 4;- Specified by:
getRevertingin interfaceField.IndexConfigOrBuilder- Returns:
- The reverting.
-
setReverting
Output only When true, the `Field`'s index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by `ancestor_field`, at which point `uses_ancestor_config` will be `true` and `reverting` will be `false`.
bool reverting = 4;- Parameters:
value- The reverting to set.- Returns:
- This builder for chaining.
-
clearReverting
Output only When true, the `Field`'s index configuration is in the process of being reverted. Once complete, the index config will transition to the same state as the field specified by `ancestor_field`, at which point `uses_ancestor_config` will be `true` and `reverting` will be `false`.
bool reverting = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Field.IndexConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-
mergeUnknownFields
public final Field.IndexConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Field.IndexConfig.Builder>
-