Package com.google.firestore.v1
Class DocumentMask.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DocumentMask.Builder>
com.google.firestore.v1.DocumentMask.Builder
- All Implemented Interfaces:
DocumentMaskOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DocumentMask
public static final class DocumentMask.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DocumentMask.Builder>
implements DocumentMaskOrBuilder
A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a [Document][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value].Protobuf type
google.firestore.v1.DocumentMask-
Method Summary
Modifier and TypeMethodDescriptionaddAllFieldPaths(Iterable<String> values) The list of field paths in the mask.addFieldPaths(String value) The list of field paths in the mask.addFieldPathsBytes(com.google.protobuf.ByteString value) The list of field paths in the mask.build()clear()The list of field paths in the mask.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFieldPaths(int index) The list of field paths in the mask.com.google.protobuf.ByteStringgetFieldPathsBytes(int index) The list of field paths in the mask.intThe list of field paths in the mask.com.google.protobuf.ProtocolStringListThe list of field paths in the mask.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DocumentMask other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFieldPaths(int index, String value) The list of field paths in the mask.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<DocumentMask.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<DocumentMask.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<DocumentMask.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<DocumentMask.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DocumentMask.Builder>
-
mergeFrom
public DocumentMask.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<DocumentMask.Builder>- Throws:
IOException
-
getFieldPathsList
public com.google.protobuf.ProtocolStringList getFieldPathsList()The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Specified by:
getFieldPathsListin interfaceDocumentMaskOrBuilder- Returns:
- A list containing the fieldPaths.
-
getFieldPathsCount
public int getFieldPathsCount()The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Specified by:
getFieldPathsCountin interfaceDocumentMaskOrBuilder- Returns:
- The count of fieldPaths.
-
getFieldPaths
The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Specified by:
getFieldPathsin interfaceDocumentMaskOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The fieldPaths at the given index.
-
getFieldPathsBytes
public com.google.protobuf.ByteString getFieldPathsBytes(int index) The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Specified by:
getFieldPathsBytesin interfaceDocumentMaskOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the fieldPaths at the given index.
-
setFieldPaths
The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Parameters:
index- The index to set the value at.value- The fieldPaths to set.- Returns:
- This builder for chaining.
-
addFieldPaths
The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Parameters:
value- The fieldPaths to add.- Returns:
- This builder for chaining.
-
addAllFieldPaths
The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Parameters:
values- The fieldPaths to add.- Returns:
- This builder for chaining.
-
clearFieldPaths
The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Returns:
- This builder for chaining.
-
addFieldPathsBytes
The list of field paths in the mask. See [Document.fields][google.firestore.v1.Document.fields] for a field path syntax reference.
repeated string field_paths = 1;- Parameters:
value- The bytes of the fieldPaths to add.- Returns:
- This builder for chaining.
-