public static final class DocumentMask.Builder extends GeneratedMessageV3.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, and takes in account the dynamic nature of Value.
Protobuf type google.firestore.v1.DocumentMask
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DocumentMask.BuilderImplements
DocumentMaskOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllFieldPaths(Iterable<String> values)
public DocumentMask.Builder addAllFieldPaths(Iterable<String> values)
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Name | Description |
values | Iterable<String> The fieldPaths to add. |
Type | Description |
DocumentMask.Builder | This builder for chaining. |
addFieldPaths(String value)
public DocumentMask.Builder addFieldPaths(String value)
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Name | Description |
value | String The fieldPaths to add. |
Type | Description |
DocumentMask.Builder | This builder for chaining. |
addFieldPathsBytes(ByteString value)
public DocumentMask.Builder addFieldPathsBytes(ByteString value)
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Name | Description |
value | ByteString The bytes of the fieldPaths to add. |
Type | Description |
DocumentMask.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DocumentMask.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DocumentMask.Builder |
build()
public DocumentMask build()
Type | Description |
DocumentMask |
buildPartial()
public DocumentMask buildPartial()
Type | Description |
DocumentMask |
clear()
public DocumentMask.Builder clear()
Type | Description |
DocumentMask.Builder |
clearField(Descriptors.FieldDescriptor field)
public DocumentMask.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
DocumentMask.Builder |
clearFieldPaths()
public DocumentMask.Builder clearFieldPaths()
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Type | Description |
DocumentMask.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DocumentMask.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
DocumentMask.Builder |
clone()
public DocumentMask.Builder clone()
Type | Description |
DocumentMask.Builder |
getDefaultInstanceForType()
public DocumentMask getDefaultInstanceForType()
Type | Description |
DocumentMask |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFieldPaths(int index)
public String getFieldPaths(int index)
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The fieldPaths at the given index. |
getFieldPathsBytes(int index)
public ByteString getFieldPathsBytes(int index)
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the fieldPaths at the given index. |
getFieldPathsCount()
public int getFieldPathsCount()
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Type | Description |
int | The count of fieldPaths. |
getFieldPathsList()
public ProtocolStringList getFieldPathsList()
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Type | Description |
ProtocolStringList | A list containing the fieldPaths. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(DocumentMask other)
public DocumentMask.Builder mergeFrom(DocumentMask other)
Name | Description |
other | DocumentMask |
Type | Description |
DocumentMask.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DocumentMask.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
DocumentMask.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public DocumentMask.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
DocumentMask.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DocumentMask.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DocumentMask.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DocumentMask.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DocumentMask.Builder |
setFieldPaths(int index, String value)
public DocumentMask.Builder setFieldPaths(int index, String value)
The list of field paths in the mask. See Document.fields for a field path syntax reference.
repeated string field_paths = 1;
Name | Description |
index | int The index to set the value at. |
value | String The fieldPaths to set. |
Type | Description |
DocumentMask.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DocumentMask.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
DocumentMask.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DocumentMask.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DocumentMask.Builder |