public static final class Write.Builder extends GeneratedMessageV3.Builder<Write.Builder> implements WriteOrBuilder
A write on a document.Protobuf type
google.firestore.v1beta1.WritegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Write.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Write.Builder>public Write getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Write build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Write buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Write.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Write.Builder>public Write.Builder mergeFrom(Write other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Write.Builder>public Write.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Write.Builder>java.io.IOExceptionpublic Write.OperationCase getOperationCase()
getOperationCase in interface WriteOrBuilderpublic Write.Builder clearOperation()
public boolean hasUpdate()
A document to write.
.google.firestore.v1beta1.Document update = 1;hasUpdate in interface WriteOrBuilderpublic Document getUpdate()
A document to write.
.google.firestore.v1beta1.Document update = 1;getUpdate in interface WriteOrBuilderpublic Write.Builder setUpdate(Document value)
A document to write.
.google.firestore.v1beta1.Document update = 1;public Write.Builder setUpdate(Document.Builder builderForValue)
A document to write.
.google.firestore.v1beta1.Document update = 1;public Write.Builder mergeUpdate(Document value)
A document to write.
.google.firestore.v1beta1.Document update = 1;public Write.Builder clearUpdate()
A document to write.
.google.firestore.v1beta1.Document update = 1;public Document.Builder getUpdateBuilder()
A document to write.
.google.firestore.v1beta1.Document update = 1;public DocumentOrBuilder getUpdateOrBuilder()
A document to write.
.google.firestore.v1beta1.Document update = 1;getUpdateOrBuilder in interface WriteOrBuilderpublic java.lang.String getDelete()
A document name to delete. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string delete = 2;getDelete in interface WriteOrBuilderpublic ByteString getDeleteBytes()
A document name to delete. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string delete = 2;getDeleteBytes in interface WriteOrBuilderpublic Write.Builder setDelete(java.lang.String value)
A document name to delete. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string delete = 2;public Write.Builder clearDelete()
A document name to delete. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string delete = 2;public Write.Builder setDeleteBytes(ByteString value)
A document name to delete. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string delete = 2;public boolean hasTransform()
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;hasTransform in interface WriteOrBuilderpublic DocumentTransform getTransform()
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;getTransform in interface WriteOrBuilderpublic Write.Builder setTransform(DocumentTransform value)
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;public Write.Builder setTransform(DocumentTransform.Builder builderForValue)
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;public Write.Builder mergeTransform(DocumentTransform value)
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;public Write.Builder clearTransform()
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;public DocumentTransform.Builder getTransformBuilder()
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;public DocumentTransformOrBuilder getTransformOrBuilder()
Applies a tranformation to a document. At most one `transform` per document is allowed in a given request. An `update` cannot follow a `transform` on the same document in a given request.
.google.firestore.v1beta1.DocumentTransform transform = 6;getTransformOrBuilder in interface WriteOrBuilderpublic boolean hasUpdateMask()
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;hasUpdateMask in interface WriteOrBuilderpublic DocumentMask getUpdateMask()
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;getUpdateMask in interface WriteOrBuilderpublic Write.Builder setUpdateMask(DocumentMask value)
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;public Write.Builder setUpdateMask(DocumentMask.Builder builderForValue)
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;public Write.Builder mergeUpdateMask(DocumentMask value)
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;public Write.Builder clearUpdateMask()
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;public DocumentMask.Builder getUpdateMaskBuilder()
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;public DocumentMaskOrBuilder getUpdateMaskOrBuilder()
The fields to update in this write. This field can be set only when the operation is `update`. None of the field paths in the mask may contain a reserved name. If the document exists on the server and has fields not referenced in the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
.google.firestore.v1beta1.DocumentMask update_mask = 3;getUpdateMaskOrBuilder in interface WriteOrBuilderpublic boolean hasCurrentDocument()
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;hasCurrentDocument in interface WriteOrBuilderpublic Precondition getCurrentDocument()
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;getCurrentDocument in interface WriteOrBuilderpublic Write.Builder setCurrentDocument(Precondition value)
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;public Write.Builder setCurrentDocument(Precondition.Builder builderForValue)
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;public Write.Builder mergeCurrentDocument(Precondition value)
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;public Write.Builder clearCurrentDocument()
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;public Precondition.Builder getCurrentDocumentBuilder()
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;public PreconditionOrBuilder getCurrentDocumentOrBuilder()
An optional precondition on the document. The write will fail if this is set and not met by the target document.
.google.firestore.v1beta1.Precondition current_document = 4;getCurrentDocumentOrBuilder in interface WriteOrBuilderpublic final Write.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Write.Builder>public final Write.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Write.Builder>