public static final class DocumentMask.Builder extends com.google.protobuf.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][google.firestore.v1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1.Value].Protobuf type
google.firestore.v1.DocumentMask
Modifier and Type | Method and Description |
---|---|
DocumentMask.Builder |
addAllFieldPaths(Iterable<String> values)
The list of field paths in the mask.
|
DocumentMask.Builder |
addFieldPaths(String value)
The list of field paths in the mask.
|
DocumentMask.Builder |
addFieldPathsBytes(com.google.protobuf.ByteString value)
The list of field paths in the mask.
|
DocumentMask.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentMask |
build() |
DocumentMask |
buildPartial() |
DocumentMask.Builder |
clear() |
DocumentMask.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DocumentMask.Builder |
clearFieldPaths()
The list of field paths in the mask.
|
DocumentMask.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DocumentMask.Builder |
clone() |
DocumentMask |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFieldPaths(int index)
The list of field paths in the mask.
|
com.google.protobuf.ByteString |
getFieldPathsBytes(int index)
The list of field paths in the mask.
|
int |
getFieldPathsCount()
The list of field paths in the mask.
|
com.google.protobuf.ProtocolStringList |
getFieldPathsList()
The list of field paths in the mask.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DocumentMask.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DocumentMask.Builder |
mergeFrom(DocumentMask other) |
DocumentMask.Builder |
mergeFrom(com.google.protobuf.Message other) |
DocumentMask.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DocumentMask.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentMask.Builder |
setFieldPaths(int index,
String value)
The list of field paths in the mask.
|
DocumentMask.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DocumentMask.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<DocumentMask.Builder>
public DocumentMask.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<DocumentMask.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<DocumentMask.Builder>
public DocumentMask getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DocumentMask build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DocumentMask buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DocumentMask.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<DocumentMask.Builder>
public DocumentMask.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<DocumentMask.Builder>
public DocumentMask.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentMask.Builder>
public DocumentMask.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentMask.Builder>
public DocumentMask.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<DocumentMask.Builder>
public DocumentMask.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<DocumentMask.Builder>
public DocumentMask.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DocumentMask.Builder>
public DocumentMask.Builder mergeFrom(DocumentMask other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentMask.Builder>
public DocumentMask.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<DocumentMask.Builder>
IOException
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;
getFieldPathsList
in interface DocumentMaskOrBuilder
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;
getFieldPathsCount
in interface DocumentMaskOrBuilder
public String getFieldPaths(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;
getFieldPaths
in interface DocumentMaskOrBuilder
index
- The index of the element to return.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;
getFieldPathsBytes
in interface DocumentMaskOrBuilder
index
- The index of the value to return.public DocumentMask.Builder setFieldPaths(int index, String value)
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;
index
- The index to set the value at.value
- The fieldPaths to set.public DocumentMask.Builder addFieldPaths(String value)
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;
value
- The fieldPaths to add.public DocumentMask.Builder addAllFieldPaths(Iterable<String> values)
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;
values
- The fieldPaths to add.public DocumentMask.Builder 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;
public DocumentMask.Builder addFieldPathsBytes(com.google.protobuf.ByteString value)
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;
value
- The bytes of the fieldPaths to add.public final DocumentMask.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentMask.Builder>
public final DocumentMask.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentMask.Builder>
Copyright © 2023 Google LLC. All rights reserved.