public static final class Write.Builder extends GeneratedMessageV3.Builder<Write.Builder> implements WriteOrBuilder
A write on a document.Protobuf type
google.firestore.v1beta1.Write
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Write.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Write.Builder>
public Write getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Write build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Write buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Write.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Write.Builder>
public Write.Builder mergeFrom(Write other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Write.Builder>
public Write.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Write.Builder>
java.io.IOException
public Write.OperationCase getOperationCase()
getOperationCase
in interface WriteOrBuilder
public Write.Builder clearOperation()
public boolean hasUpdate()
A document to write.
.google.firestore.v1beta1.Document update = 1;
hasUpdate
in interface WriteOrBuilder
public Document getUpdate()
A document to write.
.google.firestore.v1beta1.Document update = 1;
getUpdate
in interface WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public final Write.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Write.Builder>
public final Write.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Write.Builder>