public final class UpdateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 implements UpdateDocumentRequestOrBuilder
The request for [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].Protobuf type
google.firestore.v1.UpdateDocumentRequest| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateDocumentRequest.Builder
The request for [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CURRENT_DOCUMENT_FIELD_NUMBER |
static int |
DOCUMENT_FIELD_NUMBER |
static int |
MASK_FIELD_NUMBER |
static int |
UPDATE_MASK_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 UpdateDocumentRequest |
getDefaultInstance() |
UpdateDocumentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Document |
getDocument()
The updated document.
|
DocumentOrBuilder |
getDocumentOrBuilder()
The updated document.
|
DocumentMask |
getMask()
The fields to return.
|
DocumentMaskOrBuilder |
getMaskOrBuilder()
The fields to return.
|
com.google.protobuf.Parser<UpdateDocumentRequest> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
DocumentMask |
getUpdateMask()
The fields to update.
|
DocumentMaskOrBuilder |
getUpdateMaskOrBuilder()
The fields to update.
|
boolean |
hasCurrentDocument()
An optional precondition on the document.
|
boolean |
hasDocument()
The updated document.
|
int |
hashCode() |
boolean |
hasMask()
The fields to return.
|
boolean |
hasUpdateMask()
The fields to update.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static UpdateDocumentRequest.Builder |
newBuilder() |
static UpdateDocumentRequest.Builder |
newBuilder(UpdateDocumentRequest prototype) |
UpdateDocumentRequest.Builder |
newBuilderForType() |
protected UpdateDocumentRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static UpdateDocumentRequest |
parseDelimitedFrom(InputStream input) |
static UpdateDocumentRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateDocumentRequest |
parseFrom(byte[] data) |
static UpdateDocumentRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateDocumentRequest |
parseFrom(ByteBuffer data) |
static UpdateDocumentRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateDocumentRequest |
parseFrom(com.google.protobuf.ByteString data) |
static UpdateDocumentRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateDocumentRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static UpdateDocumentRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateDocumentRequest |
parseFrom(InputStream input) |
static UpdateDocumentRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<UpdateDocumentRequest> |
parser() |
UpdateDocumentRequest.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, makeExtensionsImmutable, 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 DOCUMENT_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
public static final int MASK_FIELD_NUMBER
public static final int CURRENT_DOCUMENT_FIELD_NUMBER
public 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 boolean hasDocument()
The updated document. Creates the document if it does not already exist.
.google.firestore.v1.Document document = 1;hasDocument in interface UpdateDocumentRequestOrBuilderpublic Document getDocument()
The updated document. Creates the document if it does not already exist.
.google.firestore.v1.Document document = 1;getDocument in interface UpdateDocumentRequestOrBuilderpublic DocumentOrBuilder getDocumentOrBuilder()
The updated document. Creates the document if it does not already exist.
.google.firestore.v1.Document document = 1;getDocumentOrBuilder in interface UpdateDocumentRequestOrBuilderpublic boolean hasUpdateMask()
The fields to 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.
.google.firestore.v1.DocumentMask update_mask = 2;hasUpdateMask in interface UpdateDocumentRequestOrBuilderpublic DocumentMask getUpdateMask()
The fields to 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.
.google.firestore.v1.DocumentMask update_mask = 2;getUpdateMask in interface UpdateDocumentRequestOrBuilderpublic DocumentMaskOrBuilder getUpdateMaskOrBuilder()
The fields to 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.
.google.firestore.v1.DocumentMask update_mask = 2;getUpdateMaskOrBuilder in interface UpdateDocumentRequestOrBuilderpublic boolean hasMask()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 3;hasMask in interface UpdateDocumentRequestOrBuilderpublic DocumentMask getMask()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 3;getMask in interface UpdateDocumentRequestOrBuilderpublic DocumentMaskOrBuilder getMaskOrBuilder()
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.
.google.firestore.v1.DocumentMask mask = 3;getMaskOrBuilder in interface UpdateDocumentRequestOrBuilderpublic boolean hasCurrentDocument()
An optional precondition on the document. The request will fail if this is set and not met by the target document.
.google.firestore.v1.Precondition current_document = 4;hasCurrentDocument in interface UpdateDocumentRequestOrBuilderpublic Precondition getCurrentDocument()
An optional precondition on the document. The request will fail if this is set and not met by the target document.
.google.firestore.v1.Precondition current_document = 4;getCurrentDocument in interface UpdateDocumentRequestOrBuilderpublic PreconditionOrBuilder getCurrentDocumentOrBuilder()
An optional precondition on the document. The request will fail if this is set and not met by the target document.
.google.firestore.v1.Precondition current_document = 4;getCurrentDocumentOrBuilder in interface UpdateDocumentRequestOrBuilderpublic 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 UpdateDocumentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateDocumentRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateDocumentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateDocumentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateDocumentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateDocumentRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static UpdateDocumentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UpdateDocumentRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static UpdateDocumentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UpdateDocumentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static UpdateDocumentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic UpdateDocumentRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static UpdateDocumentRequest.Builder newBuilder()
public static UpdateDocumentRequest.Builder newBuilder(UpdateDocumentRequest prototype)
public UpdateDocumentRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected UpdateDocumentRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static UpdateDocumentRequest getDefaultInstance()
public static com.google.protobuf.Parser<UpdateDocumentRequest> parser()
public com.google.protobuf.Parser<UpdateDocumentRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public UpdateDocumentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.