Package com.google.firestore.v1
Class CommitRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CommitRequest.Builder>
com.google.firestore.v1.CommitRequest.Builder
- All Implemented Interfaces:
CommitRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CommitRequest
public static final class CommitRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CommitRequest.Builder>
implements CommitRequestOrBuilder
The request for [Firestore.Commit][google.firestore.v1.Firestore.Commit].Protobuf type
google.firestore.v1.CommitRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllWrites(Iterable<? extends Write> values) The writes to apply.The writes to apply.addWrites(int index, Write.Builder builderForValue) The writes to apply.The writes to apply.addWrites(Write.Builder builderForValue) The writes to apply.The writes to apply.addWritesBuilder(int index) The writes to apply.build()clear()Required.If set, applies all writes in this transaction, and commits it.The writes to apply.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringIf set, applies all writes in this transaction, and commits it.getWrites(int index) The writes to apply.getWritesBuilder(int index) The writes to apply.The writes to apply.intThe writes to apply.The writes to apply.getWritesOrBuilder(int index) The writes to apply.List<? extends WriteOrBuilder>The writes to apply.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CommitRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeWrites(int index) The writes to apply.setDatabase(String value) Required.setDatabaseBytes(com.google.protobuf.ByteString value) Required.setTransaction(com.google.protobuf.ByteString value) If set, applies all writes in this transaction, and commits it.The writes to apply.setWrites(int index, Write.Builder builderForValue) The writes to apply.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CommitRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CommitRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CommitRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CommitRequest.Builder>
-
mergeFrom
public CommitRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>- Throws:
IOException
-
getDatabase
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatabasein interfaceCommitRequestOrBuilder- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.ByteString getDatabaseBytes()Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatabaseBytesin interfaceCommitRequestOrBuilder- Returns:
- The bytes for database.
-
setDatabase
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
clearDatabase
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDatabaseBytes
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.string database = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for database to set.- Returns:
- This builder for chaining.
-
getWritesList
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesListin interfaceCommitRequestOrBuilder
-
getWritesCount
public int getWritesCount()The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesCountin interfaceCommitRequestOrBuilder
-
getWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesin interfaceCommitRequestOrBuilder
-
setWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
setWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
addAllWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
clearWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
removeWrites
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
getWritesBuilder
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
getWritesOrBuilder
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesOrBuilderin interfaceCommitRequestOrBuilder
-
getWritesOrBuilderList
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesOrBuilderListin interfaceCommitRequestOrBuilder
-
addWritesBuilder
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
addWritesBuilder
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
getWritesBuilderList
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2; -
getTransaction
public com.google.protobuf.ByteString getTransaction()If set, applies all writes in this transaction, and commits it.
bytes transaction = 3;- Specified by:
getTransactionin interfaceCommitRequestOrBuilder- Returns:
- The transaction.
-
setTransaction
If set, applies all writes in this transaction, and commits it.
bytes transaction = 3;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
clearTransaction
If set, applies all writes in this transaction, and commits it.
bytes transaction = 3;- Returns:
- This builder for chaining.
-