public final class Write extends GeneratedMessageV3 implements WriteOrBuilder
A write on a document.Protobuf type
google.firestore.v1beta1.Write| Modifier and Type | Class and Description |
|---|---|
static class |
Write.Builder
A write on a document.
|
static class |
Write.OperationCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CURRENT_DOCUMENT_FIELD_NUMBER |
static int |
DELETE_FIELD_NUMBER |
static int |
TRANSFORM_FIELD_NUMBER |
static int |
UPDATE_FIELD_NUMBER |
static int |
UPDATE_MASK_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Precondition |
getCurrentDocument()
An optional precondition on the document.
|
PreconditionOrBuilder |
getCurrentDocumentOrBuilder()
An optional precondition on the document.
|
static Write |
getDefaultInstance() |
Write |
getDefaultInstanceForType() |
java.lang.String |
getDelete()
A document name to delete.
|
ByteString |
getDeleteBytes()
A document name to delete.
|
static Descriptors.Descriptor |
getDescriptor() |
Write.OperationCase |
getOperationCase() |
Parser<Write> |
getParserForType() |
int |
getSerializedSize() |
DocumentTransform |
getTransform()
Applies a tranformation to a document.
|
DocumentTransformOrBuilder |
getTransformOrBuilder()
Applies a tranformation to a document.
|
UnknownFieldSet |
getUnknownFields() |
Document |
getUpdate()
A document to write.
|
DocumentMask |
getUpdateMask()
The fields to update in this write.
|
DocumentMaskOrBuilder |
getUpdateMaskOrBuilder()
The fields to update in this write.
|
DocumentOrBuilder |
getUpdateOrBuilder()
A document to write.
|
boolean |
hasCurrentDocument()
An optional precondition on the document.
|
int |
hashCode() |
boolean |
hasTransform()
Applies a tranformation to a document.
|
boolean |
hasUpdate()
A document to write.
|
boolean |
hasUpdateMask()
The fields to update in this write.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Write.Builder |
newBuilder() |
static Write.Builder |
newBuilder(Write prototype) |
Write.Builder |
newBuilderForType() |
protected Write.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Write |
parseDelimitedFrom(java.io.InputStream input) |
static Write |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(byte[] data) |
static Write |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(java.nio.ByteBuffer data) |
static Write |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(ByteString data) |
static Write |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(CodedInputStream input) |
static Write |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(java.io.InputStream input) |
static Write |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Write> |
parser() |
Write.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int UPDATE_FIELD_NUMBER
public static final int DELETE_FIELD_NUMBER
public static final int TRANSFORM_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
public static final int CURRENT_DOCUMENT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public Write.OperationCase getOperationCase()
getOperationCase in interface WriteOrBuilderpublic 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 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 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 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 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 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 boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Write parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Write parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Write parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Write parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Write parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Write parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Write parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Write parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Write parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Write parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Write parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Write parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Write.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Write.Builder newBuilder()
public static Write.Builder newBuilder(Write prototype)
public Write.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Write.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Write getDefaultInstance()
public Parser<Write> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Write getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder