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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
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 CURRENT_DOCUMENT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Write.OperationCase getOperationCase()
getOperationCase
in interface WriteOrBuilder
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 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 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 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 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 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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Write parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Write parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Write parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Write parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Write parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Write parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Write parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Write parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Write parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Write parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Write parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Write parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Write.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Write.Builder newBuilder()
public static Write.Builder newBuilder(Write prototype)
public Write.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Write.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Write getDefaultInstance()
public Parser<Write> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Write getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder