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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public Write.OperationCase getOperationCase()
getOperationCase
in interface WriteOrBuilder
public boolean hasUpdate()
A document to write.
.google.firestore.v1.Document update = 1;
hasUpdate
in interface WriteOrBuilder
public Document getUpdate()
A document to write.
.google.firestore.v1.Document update = 1;
getUpdate
in interface WriteOrBuilder
public DocumentOrBuilder getUpdateOrBuilder()
A document to write.
.google.firestore.v1.Document update = 1;
getUpdateOrBuilder
in interface WriteOrBuilder
public 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 WriteOrBuilder
public 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 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 WriteOrBuilder
public boolean hasTransform()
Applies a transformation to a document.
.google.firestore.v1.DocumentTransform transform = 6;
hasTransform
in interface WriteOrBuilder
public DocumentTransform getTransform()
Applies a transformation to a document.
.google.firestore.v1.DocumentTransform transform = 6;
getTransform
in interface WriteOrBuilder
public DocumentTransformOrBuilder getTransformOrBuilder()
Applies a transformation to a document.
.google.firestore.v1.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`. 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 WriteOrBuilder
public 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 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.v1.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.v1.Precondition current_document = 4;
getCurrentDocument
in interface WriteOrBuilder
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.v1.Precondition current_document = 4;
getCurrentDocumentOrBuilder
in interface WriteOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Write parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Write parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Write parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Write parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Write parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Write parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Write parseFrom(InputStream input) throws IOException
IOException
public static Write parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Write parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Write parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Write parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Write parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Write.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Write.Builder newBuilder()
public static Write.Builder newBuilder(Write prototype)
public Write.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Write.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Write getDefaultInstance()
public static com.google.protobuf.Parser<Write> parser()
public com.google.protobuf.Parser<Write> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Write getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.