Package com.google.firestore.v1
Class Write
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.firestore.v1.Write
- All Implemented Interfaces:
WriteOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
A write on a document.Protobuf type
google.firestore.v1.Write- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA write on a document.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAn optional precondition on the document.An optional precondition on the document.static WriteA document name to delete.com.google.protobuf.ByteStringA document name to delete.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<Write>intApplies a transformation to a document.Applies a transformation to a document.A document to write.The fields to update in this write.The fields to update in this write.A document to write.getUpdateTransforms(int index) The transforms to perform after update.intThe transforms to perform after update.The transforms to perform after update.getUpdateTransformsOrBuilder(int index) The transforms to perform after update.List<? extends DocumentTransform.FieldTransformOrBuilder>The transforms to perform after update.booleanAn optional precondition on the document.booleanA document name to delete.inthashCode()booleanApplies a transformation to a document.booleanA document to write.booleanThe fields to update in this write.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Write.Builderstatic Write.BuildernewBuilder(Write prototype) protected Write.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static WriteparseDelimitedFrom(InputStream input) static WriteparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteparseFrom(byte[] data) static WriteparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteparseFrom(com.google.protobuf.ByteString data) static WriteparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteparseFrom(com.google.protobuf.CodedInputStream input) static WriteparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteparseFrom(InputStream input) static WriteparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteparseFrom(ByteBuffer data) static WriteparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Write>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
UPDATE_FIELD_NUMBER
public static final int UPDATE_FIELD_NUMBER- See Also:
-
DELETE_FIELD_NUMBER
public static final int DELETE_FIELD_NUMBER- See Also:
-
TRANSFORM_FIELD_NUMBER
public static final int TRANSFORM_FIELD_NUMBER- See Also:
-
UPDATE_MASK_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER- See Also:
-
UPDATE_TRANSFORMS_FIELD_NUMBER
public static final int UPDATE_TRANSFORMS_FIELD_NUMBER- See Also:
-
CURRENT_DOCUMENT_FIELD_NUMBER
public static final int CURRENT_DOCUMENT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getOperationCase
- Specified by:
getOperationCasein interfaceWriteOrBuilder
-
hasUpdate
public boolean hasUpdate()A document to write.
.google.firestore.v1.Document update = 1;- Specified by:
hasUpdatein interfaceWriteOrBuilder- Returns:
- Whether the update field is set.
-
getUpdate
A document to write.
.google.firestore.v1.Document update = 1;- Specified by:
getUpdatein interfaceWriteOrBuilder- Returns:
- The update.
-
getUpdateOrBuilder
A document to write.
.google.firestore.v1.Document update = 1;- Specified by:
getUpdateOrBuilderin interfaceWriteOrBuilder
-
hasDelete
public boolean hasDelete()A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string delete = 2;- Specified by:
hasDeletein interfaceWriteOrBuilder- Returns:
- Whether the delete field is set.
-
getDelete
A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.string delete = 2;- Specified by:
getDeletein interfaceWriteOrBuilder- Returns:
- The delete.
-
getDeleteBytes
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;- Specified by:
getDeleteBytesin interfaceWriteOrBuilder- Returns:
- The bytes for delete.
-
hasTransform
public boolean hasTransform()Applies a transformation to a document.
.google.firestore.v1.DocumentTransform transform = 6;- Specified by:
hasTransformin interfaceWriteOrBuilder- Returns:
- Whether the transform field is set.
-
getTransform
Applies a transformation to a document.
.google.firestore.v1.DocumentTransform transform = 6;- Specified by:
getTransformin interfaceWriteOrBuilder- Returns:
- The transform.
-
getTransformOrBuilder
Applies a transformation to a document.
.google.firestore.v1.DocumentTransform transform = 6;- Specified by:
getTransformOrBuilderin interfaceWriteOrBuilder
-
hasUpdateMask
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;- Specified by:
hasUpdateMaskin interfaceWriteOrBuilder- Returns:
- Whether the updateMask field is set.
-
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;- Specified by:
getUpdateMaskin interfaceWriteOrBuilder- Returns:
- The updateMask.
-
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;- Specified by:
getUpdateMaskOrBuilderin interfaceWriteOrBuilder
-
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;- Specified by:
getUpdateTransformsListin interfaceWriteOrBuilder
-
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;- Specified by:
getUpdateTransformsOrBuilderListin interfaceWriteOrBuilder
-
getUpdateTransformsCount
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;- Specified by:
getUpdateTransformsCountin interfaceWriteOrBuilder
-
getUpdateTransforms
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;- Specified by:
getUpdateTransformsin interfaceWriteOrBuilder
-
getUpdateTransformsOrBuilder
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;- Specified by:
getUpdateTransformsOrBuilderin interfaceWriteOrBuilder
-
hasCurrentDocument
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;- Specified by:
hasCurrentDocumentin interfaceWriteOrBuilder- Returns:
- Whether the currentDocument field is set.
-
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;- Specified by:
getCurrentDocumentin interfaceWriteOrBuilder- Returns:
- The currentDocument.
-
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;- Specified by:
getCurrentDocumentOrBuilderin interfaceWriteOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Write parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Write parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Write parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Write parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Write parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Write parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Write parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Write parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Write parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Write.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-