Package com.google.firestore.v1
Class BatchWriteRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
com.google.firestore.v1.BatchWriteRequest.Builder
- All Implemented Interfaces:
BatchWriteRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchWriteRequest
public static final class BatchWriteRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
implements BatchWriteRequestOrBuilder
The request for [Firestore.BatchWrite][google.firestore.v1.Firestore.BatchWrite].Protobuf type
google.firestore.v1.BatchWriteRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllWrites(Iterable<? extends Write> values) The writes to apply.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) 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.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The writes to apply.clone()booleancontainsLabels(String key) Labels associated with this batch write.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intLabels associated with this batch write.Labels associated with this batch write.getLabelsOrDefault(String key, String defaultValue) Labels associated with this batch write.getLabelsOrThrow(String key) Labels associated with this batch write.Deprecated.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.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(BatchWriteRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllLabels(Map<String, String> values) Labels associated with this batch write.Labels associated with this batch write.removeLabels(String key) Labels associated with this batch write.removeWrites(int index) The writes to apply.setDatabase(String value) Required.setDatabaseBytes(com.google.protobuf.ByteString value) Required.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The writes to apply.setWrites(int index, Write.Builder builderForValue) The writes to apply.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.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.GeneratedMessageV3.Builder<BatchWriteRequest.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
setField
public BatchWriteRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
setRepeatedField
public BatchWriteRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
addRepeatedField
public BatchWriteRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchWriteRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
mergeFrom
public BatchWriteRequest.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<BatchWriteRequest.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 interfaceBatchWriteRequestOrBuilder- 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 interfaceBatchWriteRequestOrBuilder- 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. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesListin interfaceBatchWriteRequestOrBuilder
-
getWritesCount
public int getWritesCount()The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesCountin interfaceBatchWriteRequestOrBuilder
-
getWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesin interfaceBatchWriteRequestOrBuilder
-
setWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
setWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
addWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
addAllWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
clearWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
removeWrites
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
getWritesBuilder
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
getWritesOrBuilder
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesOrBuilderin interfaceBatchWriteRequestOrBuilder
-
getWritesOrBuilderList
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2;- Specified by:
getWritesOrBuilderListin interfaceBatchWriteRequestOrBuilder
-
addWritesBuilder
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
addWritesBuilder
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
getWritesBuilderList
The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
repeated .google.firestore.v1.Write writes = 2; -
getLabelsCount
public int getLabelsCount()Description copied from interface:BatchWriteRequestOrBuilderLabels associated with this batch write.
map<string, string> labels = 3;- Specified by:
getLabelsCountin interfaceBatchWriteRequestOrBuilder
-
containsLabels
Labels associated with this batch write.
map<string, string> labels = 3;- Specified by:
containsLabelsin interfaceBatchWriteRequestOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceBatchWriteRequestOrBuilder
-
getLabelsMap
Labels associated with this batch write.
map<string, string> labels = 3;- Specified by:
getLabelsMapin interfaceBatchWriteRequestOrBuilder
-
getLabelsOrDefault
Labels associated with this batch write.
map<string, string> labels = 3;- Specified by:
getLabelsOrDefaultin interfaceBatchWriteRequestOrBuilder
-
getLabelsOrThrow
Labels associated with this batch write.
map<string, string> labels = 3;- Specified by:
getLabelsOrThrowin interfaceBatchWriteRequestOrBuilder
-
clearLabels
-
removeLabels
Labels associated with this batch write.
map<string, string> labels = 3; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels associated with this batch write.
map<string, string> labels = 3; -
putAllLabels
Labels associated with this batch write.
map<string, string> labels = 3; -
setUnknownFields
public final BatchWriteRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-
mergeUnknownFields
public final BatchWriteRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
-