Package com.google.firestore.admin.v1
Class Index.IndexField.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Index.IndexField.Builder>
com.google.firestore.admin.v1.Index.IndexField.Builder
- All Implemented Interfaces:
Index.IndexFieldOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Index.IndexField
public static final class Index.IndexField.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Index.IndexField.Builder>
implements Index.IndexFieldOrBuilder
A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.Protobuf type
google.firestore.admin.v1.Index.IndexField-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Indicates that this field supports operations on `array_value`s.Can be __name__.Indicates that this field supports ordering by the specified order or comparing using =, !Indicates that this field supports nearest neighbor and distance operations on vector.Indicates that this field supports operations on `array_value`s.intIndicates that this field supports operations on `array_value`s.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCan be __name__.com.google.protobuf.ByteStringCan be __name__.getOrder()Indicates that this field supports ordering by the specified order or comparing using =, !intIndicates that this field supports ordering by the specified order or comparing using =, !Indicates that this field supports nearest neighbor and distance operations on vector.Indicates that this field supports nearest neighbor and distance operations on vector.Indicates that this field supports nearest neighbor and distance operations on vector.booleanIndicates that this field supports operations on `array_value`s.booleanhasOrder()Indicates that this field supports ordering by the specified order or comparing using =, !booleanIndicates that this field supports nearest neighbor and distance operations on vector.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Index.IndexField other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Indicates that this field supports nearest neighbor and distance operations on vector.Indicates that this field supports operations on `array_value`s.setArrayConfigValue(int value) Indicates that this field supports operations on `array_value`s.setFieldPath(String value) Can be __name__.setFieldPathBytes(com.google.protobuf.ByteString value) Can be __name__.setOrder(Index.IndexField.Order value) Indicates that this field supports ordering by the specified order or comparing using =, !setOrderValue(int value) Indicates that this field supports ordering by the specified order or comparing using =, !Indicates that this field supports nearest neighbor and distance operations on vector.setVectorConfig(Index.IndexField.VectorConfig.Builder builderForValue) Indicates that this field supports nearest neighbor and distance operations on vector.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Index.IndexField.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Index.IndexField.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.GeneratedMessage.Builder<Index.IndexField.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Index.IndexField.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Index.IndexField.Builder>
-
mergeFrom
public Index.IndexField.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<Index.IndexField.Builder>- Throws:
IOException
-
getValueModeCase
- Specified by:
getValueModeCasein interfaceIndex.IndexFieldOrBuilder
-
clearValueMode
-
getFieldPath
Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
string field_path = 1;- Specified by:
getFieldPathin interfaceIndex.IndexFieldOrBuilder- Returns:
- The fieldPath.
-
getFieldPathBytes
public com.google.protobuf.ByteString getFieldPathBytes()Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
string field_path = 1;- Specified by:
getFieldPathBytesin interfaceIndex.IndexFieldOrBuilder- Returns:
- The bytes for fieldPath.
-
setFieldPath
Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
string field_path = 1;- Parameters:
value- The fieldPath to set.- Returns:
- This builder for chaining.
-
clearFieldPath
Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
string field_path = 1;- Returns:
- This builder for chaining.
-
setFieldPathBytes
Can be __name__. For single field indexes, this must match the name of the field or may be omitted.
string field_path = 1;- Parameters:
value- The bytes for fieldPath to set.- Returns:
- This builder for chaining.
-
hasOrder
public boolean hasOrder()Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
.google.firestore.admin.v1.Index.IndexField.Order order = 2;- Specified by:
hasOrderin interfaceIndex.IndexFieldOrBuilder- Returns:
- Whether the order field is set.
-
getOrderValue
public int getOrderValue()Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
.google.firestore.admin.v1.Index.IndexField.Order order = 2;- Specified by:
getOrderValuein interfaceIndex.IndexFieldOrBuilder- Returns:
- The enum numeric value on the wire for order.
-
setOrderValue
Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
.google.firestore.admin.v1.Index.IndexField.Order order = 2;- Parameters:
value- The enum numeric value on the wire for order to set.- Returns:
- This builder for chaining.
-
getOrder
Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
.google.firestore.admin.v1.Index.IndexField.Order order = 2;- Specified by:
getOrderin interfaceIndex.IndexFieldOrBuilder- Returns:
- The order.
-
setOrder
Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
.google.firestore.admin.v1.Index.IndexField.Order order = 2;- Parameters:
value- The order to set.- Returns:
- This builder for chaining.
-
clearOrder
Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
.google.firestore.admin.v1.Index.IndexField.Order order = 2;- Returns:
- This builder for chaining.
-
hasArrayConfig
public boolean hasArrayConfig()Indicates that this field supports operations on `array_value`s.
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;- Specified by:
hasArrayConfigin interfaceIndex.IndexFieldOrBuilder- Returns:
- Whether the arrayConfig field is set.
-
getArrayConfigValue
public int getArrayConfigValue()Indicates that this field supports operations on `array_value`s.
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;- Specified by:
getArrayConfigValuein interfaceIndex.IndexFieldOrBuilder- Returns:
- The enum numeric value on the wire for arrayConfig.
-
setArrayConfigValue
Indicates that this field supports operations on `array_value`s.
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;- Parameters:
value- The enum numeric value on the wire for arrayConfig to set.- Returns:
- This builder for chaining.
-
getArrayConfig
Indicates that this field supports operations on `array_value`s.
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;- Specified by:
getArrayConfigin interfaceIndex.IndexFieldOrBuilder- Returns:
- The arrayConfig.
-
setArrayConfig
Indicates that this field supports operations on `array_value`s.
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;- Parameters:
value- The arrayConfig to set.- Returns:
- This builder for chaining.
-
clearArrayConfig
Indicates that this field supports operations on `array_value`s.
.google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;- Returns:
- This builder for chaining.
-
hasVectorConfig
public boolean hasVectorConfig()Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;- Specified by:
hasVectorConfigin interfaceIndex.IndexFieldOrBuilder- Returns:
- Whether the vectorConfig field is set.
-
getVectorConfig
Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;- Specified by:
getVectorConfigin interfaceIndex.IndexFieldOrBuilder- Returns:
- The vectorConfig.
-
setVectorConfig
Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4; -
setVectorConfig
public Index.IndexField.Builder setVectorConfig(Index.IndexField.VectorConfig.Builder builderForValue) Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4; -
mergeVectorConfig
Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4; -
clearVectorConfig
Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4; -
getVectorConfigBuilder
Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4; -
getVectorConfigOrBuilder
Indicates that this field supports nearest neighbor and distance operations on vector.
.google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;- Specified by:
getVectorConfigOrBuilderin interfaceIndex.IndexFieldOrBuilder
-