public final class Write extends com.google.protobuf.GeneratedMessageV3 implements WriteOrBuilder
A write on a document.Protobuf type
google.firestore.v1.Write| Modifier and Type | Class and Description |
|---|---|
static class |
Write.Builder
A write on a document.
|
static class |
Write.OperationCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
static int |
UPDATE_TRANSFORMS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Precondition |
getCurrentDocument()
An optional precondition on the document.
|
PreconditionOrBuilder |
getCurrentDocumentOrBuilder()
An optional precondition on the document.
|
static Write |
getDefaultInstance() |
Write |
getDefaultInstanceForType() |
String |
getDelete()
A document name to delete.
|
com.google.protobuf.ByteString |
getDeleteBytes()
A document name to delete.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Write.OperationCase |
getOperationCase() |
com.google.protobuf.Parser<Write> |
getParserForType() |
int |
getSerializedSize() |
DocumentTransform |
getTransform()
Applies a transformation to a document.
|
DocumentTransformOrBuilder |
getTransformOrBuilder()
Applies a transformation to a document.
|
com.google.protobuf.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.
|
DocumentTransform.FieldTransform |
getUpdateTransforms(int index)
The transforms to perform after update.
|
int |
getUpdateTransformsCount()
The transforms to perform after update.
|
List<DocumentTransform.FieldTransform> |
getUpdateTransformsList()
The transforms to perform after update.
|
DocumentTransform.FieldTransformOrBuilder |
getUpdateTransformsOrBuilder(int index)
The transforms to perform after update.
|
List<? extends DocumentTransform.FieldTransformOrBuilder> |
getUpdateTransformsOrBuilderList()
The transforms to perform after update.
|
boolean |
hasCurrentDocument()
An optional precondition on the document.
|
boolean |
hasDelete()
A document name to delete.
|
int |
hashCode() |
boolean |
hasTransform()
Applies a transformation to a document.
|
boolean |
hasUpdate()
A document to write.
|
boolean |
hasUpdateMask()
The fields to update in this write.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Write.Builder |
newBuilder() |
static Write.Builder |
newBuilder(Write prototype) |
Write.Builder |
newBuilderForType() |
protected Write.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Write |
parseDelimitedFrom(InputStream input) |
static Write |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(byte[] data) |
static Write |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(ByteBuffer data) |
static Write |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(com.google.protobuf.ByteString data) |
static Write |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Write |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Write |
parseFrom(InputStream input) |
static Write |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Write> |
parser() |
Write.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, waitpublic 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 UPDATE_TRANSFORMS_FIELD_NUMBER
public static final int CURRENT_DOCUMENT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Write.OperationCase getOperationCase()
getOperationCase in interface WriteOrBuilderpublic boolean hasUpdate()
A document to write.
.google.firestore.v1.Document update = 1;hasUpdate in interface WriteOrBuilderpublic Document getUpdate()
A document to write.
.google.firestore.v1.Document update = 1;getUpdate in interface WriteOrBuilderpublic DocumentOrBuilder getUpdateOrBuilder()
A document to write.
.google.firestore.v1.Document update = 1;getUpdateOrBuilder in interface WriteOrBuilderpublic boolean hasDelete()
A document name to delete. In the format:
`projects/{project_id}/databases/{database_id}/documents/{document_path}`.
string delete = 2;hasDelete in interface WriteOrBuilderpublic 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 com.google.protobuf.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 transformation to a document.
.google.firestore.v1.DocumentTransform transform = 6;hasTransform in interface WriteOrBuilderpublic DocumentTransform getTransform()
Applies a transformation to a document.
.google.firestore.v1.DocumentTransform transform = 6;getTransform in interface WriteOrBuilderpublic DocumentTransformOrBuilder getTransformOrBuilder()
Applies a transformation to a document.
.google.firestore.v1.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`. If the mask is not set for an `update` and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by 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.v1.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`. If the mask is not set for an `update` and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by 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.v1.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`. If the mask is not set for an `update` and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by 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.v1.DocumentMask update_mask = 3;getUpdateMaskOrBuilder in interface WriteOrBuilderpublic List<DocumentTransform.FieldTransform> getUpdateTransformsList()
The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
getUpdateTransformsList in interface WriteOrBuilderpublic List<? extends DocumentTransform.FieldTransformOrBuilder> getUpdateTransformsOrBuilderList()
The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
getUpdateTransformsOrBuilderList in interface WriteOrBuilderpublic int getUpdateTransformsCount()
The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
getUpdateTransformsCount in interface WriteOrBuilderpublic DocumentTransform.FieldTransform getUpdateTransforms(int index)
The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
getUpdateTransforms in interface WriteOrBuilderpublic DocumentTransform.FieldTransformOrBuilder getUpdateTransformsOrBuilder(int index)
The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
getUpdateTransformsOrBuilder 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.v1.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.v1.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.v1.Precondition current_document = 4;getCurrentDocumentOrBuilder in interface WriteOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Write parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Write parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Write parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Write parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Write parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Write parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Write parseFrom(InputStream input) throws IOException
IOExceptionpublic static Write parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Write parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Write parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Write parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Write parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Write.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Write.Builder newBuilder()
public static Write.Builder newBuilder(Write prototype)
public Write.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Write.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Write getDefaultInstance()
public static com.google.protobuf.Parser<Write> parser()
public com.google.protobuf.Parser<Write> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Write getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.